PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
5,677,392
04/15/2011 13:18:50
582,729
01/20/2011 09:29:15
8
3
Indexing on Partition
I deleted indexing on partioned table in Oracle.Is ther a way to recreate the index on the same??
oracle
null
null
null
null
null
open
Indexing on Partition === I deleted indexing on partioned table in Oracle.Is ther a way to recreate the index on the same??
0
9,919,104
03/29/2012 04:31:11
1,294,592
03/27/2012 04:12:38
4
0
SSL Creation Algorithm
I am a advanced programmer in many languages including C, C++, C#, python, JavaScript, perl, HTML, PHP, etc. However, I have been trying to create my own algorithm for website SSL and encryption creation. Is there anyway I could create SSL certificates through my own custom algorithm?
javascript
c++
python
c
ssl
03/29/2012 06:40:28
not constructive
SSL Creation Algorithm === I am a advanced programmer in many languages including C, C++, C#, python, JavaScript, perl, HTML, PHP, etc. However, I have been trying to create my own algorithm for website SSL and encryption creation. Is there anyway I could create SSL certificates through my own custom algorithm?
4
10,056,978
04/07/2012 18:06:47
1,319,415
04/07/2012 17:52:28
1
0
REGARDING GENERATION OF PRIVATE & PUBLIC KEY USING DSA
please provide me the complete java source code for encrypting text file by using cryptography Digital Signature Algorithm (DSA). Please help me as soon as possible. How to generate private and public keys for encrypting & decrypting a file using Digital Signature Algorithm (DSA)?
java
core
null
null
null
04/08/2012 05:05:12
not a real question
REGARDING GENERATION OF PRIVATE & PUBLIC KEY USING DSA === please provide me the complete java source code for encrypting text file by using cryptography Digital Signature Algorithm (DSA). Please help me as soon as possible. How to generate private and public keys for encrypting & decrypting a file using Digital Signature Algorithm (DSA)?
1
8,319,948
11/30/2011 01:11:23
434,218
08/29/2010 13:00:14
1,164
9
Change style based on checkboxes w/jQuery
I need to change the style of the entire row when a checkbox in that row is checked or unchecked. function myFunc() { if ($(".chkbx:checked").length) { $(this).parent().parent().css("background-color","red"); } else { $(this).parent().parent().css("background-color","green"); } } survFunc(); $(".chkbx").change(survFunc); <table> <tr> <td><input type="checkbox" class="chkbx" checked></td> <td>label 1</td> </tr> <tr> <td><input type="checkbox" class="chkbx" checked></td> <td>label 1</td> </tr> <tr> <td><input type="checkbox" class="chkbx" checked></td> <td>label 1</td> </tr> </table> I think I'm missing something here...
jquery
null
null
null
null
11/30/2011 19:39:06
too localized
Change style based on checkboxes w/jQuery === I need to change the style of the entire row when a checkbox in that row is checked or unchecked. function myFunc() { if ($(".chkbx:checked").length) { $(this).parent().parent().css("background-color","red"); } else { $(this).parent().parent().css("background-color","green"); } } survFunc(); $(".chkbx").change(survFunc); <table> <tr> <td><input type="checkbox" class="chkbx" checked></td> <td>label 1</td> </tr> <tr> <td><input type="checkbox" class="chkbx" checked></td> <td>label 1</td> </tr> <tr> <td><input type="checkbox" class="chkbx" checked></td> <td>label 1</td> </tr> </table> I think I'm missing something here...
3
10,286,844
04/23/2012 19:20:50
281,839
02/26/2010 06:30:28
551
2
how to change table border color in MS Word 2003?
I am using MS Word 2003. Kindly guide me how to change border color of table/ cell. I tried border and shading from format but was not successful. Please guide and help me. Thanks
ms-word
ms-office
null
null
null
05/15/2012 10:24:08
off topic
how to change table border color in MS Word 2003? === I am using MS Word 2003. Kindly guide me how to change border color of table/ cell. I tried border and shading from format but was not successful. Please guide and help me. Thanks
2
6,679,086
07/13/2011 12:43:50
838,878
07/11/2011 12:39:04
1
0
interactive list
What's the name of the list html form element like the one found [here][1]? Does anyone know of a jquery plugin to achieve something like this where you select Desktop and the next list prepopulates with info specific to the selected option? Thank you very much in advance [1]: http://downloadcenter.intel.com/
javascript
html
list
listview
null
07/14/2011 14:38:23
off topic
interactive list === What's the name of the list html form element like the one found [here][1]? Does anyone know of a jquery plugin to achieve something like this where you select Desktop and the next list prepopulates with info specific to the selected option? Thank you very much in advance [1]: http://downloadcenter.intel.com/
2
7,653,806
10/04/2011 20:44:35
893,623
08/14/2011 05:02:28
29
0
php - are these functions good to reduce server load?
good evening, i have these `five functions` that i use to `reduce server load` : <?php // unset all vars function unset_all_vars() { $vars = func_get_args(); foreach($vars[0] as $key => $val) { unset($GLOBALS[$key]); } return serialize($vars[0]); } unset_all_vars(get_defined_vars()); // unset all const function unset_all_const() { $vars = func_get_args(); foreach($vars[0] as $key => $val) { unset($key); } return serialize($vars[0]); } unset_all_const(get_defined_constants()); // unset all functions function unset_all_functions() { $vars = func_get_args(); foreach($vars[0] as $key => $val) { unset($key); } return serialize($vars[0]); } unset_all_functions(get_defined_functions()); // unset all classes function unset_all_classes() { $vars = func_get_args(); foreach($vars[0] as $x => $v) { unset($x); } return serialize($vars[0]); } unset_all_classes(get_declared_classes()); // unset all interfaces function unset_all_interfaces() { $vars = func_get_args(); foreach($vars[0] as $x => $v) { unset($x); } return serialize($vars[0]); } unset_all_interfaces(get_declared_interfaces()); ?> function 1 unset all vars function 2 unset all const function 3 unset all functions function 4 unset all classes function 5 unset all interfaces are they good ? is there some other functions `better than` them ? or `additional to` them ?
php
load
reduce
null
null
10/04/2011 23:51:01
not constructive
php - are these functions good to reduce server load? === good evening, i have these `five functions` that i use to `reduce server load` : <?php // unset all vars function unset_all_vars() { $vars = func_get_args(); foreach($vars[0] as $key => $val) { unset($GLOBALS[$key]); } return serialize($vars[0]); } unset_all_vars(get_defined_vars()); // unset all const function unset_all_const() { $vars = func_get_args(); foreach($vars[0] as $key => $val) { unset($key); } return serialize($vars[0]); } unset_all_const(get_defined_constants()); // unset all functions function unset_all_functions() { $vars = func_get_args(); foreach($vars[0] as $key => $val) { unset($key); } return serialize($vars[0]); } unset_all_functions(get_defined_functions()); // unset all classes function unset_all_classes() { $vars = func_get_args(); foreach($vars[0] as $x => $v) { unset($x); } return serialize($vars[0]); } unset_all_classes(get_declared_classes()); // unset all interfaces function unset_all_interfaces() { $vars = func_get_args(); foreach($vars[0] as $x => $v) { unset($x); } return serialize($vars[0]); } unset_all_interfaces(get_declared_interfaces()); ?> function 1 unset all vars function 2 unset all const function 3 unset all functions function 4 unset all classes function 5 unset all interfaces are they good ? is there some other functions `better than` them ? or `additional to` them ?
4
6,502,367
06/28/2011 06:20:23
752,361
03/29/2011 15:39:10
28
1
Problem with server
we are developing bidding site like quibids.com We should tell about technical problem we have faced when we tested the site, to calculate seconds we need to pass the request every second to the server database (need server time for unique time display for all users) if two user participate in auction, request passes from the each individual, server should response both users, we have received the slow responses from the server when we compare quibids with our sites They have passed average of 250 requests from each individual and getting responses within 300ms-390ms, in our site we have passed around 200 requests but the time taken to respond is 700ms-900ms, some time it reaches more than that, if we consider 100 is the minimum users in quibids the response from the quibids server is good, In our site we have tested 8 persons at a time but we have received the slow responses, if the members participating in auction increase the server will be dead slow... does this problem occurs because of the server slow in server or in our code? i think the problem is with the server, can anybody explain me the problem?
php
null
null
null
null
06/28/2011 06:35:25
not a real question
Problem with server === we are developing bidding site like quibids.com We should tell about technical problem we have faced when we tested the site, to calculate seconds we need to pass the request every second to the server database (need server time for unique time display for all users) if two user participate in auction, request passes from the each individual, server should response both users, we have received the slow responses from the server when we compare quibids with our sites They have passed average of 250 requests from each individual and getting responses within 300ms-390ms, in our site we have passed around 200 requests but the time taken to respond is 700ms-900ms, some time it reaches more than that, if we consider 100 is the minimum users in quibids the response from the quibids server is good, In our site we have tested 8 persons at a time but we have received the slow responses, if the members participating in auction increase the server will be dead slow... does this problem occurs because of the server slow in server or in our code? i think the problem is with the server, can anybody explain me the problem?
1
3,312,989
07/22/2010 20:11:22
194,089
10/21/2009 20:11:08
284
8
elegant way to test python ASTs for equality (not reference or object identity)
Not sure of the terminology here, but this would be difference between `eq?` and `equal?` in scheme, or the difference between `==` and `strncmp` with C strings; where in each case the first would return false for two different strings that actually have the same content and the second would return true. I'm looking for the latter operation, for Python's ASTs. Right now, I'm doing this: import ast def AST_eq(a, b): return ast.dump(a) == ast.dump(b) which apparently works but feels like a disaster waiting to happen. Anyone know of a better way?
python
equality
ast
null
null
null
open
elegant way to test python ASTs for equality (not reference or object identity) === Not sure of the terminology here, but this would be difference between `eq?` and `equal?` in scheme, or the difference between `==` and `strncmp` with C strings; where in each case the first would return false for two different strings that actually have the same content and the second would return true. I'm looking for the latter operation, for Python's ASTs. Right now, I'm doing this: import ast def AST_eq(a, b): return ast.dump(a) == ast.dump(b) which apparently works but feels like a disaster waiting to happen. Anyone know of a better way?
0
2,345,894
02/27/2010 01:32:52
282,489
02/27/2010 01:32:52
1
0
project management question
1) Hydrobuck Hydrobuck is a medium-sized producer of petrol-powered outboard motors. In the past, he was has successfully manufactured and marketed motors in the 3 to 40 horsepower range. Executives at hydrobuck are now interested in larger motors and would eventually like to produce motors in the 50 to 150 horsepower range. The internal workings of the large motors are quite similar to those of the smaller motors. However, large, high-performance outboard motors require power trim. Power trim is simply a hydraulic system that enables the outboard motor to move up and down on boat transom. Hydrobuck cannot successfully market the larger outboard motors without designing a power trim system to complement the motor. The company is financially secure and is the leading producer of small outboard motors. Management has decided that the following objectives need to be met within the next two years: 1. Design a quality power trim system. 2. Design and build the equipment to produce such a system effectively. 3. Develop the operations needed to install the system on the outboard motor. The technology, facilities, and marketing skills necessary to produce and sell the larger motors already exist within the company. Question i) What alternative types of project organization would suit the development of the power trim system? ii) Which would be the best? iii) Discuss your reasons for selecting this type of organization. 2) Shaw's strategy Colin Shaw has been asked to act as an accounting project manager for the second time this year. Although he enjoys the challanges and opportunity for personal development which the job may give him,He dreads the interpersonal problems assciated with the position. Sometimes he almost feels like a babysitter handing out assignments, checking on progress, and making sure everyone is doing his or her own share. Recently Colin read an article that recommended a very different approach for the project manager in supervising and controlling team members. Colin thought this was a useful idea and decided to try it on his next project. The project in question involved making a decision on whether or not to implement an activity-based costing (ABC) system throughout the organization. Collin has once been the manager in charge of implementing a process costing system in this same division, so he felt very comfortable about his ability to lead the team and resolve this question. He defined the objective of the project and detailed all the major tasks involved, as well as most of the subtasks, by the time the first meeting of the project team took place. Colin felt more secure and direction of the project that he had at the beginning of any of his previous projects. He had specifically defined objectives and tasks for each team member and had assigned completion dates for each task. He had even made up individual contracts for each team member to sign an indication of their commitment to completion of the assigned tasks by the dates detailed in his schedule. The meeting went very smoothly, with almost no comments from team members. Everyone picked up a copy of his or her contract and went off to work on the project. Colin was extremely pleased about the success of this new approach. Question i) Do you think that he will feel the same way six weeks from now? ii) Compare this new approach with his previous approach. Please I would like the project managent experts like you to help me resolve this problem. If possible I would like to receive reply a day or two. Thanks
xpath
null
null
null
null
02/27/2010 02:48:42
off topic
project management question === 1) Hydrobuck Hydrobuck is a medium-sized producer of petrol-powered outboard motors. In the past, he was has successfully manufactured and marketed motors in the 3 to 40 horsepower range. Executives at hydrobuck are now interested in larger motors and would eventually like to produce motors in the 50 to 150 horsepower range. The internal workings of the large motors are quite similar to those of the smaller motors. However, large, high-performance outboard motors require power trim. Power trim is simply a hydraulic system that enables the outboard motor to move up and down on boat transom. Hydrobuck cannot successfully market the larger outboard motors without designing a power trim system to complement the motor. The company is financially secure and is the leading producer of small outboard motors. Management has decided that the following objectives need to be met within the next two years: 1. Design a quality power trim system. 2. Design and build the equipment to produce such a system effectively. 3. Develop the operations needed to install the system on the outboard motor. The technology, facilities, and marketing skills necessary to produce and sell the larger motors already exist within the company. Question i) What alternative types of project organization would suit the development of the power trim system? ii) Which would be the best? iii) Discuss your reasons for selecting this type of organization. 2) Shaw's strategy Colin Shaw has been asked to act as an accounting project manager for the second time this year. Although he enjoys the challanges and opportunity for personal development which the job may give him,He dreads the interpersonal problems assciated with the position. Sometimes he almost feels like a babysitter handing out assignments, checking on progress, and making sure everyone is doing his or her own share. Recently Colin read an article that recommended a very different approach for the project manager in supervising and controlling team members. Colin thought this was a useful idea and decided to try it on his next project. The project in question involved making a decision on whether or not to implement an activity-based costing (ABC) system throughout the organization. Collin has once been the manager in charge of implementing a process costing system in this same division, so he felt very comfortable about his ability to lead the team and resolve this question. He defined the objective of the project and detailed all the major tasks involved, as well as most of the subtasks, by the time the first meeting of the project team took place. Colin felt more secure and direction of the project that he had at the beginning of any of his previous projects. He had specifically defined objectives and tasks for each team member and had assigned completion dates for each task. He had even made up individual contracts for each team member to sign an indication of their commitment to completion of the assigned tasks by the dates detailed in his schedule. The meeting went very smoothly, with almost no comments from team members. Everyone picked up a copy of his or her contract and went off to work on the project. Colin was extremely pleased about the success of this new approach. Question i) Do you think that he will feel the same way six weeks from now? ii) Compare this new approach with his previous approach. Please I would like the project managent experts like you to help me resolve this problem. If possible I would like to receive reply a day or two. Thanks
2
1,178,399
07/24/2009 15:24:59
44,394
12/08/2008 20:09:58
126
3
How do I create a Null Object in C#
Martin Fowler's <u>Refactoring</u> discusses creating Null Objects to avoid lots of if (myObject == null) tests. What is the right way to do this? My attempt violates the "virtual member call in constructor" rule. Here's my attempt at it: public class Animal { public virtual string Name { get; set; } public virtual string Species { get; set; } public virtual bool IsNull { get { return false; } } } public sealed class NullAnimal : Animal { public override string Name { get{ return "NULL"; } set { ; } } public override string Species { get { return "NULL"; } set { ; } } public virtual bool IsNull { get { return true; } } }
patterns
refactoring
c#
null
null
null
open
How do I create a Null Object in C# === Martin Fowler's <u>Refactoring</u> discusses creating Null Objects to avoid lots of if (myObject == null) tests. What is the right way to do this? My attempt violates the "virtual member call in constructor" rule. Here's my attempt at it: public class Animal { public virtual string Name { get; set; } public virtual string Species { get; set; } public virtual bool IsNull { get { return false; } } } public sealed class NullAnimal : Animal { public override string Name { get{ return "NULL"; } set { ; } } public override string Species { get { return "NULL"; } set { ; } } public virtual bool IsNull { get { return true; } } }
0
7,648,510
10/04/2011 13:17:35
978,458
10/04/2011 12:51:08
1
0
Programming: Accessing file inside jar from xml
Can any one tell me how to access a file in jar file through xml?
jar
xml-schema
null
null
null
10/04/2011 13:42:07
not a real question
Programming: Accessing file inside jar from xml === Can any one tell me how to access a file in jar file through xml?
1
2,984,510
06/06/2010 14:22:13
335,690
05/07/2010 17:46:18
1
0
understanding an API
I know that there are many API's like json,Facebook,twitter etc for developing related applications on iphone....but how to understand an API?This might be scilly question but I want to know how? what would you suggest for for a beginner?
iphone
sdk
null
null
null
null
open
understanding an API === I know that there are many API's like json,Facebook,twitter etc for developing related applications on iphone....but how to understand an API?This might be scilly question but I want to know how? what would you suggest for for a beginner?
0
10,968,933
06/10/2012 13:04:35
1,420,724
05/27/2012 23:42:53
20
1
Order data from several very different SQL tables
I need to echo and order data from several different SQL tables. I cannot use UNION as all the tables are very different (there are 6). I have ordered each individual table by timestamp but need to order them all by timestamp so the most recent event from all the tables is at the top of the echo. Is there a simple php solution or an AJAX or jquery solution?
php
jquery
mysql
ajax
null
06/10/2012 17:07:06
not a real question
Order data from several very different SQL tables === I need to echo and order data from several different SQL tables. I cannot use UNION as all the tables are very different (there are 6). I have ordered each individual table by timestamp but need to order them all by timestamp so the most recent event from all the tables is at the top of the echo. Is there a simple php solution or an AJAX or jquery solution?
1
7,834,364
10/20/2011 10:10:42
1,004,947
10/20/2011 10:01:58
1
0
main.xml: java.lang.NullPointerException Android Eclipse Error
So I just installed the Android SDK and the ADT addon for eclipse and ran into a problem. When I go to the graphical layout in main.xml no layout shows up. Instead I just get this error $java.lang.NullPointerException at sun.awt.FontConfiguration.getInitELC(Unknown Source) at sun.awt.FontConfiguration.initFontConfig(Unknown Source) at sun.awt.FontConfiguration.<init>(Unknown Source) at sun.awt.windows.WFontConfiguration.<init>(Unknown Source) at sun.awt.Win32GraphicsEnvironment.createFontConfiguration(Unknown Source) at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.java2d.SunGraphicsEnvironment.<init>(Unknown Source) at sun.awt.Win32GraphicsEnvironment.<init>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source) at sun.font.FontDesignMetrics.getDefaultFrc(Unknown Source) at sun.font.FontDesignMetrics.getMetrics(Unknown Source) at sun.awt.SunToolkit.getFontMetrics(Unknown Source) at sun.awt.windows.WToolkit.getFontMetrics(Unknown Source) at android.graphics.Paint_Delegate.updateFontObject(Paint_Delegate.java:1062) at android.graphics.Paint_Delegate.reset(Paint_Delegate.java:1039) at android.graphics.Paint_Delegate.<init>(Paint_Delegate.java:991) at android.graphics.Paint_Delegate.native_init(Paint_Delegate.java:614) at android.graphics.Paint.native_init(Paint.java) at android.graphics.Paint.<init>(Paint.java:194) at android.graphics.Paint.<init>(Paint.java:184) at android.view.ViewGroup.<init>(ViewGroup.java:278) at android.widget.LinearLayout.<init>(LinearLayout.java:116) at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:227) at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:318) at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:325) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService.createRenderSession(RenderService.java:372) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.renderWithBridge(GraphicalEditorPart.java:1317) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.recomputeLayout(GraphicalEditorPart.java:1071) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart$ConfigListener.onConfigurationChange(GraphicalEditorPart.java:493) at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.onRenderingTargetChange(ConfigurationComposite.java:2192) at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.access$4(ConfigurationComposite.java:2157) at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite$2.widgetSelected(ConfigurationComposite.java:441) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) It doesnt matter what android version I am in I still get this error. I have tried uninstalling the SDK and the addon and to no avail. I am using SDK r14 tools and the ADT 14.0. Anyone got any suggestions
android
eclipse
sdk
adt
development
null
open
main.xml: java.lang.NullPointerException Android Eclipse Error === So I just installed the Android SDK and the ADT addon for eclipse and ran into a problem. When I go to the graphical layout in main.xml no layout shows up. Instead I just get this error $java.lang.NullPointerException at sun.awt.FontConfiguration.getInitELC(Unknown Source) at sun.awt.FontConfiguration.initFontConfig(Unknown Source) at sun.awt.FontConfiguration.<init>(Unknown Source) at sun.awt.windows.WFontConfiguration.<init>(Unknown Source) at sun.awt.Win32GraphicsEnvironment.createFontConfiguration(Unknown Source) at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.java2d.SunGraphicsEnvironment.<init>(Unknown Source) at sun.awt.Win32GraphicsEnvironment.<init>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source) at sun.font.FontDesignMetrics.getDefaultFrc(Unknown Source) at sun.font.FontDesignMetrics.getMetrics(Unknown Source) at sun.awt.SunToolkit.getFontMetrics(Unknown Source) at sun.awt.windows.WToolkit.getFontMetrics(Unknown Source) at android.graphics.Paint_Delegate.updateFontObject(Paint_Delegate.java:1062) at android.graphics.Paint_Delegate.reset(Paint_Delegate.java:1039) at android.graphics.Paint_Delegate.<init>(Paint_Delegate.java:991) at android.graphics.Paint_Delegate.native_init(Paint_Delegate.java:614) at android.graphics.Paint.native_init(Paint.java) at android.graphics.Paint.<init>(Paint.java:194) at android.graphics.Paint.<init>(Paint.java:184) at android.view.ViewGroup.<init>(ViewGroup.java:278) at android.widget.LinearLayout.<init>(LinearLayout.java:116) at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:227) at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:318) at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:325) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService.createRenderSession(RenderService.java:372) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.renderWithBridge(GraphicalEditorPart.java:1317) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.recomputeLayout(GraphicalEditorPart.java:1071) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart$ConfigListener.onConfigurationChange(GraphicalEditorPart.java:493) at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.onRenderingTargetChange(ConfigurationComposite.java:2192) at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.access$4(ConfigurationComposite.java:2157) at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite$2.widgetSelected(ConfigurationComposite.java:441) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) It doesnt matter what android version I am in I still get this error. I have tried uninstalling the SDK and the addon and to no avail. I am using SDK r14 tools and the ADT 14.0. Anyone got any suggestions
0
7,426,687
09/15/2011 06:24:35
312,574
04/09/2010 07:11:10
36
3
Need MS sql server replication solution
Suppose there are two clients and they got their own local DBs. I want to collect data of these clients to a server in a single centralized DB. Server will contain data from both the clients and clients will have only their own data. I need a solution using Microsoft Sql Server Replication, any help would be appreciated. Thanks
sql-server-2005
database-replication
null
null
null
09/15/2011 07:07:31
off topic
Need MS sql server replication solution === Suppose there are two clients and they got their own local DBs. I want to collect data of these clients to a server in a single centralized DB. Server will contain data from both the clients and clients will have only their own data. I need a solution using Microsoft Sql Server Replication, any help would be appreciated. Thanks
2
10,181,520
04/16/2012 20:51:01
1,136,379
01/07/2012 20:22:56
39
0
Video size way too large
i am currently designing a rotating planet much like the one in this tutorial - http://www.videocopilot.net/tutorials/the_blue_planet/ However everytime i render it, it always comes out at like 3.3GB which is massive for a clip that is no longer than 10 seconds, what am i doing wrong? surely it shouldn't be that high. Thanks
adobe
after-effects
null
null
null
05/14/2012 12:06:46
off topic
Video size way too large === i am currently designing a rotating planet much like the one in this tutorial - http://www.videocopilot.net/tutorials/the_blue_planet/ However everytime i render it, it always comes out at like 3.3GB which is massive for a clip that is no longer than 10 seconds, what am i doing wrong? surely it shouldn't be that high. Thanks
2
11,631,258
07/24/2012 12:52:11
1,548,494
07/24/2012 11:15:25
1
0
Sortable list not working on ipad
I am trying to make sortable list on Ipad. I used the following [link](http://jsfiddle.net/sidonaldson/PeS2D/). But it doesn't work i just can scroll the whole page instead of moving components of the list. Please help
jquery
ios
ipad
jquery-ui
jquery-mobile
07/24/2012 13:43:11
not a real question
Sortable list not working on ipad === I am trying to make sortable list on Ipad. I used the following [link](http://jsfiddle.net/sidonaldson/PeS2D/). But it doesn't work i just can scroll the whole page instead of moving components of the list. Please help
1
4,721,839
01/18/2011 08:20:06
579,601
01/18/2011 08:20:06
1
0
My executable jar file cannot run due to null point exception
i am trying to pack my project into runable jar file , and i got this error: ---------- Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(Unknown Source) at eBridge.LoginPage.initialize(LoginPage.java:66) at eBridge.LoginPage.<init>(LoginPage.java:55) at eBridge.LoginPage.<init>(LoginPage.java:49) at eBridge.eBridgFrame.<init>(eBridgFrame.java:37) at eBridge.eBridgFrame$1.run(eBridgFrame.java:24) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) My main method is on a class calss eBridgFrame , and itz running base on tabs... here is the eBridgFrame class: ---------- package eBridge; import javax.swing.SwingUtilities; import java.awt.BorderLayout; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JFrame; import java.awt.Dimension; import java.awt.Toolkit; import java.awt.event.WindowEvent; import javax.swing.WindowConstants; public class eBridgFrame extends JFrame { private static final long serialVersionUID = 1L; private JPanel jContentPane = null; public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { eBridgFrame thisClass = new eBridgFrame(); thisClass.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); thisClass.setVisible(true); } }); } /** * This is the default constructor */ public eBridgFrame() { super(); initialize(); JPanel panel = new LoginPage(this); this.getContentPane().add(panel); this.setVisible(true); } /** * This method initializes this * * @return void */ private void initialize() { this.setSize(950, 720); this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); this.setName("EBRIDG"); this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/eBridge/images/eB.png"))); this.setResizable(false); this.setMinimumSize(new Dimension(950, 720)); this.setPreferredSize(new Dimension(950, 720)); this.setContentPane(getJContentPane()); this.setTitle("EBRIDG"); } //Pop up msg to confirm closing by overiding javax.swing.JFrame.processWindowEvent() method protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_CLOSING) { int exit = JOptionPane.showConfirmDialog(this, "Are you sure?"); if (exit == JOptionPane.YES_OPTION) { System.exit(0); } } } /** * This method initializes jContentPane * * @return javax.swing.JPanel */ private JPanel getJContentPane() { if (jContentPane == null) { jContentPane = new JPanel(); jContentPane.setLayout(new BorderLayout()); } return jContentPane; } } Can someone save me ??? Thanks a lot !
java
executable-jar
null
null
null
null
open
My executable jar file cannot run due to null point exception === i am trying to pack my project into runable jar file , and i got this error: ---------- Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(Unknown Source) at eBridge.LoginPage.initialize(LoginPage.java:66) at eBridge.LoginPage.<init>(LoginPage.java:55) at eBridge.LoginPage.<init>(LoginPage.java:49) at eBridge.eBridgFrame.<init>(eBridgFrame.java:37) at eBridge.eBridgFrame$1.run(eBridgFrame.java:24) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) My main method is on a class calss eBridgFrame , and itz running base on tabs... here is the eBridgFrame class: ---------- package eBridge; import javax.swing.SwingUtilities; import java.awt.BorderLayout; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JFrame; import java.awt.Dimension; import java.awt.Toolkit; import java.awt.event.WindowEvent; import javax.swing.WindowConstants; public class eBridgFrame extends JFrame { private static final long serialVersionUID = 1L; private JPanel jContentPane = null; public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { eBridgFrame thisClass = new eBridgFrame(); thisClass.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); thisClass.setVisible(true); } }); } /** * This is the default constructor */ public eBridgFrame() { super(); initialize(); JPanel panel = new LoginPage(this); this.getContentPane().add(panel); this.setVisible(true); } /** * This method initializes this * * @return void */ private void initialize() { this.setSize(950, 720); this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); this.setName("EBRIDG"); this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/eBridge/images/eB.png"))); this.setResizable(false); this.setMinimumSize(new Dimension(950, 720)); this.setPreferredSize(new Dimension(950, 720)); this.setContentPane(getJContentPane()); this.setTitle("EBRIDG"); } //Pop up msg to confirm closing by overiding javax.swing.JFrame.processWindowEvent() method protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_CLOSING) { int exit = JOptionPane.showConfirmDialog(this, "Are you sure?"); if (exit == JOptionPane.YES_OPTION) { System.exit(0); } } } /** * This method initializes jContentPane * * @return javax.swing.JPanel */ private JPanel getJContentPane() { if (jContentPane == null) { jContentPane = new JPanel(); jContentPane.setLayout(new BorderLayout()); } return jContentPane; } } Can someone save me ??? Thanks a lot !
0
2,550,110
03/31/2010 02:39:55
305,628
03/31/2010 01:59:15
1
0
Exe to service possible?
Is it possible to have a .exe run as a windows service?
service
exe
windows
run
start
null
open
Exe to service possible? === Is it possible to have a .exe run as a windows service?
0
11,199,126
06/26/2012 00:07:57
1,204,749
02/12/2012 05:57:33
34
3
Java regex , matching variables in a math expression
I have a string input that represents a formula like : BMI = ( Weight / ( Height * Height2 ) ) * 703 , or any other formula I want to be able to extract all legal variables into a String [] legal variables are (same rules as java variable naming convensions, except only alphabetical chars are allowed) ***any alphabet character upper or lower, may be followed by a digit** ***any word/text** ***any word/text followed by a digit** Therefore the output should look like this: BMI,Weight,Height **This is my current method:** /* helper method , find all variables in expression, * Variables are defined a alphabetical characters a to z, or any word , variables cannot have numbers at the beginning * using regex pattern "[A-Za-z0-9\\s]" */ public static List<String> variablesArray (String expression) { List<String> varList = null; StringBuilder sb = null; if (expression!=null) { sb = new StringBuilder(); //list that will contain encountered words or numbers varList = new ArrayList<String>(); Pattern p = Pattern.compile("[A-Za-z0-9\\s]"); Matcher m = p.matcher(expression); //while matches are found while (m.find()) { //add words/variables found in the expression sb.append(m.group()); }//end while //split the expression based on white space String [] splitExpression = sb.toString().split("\\s"); // for (int i=0; i<splitExpression.length; i++) { varList.add(splitExpression[i]); } } return varList; }
java
regex
pattern-matching
null
null
06/26/2012 03:00:05
not a real question
Java regex , matching variables in a math expression === I have a string input that represents a formula like : BMI = ( Weight / ( Height * Height2 ) ) * 703 , or any other formula I want to be able to extract all legal variables into a String [] legal variables are (same rules as java variable naming convensions, except only alphabetical chars are allowed) ***any alphabet character upper or lower, may be followed by a digit** ***any word/text** ***any word/text followed by a digit** Therefore the output should look like this: BMI,Weight,Height **This is my current method:** /* helper method , find all variables in expression, * Variables are defined a alphabetical characters a to z, or any word , variables cannot have numbers at the beginning * using regex pattern "[A-Za-z0-9\\s]" */ public static List<String> variablesArray (String expression) { List<String> varList = null; StringBuilder sb = null; if (expression!=null) { sb = new StringBuilder(); //list that will contain encountered words or numbers varList = new ArrayList<String>(); Pattern p = Pattern.compile("[A-Za-z0-9\\s]"); Matcher m = p.matcher(expression); //while matches are found while (m.find()) { //add words/variables found in the expression sb.append(m.group()); }//end while //split the expression based on white space String [] splitExpression = sb.toString().split("\\s"); // for (int i=0; i<splitExpression.length; i++) { varList.add(splitExpression[i]); } } return varList; }
1
7,735,945
10/12/2011 06:09:15
986,420
10/09/2011 14:12:38
1
0
Create dialog in windows services at vista+ system
I use `CreateDialogParam` to create a dialog in my service, it can run normally in XP system.But when I put it into Vista or Win7, it doesn't work. I want to know why or what else APIs I can use?
c++
winforms
null
null
null
null
open
Create dialog in windows services at vista+ system === I use `CreateDialogParam` to create a dialog in my service, it can run normally in XP system.But when I put it into Vista or Win7, it doesn't work. I want to know why or what else APIs I can use?
0
9,752,004
03/17/2012 17:13:26
1,271,617
03/15/2012 13:17:46
1
0
what actually is php?
i am php developer i have made server side part of web sites with php as per i know its a server side programming language(http://php.net/) i have heard of php compilorts this mean that i can create softwares with php i am really confused and i have heard creating mobile apps with php?? do php also offer these versions and suddenly i came to know that qt has binding for php too qt for php ???? whats going on i cant reaaly get if i can create mobile apps with php or write desktop softwares in a way in which python ruby c++ and others do and use libraires such as qt and then in case let me know
php
null
null
null
null
03/17/2012 19:14:11
not a real question
what actually is php? === i am php developer i have made server side part of web sites with php as per i know its a server side programming language(http://php.net/) i have heard of php compilorts this mean that i can create softwares with php i am really confused and i have heard creating mobile apps with php?? do php also offer these versions and suddenly i came to know that qt has binding for php too qt for php ???? whats going on i cant reaaly get if i can create mobile apps with php or write desktop softwares in a way in which python ruby c++ and others do and use libraires such as qt and then in case let me know
1
3,757,108
09/21/2010 03:31:09
165,520
08/30/2009 05:59:32
10,815
241
Contents of a static library
I have a static library say `mystaticlib.a`. I want to see the its contents , i.e. the number of object files inside it. How can I do this on gcc?
c++
c
gcc
null
null
null
open
Contents of a static library === I have a static library say `mystaticlib.a`. I want to see the its contents , i.e. the number of object files inside it. How can I do this on gcc?
0
6,232,470
06/03/2011 20:44:21
196,963
10/26/2009 23:08:24
623
18
Storing data for desktop application
I mainly develop JEE webapps so I don't have any experiences with desktop application at all. Now a friend of mine needed a little tool for daily business which I've build with Seam and a MySQL db in the background. In case of my experience this was done really fast. Now I want to go further and produce a real small desktop app for him. I've looked at various options and developing a `gtk#` application with `Mono` seems my way to go for this little project. The application should be small and fast so I was thinking if a whole MySQL server is needed for my solution here. What options I could evaluate instead of a database server which has to run as a service on the workingmachine? Storing data as `XML`? To clarify the application has now 6 entites (Products, ProductTypes, Colors, Sizes, Orders, Production). On daily basis orders and production are added to a ProductType, very simple stuff.
c#
design
mono
null
null
06/04/2011 22:07:47
not constructive
Storing data for desktop application === I mainly develop JEE webapps so I don't have any experiences with desktop application at all. Now a friend of mine needed a little tool for daily business which I've build with Seam and a MySQL db in the background. In case of my experience this was done really fast. Now I want to go further and produce a real small desktop app for him. I've looked at various options and developing a `gtk#` application with `Mono` seems my way to go for this little project. The application should be small and fast so I was thinking if a whole MySQL server is needed for my solution here. What options I could evaluate instead of a database server which has to run as a service on the workingmachine? Storing data as `XML`? To clarify the application has now 6 entites (Products, ProductTypes, Colors, Sizes, Orders, Production). On daily basis orders and production are added to a ProductType, very simple stuff.
4
10,522,776
05/09/2012 19:25:10
876,659
08/03/2011 13:06:06
184
1
.Net 4.0 a way to see what is inside the produced .exe file?
I am writing programs in my free time, using C# and .Net 4.0. I have noticed that suddenly my program's exe became much bigger, even though all i did was add a ~64x64 icon. That icon's ico file barely takes 200kb on disk, and my exe went in size from 500 to 1200 kb somewhere around i added that icon. I didnt add that lot lines of code, so i really dont think anything else could've caused it. Is there a way to unpack the executable and see what's inside? I tried using Universal Unpacker but didnt get any luck - it unpacked some .text for me that takes 1mb and some other junk files that take little kilobytes. Can i do something to get this kind of info? What i really want to know is why adding a 64x64 icon changed the size by 700kb, and wether it was the case, or maybe something else? Thanks!
.net
null
null
null
null
05/09/2012 19:25:45
not constructive
.Net 4.0 a way to see what is inside the produced .exe file? === I am writing programs in my free time, using C# and .Net 4.0. I have noticed that suddenly my program's exe became much bigger, even though all i did was add a ~64x64 icon. That icon's ico file barely takes 200kb on disk, and my exe went in size from 500 to 1200 kb somewhere around i added that icon. I didnt add that lot lines of code, so i really dont think anything else could've caused it. Is there a way to unpack the executable and see what's inside? I tried using Universal Unpacker but didnt get any luck - it unpacked some .text for me that takes 1mb and some other junk files that take little kilobytes. Can i do something to get this kind of info? What i really want to know is why adding a 64x64 icon changed the size by 700kb, and wether it was the case, or maybe something else? Thanks!
4
4,274,663
11/25/2010 07:35:36
99,694
05/02/2009 00:59:25
917
15
Rich Text Editor for Flex 4 that provides link
I have built a rich Text Editor for Flex 4 using the instruction in the following link: http://blog.flexexamples.com/2009/07/24/creating-a-simple-text-editor-using-the-spark-textarea-control-in-flex-4/ it works great. I want to be able to add link to it (user selecting text to link it to external web page). How do I do that? I'm open for other suggestions to implement Rich Text Editor with link support if you have any.
flex
richtexteditor
null
null
null
null
open
Rich Text Editor for Flex 4 that provides link === I have built a rich Text Editor for Flex 4 using the instruction in the following link: http://blog.flexexamples.com/2009/07/24/creating-a-simple-text-editor-using-the-spark-textarea-control-in-flex-4/ it works great. I want to be able to add link to it (user selecting text to link it to external web page). How do I do that? I'm open for other suggestions to implement Rich Text Editor with link support if you have any.
0
8,076,565
11/10/2011 08:16:04
631,716
02/24/2011 05:42:08
284
16
How to display data from an array with foreach() in php?
How to display data from an array with foreach() in php? I would like to do it so it displays in href with one on a new line.
php
null
null
null
null
11/11/2011 05:40:18
not a real question
How to display data from an array with foreach() in php? === How to display data from an array with foreach() in php? I would like to do it so it displays in href with one on a new line.
1
8,180,308
11/18/2011 09:31:12
502,286
11/09/2010 18:45:08
11
1
BlackBerry Google Static Map not loading
I have problem with Google Static Map with BlackBerry. I am using Google Static Map on my mobile application. Sometimes it shows map, usually it doesn't. What is the cause of this issue? Who knows the solution of this problem? Thx
google
blackberry
gmap
google-static-maps
null
11/19/2011 03:00:58
not a real question
BlackBerry Google Static Map not loading === I have problem with Google Static Map with BlackBerry. I am using Google Static Map on my mobile application. Sometimes it shows map, usually it doesn't. What is the cause of this issue? Who knows the solution of this problem? Thx
1
3,068,549
06/18/2010 09:34:10
16,177
09/17/2008 15:14:17
646
51
How to catch-up named mercurial branch from default branch without merging the two into one?
I have two branches in mercurial.. default named |r1 |r2 |r3 -------- named branch created here. | |r4 | |r5 | r6 | | |r7 | | -----------> | r8 How do I achieve this catch-up? | | I want to update the named branch from default, but I'm not ready to merge the branches yet. How do I achieve this?
mercurial
branch
null
null
null
null
open
How to catch-up named mercurial branch from default branch without merging the two into one? === I have two branches in mercurial.. default named |r1 |r2 |r3 -------- named branch created here. | |r4 | |r5 | r6 | | |r7 | | -----------> | r8 How do I achieve this catch-up? | | I want to update the named branch from default, but I'm not ready to merge the branches yet. How do I achieve this?
0
1,939,871
12/21/2009 12:35:38
172,132
09/11/2009 15:13:31
101
17
Java Casting Problem
Why isn't a `Map<String,List<SomeBean>>` castable to `Map<String,List<?>>`? What I'm doing now is this: Map<String, List<SomeBean>> fromMap = new LinkedHashMap<String, List<SomeBean>>(); /* filling in data to fromMap here */ Map<String,List<?>> toMap = new LinkedHashMap<String, List<?>>(); for (String key : fromMap.keySet()) { toMap.put(key, fromMap.get(key)); } In my opinion there should be a way around this manual transformation, but I can't figure out how. Any Ideas?
java
casting
generics
null
null
null
open
Java Casting Problem === Why isn't a `Map<String,List<SomeBean>>` castable to `Map<String,List<?>>`? What I'm doing now is this: Map<String, List<SomeBean>> fromMap = new LinkedHashMap<String, List<SomeBean>>(); /* filling in data to fromMap here */ Map<String,List<?>> toMap = new LinkedHashMap<String, List<?>>(); for (String key : fromMap.keySet()) { toMap.put(key, fromMap.get(key)); } In my opinion there should be a way around this manual transformation, but I can't figure out how. Any Ideas?
0
10,372,566
04/29/2012 13:43:44
1,331,579
04/13/2012 12:28:56
26
0
Python's built in functions not displaying
On certain computers, when I type a '.' on python, a list of built in functions will be displayed with a scroll down list, however on my laptop this isn't the case. Anyone know why and how to get it like that? Also, whenever I save a Python program, the colour coding disappears and the programs font all turns black.
python
null
null
null
null
04/29/2012 13:59:20
not a real question
Python's built in functions not displaying === On certain computers, when I type a '.' on python, a list of built in functions will be displayed with a scroll down list, however on my laptop this isn't the case. Anyone know why and how to get it like that? Also, whenever I save a Python program, the colour coding disappears and the programs font all turns black.
1
5,982,385
05/12/2011 18:08:02
535,583
12/08/2010 20:53:24
27
0
Getting an error about a label name or textbox id not being in context
I am getting a number of errors such as >The name 'lblThankYou' does not exist in the current context However the asp.net code has the 'lblThankYou' as a label name <asp:Label ID="lblThankYou" runat="server" Visible="False" Font-Bold Font-Size ="Medium" ><table><tr><td>Thank you for submitting your request. We will respond the following business day. For immediate assistance, please call us at 1-800-xxx-xxxx.</tr></table></asp:Label> However when I try to preview the file in the browser I get this > Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. > > Parser Error Message: Could not load > type > 'xxxxxxxxxxxxSolution2010.Signup3'. > > Source Error: > > Line 1: <%@ Page Title="" > Language="C#" > MasterPageFile="~/MasterPageLicensing.master" > AutoEventWireup="true" > CodeBehind="Signup3.aspx.cs" > Inherits="xxxxxxxxxxxSolution2010.Signup3" > %> Line 2: <asp:Content ID="Content1" > ContentPlaceHolderID="head" > runat="server"> Line 3: <link > rel="stylesheet" media="all" > type="text/css" > href="Style_licensing_main.css"> > > > Source File: /Signup3.aspx Line: 1 The odd thing is the code is there in the page and I tried rebuilding it to fix it but to no avail I am using ASP.net 4.0 and visual studio 2010 if that helps
asp.net
null
null
null
null
12/17/2011 00:49:39
too localized
Getting an error about a label name or textbox id not being in context === I am getting a number of errors such as >The name 'lblThankYou' does not exist in the current context However the asp.net code has the 'lblThankYou' as a label name <asp:Label ID="lblThankYou" runat="server" Visible="False" Font-Bold Font-Size ="Medium" ><table><tr><td>Thank you for submitting your request. We will respond the following business day. For immediate assistance, please call us at 1-800-xxx-xxxx.</tr></table></asp:Label> However when I try to preview the file in the browser I get this > Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. > > Parser Error Message: Could not load > type > 'xxxxxxxxxxxxSolution2010.Signup3'. > > Source Error: > > Line 1: <%@ Page Title="" > Language="C#" > MasterPageFile="~/MasterPageLicensing.master" > AutoEventWireup="true" > CodeBehind="Signup3.aspx.cs" > Inherits="xxxxxxxxxxxSolution2010.Signup3" > %> Line 2: <asp:Content ID="Content1" > ContentPlaceHolderID="head" > runat="server"> Line 3: <link > rel="stylesheet" media="all" > type="text/css" > href="Style_licensing_main.css"> > > > Source File: /Signup3.aspx Line: 1 The odd thing is the code is there in the page and I tried rebuilding it to fix it but to no avail I am using ASP.net 4.0 and visual studio 2010 if that helps
3
2,492,368
03/22/2010 13:05:37
297,150
03/19/2010 07:09:30
1
0
about currency change in joomla virtuemart.
how can i embed currency dynamically in virtuemart into another component in joomla
joomla
virtuemart
null
null
null
null
open
about currency change in joomla virtuemart. === how can i embed currency dynamically in virtuemart into another component in joomla
0
6,968,098
08/06/2011 16:19:41
428,654
08/23/2010 17:09:59
9
0
Scan coupon from a phone
I once saw a groupon commercial where they scanned a barcode image directly from the phone. Is that entirely possible? Is it possible to scan a barcode directly from a phone, such ad a coupon or something similar? Would it have to be a speific phone model such as only apple and droid? Or would palm and blackberry work as well? I apologize in advance if this question is rediculous to some, but I have just been wondering why that type of technology has yet to be full blown implemented in an almost paperless world. This seemed to be the best plac to seek out an answer.
barcode
coupon
null
null
null
08/06/2011 18:44:01
off topic
Scan coupon from a phone === I once saw a groupon commercial where they scanned a barcode image directly from the phone. Is that entirely possible? Is it possible to scan a barcode directly from a phone, such ad a coupon or something similar? Would it have to be a speific phone model such as only apple and droid? Or would palm and blackberry work as well? I apologize in advance if this question is rediculous to some, but I have just been wondering why that type of technology has yet to be full blown implemented in an almost paperless world. This seemed to be the best plac to seek out an answer.
2
4,816,821
01/27/2011 13:20:31
308,332
04/03/2010 15:05:28
64
1
MVC ValidationMessageFor
I want to show a image instead of text when validation fails but ValidationMessageFor encodes my 'validationMessage'. I'm trying to specify a validationMessage like '<img .... />' How can i do that? Thanks
asp.net-mvc
null
null
null
null
null
open
MVC ValidationMessageFor === I want to show a image instead of text when validation fails but ValidationMessageFor encodes my 'validationMessage'. I'm trying to specify a validationMessage like '<img .... />' How can i do that? Thanks
0
10,719,176
05/23/2012 11:40:48
1,397,807
05/16/2012 06:06:38
26
0
How to display an image as a popup / UIAlertView when my app entered Background Mode?
Is there a way to popup an image in the springboard (my app is in the background mode)? I know there is way to customize an alertView by creating a custom one, but is there a way to show an alert while my app is not active and is in the background? Local Notifications would perfectly solved my problem, if they could be customizable... Thanks!
iphone
ios
notifications
uialertview
uilocalnotification
05/24/2012 12:39:16
not a real question
How to display an image as a popup / UIAlertView when my app entered Background Mode? === Is there a way to popup an image in the springboard (my app is in the background mode)? I know there is way to customize an alertView by creating a custom one, but is there a way to show an alert while my app is not active and is in the background? Local Notifications would perfectly solved my problem, if they could be customizable... Thanks!
1
9,105,144
02/01/2012 23:47:34
671,319
03/22/2011 13:49:39
11
0
Make cmake compile and install libraries before compiling the top level code
I have a top level Cmakelists.txt which adds a library(in different directory) to which it statically links to. This library has its own CMakeLists.txt with install keywords, which moves the libraries and include files to lib and include folder respectively. However, the install keyword in the library does not get invoked till the entire project(including the top level ) gets compiled. The problem with this is that install keyword in the library CmakeLists.txt which is supposed to copy include files to the include folder does not get invoked and hence the top level files are not able to find the corresponding header files during compilation. Any solution for this ?
cmake
static-libraries
null
null
null
02/03/2012 13:46:08
too localized
Make cmake compile and install libraries before compiling the top level code === I have a top level Cmakelists.txt which adds a library(in different directory) to which it statically links to. This library has its own CMakeLists.txt with install keywords, which moves the libraries and include files to lib and include folder respectively. However, the install keyword in the library does not get invoked till the entire project(including the top level ) gets compiled. The problem with this is that install keyword in the library CmakeLists.txt which is supposed to copy include files to the include folder does not get invoked and hence the top level files are not able to find the corresponding header files during compilation. Any solution for this ?
3
8,317,915
11/29/2011 21:22:44
193,494
10/21/2009 01:03:00
406
29
Spritely jQuery Plugin - Stop All Spritely Animations
I'm developing a sort of 'booklet' with a set of pages that can be viewed one at a time. On each page, there is a lot of animation going on using the [jQuery Spritely][1] plugin, both the pan() and sprite() methods, causing it to be very resource-intensive. When the button is pressed to proceed to the next page, is there a concise way to stop ALL spritely animations that are going on? Or will I need to do so with each element manually? [1]: http://spritely.net/documentation/
javascript
jquery
performance
jquery-plugins
sprites
null
open
Spritely jQuery Plugin - Stop All Spritely Animations === I'm developing a sort of 'booklet' with a set of pages that can be viewed one at a time. On each page, there is a lot of animation going on using the [jQuery Spritely][1] plugin, both the pan() and sprite() methods, causing it to be very resource-intensive. When the button is pressed to proceed to the next page, is there a concise way to stop ALL spritely animations that are going on? Or will I need to do so with each element manually? [1]: http://spritely.net/documentation/
0
8,695,960
01/01/2012 22:20:30
1,061,177
11/23/2011 04:46:08
13
0
Checking for Null text from a bundle resulting in NullPointer
I've tried many different things, but I cant seem to get rid of this nullpointer. I have an app, in which the user has to input text into three EditTexts then press a submit button. I want to deal with the fact that if the user inputs no data and just presses submit, when the class is called where all the calculations are done, I can show a toast, and then use an intent to go back to the main. However, it wont work, the if never gets looked at... Here's the code Bundle b = getIntent().getExtras();//the bundle is retrieved from the intent int id = b.getInt("ID");//retreive the ID to know which function to call int nullCounter=0; if (b.getString("vf").trim().equals("")) nullCounter++; else if (!b.getString("vf").trim().equals(""))//checks each possibility that could have been included in the bundle vf = Double.parseDouble(b.getString("vf"));//if the value exists, extract it and convert it to an integer if (b.getString("t").trim().equals("")) nullCounter++; else if (!b.getString("t").trim().equals("")) t = Double.parseDouble(b.getString("t")); if (b.getString("d").trim().equals("")) nullCounter++; else if (!b.getString("d").trim().equals("")) d = Double.parseDouble(b.getString("d")); if (b.getString("a").trim().equals("")) nullCounter++; else if (!b.getString("a").trim().equals("")) a = Double.parseDouble(b.getString("a")); if (b.getString("v1").trim().equals("")) nullCounter++; else if (!b.getString("v1").trim().equals("")) v1 = Double.parseDouble(b.getString("v1")); if(nullCounter >2) { Intent i = new Intent(Results.this,PhysicsCalculatorActivity.class); Results.this.startActivity(i); }
android
string
nullpointerexception
bundle
null
01/01/2012 22:33:49
too localized
Checking for Null text from a bundle resulting in NullPointer === I've tried many different things, but I cant seem to get rid of this nullpointer. I have an app, in which the user has to input text into three EditTexts then press a submit button. I want to deal with the fact that if the user inputs no data and just presses submit, when the class is called where all the calculations are done, I can show a toast, and then use an intent to go back to the main. However, it wont work, the if never gets looked at... Here's the code Bundle b = getIntent().getExtras();//the bundle is retrieved from the intent int id = b.getInt("ID");//retreive the ID to know which function to call int nullCounter=0; if (b.getString("vf").trim().equals("")) nullCounter++; else if (!b.getString("vf").trim().equals(""))//checks each possibility that could have been included in the bundle vf = Double.parseDouble(b.getString("vf"));//if the value exists, extract it and convert it to an integer if (b.getString("t").trim().equals("")) nullCounter++; else if (!b.getString("t").trim().equals("")) t = Double.parseDouble(b.getString("t")); if (b.getString("d").trim().equals("")) nullCounter++; else if (!b.getString("d").trim().equals("")) d = Double.parseDouble(b.getString("d")); if (b.getString("a").trim().equals("")) nullCounter++; else if (!b.getString("a").trim().equals("")) a = Double.parseDouble(b.getString("a")); if (b.getString("v1").trim().equals("")) nullCounter++; else if (!b.getString("v1").trim().equals("")) v1 = Double.parseDouble(b.getString("v1")); if(nullCounter >2) { Intent i = new Intent(Results.this,PhysicsCalculatorActivity.class); Results.this.startActivity(i); }
3
11,388,550
07/09/2012 02:45:45
1,510,878
07/09/2012 02:37:28
1
0
Cemera Motion Characteristics in a video with OpenCV
I want to find the motion of camera (path followed by the camera while making the video) characteristics using OpenCV. I have tried to find on internet but unable to get any good stuff. Anyone please give some direction to solve this task using OpenCV. Thanks.
opencv
computer-vision
motion-detection
null
null
07/10/2012 11:50:36
not a real question
Cemera Motion Characteristics in a video with OpenCV === I want to find the motion of camera (path followed by the camera while making the video) characteristics using OpenCV. I have tried to find on internet but unable to get any good stuff. Anyone please give some direction to solve this task using OpenCV. Thanks.
1
8,735,260
01/04/2012 22:51:37
903,912
08/20/2011 17:19:17
40
0
Detecting if a object is owned by a smart pointer
I have a class which derives from enable_shared_from_this and a method which returns a shared pointer by calling shared_from_this(). I would like to in that method detect if the object is owned by a shared_ptr and if not throw. I tried something like this: shared_ptr<T> getPointer() { shared_ptr<T> ptr(shared_from_this())); if(!ptr) throw "Not owned by smart pointer" return ptr; } This doesn't work though because a bad weak pointer exception is thrown during the construction of ptr. Is there another way.
c++
boost
shared-ptr
null
null
null
open
Detecting if a object is owned by a smart pointer === I have a class which derives from enable_shared_from_this and a method which returns a shared pointer by calling shared_from_this(). I would like to in that method detect if the object is owned by a shared_ptr and if not throw. I tried something like this: shared_ptr<T> getPointer() { shared_ptr<T> ptr(shared_from_this())); if(!ptr) throw "Not owned by smart pointer" return ptr; } This doesn't work though because a bad weak pointer exception is thrown during the construction of ptr. Is there another way.
0
10,156,378
04/14/2012 18:55:43
1,143,880
01/11/2012 18:34:15
54
2
CSS error while loading
When page is loading div's that I tried to hide behind so it appears only when you go on it with an effect. I solved the problem with display:none;/display:block;, but then effect disappeared. How can I fix that without losing the effect ? Picture; [http://img26.imageshack.us/img26/4791/ssspl.png][1] Actual website; [http://goo.gl/nTlZQ][2] Note: what I mean by error is text around butterflies. [1]: http://img26.imageshack.us/img26/4791/ssspl.png [2]: http://goo.gl/nTlZQ
css
null
null
null
null
04/28/2012 02:56:06
too localized
CSS error while loading === When page is loading div's that I tried to hide behind so it appears only when you go on it with an effect. I solved the problem with display:none;/display:block;, but then effect disappeared. How can I fix that without losing the effect ? Picture; [http://img26.imageshack.us/img26/4791/ssspl.png][1] Actual website; [http://goo.gl/nTlZQ][2] Note: what I mean by error is text around butterflies. [1]: http://img26.imageshack.us/img26/4791/ssspl.png [2]: http://goo.gl/nTlZQ
3
5,839,947
04/30/2011 06:08:31
355,226
06/01/2010 09:11:16
75
16
SQL Server 2005, storing only date and checking the condition with date only
I am using SQL Server, and wants to store only the date part, if it stores the time also no issue, but while checking the condition, I want to consider only date. for ex in .NET. select * from checkins where checkindate='" + DateTime.Now.toShortDateString() + "'";
c#
sql
server
null
null
null
open
SQL Server 2005, storing only date and checking the condition with date only === I am using SQL Server, and wants to store only the date part, if it stores the time also no issue, but while checking the condition, I want to consider only date. for ex in .NET. select * from checkins where checkindate='" + DateTime.Now.toShortDateString() + "'";
0
11,360,229
07/06/2012 10:12:41
1,054,306
10/27/2011 12:12:07
8
0
How can I get a 'square' <mx:Box> whitch width equals height in Flex4?
In Flex4, I want to make sure a `<mx:Box>` component is squre (width = height), the width is "100%" which inherit from the parent component. But`<mx:Box width="100%" height="width">` or `<mx:Box width="100%" height="{height}">` doesn't work. How can I make it? Thx a lot!~
flash
flex
flex4
null
null
null
open
How can I get a 'square' <mx:Box> whitch width equals height in Flex4? === In Flex4, I want to make sure a `<mx:Box>` component is squre (width = height), the width is "100%" which inherit from the parent component. But`<mx:Box width="100%" height="width">` or `<mx:Box width="100%" height="{height}">` doesn't work. How can I make it? Thx a lot!~
0
4,066,712
11/01/2010 04:52:03
332,030
05/04/2010 05:24:23
1
0
UIScrollView like Twitter app for iPad
im looking for a tutorial or for some ideas to make a custom controller that look likes how the one in the Twitter app for iPad, i mean the stacked pages with a main menu on left. Thanks in advance for any help!!
ipad
twitter
uiscrollview
custom-controls
null
null
open
UIScrollView like Twitter app for iPad === im looking for a tutorial or for some ideas to make a custom controller that look likes how the one in the Twitter app for iPad, i mean the stacked pages with a main menu on left. Thanks in advance for any help!!
0
10,979,788
06/11/2012 12:06:28
1,428,574
05/31/2012 13:52:16
18
1
Validation in Login and Registration Form using SetError,
I am developing an android app and i want some help please. Here is the link for my app which I am making **(ignore the question asked in the below given link, just take the code which I have posted in the link below) :** http://stackoverflow.com/questions/10892398/android-app-force-closes-while-going-on-another-activity Please I want to make Validation in Login and Registration Form using SetError, please can u guide me in full format using my code given in the above link. And this app which I am making is a GPS tracking app, just like LIFE360 app. Please I will appreciate any help, plz help me.
java
android
validation
login
registration
06/12/2012 13:04:33
not a real question
Validation in Login and Registration Form using SetError, === I am developing an android app and i want some help please. Here is the link for my app which I am making **(ignore the question asked in the below given link, just take the code which I have posted in the link below) :** http://stackoverflow.com/questions/10892398/android-app-force-closes-while-going-on-another-activity Please I want to make Validation in Login and Registration Form using SetError, please can u guide me in full format using my code given in the above link. And this app which I am making is a GPS tracking app, just like LIFE360 app. Please I will appreciate any help, plz help me.
1
586,446
02/25/2009 15:25:26
63,051
02/05/2009 20:53:34
160
8
What website or product do you wish had an API?
What website or product do you wish had an API?
api
mashup
non-programming
polls
null
05/08/2012 12:53:54
not constructive
What website or product do you wish had an API? === What website or product do you wish had an API?
4
7,008,527
08/10/2011 09:24:18
321,708
04/20/2010 21:01:46
5
1
jQuery onchange event fires twice in IE8
I have the following code: <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script> </head> <body> <script type="text/javascript"> $(document).ready(function() { $('#test').bind("change", function() { alert(this.value); this.value = jQuery.trim(this.value); }); }); </script> <input type="text" id="test" /> <br /> <input type="radio" /> </body> </html> In IE8 if i enter any text to "test" input and press "Tab" I'll get alert message twice. But if I comment line "this.value = jQuery.trim(this.value);" the message will be shown only once. Why this happened? And how I can avoid twice "onchange" handler invoking?
jquery
internet-explorer
internet-explorer-8
onchange
null
null
open
jQuery onchange event fires twice in IE8 === I have the following code: <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script> </head> <body> <script type="text/javascript"> $(document).ready(function() { $('#test').bind("change", function() { alert(this.value); this.value = jQuery.trim(this.value); }); }); </script> <input type="text" id="test" /> <br /> <input type="radio" /> </body> </html> In IE8 if i enter any text to "test" input and press "Tab" I'll get alert message twice. But if I comment line "this.value = jQuery.trim(this.value);" the message will be shown only once. Why this happened? And how I can avoid twice "onchange" handler invoking?
0
9,127,864
02/03/2012 11:22:33
1,179,701
01/31/2012 06:55:38
3
0
How can I zoom at particular area of the UIImageView, where user double tap?
I found some result here, but can't figure out with my solution! and please, suggest me, some good example of zoom in/out on UIScrollView, I have done with it, but my UIImageView, is working normally!
iphone
uiscrollview
uiimageview
zooming
null
02/04/2012 19:07:49
not constructive
How can I zoom at particular area of the UIImageView, where user double tap? === I found some result here, but can't figure out with my solution! and please, suggest me, some good example of zoom in/out on UIScrollView, I have done with it, but my UIImageView, is working normally!
4
3,354,235
07/28/2010 15:05:49
217,586
11/24/2009 06:23:00
74
10
How to set title of NSBox from an array controller via cocoa- bindings
I have an array controller holding some values, say - subjects. I am displaying these values in a table view. I want to set the title of NSBox as subject in selected row. I tried to do it in following way: Binding pane: Title, Controller Key: selection, Model Key Path: subject. But it is always displaying nil as box title. Can anyone suggest me how to do it correctly? Thanks, Miraaj
cocoa-bindings
nsbox
null
null
null
null
open
How to set title of NSBox from an array controller via cocoa- bindings === I have an array controller holding some values, say - subjects. I am displaying these values in a table view. I want to set the title of NSBox as subject in selected row. I tried to do it in following way: Binding pane: Title, Controller Key: selection, Model Key Path: subject. But it is always displaying nil as box title. Can anyone suggest me how to do it correctly? Thanks, Miraaj
0
7,584,506
09/28/2011 14:03:01
237,681
12/23/2009 15:31:25
2,135
26
Ubuntu 11.04 #2002 Cannot log in to the MySQL server
I try to write my details in PhpMyAdmin and it gives me an error: *#2002 Cannot log in to the MySQL server* I tried to change passwords in phpmyadmin/config-db.php, still get the same error. I have already spent 2 hours searching for an answer, nothing helped... Any ideas? I use Ubuntu 11.04
mysql
ubuntu
null
null
null
09/28/2011 17:17:29
off topic
Ubuntu 11.04 #2002 Cannot log in to the MySQL server === I try to write my details in PhpMyAdmin and it gives me an error: *#2002 Cannot log in to the MySQL server* I tried to change passwords in phpmyadmin/config-db.php, still get the same error. I have already spent 2 hours searching for an answer, nothing helped... Any ideas? I use Ubuntu 11.04
2
10,576,164
05/13/2012 23:58:52
646,629
03/06/2011 04:05:22
44
2
input a figure between title and body in twocolumn latex form
I'm using a Latex to write a small paper using CVPR template. I'd like to put a figure between my title+name and body(which consists with two columns) like many CVPR papers do, but I don't find the way to do that. I tried, \begin{figure*} \begin{center} \fbox{\rule{0pt}{2in} \rule{.9\linewidth}{0pt}} \end{center} \caption{some caption..} \label{fig:short} \end{figure*} but it turned out figure-star only displays it's figure at the top of _next_ page, and when I just use figure like `\begin{figure}[htb]`, it's only located one of those two columns. Does anyone know how to put a long figure between my title+name and body context? Thanks.
latex
null
null
null
null
05/14/2012 09:19:54
off topic
input a figure between title and body in twocolumn latex form === I'm using a Latex to write a small paper using CVPR template. I'd like to put a figure between my title+name and body(which consists with two columns) like many CVPR papers do, but I don't find the way to do that. I tried, \begin{figure*} \begin{center} \fbox{\rule{0pt}{2in} \rule{.9\linewidth}{0pt}} \end{center} \caption{some caption..} \label{fig:short} \end{figure*} but it turned out figure-star only displays it's figure at the top of _next_ page, and when I just use figure like `\begin{figure}[htb]`, it's only located one of those two columns. Does anyone know how to put a long figure between my title+name and body context? Thanks.
2
5,531,363
04/03/2011 17:55:08
683,233
03/30/2011 03:52:18
81
12
saving bandwidth - PHP
how to save bandwidth in PHP ? [ for transimitting file to client ]
php
apache
null
null
null
04/04/2011 05:38:46
not a real question
saving bandwidth - PHP === how to save bandwidth in PHP ? [ for transimitting file to client ]
1
9,415,129
02/23/2012 14:37:46
170,902
09/09/2009 14:42:33
155
7
How can I run a hadoop example jar in an oozie workflow?
this is driving me nuts - I feel like an idiot trying to work out how to do this! I'm building an app that uses the Oozie client libraries to run a workflow. Really simple, I would like to build some tests for my code, so I can check i'm doing the right thing the actual code - thanks to the oozie client library - is very simple. I have installed Hadoop and can run the standard wordcount supplied example, with no problems, but I can't work out how to run stuff via Oozie and its driving me nuts. So I figured I'd cheat and ask some people who will know (creep creep). How do I convert: bin/hadoop jar hadoop*examples*.jar wordcount input/somedata output To an Oozie Workflow? I assume its a Java action, but I just can't work out what to fill into the workflows xml! please help - what would the workflow look like and how would I run it on the command line. Many thanks.
unit-testing
hadoop
null
null
null
null
open
How can I run a hadoop example jar in an oozie workflow? === this is driving me nuts - I feel like an idiot trying to work out how to do this! I'm building an app that uses the Oozie client libraries to run a workflow. Really simple, I would like to build some tests for my code, so I can check i'm doing the right thing the actual code - thanks to the oozie client library - is very simple. I have installed Hadoop and can run the standard wordcount supplied example, with no problems, but I can't work out how to run stuff via Oozie and its driving me nuts. So I figured I'd cheat and ask some people who will know (creep creep). How do I convert: bin/hadoop jar hadoop*examples*.jar wordcount input/somedata output To an Oozie Workflow? I assume its a Java action, but I just can't work out what to fill into the workflows xml! please help - what would the workflow look like and how would I run it on the command line. Many thanks.
0
11,711,853
07/29/2012 18:31:25
1,432,656
06/02/2012 16:53:48
1
0
API designed for PHP but needed in iOS
I'm relatively new to fetching data using an API, but I understand the concept. I'm trying to make API calls in my iOS application but the API I'm trying to use is designed for PHP use. The documentation for the API can be found here: http://codex.bbpress.org/context/developer/ Is there a way that I can still use the API in the application? I can't seem to find any information on this so anything will help. Thanks.
php
ios
api
mobile
null
07/30/2012 02:13:29
not constructive
API designed for PHP but needed in iOS === I'm relatively new to fetching data using an API, but I understand the concept. I'm trying to make API calls in my iOS application but the API I'm trying to use is designed for PHP use. The documentation for the API can be found here: http://codex.bbpress.org/context/developer/ Is there a way that I can still use the API in the application? I can't seem to find any information on this so anything will help. Thanks.
4
11,247,958
06/28/2012 15:29:45
1,489,027
06/28/2012 15:28:03
1
0
Decoding captcha - PHP libs
Do you know if there is some PHP libraries available to decode a captcha code of this type : http://t22-srtm-0171717070.paris.fr/srtm/ImageCaptcha ? Thanks for advices
php
captcha
null
null
null
06/28/2012 16:49:17
not a real question
Decoding captcha - PHP libs === Do you know if there is some PHP libraries available to decode a captcha code of this type : http://t22-srtm-0171717070.paris.fr/srtm/ImageCaptcha ? Thanks for advices
1
4,954,331
02/10/2011 07:09:54
162,223
08/24/2009 18:12:31
106
3
how to get if the user is page admin on facebook fan page custom tab
I am developing a tab based facebook applicaton that lets the users add custom tab to their page. I want to add a link for page admins to edit the tab, but the problem is how to get if the logged in user is a page admin? I know how to do this is the old API, which are to be depricated soon. I am using the new Graph API and new Javascript SDK. Don't know how to do it with that.
php
facebook
tabs
admin
fan-page
null
open
how to get if the user is page admin on facebook fan page custom tab === I am developing a tab based facebook applicaton that lets the users add custom tab to their page. I want to add a link for page admins to edit the tab, but the problem is how to get if the logged in user is a page admin? I know how to do this is the old API, which are to be depricated soon. I am using the new Graph API and new Javascript SDK. Don't know how to do it with that.
0
3,642,586
09/04/2010 14:00:51
178,946
09/25/2009 08:32:57
192
7
Change directory in swfupload jQuery plugin?
I'm trying to use the swfupload plugin to upload files. The thing is, I want the user to be able to switch the directory to upload to. The strange thing is (and maybe this is due to my limited knowledge of jQuery) that it seems like I have the correct directory when checking it with an alert, but still the upload goes to the previously selected directory. I.e. if I open the page, and click on the upload link, a div called uploadPanel is shown, which loads the swfupload. I can do the first upload fine. But if I then choose a different directory it doesn't work. I have put in an alert for testing that the variable for the current directory is correct. This alert always shows the current directory correctly. But still when the action method in the server code is called, the directory is always for the first selected directory that I had in the first upload. Here's the jQuery code: <script type="text/javascript"> var uploadDir; $(function () { $("#uploadPanel").hide(); var auth = "<% = Request.Cookies[FormsAuthentication.FormsCookieName]==null ? string.Empty : Request.Cookies[FormsAuthentication.FormsCookieName].Value %>"; loadFileManager(); $("#uploadLink").click(function (event) { $('#uploadPanel').show(); alert("uploadDir: " + uploadDir); //NOTE!!!: This shows the correct current directory, and yet, in post_params below, a previous directory is still sent to the action method in the Controller. How is this possible when the alert shows the correct directory? $("#inputFile").makeAsyncUploader({ upload_url: "/Upload/AsyncUpload/", flash_url: '/Scripts/swfupload.swf', button_image_url: '/Scripts/blankButton.png', post_params: { token: auth, currentDirectory: uploadDir }, use_query_string: true, disableDuringUpload: 'INPUT[type="submit"]' }); $("#closeButton").click(function () { $("#uploadPanel").hide(); $("#inputFile_completedMessage").hide(); }); }); }); </script> Note: the uploadDir is set elsewhere, in a separate js file. But the point is, the value of it is always correct in the alert, so why not in the call to the action method?
jquery
asp.net-mvc-2
swfupload
null
null
null
open
Change directory in swfupload jQuery plugin? === I'm trying to use the swfupload plugin to upload files. The thing is, I want the user to be able to switch the directory to upload to. The strange thing is (and maybe this is due to my limited knowledge of jQuery) that it seems like I have the correct directory when checking it with an alert, but still the upload goes to the previously selected directory. I.e. if I open the page, and click on the upload link, a div called uploadPanel is shown, which loads the swfupload. I can do the first upload fine. But if I then choose a different directory it doesn't work. I have put in an alert for testing that the variable for the current directory is correct. This alert always shows the current directory correctly. But still when the action method in the server code is called, the directory is always for the first selected directory that I had in the first upload. Here's the jQuery code: <script type="text/javascript"> var uploadDir; $(function () { $("#uploadPanel").hide(); var auth = "<% = Request.Cookies[FormsAuthentication.FormsCookieName]==null ? string.Empty : Request.Cookies[FormsAuthentication.FormsCookieName].Value %>"; loadFileManager(); $("#uploadLink").click(function (event) { $('#uploadPanel').show(); alert("uploadDir: " + uploadDir); //NOTE!!!: This shows the correct current directory, and yet, in post_params below, a previous directory is still sent to the action method in the Controller. How is this possible when the alert shows the correct directory? $("#inputFile").makeAsyncUploader({ upload_url: "/Upload/AsyncUpload/", flash_url: '/Scripts/swfupload.swf', button_image_url: '/Scripts/blankButton.png', post_params: { token: auth, currentDirectory: uploadDir }, use_query_string: true, disableDuringUpload: 'INPUT[type="submit"]' }); $("#closeButton").click(function () { $("#uploadPanel").hide(); $("#inputFile_completedMessage").hide(); }); }); }); </script> Note: the uploadDir is set elsewhere, in a separate js file. But the point is, the value of it is always correct in the alert, so why not in the call to the action method?
0
9,845,398
03/23/2012 19:30:19
1,227,124
02/22/2012 23:42:02
60
0
Remove item from basket
I want to implement a simple link that when clicked, deletes the item from the basket. How can I do this? <tr> <th>Product</th> <th>Description</th> <th>Price</th> <th>Quantity</th> <th>Total</th> </tr> and $paypalBasket[] = array($product['common_name'], $item['prod_type'], $product['price'], $item['quantity'], number_format($line_cost, 2)); ?> <tr> <td><?=$product['common_name'];?></td> <td><?=$item['prod_type'];?></td> <td><?=$product['price'];?></td> <td><input type='text' name='quantity[]' value='<?=$item['quantity'];?>' size='2' /></td> <td>&pound;<?=number_format($line_cost, 2);?></td> </tr>
php
null
null
null
null
03/23/2012 19:44:23
not a real question
Remove item from basket === I want to implement a simple link that when clicked, deletes the item from the basket. How can I do this? <tr> <th>Product</th> <th>Description</th> <th>Price</th> <th>Quantity</th> <th>Total</th> </tr> and $paypalBasket[] = array($product['common_name'], $item['prod_type'], $product['price'], $item['quantity'], number_format($line_cost, 2)); ?> <tr> <td><?=$product['common_name'];?></td> <td><?=$item['prod_type'];?></td> <td><?=$product['price'];?></td> <td><input type='text' name='quantity[]' value='<?=$item['quantity'];?>' size='2' /></td> <td>&pound;<?=number_format($line_cost, 2);?></td> </tr>
1
4,234,608
11/20/2010 19:41:21
499,030
11/06/2010 04:07:41
23
0
mvn clean install using java 1.5 or 1.6
When I do mvn clean install, I get this error: annotations are not supported in -source 1.3 (try -source 1.5 to enable annotations) But where do I put this -source 1.5 command? I tried all permutations with mvn clean install and couldn't get it to work. So I tried putting compilation in my pom, like this: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> But that didn't work either.. What am I missing? Thanks!
maven
null
null
null
null
null
open
mvn clean install using java 1.5 or 1.6 === When I do mvn clean install, I get this error: annotations are not supported in -source 1.3 (try -source 1.5 to enable annotations) But where do I put this -source 1.5 command? I tried all permutations with mvn clean install and couldn't get it to work. So I tried putting compilation in my pom, like this: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> But that didn't work either.. What am I missing? Thanks!
0
3,632,130
09/02/2010 23:55:33
287,311
03/05/2010 17:05:40
1,419
99
Why is my Dictionary adding extra escape characters to a string?
I have the following code: Dictionary<string, string> keyValuePairs = new Dictionary<string, string>(); keyValuePairs.Add("1", "An error occured.\r\nPlease try again later."); string key = "1"; if (keyValuePairs.ContainsKey(key)) { // when I hover over the object, keyValuePairs, in my debugger, I see, "An error occured.\r\nPlease try again later." string value = keyValuePairs[key]; // now when I hover over the local variable, value, I see, "An error occured.\\r\\nPlease try again later." } **I'm curious as to why the above code adds escape characters to "\r\n" to make it "\r\n"** ***I'd also like to know how to avoid getting the extra "\" characters.***
c#
string
dictionary
null
null
null
open
Why is my Dictionary adding extra escape characters to a string? === I have the following code: Dictionary<string, string> keyValuePairs = new Dictionary<string, string>(); keyValuePairs.Add("1", "An error occured.\r\nPlease try again later."); string key = "1"; if (keyValuePairs.ContainsKey(key)) { // when I hover over the object, keyValuePairs, in my debugger, I see, "An error occured.\r\nPlease try again later." string value = keyValuePairs[key]; // now when I hover over the local variable, value, I see, "An error occured.\\r\\nPlease try again later." } **I'm curious as to why the above code adds escape characters to "\r\n" to make it "\r\n"** ***I'd also like to know how to avoid getting the extra "\" characters.***
0
5,697,826
04/18/2011 01:55:51
63,775
02/08/2009 00:21:56
4,534
172
How can I select data in one DB, and use it to insert rows in another DB in T-SQL?
I'm trying to not write an app to do this, and improve my SQL mojo at the same time... Say I have data in one database table `Database1.dbo.MyTable` with the following columns: - ObjectType - ObjectKeyID There are thousands of these rows. In `Database2.dbo.MyOtherTable` I have a slightly different schema, let's say: - MyKey - MyValue I want to take the data from `Database1.dbo.MyTable`, and use each row's data as an INSERT into `Database2.dbo.MyOtherTable`. My guess is that I have to establish a cursor in a while loop, but not sure of the exact syntax to do that, or if there is a better way. What's the best technique/syntax to use for this?
sql-server-2005
tsql
null
null
null
null
open
How can I select data in one DB, and use it to insert rows in another DB in T-SQL? === I'm trying to not write an app to do this, and improve my SQL mojo at the same time... Say I have data in one database table `Database1.dbo.MyTable` with the following columns: - ObjectType - ObjectKeyID There are thousands of these rows. In `Database2.dbo.MyOtherTable` I have a slightly different schema, let's say: - MyKey - MyValue I want to take the data from `Database1.dbo.MyTable`, and use each row's data as an INSERT into `Database2.dbo.MyOtherTable`. My guess is that I have to establish a cursor in a while loop, but not sure of the exact syntax to do that, or if there is a better way. What's the best technique/syntax to use for this?
0
5,342,895
03/17/2011 17:33:45
656,189
02/17/2011 22:55:57
1
0
How to map data from other languages to java
We have to store data from some flat files that is created using IBM's Ab-Initio product. They have their own datatypes that I need to map to java data-types while I process that data in java. Does anyone know what would a good technique to do so ? Are their any java APIs to do so ? simplest technique I have in mind is to create a map of Ab-Initio to Java type after checking the size in Ab-Initio and choosing datatype that represents that size and type in Java. Any inputs are appreciated ! Thanks, -JJ
java
types
metadatatype
null
null
null
open
How to map data from other languages to java === We have to store data from some flat files that is created using IBM's Ab-Initio product. They have their own datatypes that I need to map to java data-types while I process that data in java. Does anyone know what would a good technique to do so ? Are their any java APIs to do so ? simplest technique I have in mind is to create a map of Ab-Initio to Java type after checking the size in Ab-Initio and choosing datatype that represents that size and type in Java. Any inputs are appreciated ! Thanks, -JJ
0
11,046,241
06/15/2012 07:19:48
1,417,147
05/25/2012 10:18:08
17
0
Sending values of several checkboxes with same ids
I have a table inside a form. It has two columns, the first one is a checkbox and the second is an input. Here its structure: <table> <tr> <td> <input type="checkbox" name="choose" id="choose" class="choose"> </td> <td> <input type="text" name="item" id="item" class="item" > </td> </tr> </table> It is filled with info from my database so it may have several rows. The form is submitted via a javascript function to a js file and then, thanks to jQuery’s ajax, all the parameters go to my controller php file. As I want to send to my php all the values form the text input, in my js file I do: var arrayItem= []; $(".item").each(function(){ arrayItem.push($(this).val()); }) params += '&items='+ arrayItem; . . //So I can do: $.ajax ({ url: myPHPUrl, data: params, type: "POST", async:false, success: function (data, textStatus) { } }); Now I need to do the same with the checkboxes but I don’t know how to proceed. Can anyone please help me with it? Thanks very much!
javascript
jquery
ajax
forms
checkbox
null
open
Sending values of several checkboxes with same ids === I have a table inside a form. It has two columns, the first one is a checkbox and the second is an input. Here its structure: <table> <tr> <td> <input type="checkbox" name="choose" id="choose" class="choose"> </td> <td> <input type="text" name="item" id="item" class="item" > </td> </tr> </table> It is filled with info from my database so it may have several rows. The form is submitted via a javascript function to a js file and then, thanks to jQuery’s ajax, all the parameters go to my controller php file. As I want to send to my php all the values form the text input, in my js file I do: var arrayItem= []; $(".item").each(function(){ arrayItem.push($(this).val()); }) params += '&items='+ arrayItem; . . //So I can do: $.ajax ({ url: myPHPUrl, data: params, type: "POST", async:false, success: function (data, textStatus) { } }); Now I need to do the same with the checkboxes but I don’t know how to proceed. Can anyone please help me with it? Thanks very much!
0
7,858,375
10/22/2011 08:44:07
988,274
10/10/2011 19:21:41
11
0
Handcode or not, new e-shop?
As a junior developer, I mean without great experience, what would you do for a client about an eshop? Start from scratch and handcode an e-shop(simple one)? If yes are there any good tutorials you suggest? Or buy something ready, lets say VirtueMart templates for joomla or a similar solution for Wordpress?
wordpress
e-commerce
virtuemart
null
null
10/25/2011 02:30:56
off topic
Handcode or not, new e-shop? === As a junior developer, I mean without great experience, what would you do for a client about an eshop? Start from scratch and handcode an e-shop(simple one)? If yes are there any good tutorials you suggest? Or buy something ready, lets say VirtueMart templates for joomla or a similar solution for Wordpress?
2
5,754,981
04/22/2011 11:31:22
321,038
04/20/2010 06:51:48
1
0
javascript compatibilit issue in chrome
I am using the javascript code for print that is working fine in IE and Firefox but not working good in Chrome. Any one have some idea. My code is below: $(document).ready(function() { $("#hrf1").click(function() { var win = window.open(); self.focus(); win.document.open(); win.document.write("<table id='tbl' width='216' height='180' align='left' style='border: dotted 4px black;'>"); win.document.write(document.getElementById("tbl").innerHTML); win.document.write('</table>'); win.document.close(); win.print(); win.close(); }); });
javascript
asp.net
null
null
null
04/23/2011 01:24:50
not a real question
javascript compatibilit issue in chrome === I am using the javascript code for print that is working fine in IE and Firefox but not working good in Chrome. Any one have some idea. My code is below: $(document).ready(function() { $("#hrf1").click(function() { var win = window.open(); self.focus(); win.document.open(); win.document.write("<table id='tbl' width='216' height='180' align='left' style='border: dotted 4px black;'>"); win.document.write(document.getElementById("tbl").innerHTML); win.document.write('</table>'); win.document.close(); win.print(); win.close(); }); });
1
4,817,524
01/27/2011 14:25:05
453,767
09/21/2010 10:06:27
141
11
How to register a font for free uses
I had developed a font few days ago. And i wanted to make it available for all for personal or commercial uses without modifying the font file. Where can i register it? please suggest some references.
fonts
licensing
null
null
null
null
open
How to register a font for free uses === I had developed a font few days ago. And i wanted to make it available for all for personal or commercial uses without modifying the font file. Where can i register it? please suggest some references.
0
11,122,912
06/20/2012 15:27:20
815,104
06/25/2011 07:05:31
59
9
wpf radcombobox scrollbar down arrow closing dropdown
I am using radcombobox autocomplete. The values are populating and working ok but when I am trying to scroll up or down with scrollbar arrows the combobox dropdown got closed. I checked online but found no fix.
wpf
radcombobox
null
null
null
null
open
wpf radcombobox scrollbar down arrow closing dropdown === I am using radcombobox autocomplete. The values are populating and working ok but when I am trying to scroll up or down with scrollbar arrows the combobox dropdown got closed. I checked online but found no fix.
0
1,256,047
08/10/2009 17:08:19
112,204
05/25/2009 17:28:56
1
0
ComVisible in C++/CLI
i'm converting C++ to C++/CLI and would like to expose some managed classes as COM objects. In C# it was easy and setting [ComVisible] & inheriting from interface (also ComVisible) did the job. However C++ project build as C++/CLI does not export DllRegisterServer. Here is sample project (started from CLR Console Application project in VS 2008). #include "stdafx.h" using namespace System; using namespace System::Runtime::InteropServices; [ComVisible(true)] [Guid("E3CF8A18-E4A0-4bc3-894E-E9C8648DC1F0")] [InterfaceType(ComInterfaceType::InterfaceIsDual)] interface class ITestInterface { void TestMethod(); }; [ComVisible(true)] [Guid("1514adf6-7cb0-4561-9fbb-b75c0467149b")] ref class CliComClass : ITestInterface { public: virtual void TestMethod() { } }; int main(array<System::String ^> ^args) { Console::WriteLine(L"Hello World"); return 0; } When I run regsvr32 on output .exe I got error saying DllRegisterServer was not found. I've tried google for some help but with no success.
c#
com
c++
cli
comvisible
null
open
ComVisible in C++/CLI === i'm converting C++ to C++/CLI and would like to expose some managed classes as COM objects. In C# it was easy and setting [ComVisible] & inheriting from interface (also ComVisible) did the job. However C++ project build as C++/CLI does not export DllRegisterServer. Here is sample project (started from CLR Console Application project in VS 2008). #include "stdafx.h" using namespace System; using namespace System::Runtime::InteropServices; [ComVisible(true)] [Guid("E3CF8A18-E4A0-4bc3-894E-E9C8648DC1F0")] [InterfaceType(ComInterfaceType::InterfaceIsDual)] interface class ITestInterface { void TestMethod(); }; [ComVisible(true)] [Guid("1514adf6-7cb0-4561-9fbb-b75c0467149b")] ref class CliComClass : ITestInterface { public: virtual void TestMethod() { } }; int main(array<System::String ^> ^args) { Console::WriteLine(L"Hello World"); return 0; } When I run regsvr32 on output .exe I got error saying DllRegisterServer was not found. I've tried google for some help but with no success.
0
7,785,740
10/16/2011 16:43:32
316,994
04/14/2010 22:14:30
165
4
Can not see my app on App Store from an iPad
I have an application available on the App Store. I can search and download the app from an iPhone... From an iPad, when I search for the application...i cannot find the app.... What can be the pb ? For information: - the app is not an universal app. - telephony and gps are required in the plist file
ipad
app-store
null
null
null
03/21/2012 23:43:05
off topic
Can not see my app on App Store from an iPad === I have an application available on the App Store. I can search and download the app from an iPhone... From an iPad, when I search for the application...i cannot find the app.... What can be the pb ? For information: - the app is not an universal app. - telephony and gps are required in the plist file
2
11,662,347
07/26/2012 04:28:48
1,066,604
11/26/2011 05:33:11
462
8
How to upgrade magento 1.4 1.1 to 1.7.0.2
I have a magento site in `1.4.1.1`. Now i want to uprgade the site to `magento 1.7.0.2`. I already did the following steps: 1.system->magento connet->magento connect manager 2.Then pressed tCheck for Upgrades button But the there have no list for `Manage Existing Extensions.` So how can i do the upgarde using magento connect manager? How can i upgarde the magento site ?
upgrade
magento-1.4
magento-1.7
null
null
07/28/2012 20:28:33
off topic
How to upgrade magento 1.4 1.1 to 1.7.0.2 === I have a magento site in `1.4.1.1`. Now i want to uprgade the site to `magento 1.7.0.2`. I already did the following steps: 1.system->magento connet->magento connect manager 2.Then pressed tCheck for Upgrades button But the there have no list for `Manage Existing Extensions.` So how can i do the upgarde using magento connect manager? How can i upgarde the magento site ?
2
8,460,483
12/10/2011 22:38:53
52,277
01/07/2009 02:17:16
624
36
Is it save to build a project with PostSharp attributes on machine without PostSharp installed?
I’ve installed PostSharp on my machine, added PostSharp.dll to my dependencies folder and build my aspect attribute, which is works correctly. Now I am going to check-in my changes. What would happen on build machine or my colleague's computers, when they would get latest code but wouldn’t install PostSharp. Will the attributes just ignored? Or some errors during build or run-time would happen?
msbuild
postsharp
null
null
null
null
open
Is it save to build a project with PostSharp attributes on machine without PostSharp installed? === I’ve installed PostSharp on my machine, added PostSharp.dll to my dependencies folder and build my aspect attribute, which is works correctly. Now I am going to check-in my changes. What would happen on build machine or my colleague's computers, when they would get latest code but wouldn’t install PostSharp. Will the attributes just ignored? Or some errors during build or run-time would happen?
0
6,204,387
06/01/2011 16:17:18
470,336
10/08/2010 14:30:55
177
1
wordpress : add_action : why the second parameter is an array instead of a function name
I am trying to create a wordpress plugin, I found one plugin which use oops concepts, my question is why the second parameter in the add_action function is an array instead of a function name > add_action('admin_menu', array(&$this, > 'my_menu')); my_menu is a function in the same class, please help me Thanks
php
wordpress
null
null
null
null
open
wordpress : add_action : why the second parameter is an array instead of a function name === I am trying to create a wordpress plugin, I found one plugin which use oops concepts, my question is why the second parameter in the add_action function is an array instead of a function name > add_action('admin_menu', array(&$this, > 'my_menu')); my_menu is a function in the same class, please help me Thanks
0
10,772,530
05/27/2012 08:02:49
1,326,261
04/11/2012 09:56:30
126
0
How Prolog is used and implement the real-world application
I am curious about this. I must learn Prolog for my course, but the applications that I seen mostly are written using C++, C# or Java. Applications written by Prolog, to me is very very rare application. So, I wonder how Prolog is used and implement the real-world application?
prolog
null
null
null
null
05/29/2012 13:26:39
not constructive
How Prolog is used and implement the real-world application === I am curious about this. I must learn Prolog for my course, but the applications that I seen mostly are written using C++, C# or Java. Applications written by Prolog, to me is very very rare application. So, I wonder how Prolog is used and implement the real-world application?
4
229,315
10/23/2008 10:57:44
27,424
10/13/2008 14:03:30
1
0
Domain knowlwdge for programmer
Ok So You are Programming Geek , Expert in c/++/#.... . However the project where one work falls in one of many "domains". By domains I mean Technology Domain like : - Banking/financial applications - Networking/wireless/telecom - Mobile Applications - Web/storage/enterprise/Numerous others.. So as a programmer Do one need to be master of a domain ? Or just the Language can make you survive ? and you love to be called great Programmer or also a Domain Expert ? Note: I come from "C" background ,which is not tied-up with any domain, unlike PHP and others , hence for some of you this question might be irrelevant , so pardon me.
career-development
null
null
null
null
01/27/2012 23:42:23
not a real question
Domain knowlwdge for programmer === Ok So You are Programming Geek , Expert in c/++/#.... . However the project where one work falls in one of many "domains". By domains I mean Technology Domain like : - Banking/financial applications - Networking/wireless/telecom - Mobile Applications - Web/storage/enterprise/Numerous others.. So as a programmer Do one need to be master of a domain ? Or just the Language can make you survive ? and you love to be called great Programmer or also a Domain Expert ? Note: I come from "C" background ,which is not tied-up with any domain, unlike PHP and others , hence for some of you this question might be irrelevant , so pardon me.
1
6,416,201
06/20/2011 19:12:33
807,254
06/20/2011 19:12:33
1
0
How to draw String with background on Graphics?
I draw texts with Graphics.drawString but I want to draw Strings with rectangle background.
java
swing
null
null
null
06/21/2011 12:49:05
not a real question
How to draw String with background on Graphics? === I draw texts with Graphics.drawString but I want to draw Strings with rectangle background.
1
11,577,786
07/20/2012 10:46:40
388,543
07/10/2010 18:23:26
85
0
Twitter HashTag Grab
Just wondering if someone could assist with the following. Basically I have looked at the script below to tally hashtag mentions, but it's apparently limited by the Twitter API, which gives you max 100 tweets per request. Basically can anyone assist in how this can be extended and secondly it needs to also reference the person who used the hashtag, and their twitter account name and total hashtag mentions. It would also be good to set a date range, but no idea as to how to do this, so help would be appreciated. <?php global $total, $hashtag; //$hashtag = ''; $hashtag = '#jobs'; $total = 0; function getTweets($hash_tag, $page) { global $total, $hashtag; $url = 'http://search.twitter.com/search.json?q='.urlencode($hash_tag).'&'; $url .= 'page='.$page; $ch = curl_init($url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE); $json = curl_exec ($ch); curl_close ($ch); //echo "<pre>"; //$json_decode = json_decode($json); //print_r($json_decode->results); $json_decode = json_decode($json); $total += count($json_decode->results); if($json_decode->next_page){ $temp = explode("&",$json_decode->next_page); $p = explode("=",$temp[0]); getTweets($hashtag,$p[1]); } } getTweets($hashtag,1); echo $total; ?>
php
twitter
hashtag
null
null
null
open
Twitter HashTag Grab === Just wondering if someone could assist with the following. Basically I have looked at the script below to tally hashtag mentions, but it's apparently limited by the Twitter API, which gives you max 100 tweets per request. Basically can anyone assist in how this can be extended and secondly it needs to also reference the person who used the hashtag, and their twitter account name and total hashtag mentions. It would also be good to set a date range, but no idea as to how to do this, so help would be appreciated. <?php global $total, $hashtag; //$hashtag = ''; $hashtag = '#jobs'; $total = 0; function getTweets($hash_tag, $page) { global $total, $hashtag; $url = 'http://search.twitter.com/search.json?q='.urlencode($hash_tag).'&'; $url .= 'page='.$page; $ch = curl_init($url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE); $json = curl_exec ($ch); curl_close ($ch); //echo "<pre>"; //$json_decode = json_decode($json); //print_r($json_decode->results); $json_decode = json_decode($json); $total += count($json_decode->results); if($json_decode->next_page){ $temp = explode("&",$json_decode->next_page); $p = explode("=",$temp[0]); getTweets($hashtag,$p[1]); } } getTweets($hashtag,1); echo $total; ?>
0
2,521,450
03/26/2010 06:25:33
298,870
03/22/2010 08:54:29
203
0
Static methods and their overriding
Java doesn't allow overriding of static methods but, <code> class stat13 { static void show() { System.out.println("Static in base"); } public static void main(String[] ar) { new next().show(); } } class next extends stat13 { static void show() { System.out.println("Static in derived"); } } <\code> is not overriding done here?
java
null
null
null
null
null
open
Static methods and their overriding === Java doesn't allow overriding of static methods but, <code> class stat13 { static void show() { System.out.println("Static in base"); } public static void main(String[] ar) { new next().show(); } } class next extends stat13 { static void show() { System.out.println("Static in derived"); } } <\code> is not overriding done here?
0
10,774,840
05/27/2012 14:49:40
723,627
04/25/2011 11:05:13
174
1
Wrap from X to Y items using jQuery
http://jsbin.com/uxepap/3/edit How do I wrap links from the third to the last one with `<span></span>`? Tried this code, it doesn't work: var links = $('a'); var last = links.filter(':gt(2)'); last.html(last.wrap('<span></span>'));
javascript
jquery
html
filter
wrap
05/28/2012 06:23:48
too localized
Wrap from X to Y items using jQuery === http://jsbin.com/uxepap/3/edit How do I wrap links from the third to the last one with `<span></span>`? Tried this code, it doesn't work: var links = $('a'); var last = links.filter(':gt(2)'); last.html(last.wrap('<span></span>'));
3
647,112
03/15/2009 02:05:13
1,965
08/19/2008 15:51:08
16,540
718
Using TouchScreens for game control
I'm working on my first video game for the Android platform as a bit of a nights and weekends project. It is coming along nicely, but I am very unhappy with the control sensativity. In this game, you move an object left and right on the screen. On the bottom of the screen is a "touchpad" of sorts, which is where your finger should rest. /-------------------------\ | | | | | | | Game Area | | | | | | | | | | | /-------------------------\ | | | Touch Area | | | \-------------------------/ I am currently using a state variable to hold "MOVING_LEFT, MOVING_RIGHT, NOT_MOVING" and am updating the location of the player object each frame based on that variable. However, my code that reads the touchscreen input and sets this state variable is either too sensative, or too laggy, depending on how I tweak it: public void doTouch (MotionEvent e) { int action = e.getAction(); if (action == MotionEvent.ACTION_DOWN) { this.mTouchX = (int)e.getX(); this.mTouchY = (int)e.getY(); } else if (action == MotionEvent.ACTION_MOVE) { if ((int)e.getX() >= this.mTouchX) { this.mTouchX = (int)e.getX(); this.mTouchY = (int)e.getY(); if (this.TouchRect.contains(this.mTouchX, this.mTouchY)) { this.mTouchDirection = MOVING_RIGHT; } } else if ((int)e.getX() <= this.mTouchX) { this.mTouchX = (int)e.getX(); this.mTouchY = (int)e.getY(); if (this.TouchRect.contains(this.mTouchX, this.mTouchY)) { this.mTouchDirection = MOVING_LEFT; } } else { this.mTouchDirection = NOT_MOVING; } } else if (action == MotionEvent.ACTION_UP) { this.mTouchDirection = NOT_MOVING; } } The idea is that when there is any movement, I check the previous location of the users finger and then figure out what direction to move the player. This doesn't work very well, I figure there are some IPhone/Android developers on here who have figured out how to do good controls via a touchscreen and can give some advice.
touchscreen
user-interface
android
iphone
null
null
open
Using TouchScreens for game control === I'm working on my first video game for the Android platform as a bit of a nights and weekends project. It is coming along nicely, but I am very unhappy with the control sensativity. In this game, you move an object left and right on the screen. On the bottom of the screen is a "touchpad" of sorts, which is where your finger should rest. /-------------------------\ | | | | | | | Game Area | | | | | | | | | | | /-------------------------\ | | | Touch Area | | | \-------------------------/ I am currently using a state variable to hold "MOVING_LEFT, MOVING_RIGHT, NOT_MOVING" and am updating the location of the player object each frame based on that variable. However, my code that reads the touchscreen input and sets this state variable is either too sensative, or too laggy, depending on how I tweak it: public void doTouch (MotionEvent e) { int action = e.getAction(); if (action == MotionEvent.ACTION_DOWN) { this.mTouchX = (int)e.getX(); this.mTouchY = (int)e.getY(); } else if (action == MotionEvent.ACTION_MOVE) { if ((int)e.getX() >= this.mTouchX) { this.mTouchX = (int)e.getX(); this.mTouchY = (int)e.getY(); if (this.TouchRect.contains(this.mTouchX, this.mTouchY)) { this.mTouchDirection = MOVING_RIGHT; } } else if ((int)e.getX() <= this.mTouchX) { this.mTouchX = (int)e.getX(); this.mTouchY = (int)e.getY(); if (this.TouchRect.contains(this.mTouchX, this.mTouchY)) { this.mTouchDirection = MOVING_LEFT; } } else { this.mTouchDirection = NOT_MOVING; } } else if (action == MotionEvent.ACTION_UP) { this.mTouchDirection = NOT_MOVING; } } The idea is that when there is any movement, I check the previous location of the users finger and then figure out what direction to move the player. This doesn't work very well, I figure there are some IPhone/Android developers on here who have figured out how to do good controls via a touchscreen and can give some advice.
0
7,253,128
08/31/2011 05:59:55
517,388
11/23/2010 12:01:27
13
1
Mobile Twitter Greasemonkey Script Does Not Work
I have this problem with a script not executing on mobile twitter. I have tried iton many versions of Firefox including FF5,FF8, and FF9. I have used the latest versions of Greasemoney. Right now I have FF9 with GM 0.9.10. I do not have any problems executing the script on the normal twitter but on mobile it does not work. Maybe has something to do with https? Here is the script: // ==UserScript== // @name Twitter Mobile // @namespace http://www.test.com // @include https://mobile.twitter.com/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js // ==/UserScript== function MainLoop() { if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(MainLoop, 100); return; } var $ = unsafeWindow.jQuery; $(document).ready(function(){ //do something here }); window.setTimeout(MainLoop, 2000); } MainLoop(); I have tried everything possible. Also, checked the @require alternatives and tried them. I do not know why it refuses to execute. So, I appreciate any comments. Thanks.
jquery
firefox
twitter
greasemonkey
null
null
open
Mobile Twitter Greasemonkey Script Does Not Work === I have this problem with a script not executing on mobile twitter. I have tried iton many versions of Firefox including FF5,FF8, and FF9. I have used the latest versions of Greasemoney. Right now I have FF9 with GM 0.9.10. I do not have any problems executing the script on the normal twitter but on mobile it does not work. Maybe has something to do with https? Here is the script: // ==UserScript== // @name Twitter Mobile // @namespace http://www.test.com // @include https://mobile.twitter.com/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js // ==/UserScript== function MainLoop() { if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(MainLoop, 100); return; } var $ = unsafeWindow.jQuery; $(document).ready(function(){ //do something here }); window.setTimeout(MainLoop, 2000); } MainLoop(); I have tried everything possible. Also, checked the @require alternatives and tried them. I do not know why it refuses to execute. So, I appreciate any comments. Thanks.
0
2,409,512
03/09/2010 14:02:17
230,675
12/13/2009 13:41:04
30
0
find untranslated locales in rails.
I'm using rails 2.3.5 with i18n. I's there a way to find all not yet translated locales in all views? Maybe a after_filter in the application controller, but which code I can use for this job? thanks
ruby-on-rails
internationalization
ruby
null
null
null
open
find untranslated locales in rails. === I'm using rails 2.3.5 with i18n. I's there a way to find all not yet translated locales in all views? Maybe a after_filter in the application controller, but which code I can use for this job? thanks
0
6,306,895
06/10/2011 13:18:37
792,163
06/10/2011 05:26:35
1
0
How to make a file using UNICODE like Jar files?
I just want to know if this is possible to jar files? thanks!
java
null
null
null
null
06/10/2011 13:49:34
not a real question
How to make a file using UNICODE like Jar files? === I just want to know if this is possible to jar files? thanks!
1
9,777,580
03/19/2012 20:39:01
272,087
02/12/2010 19:30:23
496
3
Is Robotlegs capable of doing this task?
I consulted with a coworker about something I want to implement in my project, and he told me about Robotlegs, it would be like this: from a external data source (databse, xml, etc) I create objects that behave the way I need and more important, when I need, let me explain: I got a unit, let say, a soldier, that listens to the event: "walk" and executes the method: "walkNormally". The database would have 2 records, one with the unit name: "Soldier" and other one with both fields, one the event, and the other one the method to execute when that event triggers. Obviously, I got a lot more of pairs of events - methods that I need in order to get my soldier performing like a soldier, like shoot, run, die, etc. Is Robotlegs capable of making this task?. Thanks in advance.
actionscript-3
flash
design-patterns
dependency-injection
robotlegs
null
open
Is Robotlegs capable of doing this task? === I consulted with a coworker about something I want to implement in my project, and he told me about Robotlegs, it would be like this: from a external data source (databse, xml, etc) I create objects that behave the way I need and more important, when I need, let me explain: I got a unit, let say, a soldier, that listens to the event: "walk" and executes the method: "walkNormally". The database would have 2 records, one with the unit name: "Soldier" and other one with both fields, one the event, and the other one the method to execute when that event triggers. Obviously, I got a lot more of pairs of events - methods that I need in order to get my soldier performing like a soldier, like shoot, run, die, etc. Is Robotlegs capable of making this task?. Thanks in advance.
0
7,409,800
09/13/2011 23:48:04
941,165
09/12/2011 18:46:03
6
0
Displaying images using an Android device - what are my options?
I wish to make a simple app - the user opens the app, swipes right or left, and is brought to a new image with every flick. This is all I am trying to do at the moment - so, generally, what are my options for doing this? I realise this is a rather open-ended question, but it's not something that resources are easily found on for beginners. So, tl;dr, I want to allow the user to swipe to display a new image, which has been gotten from the Internet, but I wish to do it intelligently, not hardcoding links into a browser or anything like that since that would not be robust at all, I don't want to package the images with the App, and ideally I would like the image to displayed at random. Can anyone offer any tips on how to do this with best practice? Thanks very much :)
java
android
xml
android-layout
android-emulator
09/14/2011 11:39:37
not a real question
Displaying images using an Android device - what are my options? === I wish to make a simple app - the user opens the app, swipes right or left, and is brought to a new image with every flick. This is all I am trying to do at the moment - so, generally, what are my options for doing this? I realise this is a rather open-ended question, but it's not something that resources are easily found on for beginners. So, tl;dr, I want to allow the user to swipe to display a new image, which has been gotten from the Internet, but I wish to do it intelligently, not hardcoding links into a browser or anything like that since that would not be robust at all, I don't want to package the images with the App, and ideally I would like the image to displayed at random. Can anyone offer any tips on how to do this with best practice? Thanks very much :)
1
8,877,753
01/16/2012 09:12:44
1,151,523
01/16/2012 09:08:50
1
0
TYPO3: Direct Mail and SMTP
i'm using TYPO3 4.5 and direct_mail 2.6.10. When I'll send a Newsletter only for the start and endtime I recieve an e-mail. No Newsletter, no testmail. Does anyone can help me, please?
typo3
null
null
null
null
05/06/2012 17:55:47
off topic
TYPO3: Direct Mail and SMTP === i'm using TYPO3 4.5 and direct_mail 2.6.10. When I'll send a Newsletter only for the start and endtime I recieve an e-mail. No Newsletter, no testmail. Does anyone can help me, please?
2
3,056,410
06/16/2010 19:12:01
368,587
06/16/2010 19:12:01
1
0
PLS-00103: Encountered the symbol "end-of-file" in simple update block
The following Oracle statement: DECLARE ID NUMBER; BEGIN UPDATE myusername.terrainMap SET playerID = :playerID,tileLayout = :tileLayout WHERE ID = :ID END; Gives me the following error: ORA-06550: line 6, column 15: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 3, column 19: PL/SQL: SQL Statement ignored ORA-06550: line 6, column 18: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: ( begin case declare end exception exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted> I am pretty much at a loss. This appears to be a rather simple statement. If it helps any, I had a similar statement that performed an INSERT which used to work, but today has been giving me the same message.
oracle
plsql
null
null
null
null
open
PLS-00103: Encountered the symbol "end-of-file" in simple update block === The following Oracle statement: DECLARE ID NUMBER; BEGIN UPDATE myusername.terrainMap SET playerID = :playerID,tileLayout = :tileLayout WHERE ID = :ID END; Gives me the following error: ORA-06550: line 6, column 15: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 3, column 19: PL/SQL: SQL Statement ignored ORA-06550: line 6, column 18: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: ( begin case declare end exception exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted> I am pretty much at a loss. This appears to be a rather simple statement. If it helps any, I had a similar statement that performed an INSERT which used to work, but today has been giving me the same message.
0
4,575,219
01/01/2011 18:47:22
296,076
03/17/2010 22:03:43
69
5
How to get WHOLE content of iframe?
I need to get whole content of iframe from the same domain. Whole content means that I want everything starting from <html> (including), not only <body> content. Content is modified after load, so I can't get it once again from server.
javascript
jquery
iframe
null
null
null
open
How to get WHOLE content of iframe? === I need to get whole content of iframe from the same domain. Whole content means that I want everything starting from <html> (including), not only <body> content. Content is modified after load, so I can't get it once again from server.
0
2,091,550
01/19/2010 06:26:52
197,484
10/27/2009 16:40:08
1
3
What's the right way to define an anchor tag in rails?
It's obvious from the [documentation][1] (and google) how to generate a link with a segment e.g. `podcast/5#comments`. You just pass a value for `:anchor` to `link_to`. My concern is about the much simpler task of generating the `<a name="comments">Comments</a>` tag i.e. the destination of the first link. I've tried the following, and although they seemed to work, the markup was not what I expected: link_to "Comments", :name => "comments" link_to "Comments", :anchor => "comments" I think I'm missing something obvious. Thanks. [1]: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#M001597
ruby-on-rails
html
hyperlink
segment
anchor
null
open
What's the right way to define an anchor tag in rails? === It's obvious from the [documentation][1] (and google) how to generate a link with a segment e.g. `podcast/5#comments`. You just pass a value for `:anchor` to `link_to`. My concern is about the much simpler task of generating the `<a name="comments">Comments</a>` tag i.e. the destination of the first link. I've tried the following, and although they seemed to work, the markup was not what I expected: link_to "Comments", :name => "comments" link_to "Comments", :anchor => "comments" I think I'm missing something obvious. Thanks. [1]: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#M001597
0
961,779
06/07/2009 12:06:07
33,411
11/02/2008 09:55:00
487
36
API calls monitoring on windows
I am doing some reverse engineering. I want to know which API's are called from the executable. I am mostly interested in the API's called on a particular windows system dll. I guess one way to do that is to get all API's exposed from the dll using dumpbin and put breakpoints on all those from Windbg. Any other approach? This seems like lot of time if I need to monitor many system dll's. Btw , I am working on Windows XP and want to monitor one executable which calls some windows system dll functions.
nonprogramming
windows-xp
winapi
null
null
null
open
API calls monitoring on windows === I am doing some reverse engineering. I want to know which API's are called from the executable. I am mostly interested in the API's called on a particular windows system dll. I guess one way to do that is to get all API's exposed from the dll using dumpbin and put breakpoints on all those from Windbg. Any other approach? This seems like lot of time if I need to monitor many system dll's. Btw , I am working on Windows XP and want to monitor one executable which calls some windows system dll functions.
0
7,943,573
10/30/2011 06:07:47
1,020,420
10/30/2011 06:05:19
1
0
Android - Shared Preferences are lost sometimes
Some of the users of my application complain that sometimes (in a random way) the settings of my application are getting reverted to their default state (usually after a reboot of the phone). I never managed to reproduce the problem though. I am thinking it is due to the fact that in many places in my app I have a piece of code that calls the shared preferences editor and commits changes - Can it resolves in corrupting the shared preference file if I try to commit several changes to the same preference file at the same time? (Multi-thread application) I am really lost. I tried to look in the web for hours to find a solution without a success. If anyone has even an idea so I can start investigating, I would be grateful. Thanks, Amit Moran
android
sharedpreferences
null
null
null
null
open
Android - Shared Preferences are lost sometimes === Some of the users of my application complain that sometimes (in a random way) the settings of my application are getting reverted to their default state (usually after a reboot of the phone). I never managed to reproduce the problem though. I am thinking it is due to the fact that in many places in my app I have a piece of code that calls the shared preferences editor and commits changes - Can it resolves in corrupting the shared preference file if I try to commit several changes to the same preference file at the same time? (Multi-thread application) I am really lost. I tried to look in the web for hours to find a solution without a success. If anyone has even an idea so I can start investigating, I would be grateful. Thanks, Amit Moran
0
9,007,270
01/25/2012 17:33:15
821,265
06/29/2011 14:10:45
78
9
Magento custom module adminhtml/base/default
My custom module is generating this error on the system log everytime I try to view the indexController. 2012-01-25T17:23:08+00:00 CRIT (2): Not valid template file:adminhtml/base/default/template/page/2columns-right.phtml I've been fishing through my module code for hours, just can't seem to find anything wrong. What could cause this? The base/default folder doesn't even exist under adminhtml.
magento
adminhtml
null
null
null
null
open
Magento custom module adminhtml/base/default === My custom module is generating this error on the system log everytime I try to view the indexController. 2012-01-25T17:23:08+00:00 CRIT (2): Not valid template file:adminhtml/base/default/template/page/2columns-right.phtml I've been fishing through my module code for hours, just can't seem to find anything wrong. What could cause this? The base/default folder doesn't even exist under adminhtml.
0
3,824,662
09/29/2010 18:24:00
428,399
08/23/2010 12:22:35
3
1
In Lucene, using a Standard Analyzer, I want to make fields with spaces searchable.
In Lucene, using a Standard Analyzer, I want to make fields with space searchable. I set Field.Index.NOT_ANALYZED and Field.Store.YES using the StandardAnalyzer When I look at my index in LUKE, the fields are as I expected, a field and a value such as: location -> 'New York'. [Here][1] I found that I can use the KeywordAnalyzer to find this value using the query: location:"New York". But I want to add another term to the query. Let's say a have a body field which contains the normalized and analyzed terms created by the StandardAnalyzer. Using the KeywordAnalyzer for this field I get different results than when I use the StandardAnalyzer. How do I combine two Analyzers in one QueryParser, where one Analyzer works for some fields and another one for another fields. I though of creating my own Analyzer which could behave differently depending on the field, but I have no clue how to do it. [1]: http://stackoverflow.com/questions/2540818/in-lucene-using-a-standard-analyzer-i-want-to-make-fields-with-spaces-and-speci/2540989#2540989 "Here"
lucene
null
null
null
null
null
open
In Lucene, using a Standard Analyzer, I want to make fields with spaces searchable. === In Lucene, using a Standard Analyzer, I want to make fields with space searchable. I set Field.Index.NOT_ANALYZED and Field.Store.YES using the StandardAnalyzer When I look at my index in LUKE, the fields are as I expected, a field and a value such as: location -> 'New York'. [Here][1] I found that I can use the KeywordAnalyzer to find this value using the query: location:"New York". But I want to add another term to the query. Let's say a have a body field which contains the normalized and analyzed terms created by the StandardAnalyzer. Using the KeywordAnalyzer for this field I get different results than when I use the StandardAnalyzer. How do I combine two Analyzers in one QueryParser, where one Analyzer works for some fields and another one for another fields. I though of creating my own Analyzer which could behave differently depending on the field, but I have no clue how to do it. [1]: http://stackoverflow.com/questions/2540818/in-lucene-using-a-standard-analyzer-i-want-to-make-fields-with-spaces-and-speci/2540989#2540989 "Here"
0
6,570,690
07/04/2011 11:11:33
828,006
07/04/2011 11:11:33
1
0
web-services-enhancements: ASP.NET - Missing nodes at SOAPEXTENSION
I want to manipulate the soapbody before sending it. I have inherited SoapExtension in myExtension class. But, when i see the soapbody, some of the nodes were missing. Code snippet: public override void ProcessMessage(SoapMessage message) { StreamReader readStr; StreamWriter writeStr; string soapMsg1; // System.Diagnostics.Debugger.Break(); XmlDocument xDoc = new XmlDocument(); // a SOAP message has 4 stages. Weare interested in .AfterSerialize switch (message.Stage) { case SoapMessageStage.BeforeSerialize: break; case SoapMessageStage.AfterSerialize: { // Get the SOAP body as a string, so we can manipulate... String soapBodyString = getXMLFromCache(); . . . . Can anybody tell me the reason why they are missing .... Thanks in advance, Suresh
web-services-enhancements
null
null
null
null
null
open
web-services-enhancements: ASP.NET - Missing nodes at SOAPEXTENSION === I want to manipulate the soapbody before sending it. I have inherited SoapExtension in myExtension class. But, when i see the soapbody, some of the nodes were missing. Code snippet: public override void ProcessMessage(SoapMessage message) { StreamReader readStr; StreamWriter writeStr; string soapMsg1; // System.Diagnostics.Debugger.Break(); XmlDocument xDoc = new XmlDocument(); // a SOAP message has 4 stages. Weare interested in .AfterSerialize switch (message.Stage) { case SoapMessageStage.BeforeSerialize: break; case SoapMessageStage.AfterSerialize: { // Get the SOAP body as a string, so we can manipulate... String soapBodyString = getXMLFromCache(); . . . . Can anybody tell me the reason why they are missing .... Thanks in advance, Suresh
0
3,468,305
08/12/2010 13:45:33
205,783
11/07/2009 21:27:27
189
15
What could be the extreme of building logic inside an application(software) i.e. GMail Attachment Validation
I have recently visted the [GMail Blog][1], and found the **extreme point of logic building inside software**, i.e. > Never forget an attachment again > > Gmail looks for phrases in your email > that suggest you meant to attach a > file (things like "I've attached" or > "see attachment") and warns you if it > looks like you forgot to do so. Every > day, this saves tons of people the > embarrassment of having to send a > follow up email with the file actually > attached. ![gmail popup][2] **I think this is too much...** Please share your expreience about the extreme point of logic building inside software/application. [1]: http://gmailblog.blogspot.com/ [2]: http://3.bp.blogspot.com/_JE4qNpFW6Yk/S33Z-Q7yNUI/AAAAAAAAAfA/Aalj4Wvfk08/forgotten_attachment_warning.png
java
.net
programming-languages
artificial-intelligence
null
08/13/2010 03:55:46
not constructive
What could be the extreme of building logic inside an application(software) i.e. GMail Attachment Validation === I have recently visted the [GMail Blog][1], and found the **extreme point of logic building inside software**, i.e. > Never forget an attachment again > > Gmail looks for phrases in your email > that suggest you meant to attach a > file (things like "I've attached" or > "see attachment") and warns you if it > looks like you forgot to do so. Every > day, this saves tons of people the > embarrassment of having to send a > follow up email with the file actually > attached. ![gmail popup][2] **I think this is too much...** Please share your expreience about the extreme point of logic building inside software/application. [1]: http://gmailblog.blogspot.com/ [2]: http://3.bp.blogspot.com/_JE4qNpFW6Yk/S33Z-Q7yNUI/AAAAAAAAAfA/Aalj4Wvfk08/forgotten_attachment_warning.png
4
9,763,347
03/18/2012 23:42:15
845,169
07/14/2011 18:09:58
180
5
django-registration activate url matching
I'm implementing the django-registration package to my project. Everything worked smoothly but when you go to the link sent to the email with the activation key in the URL, django doesn't match any URL to the given URL. The generated URL sent by email is http://127.0.0.1:8000/accounts/activate/23c768c78ecd7af9b1516e37013901fd9ea=0b062/ and one of the URL that django tries to match it with is: ^accounts/ ^activate/(?P<activation_key>\w+)/$ [name='registration_activate'] but apparently it doesn't match. Any ideas what might be wrong?
regex
django
django-forms
django-registration
null
null
open
django-registration activate url matching === I'm implementing the django-registration package to my project. Everything worked smoothly but when you go to the link sent to the email with the activation key in the URL, django doesn't match any URL to the given URL. The generated URL sent by email is http://127.0.0.1:8000/accounts/activate/23c768c78ecd7af9b1516e37013901fd9ea=0b062/ and one of the URL that django tries to match it with is: ^accounts/ ^activate/(?P<activation_key>\w+)/$ [name='registration_activate'] but apparently it doesn't match. Any ideas what might be wrong?
0
10,338,487
04/26/2012 17:33:39
173,773
09/15/2009 14:58:40
3,452
124
Where/how can I obtain a version of mysqldb that works with python 2.7?
Looks like the official version only supports python up to 2.6: http://sourceforge.net/projects/mysql-python/ Is there a version that's compatible with 2.7?
mysql
python-2.7
null
null
null
06/16/2012 21:03:17
not a real question
Where/how can I obtain a version of mysqldb that works with python 2.7? === Looks like the official version only supports python up to 2.6: http://sourceforge.net/projects/mysql-python/ Is there a version that's compatible with 2.7?
1
9,418,284
02/23/2012 17:44:14
1,063,093
11/24/2011 02:29:58
162
6
Assembly Language Usage
My Question my sound a little strange and global but what is Assembly Language used for ? Actually is it still used ? It is a a language i'd like to learn but still you don't hear often that something has been programmed in Assembly. I know it is a good language to program Drivers but that's it.. Any idea?
assembly
null
null
null
null
02/24/2012 01:24:39
not a real question
Assembly Language Usage === My Question my sound a little strange and global but what is Assembly Language used for ? Actually is it still used ? It is a a language i'd like to learn but still you don't hear often that something has been programmed in Assembly. I know it is a good language to program Drivers but that's it.. Any idea?
1
7,478,495
09/19/2011 23:31:28
560,600
01/02/2011 21:08:11
26
7
How do I set directory permissions in maven output?
I am using the maven-assembly-plugin to package my build. I am able to perform some copying of file sets and modify file permissions fine, but I am unable to modify directory permissions. From the documentation, I am trying to use <directoryMode> on the directories I care about. However, regardless of what permissions I specify, directories are ALWAYS created based off of the current umask (0022). Does anyone know of a clean way to modify directory permissions in this way during a Maven build. The only thing that works is <code>umask 0</code>, but I would rather not be forced to do this, since everyone working on this project would have to have this set. Example maven assembly.xml: <?xml version="1.0"?> <assembly> <id>zip-with-dependencies</id> <formats> <format>dir</format> <format>tar.gz</format> </formats> <includeBaseDirectory>true</includeBaseDirectory> <dependencySets> <dependencySet> <includes> <include>foo:bar</include> </includes> <outputDirectory>/resources/blah</outputDirectory> <useProjectArtifact>true</useProjectArtifact> <unpack>true</unpack> <scope>runtime</scope> </dependencySet> </dependencySets> <fileSets> <fileSet> <directory>${basedir}/src/main/web</directory> <includes> <include>some_dir</include> </includes> <outputDirectory>web</outputDirectory> <fileMode>0777</fileMode> <directoryMode>0777</directoryMode> </fileSet> </fileSets> </assembly>
maven
umask
null
null
null
null
open
How do I set directory permissions in maven output? === I am using the maven-assembly-plugin to package my build. I am able to perform some copying of file sets and modify file permissions fine, but I am unable to modify directory permissions. From the documentation, I am trying to use <directoryMode> on the directories I care about. However, regardless of what permissions I specify, directories are ALWAYS created based off of the current umask (0022). Does anyone know of a clean way to modify directory permissions in this way during a Maven build. The only thing that works is <code>umask 0</code>, but I would rather not be forced to do this, since everyone working on this project would have to have this set. Example maven assembly.xml: <?xml version="1.0"?> <assembly> <id>zip-with-dependencies</id> <formats> <format>dir</format> <format>tar.gz</format> </formats> <includeBaseDirectory>true</includeBaseDirectory> <dependencySets> <dependencySet> <includes> <include>foo:bar</include> </includes> <outputDirectory>/resources/blah</outputDirectory> <useProjectArtifact>true</useProjectArtifact> <unpack>true</unpack> <scope>runtime</scope> </dependencySet> </dependencySets> <fileSets> <fileSet> <directory>${basedir}/src/main/web</directory> <includes> <include>some_dir</include> </includes> <outputDirectory>web</outputDirectory> <fileMode>0777</fileMode> <directoryMode>0777</directoryMode> </fileSet> </fileSets> </assembly>
0