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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10,298,509 | 04/24/2012 13:09:58 | 574,686 | 01/13/2011 18:15:25 | 990 | 97 | How can I change project location in Flash Builder | I googled for several hours and still can't find how to change the project location (PROJECT_LOC path var). My code was in `package_name` package, and when I moved it to default package, compliler obviously didn't found code in the old place. So to be more precise the question is how to tell compiler thet it should look for code in other folder
Thank you in advance!! | flash | flash-builder | null | null | null | null | open | How can I change project location in Flash Builder
===
I googled for several hours and still can't find how to change the project location (PROJECT_LOC path var). My code was in `package_name` package, and when I moved it to default package, compliler obviously didn't found code in the old place. So to be more precise the question is how to tell compiler thet it should look for code in other folder
Thank you in advance!! | 0 |
4,070,557 | 11/01/2010 15:57:19 | 245,514 | 01/07/2010 12:45:10 | 51 | 0 | DayOfWeek comparison problem | I've got a service which takes in a config setting that describes a weekly time window when it should not run eg
dontProcessStart "Monday 17:00"
dontProcessStop "Monday 19:00"
From these strings I have set DayOfWeek and TimeSpan vars to represent the day and time for start and stop.
If the configs appear as above it is easy to code. The problem I'm having is what if the settings were as below where the time period stretches between two days at the top and bottom of the enum collection. eg:
dontProcessStart "Friday 23:00"
dontProcessStop "Sunday 02:00"
Sunday is 0 in the Enum and Friday is 5. How can I check if a day of the week is inbetween these?
thanks
Ben | datetime | enums | comparison | timespan | dayofweek | null | open | DayOfWeek comparison problem
===
I've got a service which takes in a config setting that describes a weekly time window when it should not run eg
dontProcessStart "Monday 17:00"
dontProcessStop "Monday 19:00"
From these strings I have set DayOfWeek and TimeSpan vars to represent the day and time for start and stop.
If the configs appear as above it is easy to code. The problem I'm having is what if the settings were as below where the time period stretches between two days at the top and bottom of the enum collection. eg:
dontProcessStart "Friday 23:00"
dontProcessStop "Sunday 02:00"
Sunday is 0 in the Enum and Friday is 5. How can I check if a day of the week is inbetween these?
thanks
Ben | 0 |
11,464,218 | 07/13/2012 04:38:46 | 1,415,366 | 05/24/2012 14:54:22 | 6 | 0 | Reference for building Javascript library | I want to build my own Javascript library for this I need to master in OOP concepts to apply in Javascript. Please suggest me a reference which gives more examples with explanation.
Thank you in advance.<br/>
Shishir Kumar M. | javascript | oop | reference | null | null | 07/15/2012 01:26:58 | not constructive | Reference for building Javascript library
===
I want to build my own Javascript library for this I need to master in OOP concepts to apply in Javascript. Please suggest me a reference which gives more examples with explanation.
Thank you in advance.<br/>
Shishir Kumar M. | 4 |
6,188,529 | 05/31/2011 13:45:02 | 96,505 | 04/27/2009 11:32:18 | 55 | 2 | How can I rewrite jQuery without guard clause? | How can I rewrite this jQuery to be more terse and without the guard clause?
var myTextBox = $('#myTextBox');
if (myTextBox )
myTextBox.val("");
The guard clause is there simply to ensure that the element exists on the page before trying to set it's value but the code seems bloated and most of it unnecessary.
What's the preferred solution to this? | jquery | null | null | null | null | null | open | How can I rewrite jQuery without guard clause?
===
How can I rewrite this jQuery to be more terse and without the guard clause?
var myTextBox = $('#myTextBox');
if (myTextBox )
myTextBox.val("");
The guard clause is there simply to ensure that the element exists on the page before trying to set it's value but the code seems bloated and most of it unnecessary.
What's the preferred solution to this? | 0 |
2,505,682 | 03/24/2010 06:08:56 | 300,559 | 03/24/2010 06:08:56 | 1 | 0 | Google authentication php | how do I get the user's account information (at least his Gmail address) after the authentication has passed? | google | authentication | php | null | null | null | open | Google authentication php
===
how do I get the user's account information (at least his Gmail address) after the authentication has passed? | 0 |
4,601,275 | 01/05/2011 06:08:31 | 559,080 | 12/31/2010 07:35:02 | 1 | 0 | twitter in iphone | I am new to iphone.
I have a view,which contain UIButton. When I clicked on UIButton, I have to connect twitter login page only.
What can i do for it?
Can any one suggest,How can i do this?
Send me sample code or example for it.
Thanks in Advance. | iphone-sdk-3.0 | xcode3.2 | null | null | null | null | open | twitter in iphone
===
I am new to iphone.
I have a view,which contain UIButton. When I clicked on UIButton, I have to connect twitter login page only.
What can i do for it?
Can any one suggest,How can i do this?
Send me sample code or example for it.
Thanks in Advance. | 0 |
8,859,864 | 01/14/2012 03:13:57 | 331,118 | 03/30/2010 05:12:08 | 39 | 0 | Regex matching newline before word in python | I have a pattern:
"\nvariable WORD"
This pattern shows up a lot of times in the string and I want a list of indexes that this pattern shows up at. "WORD" is fixed, and doesn't change from instance to instance, but "variable" varies in content and length.
In python, I know this matches all WORD and returns their indices in a list:
contents="some long string"
print [m.start() for m in re.finditer('WORD',contents)]
So in short, **how do I find indices of all "variable" after \n but before "WORD"?** | python | regex | index | null | null | null | open | Regex matching newline before word in python
===
I have a pattern:
"\nvariable WORD"
This pattern shows up a lot of times in the string and I want a list of indexes that this pattern shows up at. "WORD" is fixed, and doesn't change from instance to instance, but "variable" varies in content and length.
In python, I know this matches all WORD and returns their indices in a list:
contents="some long string"
print [m.start() for m in re.finditer('WORD',contents)]
So in short, **how do I find indices of all "variable" after \n but before "WORD"?** | 0 |
11,439,077 | 07/11/2012 18:30:28 | 1,500,539 | 07/04/2012 04:53:32 | 10 | 0 | route 53 MX name | I recently bought a domain name at 1and1, and I have developed an application on AWS EC2/S3. To take advantage of the ELB, I recently moved the Nameservers to AWS route 53 so I could point my domain apex to the Amazon ELB. I originally had my mail (contact@domain_name.com) forwarded to gmail at 1and1.com and used AWS SES to send mail.
I still use SES to send mail, and it works great, but ever since I pointed the nameservers to route 53 hosted zone, I cannot recieve at mail anymore. I added a MX record set and also signed up for google apps. The MX record set value is:
1 ASPMX.L.GOOGLE.COM.
5 ALT1.ASPMX.L.GOOGLE.COM.
5 ALT2.ASPMX.L.GOOGLE.COM.
10 ASPMX2.GOOGLEMAIL.COM.
10 ASPMX3.GOOGLEMAIL.COM.
But I don't know what the name for the record set should be. I originally had it at contact.domain_name.com. Since it's been at least 48 hours, and I am still not recieving any mail, I wonder if anyone has experienced the same problem before, and what the name should be for the record set for MX route 53. Any help would be great and much appreciated! Thank you!
| mx | amazon-route53 | null | null | null | null | open | route 53 MX name
===
I recently bought a domain name at 1and1, and I have developed an application on AWS EC2/S3. To take advantage of the ELB, I recently moved the Nameservers to AWS route 53 so I could point my domain apex to the Amazon ELB. I originally had my mail (contact@domain_name.com) forwarded to gmail at 1and1.com and used AWS SES to send mail.
I still use SES to send mail, and it works great, but ever since I pointed the nameservers to route 53 hosted zone, I cannot recieve at mail anymore. I added a MX record set and also signed up for google apps. The MX record set value is:
1 ASPMX.L.GOOGLE.COM.
5 ALT1.ASPMX.L.GOOGLE.COM.
5 ALT2.ASPMX.L.GOOGLE.COM.
10 ASPMX2.GOOGLEMAIL.COM.
10 ASPMX3.GOOGLEMAIL.COM.
But I don't know what the name for the record set should be. I originally had it at contact.domain_name.com. Since it's been at least 48 hours, and I am still not recieving any mail, I wonder if anyone has experienced the same problem before, and what the name should be for the record set for MX route 53. Any help would be great and much appreciated! Thank you!
| 0 |
3,085,179 | 06/21/2010 13:47:51 | 359,326 | 06/05/2010 17:52:19 | 1 | 1 | Problems with Microsoft Expression Blend 4 SketchFlow | I got a serious problem with MS Expression Blend 4 (MSEXB4):
I made a prototype for an application. When I start the project by hitting F5 MSEXB4 crashes.
When I remove the sketchflow-map it works, but no screen is loaded. But I want to have a sketchflowmap to show some screens -.-
I started debugging in VS2010:
The error:
{"Unable to generate a temporary class (result=1).\r\nerror CS0009: Metadata file 'c:\\Windows\\Microsoft.NET\\assembly\\GAC_MSIL\\WindowsBase\\v4.0_4.0.0.0__31bf3856ad364e35\\WindowsBase.dll' could not be opened -- 'Es wurde versucht, eine Datei mit einem falschen Format zu laden. '\r\n"}
The German part at the end means "Tried to load a file with a wrong format".
System.InvalidOperationException was unhandled
Message=Unable to generate a temporary class (result=1).
error CS0009: Metadata file 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll' could not be opened -- 'Es wurde versucht, eine Datei mit einem falschen Format zu laden. '
Source=System.Xml
StackTrace:
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at Microsoft.Expression.Prototyping.Data.Serializer.Serialize(Data data, Stream stream)
at Microsoft.Expression.Prototyping.DataModel.Model.Serialize(Stream stream)
at Microsoft.Expression.Prototyping.HostEnvironment.FlowgraphDocument.SaveCore(Stream stream)
at Microsoft.Expression.Framework.Documents.UndoDocument.Save()
at Microsoft.Expression.Framework.Documents.DocumentUtilities.SaveDocument(IDocument document, Boolean saveAsOnFailure, Boolean forceSave, IMessageDisplayService messageManager)
at Microsoft.Expression.Project.ProjectItem.SaveDocumentFile()
at Microsoft.Expression.Project.SolutionBase.<>c__DisplayClass27.<SaveProjectItems>b__25(IProjectItem item)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Microsoft.Expression.Project.SolutionBase.<>c__DisplayClass27.<SaveProjectItems>b__22()
at Microsoft.Expression.Project.ErrorHandling.HandleBasicExceptions(Action action, Action`1 handledExceptionAction)
at Microsoft.Expression.Project.SolutionBase.SaveProjectItems(Boolean promptBeforeSaving, Boolean saveActiveDocument)
at Microsoft.Expression.Project.SolutionBase.Save(Boolean promptBeforeSaving)
at Microsoft.Expression.Project.Commands.ProjectCommandExtensions.SaveSolution(IProjectCommand source, Boolean promptBeforeSaving)
at Microsoft.Expression.Project.Commands.TestProjectCommand.BuildAndRun(IProjectBuildContext buildTarget, IExecutable executable)
at Microsoft.Expression.Project.Commands.TestProjectCommand.<>c__DisplayClass2.<Execute>b__0()
at Microsoft.Expression.Project.ErrorHandling.HandleBasicExceptions(Action action, Action`1 handledExceptionAction)
at Microsoft.Expression.Project.ServiceExtensions.ErrorHandling.ErrorHandlingServiceExtensions.ExceptionHandler(IServiceProvider source, Action action, Func`1 errorMessage)
at Microsoft.Expression.Project.Commands.ProjectCommandExtensions.HandleBasicExceptions(IProjectCommand source, Action action)
at Microsoft.Expression.Project.Commands.TestProjectCommand.Execute()
at Microsoft.Expression.Framework.Commands.CommandTarget.Execute(String commandName, CommandInvocationSource invocationSource)
at Microsoft.Expression.Framework.Commands.CommandService.Execute(String commandName, CommandInvocationSource invocationSource)
at Microsoft.Expression.Framework.UserInterface.CommandBarButton.<Me_Click>b__0()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Microsoft.Expression.Framework.ExpressionApplication.RunApplication()
at Microsoft.Expression.Application.Main(String[] args)
InnerException:
I already googled around a little bit, but couldn't find something.
Thanks!
tobi | crash | bug | expression-sketchflow | microsoft-expression | null | null | open | Problems with Microsoft Expression Blend 4 SketchFlow
===
I got a serious problem with MS Expression Blend 4 (MSEXB4):
I made a prototype for an application. When I start the project by hitting F5 MSEXB4 crashes.
When I remove the sketchflow-map it works, but no screen is loaded. But I want to have a sketchflowmap to show some screens -.-
I started debugging in VS2010:
The error:
{"Unable to generate a temporary class (result=1).\r\nerror CS0009: Metadata file 'c:\\Windows\\Microsoft.NET\\assembly\\GAC_MSIL\\WindowsBase\\v4.0_4.0.0.0__31bf3856ad364e35\\WindowsBase.dll' could not be opened -- 'Es wurde versucht, eine Datei mit einem falschen Format zu laden. '\r\n"}
The German part at the end means "Tried to load a file with a wrong format".
System.InvalidOperationException was unhandled
Message=Unable to generate a temporary class (result=1).
error CS0009: Metadata file 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll' could not be opened -- 'Es wurde versucht, eine Datei mit einem falschen Format zu laden. '
Source=System.Xml
StackTrace:
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at Microsoft.Expression.Prototyping.Data.Serializer.Serialize(Data data, Stream stream)
at Microsoft.Expression.Prototyping.DataModel.Model.Serialize(Stream stream)
at Microsoft.Expression.Prototyping.HostEnvironment.FlowgraphDocument.SaveCore(Stream stream)
at Microsoft.Expression.Framework.Documents.UndoDocument.Save()
at Microsoft.Expression.Framework.Documents.DocumentUtilities.SaveDocument(IDocument document, Boolean saveAsOnFailure, Boolean forceSave, IMessageDisplayService messageManager)
at Microsoft.Expression.Project.ProjectItem.SaveDocumentFile()
at Microsoft.Expression.Project.SolutionBase.<>c__DisplayClass27.<SaveProjectItems>b__25(IProjectItem item)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Microsoft.Expression.Project.SolutionBase.<>c__DisplayClass27.<SaveProjectItems>b__22()
at Microsoft.Expression.Project.ErrorHandling.HandleBasicExceptions(Action action, Action`1 handledExceptionAction)
at Microsoft.Expression.Project.SolutionBase.SaveProjectItems(Boolean promptBeforeSaving, Boolean saveActiveDocument)
at Microsoft.Expression.Project.SolutionBase.Save(Boolean promptBeforeSaving)
at Microsoft.Expression.Project.Commands.ProjectCommandExtensions.SaveSolution(IProjectCommand source, Boolean promptBeforeSaving)
at Microsoft.Expression.Project.Commands.TestProjectCommand.BuildAndRun(IProjectBuildContext buildTarget, IExecutable executable)
at Microsoft.Expression.Project.Commands.TestProjectCommand.<>c__DisplayClass2.<Execute>b__0()
at Microsoft.Expression.Project.ErrorHandling.HandleBasicExceptions(Action action, Action`1 handledExceptionAction)
at Microsoft.Expression.Project.ServiceExtensions.ErrorHandling.ErrorHandlingServiceExtensions.ExceptionHandler(IServiceProvider source, Action action, Func`1 errorMessage)
at Microsoft.Expression.Project.Commands.ProjectCommandExtensions.HandleBasicExceptions(IProjectCommand source, Action action)
at Microsoft.Expression.Project.Commands.TestProjectCommand.Execute()
at Microsoft.Expression.Framework.Commands.CommandTarget.Execute(String commandName, CommandInvocationSource invocationSource)
at Microsoft.Expression.Framework.Commands.CommandService.Execute(String commandName, CommandInvocationSource invocationSource)
at Microsoft.Expression.Framework.UserInterface.CommandBarButton.<Me_Click>b__0()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Microsoft.Expression.Framework.ExpressionApplication.RunApplication()
at Microsoft.Expression.Application.Main(String[] args)
InnerException:
I already googled around a little bit, but couldn't find something.
Thanks!
tobi | 0 |
8,833,635 | 01/12/2012 10:37:27 | 729,179 | 04/28/2011 11:13:45 | 28 | 1 | Can we write sms to inbox of nokia phones from j2me code without sending sms from other phones? | I have a j2me application , i want whenever user launch the application, a message like "Good Evening Or welcome" is written to his/her inbox of the phone . | blackberry | java-me | nokia | lwuit | j2mepolish | 01/12/2012 17:12:38 | not a real question | Can we write sms to inbox of nokia phones from j2me code without sending sms from other phones?
===
I have a j2me application , i want whenever user launch the application, a message like "Good Evening Or welcome" is written to his/her inbox of the phone . | 1 |
8,069,903 | 11/09/2011 18:43:48 | 1,014,813 | 10/26/2011 14:49:54 | 9 | 0 | Real objects and MVC | Until there, I always coded object this way :
// initialization
$husband = new User('Bob');
$wife = new User('Sarah');
// action
$husband->dance();
$wife->read();
// get
echo "The husband is ".$husband->getAge()." years old";
But with CodeIgniter (and MVC), it seems it's better to think this way :
// load model
$this->load->model('user');
// action
$this->user->dance('Bob');
$this->user->read('Sarah');
// get
echo $this->user->getAge('Bob');
But in this case, how to deal with "real objects" ? For example the object "Bob" and the object "Sarah" ?
Maybe i'm missing something but it seems for me that Model (second example) != Object (first example).
Do this conception of objects are incompatibles ?
I have the directory view, the directory controller, and the directory model. Should I have also a "objects" directory ? | php | mvc | oop | null | null | null | open | Real objects and MVC
===
Until there, I always coded object this way :
// initialization
$husband = new User('Bob');
$wife = new User('Sarah');
// action
$husband->dance();
$wife->read();
// get
echo "The husband is ".$husband->getAge()." years old";
But with CodeIgniter (and MVC), it seems it's better to think this way :
// load model
$this->load->model('user');
// action
$this->user->dance('Bob');
$this->user->read('Sarah');
// get
echo $this->user->getAge('Bob');
But in this case, how to deal with "real objects" ? For example the object "Bob" and the object "Sarah" ?
Maybe i'm missing something but it seems for me that Model (second example) != Object (first example).
Do this conception of objects are incompatibles ?
I have the directory view, the directory controller, and the directory model. Should I have also a "objects" directory ? | 0 |
11,657,645 | 07/25/2012 19:58:31 | 744,414 | 05/09/2011 01:45:51 | 166 | 0 | ruby debugger step into a block directly | consider the following ruby code:
#! /usr/bin/env ruby
require 'debugger'
def hello
puts "hello"
if block_given?
yield
end
end
def main
debugger
puts "test begin..."
hello do # <= if you are here
puts "here!" #<= how to get here without setting bp here or step into hello?
end
end
main
It's very common during debugging, I don't care about the implementation of the function that yields to the block, I just want to step into the block directly, without manually set a bp there.
any support for this kind of "step into block" from ruby-debug19 or debugger?
Thanks! | ruby | debugging | null | null | null | null | open | ruby debugger step into a block directly
===
consider the following ruby code:
#! /usr/bin/env ruby
require 'debugger'
def hello
puts "hello"
if block_given?
yield
end
end
def main
debugger
puts "test begin..."
hello do # <= if you are here
puts "here!" #<= how to get here without setting bp here or step into hello?
end
end
main
It's very common during debugging, I don't care about the implementation of the function that yields to the block, I just want to step into the block directly, without manually set a bp there.
any support for this kind of "step into block" from ruby-debug19 or debugger?
Thanks! | 0 |
10,713,867 | 05/23/2012 05:18:50 | 1,357,776 | 04/26/2012 05:03:47 | 11 | 0 | tempUITextView setText: @"some text" gives an error | i created a UIView* myView and then i created a UITextVIew *tempUITextView and set its text as
[tempUITextView setText:@"some text"];
[myView addSubView: tempUITextView];
when i run the code, it gives an error: **Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setText:]:**
| iphone | objective-c | uiview | uitextfield | settext | 05/24/2012 12:16:19 | too localized | tempUITextView setText: @"some text" gives an error
===
i created a UIView* myView and then i created a UITextVIew *tempUITextView and set its text as
[tempUITextView setText:@"some text"];
[myView addSubView: tempUITextView];
when i run the code, it gives an error: **Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setText:]:**
| 3 |
962,704 | 06/07/2009 20:06:04 | 52,954 | 01/08/2009 15:16:14 | 580 | 28 | The future of web-development (RIA vs. traditional HTML) | How do you see the future of the web development? will HTML, CSS and Ajax continue to lead the web-development or do you see a shift towards Rich Internet Applications (flex, silverlight & JavaFX)?
I am not looking for a clear cut answer, and I know you are programmers and not prophets, but a smart analysis of how do you see the current trends in web-development would be appreciated. Links to such debates on the web are also most welcome.
I am asking this question since we are now evaluating technologies for a complete rewrite of our GUI. Since it's a relatively big (actually huge) product, we tend to do things slow. We need to consider where do we see the web is going to.
I am interested in the near future (3-5 years from now). | future | null | null | null | null | 07/20/2012 13:34:44 | not constructive | The future of web-development (RIA vs. traditional HTML)
===
How do you see the future of the web development? will HTML, CSS and Ajax continue to lead the web-development or do you see a shift towards Rich Internet Applications (flex, silverlight & JavaFX)?
I am not looking for a clear cut answer, and I know you are programmers and not prophets, but a smart analysis of how do you see the current trends in web-development would be appreciated. Links to such debates on the web are also most welcome.
I am asking this question since we are now evaluating technologies for a complete rewrite of our GUI. Since it's a relatively big (actually huge) product, we tend to do things slow. We need to consider where do we see the web is going to.
I am interested in the near future (3-5 years from now). | 4 |
754,721 | 04/16/2009 04:01:14 | 32,173 | 10/28/2008 19:30:18 | 678 | 61 | What books are good on physic simulation? | I'm taking a course in discrete and continuous human-activity based simulation (ie: simulation of a company).
I want to learn physic simulation too, but I won't do that on the course, so I should study it by myself.
So, what book would you recomend me to read to learn it? | simulation | books | null | null | null | 10/02/2011 00:44:01 | not constructive | What books are good on physic simulation?
===
I'm taking a course in discrete and continuous human-activity based simulation (ie: simulation of a company).
I want to learn physic simulation too, but I won't do that on the course, so I should study it by myself.
So, what book would you recomend me to read to learn it? | 4 |
6,530,530 | 06/30/2011 06:00:09 | 647,669 | 03/07/2011 05:45:25 | 1 | 0 | how to read a json file with mulitple lines in ruby | how to open a jsonfile to read which is having multiple records, as a record is in multiple lines. and how to check whether it is a Json file or not. and grab each json record form the file and send it out.
thanks
Vam. | ruby | json | null | null | null | 06/30/2011 16:23:22 | not a real question | how to read a json file with mulitple lines in ruby
===
how to open a jsonfile to read which is having multiple records, as a record is in multiple lines. and how to check whether it is a Json file or not. and grab each json record form the file and send it out.
thanks
Vam. | 1 |
9,798,026 | 03/21/2012 02:56:44 | 383,316 | 07/05/2010 00:50:12 | 1,496 | 83 | HTML cache manifest prevents browser from loading ressources | I have got a HTML manifest with the lines:
CACHE MANIFEST
images/foo.png
Also, the page includes e.g. jQuery and many other ressources. All of them are not loaded, except the ones named in the manifest (here: `images/foo.png`). How can i tell the browser to load all files but the ones explicitly defined in the manifest?
Thanks | html | cache-manifest | null | null | null | null | open | HTML cache manifest prevents browser from loading ressources
===
I have got a HTML manifest with the lines:
CACHE MANIFEST
images/foo.png
Also, the page includes e.g. jQuery and many other ressources. All of them are not loaded, except the ones named in the manifest (here: `images/foo.png`). How can i tell the browser to load all files but the ones explicitly defined in the manifest?
Thanks | 0 |
9,569,950 | 03/05/2012 16:09:49 | 372,364 | 06/21/2010 16:40:17 | 821 | 20 | Commenting ASP.Net code when using the '_' character | This might be a really easy one but I couldn't seem to find an answer anywhere
I'm trying to comment my code as follows
Session("test") = "JAMIE" _
'TEST INFO
& "TEST" _
'ADDRESS INFO
& "ADDRESS = TEST"
With the code above i'm getting the error
> Syntax error
But when I remove the comments like so
Session("test") = "JAMIE" _
& "TEST" _
& "ADDRESS = TEST"
It works fine so my guess is that I cannot comment my code between the `_` character.
Is there some way I can get around this as I'd like to comment my code ideally | asp.net | comments | null | null | null | null | open | Commenting ASP.Net code when using the '_' character
===
This might be a really easy one but I couldn't seem to find an answer anywhere
I'm trying to comment my code as follows
Session("test") = "JAMIE" _
'TEST INFO
& "TEST" _
'ADDRESS INFO
& "ADDRESS = TEST"
With the code above i'm getting the error
> Syntax error
But when I remove the comments like so
Session("test") = "JAMIE" _
& "TEST" _
& "ADDRESS = TEST"
It works fine so my guess is that I cannot comment my code between the `_` character.
Is there some way I can get around this as I'd like to comment my code ideally | 0 |
5,346,170 | 03/17/2011 22:41:31 | 18,865 | 09/19/2008 13:55:08 | 792 | 36 | How to Perform a One-Way Send with a Custom WCF LOB Adapter | I'm trying to create a basic one-way custom WCF LOB Adapter for use with BizTalk and am implementing the `Execute` method that gets created by the Visual Studio WCF LOB Adapter SDK project Wizard.
The documentation for this method is summarized with the following comment, that appears right above the method :
// Executes the request message on the target system and returns a response message.
// If there isn’t a response, this method should return null
However, when returning `null`, an error is raised in BizTalk, with the following (roughly translated) message:
`System.ServiceModel.CommunicationException: The server did not produce an appropriate response ; this may be due to non-matching contracts ; a premature end of the session or an internal error.`
What gives ? | biztalk | wcf-lob-adapter | null | null | null | null | open | How to Perform a One-Way Send with a Custom WCF LOB Adapter
===
I'm trying to create a basic one-way custom WCF LOB Adapter for use with BizTalk and am implementing the `Execute` method that gets created by the Visual Studio WCF LOB Adapter SDK project Wizard.
The documentation for this method is summarized with the following comment, that appears right above the method :
// Executes the request message on the target system and returns a response message.
// If there isn’t a response, this method should return null
However, when returning `null`, an error is raised in BizTalk, with the following (roughly translated) message:
`System.ServiceModel.CommunicationException: The server did not produce an appropriate response ; this may be due to non-matching contracts ; a premature end of the session or an internal error.`
What gives ? | 0 |
8,224,621 | 11/22/2011 09:35:13 | 857,997 | 07/22/2011 13:22:58 | 74 | 4 | Beginning with WCF services. Where to start? | I need to develop WCF services for an application of mine. I am aware of web service concepts and know how to develop them using Java. Now i need to develop .net based WCF services. I know bits n pieces of .Net. Please guide me to some good tutorials for developing WCF services. | c# | wcf | null | null | null | 11/22/2011 10:39:57 | not constructive | Beginning with WCF services. Where to start?
===
I need to develop WCF services for an application of mine. I am aware of web service concepts and know how to develop them using Java. Now i need to develop .net based WCF services. I know bits n pieces of .Net. Please guide me to some good tutorials for developing WCF services. | 4 |
7,117,958 | 08/19/2011 06:52:12 | 571,113 | 01/11/2011 10:25:55 | 157 | 24 | Trying to exit from a blocking UDP socket read | This is a question similar to http://stackoverflow.com/questions/6305441/proper-way-to-close-a-blocking-udp-socket. I have a thread in C which is reading from a UDP socket. The read is blocking. I would like to know if it is possible to be able to exit the thread, without relying on the recv() returning? For example can I close the socket from another thread and safely expect the socket read thread to exit? Didn't see any high voted answer on that thread, thats why I am asking it again. | c | sockets | null | null | null | null | open | Trying to exit from a blocking UDP socket read
===
This is a question similar to http://stackoverflow.com/questions/6305441/proper-way-to-close-a-blocking-udp-socket. I have a thread in C which is reading from a UDP socket. The read is blocking. I would like to know if it is possible to be able to exit the thread, without relying on the recv() returning? For example can I close the socket from another thread and safely expect the socket read thread to exit? Didn't see any high voted answer on that thread, thats why I am asking it again. | 0 |
8,417,837 | 12/07/2011 15:27:28 | 787,247 | 06/07/2011 10:11:30 | 173 | 2 | Get value from xml thats being returned via php fsockopen | I have the following xml being returned when using fsockopen (shortened the xml for ease of reading):
<car>
<brand type="AUDI">
<engine>1.8</engine>
<price>9000</price>
</brand>
</car>
I use the following code to get the values:
$p = xml_parser_create();
xml_parser_set_option($p, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($p, XML_OPTION_SKIP_WHITE, 1);
xml_parser_set_option($p, XML_OPTION_TARGET_ENCODING, 'UTF-8');
xml_parse_into_struct($p, $return_xml, $vals, $index);
xml_parser_free($p);
$return_array["engine"] = $vals[$index["engine"][0]]["value"];
$return_array["price"] = $vals[$index["price"][0]]["value"];
Which gives me the engine, and price but how can I get the value brand type?
Thanks | php | xml | fsockopen | null | null | null | open | Get value from xml thats being returned via php fsockopen
===
I have the following xml being returned when using fsockopen (shortened the xml for ease of reading):
<car>
<brand type="AUDI">
<engine>1.8</engine>
<price>9000</price>
</brand>
</car>
I use the following code to get the values:
$p = xml_parser_create();
xml_parser_set_option($p, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($p, XML_OPTION_SKIP_WHITE, 1);
xml_parser_set_option($p, XML_OPTION_TARGET_ENCODING, 'UTF-8');
xml_parse_into_struct($p, $return_xml, $vals, $index);
xml_parser_free($p);
$return_array["engine"] = $vals[$index["engine"][0]]["value"];
$return_array["price"] = $vals[$index["price"][0]]["value"];
Which gives me the engine, and price but how can I get the value brand type?
Thanks | 0 |
8,360,722 | 12/02/2011 18:13:45 | 1,077,980 | 12/02/2011 18:02:54 | 1 | 0 | mechanical simulator | I'm searching for a software mechanical simulator which has the ability to view the actual behavior of water flow from a solenoid valve. I want to control the properties of the valve (outlet, inlet, pressure,...) and control also when to open and to close the valve based on written code.
NOTE: all the simulators that I found provides only numeric calculation in addition to some graphs, but I want to see water drops or in other words the dynamic behaviore of my system.
Any suggestions? | simulator | valve | mechanism | null | null | 12/02/2011 23:01:33 | off topic | mechanical simulator
===
I'm searching for a software mechanical simulator which has the ability to view the actual behavior of water flow from a solenoid valve. I want to control the properties of the valve (outlet, inlet, pressure,...) and control also when to open and to close the valve based on written code.
NOTE: all the simulators that I found provides only numeric calculation in addition to some graphs, but I want to see water drops or in other words the dynamic behaviore of my system.
Any suggestions? | 2 |
10,889,052 | 06/04/2012 22:05:47 | 1,367,611 | 05/01/2012 10:56:38 | 161 | 19 | Programming Technologies and Music genres Over the Years | Does such relation exists and if so, what clarifications / statistics you would consider as meaningful ones? On the top of my head (not including functional programming languages):
- Assembler, C: Rock
- Java, C++: Disco, Metal
- Perl, Python: still no idea ...
*P.S.: not really a research, just a pure curiosity.* | expression | languages | null | null | null | 06/05/2012 15:26:55 | not constructive | Programming Technologies and Music genres Over the Years
===
Does such relation exists and if so, what clarifications / statistics you would consider as meaningful ones? On the top of my head (not including functional programming languages):
- Assembler, C: Rock
- Java, C++: Disco, Metal
- Perl, Python: still no idea ...
*P.S.: not really a research, just a pure curiosity.* | 4 |
8,181,366 | 11/18/2011 11:03:39 | 1,053,642 | 07/06/2010 11:59:54 | 1 | 0 | Why need to publish a website in .NET? | Please give me some advantages and dis advantages by publishing a web site. after publishing a website, let me know the format of the file.
| asp.net | null | null | null | null | 11/18/2011 11:21:05 | not a real question | Why need to publish a website in .NET?
===
Please give me some advantages and dis advantages by publishing a web site. after publishing a website, let me know the format of the file.
| 1 |
9,395,601 | 02/22/2012 13:19:09 | 1,065,175 | 11/25/2011 07:35:54 | 14 | 0 | Differentiate between server aliases | I have
<VirtualHost *:80>
ServerName multi
ServerAlias peer
DocumentRoot ...
In the document root there is index.html and index.php.
I would like for multi:
DirectoryIndex index.php index.html
and for peer:
DirectoryIndex index.html index.php
How do you do that?
Thanks,
Eric J.
| apache | null | null | null | null | 02/23/2012 17:24:19 | off topic | Differentiate between server aliases
===
I have
<VirtualHost *:80>
ServerName multi
ServerAlias peer
DocumentRoot ...
In the document root there is index.html and index.php.
I would like for multi:
DirectoryIndex index.php index.html
and for peer:
DirectoryIndex index.html index.php
How do you do that?
Thanks,
Eric J.
| 2 |
90,831 | 09/18/2008 08:01:19 | 5,662 | 09/10/2008 17:55:42 | 198 | 8 | Should we write software to be used at work, in our own time? | To clarify, I find that there are all sorts of fun, interesting little side-line development projects that get suggested or that we think of that improve the application we're working on, or the processes within the company that, for whatever reason, we aren't able to do at work or during business hours.
Should we create and contribute these by working on them in our own time?
If you've done this (or do this regularly), what's been your experience about how the 'extra' work has been received?
What are the benefits, pitfalls or dangers to doing this?
| discussion | self-improvement | null | null | null | 03/02/2012 20:23:45 | not constructive | Should we write software to be used at work, in our own time?
===
To clarify, I find that there are all sorts of fun, interesting little side-line development projects that get suggested or that we think of that improve the application we're working on, or the processes within the company that, for whatever reason, we aren't able to do at work or during business hours.
Should we create and contribute these by working on them in our own time?
If you've done this (or do this regularly), what's been your experience about how the 'extra' work has been received?
What are the benefits, pitfalls or dangers to doing this?
| 4 |
5,549,046 | 04/05/2011 08:16:32 | 424,611 | 08/18/2010 22:39:28 | 175 | 7 | Stored Procedure- SQL | Is the Order of Parameters to be passed for a stored procedure will matter from the c# function?
Thank you | c# | null | null | null | null | 04/06/2011 00:38:38 | not a real question | Stored Procedure- SQL
===
Is the Order of Parameters to be passed for a stored procedure will matter from the c# function?
Thank you | 1 |
316,146 | 11/25/2008 02:08:41 | 4,685 | 09/05/2008 07:49:27 | 2,673 | 96 | Virtual machines of the future | I'm looking for some resources regarding the **virtual machines of the future** (Like jvm or clr)
What are they going to look like? Will they provide a concurrent runtime, more powerfull metaprograming models?
I'm looking for articles, research projects, or pure speculation, anything that is going to be an interesting read.
So if you have any links or opinions please do share.
| virtual-machine | futures | null | null | null | 11/08/2011 17:53:56 | not constructive | Virtual machines of the future
===
I'm looking for some resources regarding the **virtual machines of the future** (Like jvm or clr)
What are they going to look like? Will they provide a concurrent runtime, more powerfull metaprograming models?
I'm looking for articles, research projects, or pure speculation, anything that is going to be an interesting read.
So if you have any links or opinions please do share.
| 4 |
2,166,679 | 01/30/2010 03:14:04 | 992,268 | 01/30/2010 03:14:04 | 1 | 0 | Needed: User drags 4 favorite images out of group of possibles into 1st Place Box, 2nd Place Box, etc.. | Oh! Too many dragNdrops out there! Prefer the sleekest for my needs.
DragNdrop images: I want my visitors to select exactly 4 favorites from a "corral" of, say, 8 jpgs. Dragndrop each from the bottom "corral" up and into 1st Place thru 4th Place Boxes...
Unused images remain below, unmoved in "corral", blank space-holder if picture is grabbed out.
Preferably images snap only between Fave Boxes or "corral".. . Visitor can rearrange till satisfied, then click submit. Must fill all 4 Fave Boxes, else submit triggers prompt.
Action bakes prefs cookie (PHP or js?) and also passkey for now and subsequent access beyond, iframing preferred ad genre, skewed time-wise 1st Choice Fave Box > 2nd Choice, etc.
Upon revisit, if cookie same, user bypasses prefs page and sees same ad mix.
A visitor would be a specific string, like (7,2,5,1) or (4,3,8,2) etc. which would mean, e.g., (Food, Cars, Travel, Golf). Don't know if i need PHP to store data to mySQL or if to do all client side with just js ??
Sorry, I'm an oldster, but new to programming and having a blast...
Thanks to any and all of you in advance! | dragdrop | images | drag | pictures | null | 02/01/2010 02:20:17 | not a real question | Needed: User drags 4 favorite images out of group of possibles into 1st Place Box, 2nd Place Box, etc..
===
Oh! Too many dragNdrops out there! Prefer the sleekest for my needs.
DragNdrop images: I want my visitors to select exactly 4 favorites from a "corral" of, say, 8 jpgs. Dragndrop each from the bottom "corral" up and into 1st Place thru 4th Place Boxes...
Unused images remain below, unmoved in "corral", blank space-holder if picture is grabbed out.
Preferably images snap only between Fave Boxes or "corral".. . Visitor can rearrange till satisfied, then click submit. Must fill all 4 Fave Boxes, else submit triggers prompt.
Action bakes prefs cookie (PHP or js?) and also passkey for now and subsequent access beyond, iframing preferred ad genre, skewed time-wise 1st Choice Fave Box > 2nd Choice, etc.
Upon revisit, if cookie same, user bypasses prefs page and sees same ad mix.
A visitor would be a specific string, like (7,2,5,1) or (4,3,8,2) etc. which would mean, e.g., (Food, Cars, Travel, Golf). Don't know if i need PHP to store data to mySQL or if to do all client side with just js ??
Sorry, I'm an oldster, but new to programming and having a blast...
Thanks to any and all of you in advance! | 1 |
3,745,692 | 09/19/2010 12:36:14 | 205,024 | 11/06/2009 16:25:45 | 368 | 19 | jQuery UI Accordion (hiding all by default) | Hello I am using [jQuery UI Accodions][1]
By default, the first accordion is shown and other are hidden. I would like to hide all the accordions by default until the user clicks it.
How do I do that ?
Thank You
[1]: http://docs.jquery.com/UI/Accordion | javascript | jquery | jquery-ui | jquery-accordion | null | null | open | jQuery UI Accordion (hiding all by default)
===
Hello I am using [jQuery UI Accodions][1]
By default, the first accordion is shown and other are hidden. I would like to hide all the accordions by default until the user clicks it.
How do I do that ?
Thank You
[1]: http://docs.jquery.com/UI/Accordion | 0 |
6,092,787 | 05/23/2011 04:20:14 | 480,797 | 10/19/2010 17:30:44 | 361 | 6 | Kiosk mode for legacy 16bit app | I need to programmatically minimize and maximize a fullscreen 16bit application. Unfortunately DosBox is not an option as this app talks to some peripherals not supported by DosBox.
I was able to write code (heavy on the Win32 API) that can set the focus, send the alt + enter keys and minimize/maximize.
Everything would work, however, some users have figured out that Alt + Enter can exit fullscreen and have started to abuse this.
I can disable Alt + Enter using the settings in a PIF, but that breaks my approach of programmatically sending those keys.
Is there a better alternative for getting NTVDM to programmatically toggle fullscreen than sending Alt + Enter?
I used Spy++ and found that to achieve fullscreen NTVDM was changing the system resolution to 640 x 480.
I attempted to call the ChangeDisplaySettings API to toggle the resolutions as needed, but when I set 640 x 480 NTVDM still runs as a windowed app.
I'm considering setting up a low level keyboard hook (http://msdn.microsoft.com/en-us/library/ms644985(v=vs.85).aspx) to filter Alt + Enter. I could disable the hook for the brief moment it takes my app to send it. This sounds like a dangerous hack that could have a lot of side-effects. I'm also not sure it would work since NTVDM doesn't seem to use a message loop for processing keyboard input. The SendMessage API doesn't produce results, and Alt + Enter had to be sent using the keybd_event API. Any thoughts? | c# | winapi | keyboard | hook | dos | null | open | Kiosk mode for legacy 16bit app
===
I need to programmatically minimize and maximize a fullscreen 16bit application. Unfortunately DosBox is not an option as this app talks to some peripherals not supported by DosBox.
I was able to write code (heavy on the Win32 API) that can set the focus, send the alt + enter keys and minimize/maximize.
Everything would work, however, some users have figured out that Alt + Enter can exit fullscreen and have started to abuse this.
I can disable Alt + Enter using the settings in a PIF, but that breaks my approach of programmatically sending those keys.
Is there a better alternative for getting NTVDM to programmatically toggle fullscreen than sending Alt + Enter?
I used Spy++ and found that to achieve fullscreen NTVDM was changing the system resolution to 640 x 480.
I attempted to call the ChangeDisplaySettings API to toggle the resolutions as needed, but when I set 640 x 480 NTVDM still runs as a windowed app.
I'm considering setting up a low level keyboard hook (http://msdn.microsoft.com/en-us/library/ms644985(v=vs.85).aspx) to filter Alt + Enter. I could disable the hook for the brief moment it takes my app to send it. This sounds like a dangerous hack that could have a lot of side-effects. I'm also not sure it would work since NTVDM doesn't seem to use a message loop for processing keyboard input. The SendMessage API doesn't produce results, and Alt + Enter had to be sent using the keybd_event API. Any thoughts? | 0 |
7,648,417 | 10/04/2011 13:09:49 | 978,475 | 10/04/2011 12:59:31 | 1 | 0 | How to create Own media player in android | I am new in android, could anyone help me to how to create my own media player in android
Thanks in advance
| android | null | null | null | null | 10/04/2011 13:25:59 | not a real question | How to create Own media player in android
===
I am new in android, could anyone help me to how to create my own media player in android
Thanks in advance
| 1 |
2,717,502 | 04/26/2010 22:55:44 | 277,795 | 02/20/2010 19:50:28 | 132 | 4 | Regular Expression question | In my academic assignment, I want make a regular expression to match a word with the following specifications:
word length greater than or equal 1 and less than or equal 8
contains letters, digits, and underscore
first digit is a letter only
word is not A,X,S,T or PC,SW
Thanks,
| regular-expression | homework | null | null | null | null | open | Regular Expression question
===
In my academic assignment, I want make a regular expression to match a word with the following specifications:
word length greater than or equal 1 and less than or equal 8
contains letters, digits, and underscore
first digit is a letter only
word is not A,X,S,T or PC,SW
Thanks,
| 0 |
8,265,039 | 11/25/2011 05:15:47 | 954,185 | 09/20/2011 07:10:06 | 29 | 1 | How to parse this Json using Gson | **How to parse this Json using Gson and display the Placetype _Name and Place details?**
I have this json and need help for parsing and and displaying the Placetype _Name and Place details.
{
"PlacesList": {
"PlaceType": [
{
"-Name": "Airport",
"Places": {
"Place": [
{
"name": "Juhu Aerodrome",
"latitude": "19.09778",
"longitude": "72.83083",
"description": "Juhu Aerodrome is an airport that serves the metropolitan"
},
{
"name": "Chhatrapati Shivaji International Airport",
"latitude": "19.09353",
"longitude": "72.85489",
"description": "Chhatrapati Shivaji International Airport "
}
]
}
},
{
"-Name": "Mall",
"Places": {
"Place": [
{
"name": "Infinity",
"latitude": "19.14030",
"longitude": "72.83180",
"description": "This Mall is one of the best places for all types of brand"
},
{
"name": "Heera Panna",
"latitude": "18.98283",
"longitude": "72.80897",
"description": "The Heera Panna Shopping Center is one of the most popular"
}
]
}
}
]
}
} | android | json | gson | null | null | 11/25/2011 22:47:05 | not a real question | How to parse this Json using Gson
===
**How to parse this Json using Gson and display the Placetype _Name and Place details?**
I have this json and need help for parsing and and displaying the Placetype _Name and Place details.
{
"PlacesList": {
"PlaceType": [
{
"-Name": "Airport",
"Places": {
"Place": [
{
"name": "Juhu Aerodrome",
"latitude": "19.09778",
"longitude": "72.83083",
"description": "Juhu Aerodrome is an airport that serves the metropolitan"
},
{
"name": "Chhatrapati Shivaji International Airport",
"latitude": "19.09353",
"longitude": "72.85489",
"description": "Chhatrapati Shivaji International Airport "
}
]
}
},
{
"-Name": "Mall",
"Places": {
"Place": [
{
"name": "Infinity",
"latitude": "19.14030",
"longitude": "72.83180",
"description": "This Mall is one of the best places for all types of brand"
},
{
"name": "Heera Panna",
"latitude": "18.98283",
"longitude": "72.80897",
"description": "The Heera Panna Shopping Center is one of the most popular"
}
]
}
}
]
}
} | 1 |
11,740,120 | 07/31/2012 12:31:06 | 1,511,551 | 07/09/2012 09:21:21 | 1 | 0 | show/hide divs on click | I have some html form.
<div class="disease">
<li id="show1">name1</li>
<li id="show2">name2</li>
<li id="show3">name3</li>
<li id="show4">name4</li>
</div>
<div class="disease2" style="display:none;">
<li id="show5">name1</li>
<li id="show6">name2</li>
<li id="show7">name3</li>
<li id="show8">name4</li>
</div>
Now i have this jquery code:
<script type="text/javascript">
$(document).ready(function(){
$('.show1').click(function(){
$(".disease2").slideToggle();
});
});
</script>
But, what to do if "li" tags very many? So as not print all "dicease" container in html form. | jquery | null | null | null | null | 07/31/2012 19:06:03 | not a real question | show/hide divs on click
===
I have some html form.
<div class="disease">
<li id="show1">name1</li>
<li id="show2">name2</li>
<li id="show3">name3</li>
<li id="show4">name4</li>
</div>
<div class="disease2" style="display:none;">
<li id="show5">name1</li>
<li id="show6">name2</li>
<li id="show7">name3</li>
<li id="show8">name4</li>
</div>
Now i have this jquery code:
<script type="text/javascript">
$(document).ready(function(){
$('.show1').click(function(){
$(".disease2").slideToggle();
});
});
</script>
But, what to do if "li" tags very many? So as not print all "dicease" container in html form. | 1 |
7,023,458 | 08/11/2011 09:14:06 | 715,156 | 04/19/2011 12:12:02 | 13 | 1 | onSaveInstanceState() not called: why? | **Problem:**
I add a fragment to a LinearLayout, programmatically. It shows up in my activity, great.
I turn the device —> configuration changes: everything is destroyed to be recreated. But, before onDestroy() is called, onSaveInstanceState() should be called. It is the case for the parent activity, but not for the fragment I've added. Why ?
**Code:**
The XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@id/parent_LL"
android:stuff="myStuff"
>
<LinearLayout
android:id="@id/categories_activity_LL1"
android:stuff="myStuff" />
<LinearLayout
android:id="@id/categories_activity_LL2"
android:stuff="myStuff" />
</LinearLayout>
I add the fragment to the UI in the parent activity:
ft.add(container1, categories, CatFragIds.CATEGORIES.toString()).commit();
I override the onSaveInstanceState() of my fragment:
@Override
public void onSaveInstanceState(Bundle outState) {
// Récupère extensible
boolean extensible = ((CategoryAppsListView) this.getListView())
.isExtensible();
mState.setExtensible(extensible);
// Transmet l'état de CategoriesListElems
FragmentManager fm = getFragmentManager();
@SuppressWarnings("unchecked")
FragRetainObject<CategoriesListElemsState> retainedState =
(FragRetainObject<CategoriesListElemsState>)
fm.findFragmentByTag(CATEGORIESLISTELEMS_STATE+"_"+this.getTag());
if( retainedState == null) {
retainedState =
FragRetainObject.<CategoriesListElemsState>newInstance(mState);
fm.beginTransaction()
.add(retainedState, CATEGORIESLISTELEMS_STATE+"_"+this.getTag()).commit();
}
else retainedState.setRetainObj(mState);
super.onSaveInstanceState(outState);
}
Thank you for your time!! :-)
| android | null | null | null | null | null | open | onSaveInstanceState() not called: why?
===
**Problem:**
I add a fragment to a LinearLayout, programmatically. It shows up in my activity, great.
I turn the device —> configuration changes: everything is destroyed to be recreated. But, before onDestroy() is called, onSaveInstanceState() should be called. It is the case for the parent activity, but not for the fragment I've added. Why ?
**Code:**
The XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@id/parent_LL"
android:stuff="myStuff"
>
<LinearLayout
android:id="@id/categories_activity_LL1"
android:stuff="myStuff" />
<LinearLayout
android:id="@id/categories_activity_LL2"
android:stuff="myStuff" />
</LinearLayout>
I add the fragment to the UI in the parent activity:
ft.add(container1, categories, CatFragIds.CATEGORIES.toString()).commit();
I override the onSaveInstanceState() of my fragment:
@Override
public void onSaveInstanceState(Bundle outState) {
// Récupère extensible
boolean extensible = ((CategoryAppsListView) this.getListView())
.isExtensible();
mState.setExtensible(extensible);
// Transmet l'état de CategoriesListElems
FragmentManager fm = getFragmentManager();
@SuppressWarnings("unchecked")
FragRetainObject<CategoriesListElemsState> retainedState =
(FragRetainObject<CategoriesListElemsState>)
fm.findFragmentByTag(CATEGORIESLISTELEMS_STATE+"_"+this.getTag());
if( retainedState == null) {
retainedState =
FragRetainObject.<CategoriesListElemsState>newInstance(mState);
fm.beginTransaction()
.add(retainedState, CATEGORIESLISTELEMS_STATE+"_"+this.getTag()).commit();
}
else retainedState.setRetainObj(mState);
super.onSaveInstanceState(outState);
}
Thank you for your time!! :-)
| 0 |
10,673,150 | 05/20/2012 11:50:40 | 1,234,270 | 02/26/2012 19:24:23 | 1 | 0 | Shortcut of your app in to home, automatically | How can I create **automatically**, once installed, a shortcut for my app in the home of the launcher in use? | android | home | launcher | null | null | null | open | Shortcut of your app in to home, automatically
===
How can I create **automatically**, once installed, a shortcut for my app in the home of the launcher in use? | 0 |
10,365,583 | 04/28/2012 16:53:02 | 1,363,146 | 04/28/2012 16:51:17 | 1 | 0 | Which Machine Learning Algorithm to use? | I am developing an application where I am having text and I need to identify name(person) and locations from it. can any one suggest me which machine learning algorithm I should use to solve this problem. | machine-learning | null | null | null | null | 04/30/2012 12:39:58 | not a real question | Which Machine Learning Algorithm to use?
===
I am developing an application where I am having text and I need to identify name(person) and locations from it. can any one suggest me which machine learning algorithm I should use to solve this problem. | 1 |
6,896,075 | 08/01/2011 08:48:54 | 773,578 | 05/27/2011 18:23:23 | 69 | 0 | Changing the image of a CCSprite | I have created a number of CCSprites using spriteWithFile.
How do I change the image for the sprite during runtime?
I need to change a few sprites images quite regularly. | cocos2d | null | null | null | null | null | open | Changing the image of a CCSprite
===
I have created a number of CCSprites using spriteWithFile.
How do I change the image for the sprite during runtime?
I need to change a few sprites images quite regularly. | 0 |
4,059,955 | 10/30/2010 17:56:49 | 492,298 | 10/30/2010 17:50:57 | 1 | 0 | Mercurial API for C# | I'm looking for a Mercurial C# API. The only one i can find goes to a 403 page on google (<http://code.google.com/p/mercurialdotnet/>).
Does anyone know of one that I can use?
| c# | api | mercurial | null | null | 07/10/2012 19:20:53 | not constructive | Mercurial API for C#
===
I'm looking for a Mercurial C# API. The only one i can find goes to a 403 page on google (<http://code.google.com/p/mercurialdotnet/>).
Does anyone know of one that I can use?
| 4 |
11,465,324 | 07/13/2012 06:35:37 | 1,479,705 | 06/25/2012 10:35:03 | 29 | 0 | showing argument in QMessageBox->setText | i have QMessageBox defined as
m_setting2 = new QMessageBox();
m_setting2->setWindowTitle("NOTE");
m_setting2->setText("RESETTING PREFERENTIAL VALUE TO ");
m_setting2->show();
where m_setting2 is my QMessageBox *.
Now after __VALUE TO__ in setText i want to add an argument which is an integer taken from QLine Edit.
This integer is stored in __valuee__.
So how can i print that integer after VALUE TO.
Somewhere i seen that it should be something like QString.("%1").arg(valuee) but its not working.
please help me out and thanks for any type of concern
| qt | qlineedit | qmessagebox | null | null | null | open | showing argument in QMessageBox->setText
===
i have QMessageBox defined as
m_setting2 = new QMessageBox();
m_setting2->setWindowTitle("NOTE");
m_setting2->setText("RESETTING PREFERENTIAL VALUE TO ");
m_setting2->show();
where m_setting2 is my QMessageBox *.
Now after __VALUE TO__ in setText i want to add an argument which is an integer taken from QLine Edit.
This integer is stored in __valuee__.
So how can i print that integer after VALUE TO.
Somewhere i seen that it should be something like QString.("%1").arg(valuee) but its not working.
please help me out and thanks for any type of concern
| 0 |
6,854,585 | 07/28/2011 05:48:52 | 855,492 | 07/21/2011 08:29:06 | 3 | 0 | how to get the value of variable x in a for loop in php and codeigniter | for ($x = 1; $x <= $num; $x++)
{
$input = $this->input->post("select" . $x . "");
**// value of $x will be like 2 300 1002 300 its be fetched on based on "select" its a selectbox**
$row = split(',', $input);
$productName = (isset($row[0]) ? $row[0] : '');
$barcode = (isset($row[1]) ? $row[1] : '');
$quantity = $this->input->post("Quantity" . $x . "");
**// value of $x will be from 1 to 3680 its be fetched on based on "Quantity" but i need the same value of $x=2 300 1002 300 which is fetched in select to display the quantity**
$flag = $this->cartmodel->productCategory($category);
}
how to achieve this???
| php | codeigniter | for-loop | null | null | 07/08/2012 00:51:54 | not a real question | how to get the value of variable x in a for loop in php and codeigniter
===
for ($x = 1; $x <= $num; $x++)
{
$input = $this->input->post("select" . $x . "");
**// value of $x will be like 2 300 1002 300 its be fetched on based on "select" its a selectbox**
$row = split(',', $input);
$productName = (isset($row[0]) ? $row[0] : '');
$barcode = (isset($row[1]) ? $row[1] : '');
$quantity = $this->input->post("Quantity" . $x . "");
**// value of $x will be from 1 to 3680 its be fetched on based on "Quantity" but i need the same value of $x=2 300 1002 300 which is fetched in select to display the quantity**
$flag = $this->cartmodel->productCategory($category);
}
how to achieve this???
| 1 |
9,683,802 | 03/13/2012 12:13:57 | 1,266,413 | 03/13/2012 12:04:54 | 1 | 0 | iPhone gestures | I am new in developing applications in iphone xcode.
I want to create one application in which whenever user longpresses the button it will be shaked and user is able to drag it on the screen and he can also changes its location.
I have tried this code.
- (void)handleLongPress:(UILongPressGestureRecognizer*)sender
{
NSLog(@"Long press called!!!!");
} | iphone | ios | null | null | null | null | open | iPhone gestures
===
I am new in developing applications in iphone xcode.
I want to create one application in which whenever user longpresses the button it will be shaked and user is able to drag it on the screen and he can also changes its location.
I have tried this code.
- (void)handleLongPress:(UILongPressGestureRecognizer*)sender
{
NSLog(@"Long press called!!!!");
} | 0 |
5,322,532 | 03/16/2011 08:12:39 | 1,332,390 | 08/21/2010 15:06:47 | 82 | 2 | Head First Java or Thinking in Java | I'm a Java beginner but have some good C experience. I want to appear for the Java certificate in the next 4 months. I searched the site and two books are regularly recommended for beginners: Head first Java and Thinking in Java.
Out of these two, which is the one suitable for beginners and provides sufficient knowledge to pass the Java certificate? | java | books | null | null | null | 07/28/2012 14:46:56 | not constructive | Head First Java or Thinking in Java
===
I'm a Java beginner but have some good C experience. I want to appear for the Java certificate in the next 4 months. I searched the site and two books are regularly recommended for beginners: Head first Java and Thinking in Java.
Out of these two, which is the one suitable for beginners and provides sufficient knowledge to pass the Java certificate? | 4 |
8,432,021 | 12/08/2011 13:53:42 | 1,065,078 | 11/25/2011 06:19:54 | 1 | 0 | Paypal Buy Now code not working in chrome | The Paypal Buy Now button is not working in chrome in my website.Pls help..
Regards,
Rekha | php | paypal | null | null | null | 12/08/2011 15:45:08 | not a real question | Paypal Buy Now code not working in chrome
===
The Paypal Buy Now button is not working in chrome in my website.Pls help..
Regards,
Rekha | 1 |
3,679,818 | 09/09/2010 19:18:25 | 443,761 | 09/09/2010 19:18:25 | 1 | 0 | List of open-source games/apps with language information | Do you now where can I find list of opensource games/app with information about language they are write ? | open-source | null | null | null | null | 09/10/2010 22:38:07 | off topic | List of open-source games/apps with language information
===
Do you now where can I find list of opensource games/app with information about language they are write ? | 2 |
4,041,749 | 10/28/2010 10:04:47 | 192,142 | 10/18/2009 23:42:18 | 54 | 0 | MVC 2 Validation logic | I am new to MVC.Just would like to start do some business logic to enforce validation.Is there any simple example to understand how to apply validation? | asp.net-mvc-2 | null | null | null | null | null | open | MVC 2 Validation logic
===
I am new to MVC.Just would like to start do some business logic to enforce validation.Is there any simple example to understand how to apply validation? | 0 |
5,429,658 | 03/25/2011 07:26:02 | 418,232 | 08/12/2010 09:33:04 | 58 | 6 | Symfony 2 Error in Configuration | I have installed symfony from the tutorial [Tutorial][1].The installation is ok and it shows me the Welcome page but when i click on `configure your symfony app` it gives the following error
`Fatal error: Class 'Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass' not found in C:\xampp\htdocs\Symfony\vendor\symfony\src\Symfony\Component\DependencyInjection\Compiler\PassConfig.php on line 48`
[1]: http://symfonytuts.com/doc/jobeet/en/starting-up-the-project.html | php | symfony | null | null | null | null | open | Symfony 2 Error in Configuration
===
I have installed symfony from the tutorial [Tutorial][1].The installation is ok and it shows me the Welcome page but when i click on `configure your symfony app` it gives the following error
`Fatal error: Class 'Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass' not found in C:\xampp\htdocs\Symfony\vendor\symfony\src\Symfony\Component\DependencyInjection\Compiler\PassConfig.php on line 48`
[1]: http://symfonytuts.com/doc/jobeet/en/starting-up-the-project.html | 0 |
5,619,192 | 04/11/2011 09:20:27 | 701,825 | 04/11/2011 08:51:08 | 1 | 0 | How to add space | How to add space to string.
example:
"Hiwatsup?"
or
"hi,hello"
return
"hi hello"
or
"hi"
"hello" | python | null | null | null | null | 04/11/2011 12:20:53 | not a real question | How to add space
===
How to add space to string.
example:
"Hiwatsup?"
or
"hi,hello"
return
"hi hello"
or
"hi"
"hello" | 1 |
3,444,294 | 08/09/2010 21:17:18 | 43,846 | 12/05/2008 23:10:48 | 5,050 | 212 | Strongly typed Windows Forms databinding | I am looking into strong typed Windows Forms databinding using an extension method. I have got this far:
using System;
using System.Linq.Expressions;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public static class DataBindingsExtensionMethods
{
public static Binding Add<T, K, X>
(this ControlBindingsCollection dataBindings, object dataSource,
Expression<Func<Control, X>> controlLambda,
Expression<Func<T, K>> objectLambda)
{
string controlPropertyName =
((MemberExpression)(controlLambda.Body)).Member.Name;
string bindingTargetName =
((MemberExpression)(objectLambda.Body)).Member.Name;
return
new Binding(controlPropertyName, dataSource, bindingTargetName);
}
}
}
This is all well and good but there is a extraneous and irrelevant type information required in the calls:
txtBoundInt.DataBindings.Add<Contact, int, string>
(bindingSource, tb => tb.Text, contact => contact.Id);
Because I'm using `Func<>`, I have to specify return values, so can't ignore or infer the contextually irrelevant types of the control and target object properties. What class would I need to use to be able to call my extension method this way?
txtBoundInt.DataBindings.Add<Contact>
(bindingSource, tb => tb.Text, contact => contact.Id);
I seem to have tried all the obvious choices but this was the only way I could make this work. Or do I have to settle for what I've got? | c# | winforms | data-binding | functional-programming | null | null | open | Strongly typed Windows Forms databinding
===
I am looking into strong typed Windows Forms databinding using an extension method. I have got this far:
using System;
using System.Linq.Expressions;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public static class DataBindingsExtensionMethods
{
public static Binding Add<T, K, X>
(this ControlBindingsCollection dataBindings, object dataSource,
Expression<Func<Control, X>> controlLambda,
Expression<Func<T, K>> objectLambda)
{
string controlPropertyName =
((MemberExpression)(controlLambda.Body)).Member.Name;
string bindingTargetName =
((MemberExpression)(objectLambda.Body)).Member.Name;
return
new Binding(controlPropertyName, dataSource, bindingTargetName);
}
}
}
This is all well and good but there is a extraneous and irrelevant type information required in the calls:
txtBoundInt.DataBindings.Add<Contact, int, string>
(bindingSource, tb => tb.Text, contact => contact.Id);
Because I'm using `Func<>`, I have to specify return values, so can't ignore or infer the contextually irrelevant types of the control and target object properties. What class would I need to use to be able to call my extension method this way?
txtBoundInt.DataBindings.Add<Contact>
(bindingSource, tb => tb.Text, contact => contact.Id);
I seem to have tried all the obvious choices but this was the only way I could make this work. Or do I have to settle for what I've got? | 0 |
5,389,243 | 03/22/2011 09:39:56 | 670,923 | 03/22/2011 09:39:56 | 1 | 0 | weird behavior on many ajax posts | Here is my issue. I have a select that changes the price range using jquery ajax post. The problem is, once in a while, no particular trigger, the post action fails and I get a 404 error, (after many 200 OKs).Have you encountered anything like this before? Might this be related to the code or is just a server problem?
This is the js function:
function changePriceRange(event_id,elem){
alert('pr'+elem.val());
var data =
{
event_id:event_id,
prange:elem.val(),
event_name:$('#event_name').val(),
event_date:$('#event_date3').val()
}
if(event_id==0){
var my_url = base_url+'change_prange_new';
}else{
var my_url = base_url+'change_prange';
}
var request =
{
url:my_url,
type:'POST',
data:data,
success:function(response)
{
$('#section3_items').html(response);
}
}
$.ajax(request);
//update gifts section
var data2 =
{
event_id:event_id,
prange:elem.val()
}
var request2 =
{
url:base_url+'update_gifts_section',
type:'POST',
data:data2,
success:function(response)
{
$('#gifts_section').html(response);
}
}
$.ajax(request2);
}
..and the 404 error is happening on update_gifts_section. Thank you.. | jquery | ajax | post | null | null | null | open | weird behavior on many ajax posts
===
Here is my issue. I have a select that changes the price range using jquery ajax post. The problem is, once in a while, no particular trigger, the post action fails and I get a 404 error, (after many 200 OKs).Have you encountered anything like this before? Might this be related to the code or is just a server problem?
This is the js function:
function changePriceRange(event_id,elem){
alert('pr'+elem.val());
var data =
{
event_id:event_id,
prange:elem.val(),
event_name:$('#event_name').val(),
event_date:$('#event_date3').val()
}
if(event_id==0){
var my_url = base_url+'change_prange_new';
}else{
var my_url = base_url+'change_prange';
}
var request =
{
url:my_url,
type:'POST',
data:data,
success:function(response)
{
$('#section3_items').html(response);
}
}
$.ajax(request);
//update gifts section
var data2 =
{
event_id:event_id,
prange:elem.val()
}
var request2 =
{
url:base_url+'update_gifts_section',
type:'POST',
data:data2,
success:function(response)
{
$('#gifts_section').html(response);
}
}
$.ajax(request2);
}
..and the 404 error is happening on update_gifts_section. Thank you.. | 0 |
5,371,586 | 03/20/2011 21:21:48 | 602,472 | 02/04/2011 00:45:21 | 32 | 0 | find out how a person is feeling? | How might I create a C# program to decide how, say, sad a person is? Do you think it might work just to pick out "deppressed" words, or would that not go far enough? I could use a neural network if needed. Sorry if this isn't the right place to post this. | c# | artificial-intelligence | emotion | null | null | 03/20/2011 21:26:10 | off topic | find out how a person is feeling?
===
How might I create a C# program to decide how, say, sad a person is? Do you think it might work just to pick out "deppressed" words, or would that not go far enough? I could use a neural network if needed. Sorry if this isn't the right place to post this. | 2 |
8,131,322 | 11/15/2011 04:00:22 | 133,900 | 07/06/2009 21:00:16 | 203 | 4 | Enabling Git syntax highlighting for Mac's terminal | I miss the Git syntax highlighting I had on Windows for every "git .*" command -- you know, like green staged filenames, some bolding, etc.
How do I enable Git syntax highlighting for Mac's terminal?
AFter searching for 20 minutes, I was surprised that I couldn't find the answer.
-Thanks! | git | terminal | syntax-highlighting | null | null | null | open | Enabling Git syntax highlighting for Mac's terminal
===
I miss the Git syntax highlighting I had on Windows for every "git .*" command -- you know, like green staged filenames, some bolding, etc.
How do I enable Git syntax highlighting for Mac's terminal?
AFter searching for 20 minutes, I was surprised that I couldn't find the answer.
-Thanks! | 0 |
8,129,443 | 11/14/2011 23:01:36 | 570,222 | 01/10/2011 18:24:22 | 421 | 40 | How do you scale web services? | I know this is not the best SO question, but I'm really curious in how you scale web services. To start with, I'm looking for a guide or list of approaches or technologies that are both established and emerging these days.
I know about or played around with NoSQL, NodeJS, database sharding etc. but unfortunately, I have not found a comprehensive guide yet.
I'd appreciate any help | database | nosql | scaling | horizontal-scaling | null | 11/15/2011 10:24:53 | not a real question | How do you scale web services?
===
I know this is not the best SO question, but I'm really curious in how you scale web services. To start with, I'm looking for a guide or list of approaches or technologies that are both established and emerging these days.
I know about or played around with NoSQL, NodeJS, database sharding etc. but unfortunately, I have not found a comprehensive guide yet.
I'd appreciate any help | 1 |
8,346,622 | 12/01/2011 18:47:19 | 463,751 | 10/01/2010 10:18:29 | 114 | 4 | Is it feasible to use MVP or MVPC in game Development? | I am wondering if it is feasible for me to use MVP or MVPC in game development, if yes then how it could help me produce more confined output.
MGD | mvc | gui | architecture | model | null | 12/02/2011 01:57:51 | not constructive | Is it feasible to use MVP or MVPC in game Development?
===
I am wondering if it is feasible for me to use MVP or MVPC in game development, if yes then how it could help me produce more confined output.
MGD | 4 |
5,772,293 | 04/24/2011 18:10:56 | 458,610 | 09/26/2010 08:40:27 | 360 | 2 | Is True (In PHP)? | What to use better?
if ( $boolean ) {}
...or:
if ( $boolean === true ) {}
Both work, both check that *$boolean* is set to 'true'. The second one also checks *$boolean*'s type.
If we assume that *$boolean* holds value that's boolean, what option should I use? | php | types | compare | boolean | null | 04/25/2011 00:52:36 | not constructive | Is True (In PHP)?
===
What to use better?
if ( $boolean ) {}
...or:
if ( $boolean === true ) {}
Both work, both check that *$boolean* is set to 'true'. The second one also checks *$boolean*'s type.
If we assume that *$boolean* holds value that's boolean, what option should I use? | 4 |
5,802,494 | 04/27/2011 10:17:13 | 718,834 | 04/21/2011 11:27:55 | 3 | 0 | MySQL think I need to use ROLLUP but i'm not sure | If i has a group of people identifiers (12,34,54,65) and a database with Keys (Gender, Age, Salary for example), such as:
Details table
{Person ID, Key, Value}
{12, Gender, Male}
{34, Age, 40}
{54, Salary, 30000}
Personnel table
ID
12
34
54
65
EDIT, sorry the formatting has not worked, i want to create rows consisting of the powerset of {12,34,54,65} x {Age,Salary,Gender}, regardless of whether there is a data value in the Details table | mysql | sql | oracle | null | null | null | open | MySQL think I need to use ROLLUP but i'm not sure
===
If i has a group of people identifiers (12,34,54,65) and a database with Keys (Gender, Age, Salary for example), such as:
Details table
{Person ID, Key, Value}
{12, Gender, Male}
{34, Age, 40}
{54, Salary, 30000}
Personnel table
ID
12
34
54
65
EDIT, sorry the formatting has not worked, i want to create rows consisting of the powerset of {12,34,54,65} x {Age,Salary,Gender}, regardless of whether there is a data value in the Details table | 0 |
10,509,683 | 05/09/2012 04:07:17 | 1,383,605 | 05/09/2012 03:55:14 | 1 | 0 | using ajax in javascript to open a webpage | I want to create an input field in my html page wherein when i type a text in the input field and click on the submit button then an ajax call is made through javascript and the results for the field entered are searched in "http://www.google.com/" and the related google search page opens. | javascript | html | ajax | google | null | 05/10/2012 21:04:32 | not a real question | using ajax in javascript to open a webpage
===
I want to create an input field in my html page wherein when i type a text in the input field and click on the submit button then an ajax call is made through javascript and the results for the field entered are searched in "http://www.google.com/" and the related google search page opens. | 1 |
10,676,263 | 05/20/2012 18:58:41 | 1,273,161 | 03/16/2012 03:46:25 | 1 | 0 | Grails as remoting/web service only | I'm following a concept that separate business logic into child project and use them through web service and/or remoting. I have seen similar project in java with spring remoting, and it works pretty well.
But since Grails has everything in it, I wonder if it's possible to remove some part in Grails to make it light weight. With this concept I will have about 50 projects.
This is what I tend to do:
- **One Grails web project:** just have the view, controller, service to call business logic in other Grails project
- **Many Grails service project:** just have the domain, service exposed as remoting/web service
Please help me to know if this is practical. I have just approached Grails in short time, and know that a Grails project is very heavy to deploy. With untouched Grails, I afraid I cannot apply this concept.
Sorry for my bad English. | grails | architecture | remoting | null | null | 05/22/2012 13:14:12 | not constructive | Grails as remoting/web service only
===
I'm following a concept that separate business logic into child project and use them through web service and/or remoting. I have seen similar project in java with spring remoting, and it works pretty well.
But since Grails has everything in it, I wonder if it's possible to remove some part in Grails to make it light weight. With this concept I will have about 50 projects.
This is what I tend to do:
- **One Grails web project:** just have the view, controller, service to call business logic in other Grails project
- **Many Grails service project:** just have the domain, service exposed as remoting/web service
Please help me to know if this is practical. I have just approached Grails in short time, and know that a Grails project is very heavy to deploy. With untouched Grails, I afraid I cannot apply this concept.
Sorry for my bad English. | 4 |
9,206,745 | 02/09/2012 07:08:22 | 668,122 | 03/20/2011 10:42:25 | 20 | 0 | With Silverlight5 rumored to be the last release what will happen to the future Visual Studio LightSwitch? | I'm currently a student and I aspire to become a professional programmer/developer, I can code in C#/Asp.net and PHP but I know I still need to study more of those two If I really want to become a good developer.
As Microsoft pushes HTML5/CSS3/Javascript for developing apps/program and with the uncertain future of Silverlight, I'm just curious about what could possibly happen to LightSwitch's future? Is LightSwitch worth studying? | .net | silverlight | html5 | visual-studio-lightswitch | null | 02/09/2012 07:19:10 | not constructive | With Silverlight5 rumored to be the last release what will happen to the future Visual Studio LightSwitch?
===
I'm currently a student and I aspire to become a professional programmer/developer, I can code in C#/Asp.net and PHP but I know I still need to study more of those two If I really want to become a good developer.
As Microsoft pushes HTML5/CSS3/Javascript for developing apps/program and with the uncertain future of Silverlight, I'm just curious about what could possibly happen to LightSwitch's future? Is LightSwitch worth studying? | 4 |
9,977,507 | 04/02/2012 13:36:40 | 1,308,114 | 04/02/2012 13:12:55 | 1 | 0 | Cannot use VB.NET to POST insert into google fusion table | I am using VB.NET 2008. I am trying to complete a simple INSERT INTO a fusion table. I am successfully able to acquire an auth token and I have been able to use a GET to DESCRIBE the table but I am unable to use A POST to insert. I receive a The remote server returned an error: (400) Bad Request. when I attempt the POST.
I am sending the following in the body of a post:
insert into 1GsCF4nIV7oZ7Wkr4MH3BnnLK1MMeJBh1BfPSFe8 (COL1) values ('First Try')
The table only has one text column names COL1.
Here is the function I am using to GET and POST
Function FTQuery(ByVal URL_Query As String) As String
Dim sURL As String = ""
Dim request As WebRequest
Dim GoogleFusionTablesAPIURL As String = "https://www.google.com/fusiontables/api/query"
Try
If LCase(URL_Query).StartsWith("select") Or _
LCase(URL_Query).StartsWith("describe") Or _
LCase(URL_Query).StartsWith("show") Then
sURL = Uri.EscapeUriString(GoogleFusionTablesAPIURL & "?sql=" & URL_Query.Replace(vbCr, "").Replace(vbLf, ""))
request = WebRequest.Create(sURL)
request.Method = "GET"
request.ContentLength = 0
Else
sURL = Uri.EscapeUriString(GoogleFusionTablesAPIURL)
request = WebRequest.Create(sURL)
request.Method = "POST"
Dim encoding As New UTF8Encoding()
Dim postByteArray() As Byte = encoding.GetBytes("sql=" & URL_Query.Replace(vbCr, "").Replace(vbLf, ""))
request.ContentLength = postByteArray.Length
Dim postStream As IO.Stream = request.GetRequestStream()
postStream.Write(postByteArray, 0, postByteArray.Length)
postStream.Close()
End If
request.ContentType = "application/x-www-form-urlencoded"
request.Headers.Add("Authorization", "GoogleLogin auth=" & msAUTHToken)
Dim response As WebResponse = Nothing
Try
response = request.GetResponse()
Dim sReponse As String = CType(response, HttpWebResponse).StatusDescription
If sReponse <> "OK" Then Return "** ERROR **" & vbCrLf & "OK not returned on POST" & vbCrLf & "URL Requested: " & sURL
Catch web As WebException
Return "** ERROR **" & vbCrLf & web.Message
Exit Function
Catch ex As Exception
Return "** ERROR **" & vbCrLf & ex.Message
End Try
Dim dataStream As Stream = response.GetResponseStream()
Dim reader As New StreamReader(dataStream)
Dim responseFromServer As String = reader.ReadToEnd()
reader.Close()
dataStream.Close()
response.Close()
Return responseFromServer
Catch ex As Exception
MsgBox(ex.Message)
End Try
Return "** ERROR **" & vbCrLf & "Logic error"
End Function
| vb.net | google-fusion-tables | null | null | null | null | open | Cannot use VB.NET to POST insert into google fusion table
===
I am using VB.NET 2008. I am trying to complete a simple INSERT INTO a fusion table. I am successfully able to acquire an auth token and I have been able to use a GET to DESCRIBE the table but I am unable to use A POST to insert. I receive a The remote server returned an error: (400) Bad Request. when I attempt the POST.
I am sending the following in the body of a post:
insert into 1GsCF4nIV7oZ7Wkr4MH3BnnLK1MMeJBh1BfPSFe8 (COL1) values ('First Try')
The table only has one text column names COL1.
Here is the function I am using to GET and POST
Function FTQuery(ByVal URL_Query As String) As String
Dim sURL As String = ""
Dim request As WebRequest
Dim GoogleFusionTablesAPIURL As String = "https://www.google.com/fusiontables/api/query"
Try
If LCase(URL_Query).StartsWith("select") Or _
LCase(URL_Query).StartsWith("describe") Or _
LCase(URL_Query).StartsWith("show") Then
sURL = Uri.EscapeUriString(GoogleFusionTablesAPIURL & "?sql=" & URL_Query.Replace(vbCr, "").Replace(vbLf, ""))
request = WebRequest.Create(sURL)
request.Method = "GET"
request.ContentLength = 0
Else
sURL = Uri.EscapeUriString(GoogleFusionTablesAPIURL)
request = WebRequest.Create(sURL)
request.Method = "POST"
Dim encoding As New UTF8Encoding()
Dim postByteArray() As Byte = encoding.GetBytes("sql=" & URL_Query.Replace(vbCr, "").Replace(vbLf, ""))
request.ContentLength = postByteArray.Length
Dim postStream As IO.Stream = request.GetRequestStream()
postStream.Write(postByteArray, 0, postByteArray.Length)
postStream.Close()
End If
request.ContentType = "application/x-www-form-urlencoded"
request.Headers.Add("Authorization", "GoogleLogin auth=" & msAUTHToken)
Dim response As WebResponse = Nothing
Try
response = request.GetResponse()
Dim sReponse As String = CType(response, HttpWebResponse).StatusDescription
If sReponse <> "OK" Then Return "** ERROR **" & vbCrLf & "OK not returned on POST" & vbCrLf & "URL Requested: " & sURL
Catch web As WebException
Return "** ERROR **" & vbCrLf & web.Message
Exit Function
Catch ex As Exception
Return "** ERROR **" & vbCrLf & ex.Message
End Try
Dim dataStream As Stream = response.GetResponseStream()
Dim reader As New StreamReader(dataStream)
Dim responseFromServer As String = reader.ReadToEnd()
reader.Close()
dataStream.Close()
response.Close()
Return responseFromServer
Catch ex As Exception
MsgBox(ex.Message)
End Try
Return "** ERROR **" & vbCrLf & "Logic error"
End Function
| 0 |
10,804,676 | 05/29/2012 18:29:52 | 819,662 | 06/28/2011 17:24:08 | 156 | 9 | What is a Hibernate dirty session? | I was wondering if anybody could tell me what a hibernate dirty session is? I seem to be having an issue where a criteria query is performing an insert when it shouldn't. I believe it's related to a dirty session, but without knowing truly what a dirty session is, I'm unable to resolve my issue. Also, how do you create a dirty session. Thanks. | java | hibernate | null | null | null | null | open | What is a Hibernate dirty session?
===
I was wondering if anybody could tell me what a hibernate dirty session is? I seem to be having an issue where a criteria query is performing an insert when it shouldn't. I believe it's related to a dirty session, but without knowing truly what a dirty session is, I'm unable to resolve my issue. Also, how do you create a dirty session. Thanks. | 0 |
10,685,792 | 05/21/2012 13:04:05 | 1,332,995 | 04/14/2012 07:29:48 | 38 | 1 | calculate the sum of selected items in servlet using session tracking | i have retrieved my database to Servlet, so that now it looks like this:
![enter image description here][1]
[1]: http://i.stack.imgur.com/Fpzsk.png
the code:
for (int i = 0; i < ex.getExpenses().size(); i++) {
out.println("<tr>");
out.println("<td > " + ex.getExpenses().get(i).getNum()+ "</td>");
out.println("<td > " + ex.getExpenses().get(i).getPayment() + "</td>");
out.println("<td > " + ex.getExpenses().get(i).getReceiver() + "</td>");
out.println("<td > " + ex.getExpenses().get(i).getValue() + "</td>");
out.println("<td><form ><input name = \"num\" type = \"hidden\" value = \""+ex.getExpenses().get(i).getNum()+" \">");
out.println("<input type = \"submit\" value = \"add\">");
out.println("</form></td>");
out.println("</tr>");
}
out.println("<td></td><td></td><td></td><td></td><td><input type = \"submit\" value = \"get the SUM\"></td>");
out.println("</table>");
what else i have to do is using session tracking (and hidden field type which i have "add") write i servlet that will calculate the sum of chosen values ( like if i press add after value 22 and then after value 5555 it will show the result when clicking "get the sum button" 5577.0).
it looks like adding to shopping cart and then getting the sum of what i want to buy. but i've never done this before, so i'm asking for your help. | java | html | session | servlets | null | null | open | calculate the sum of selected items in servlet using session tracking
===
i have retrieved my database to Servlet, so that now it looks like this:
![enter image description here][1]
[1]: http://i.stack.imgur.com/Fpzsk.png
the code:
for (int i = 0; i < ex.getExpenses().size(); i++) {
out.println("<tr>");
out.println("<td > " + ex.getExpenses().get(i).getNum()+ "</td>");
out.println("<td > " + ex.getExpenses().get(i).getPayment() + "</td>");
out.println("<td > " + ex.getExpenses().get(i).getReceiver() + "</td>");
out.println("<td > " + ex.getExpenses().get(i).getValue() + "</td>");
out.println("<td><form ><input name = \"num\" type = \"hidden\" value = \""+ex.getExpenses().get(i).getNum()+" \">");
out.println("<input type = \"submit\" value = \"add\">");
out.println("</form></td>");
out.println("</tr>");
}
out.println("<td></td><td></td><td></td><td></td><td><input type = \"submit\" value = \"get the SUM\"></td>");
out.println("</table>");
what else i have to do is using session tracking (and hidden field type which i have "add") write i servlet that will calculate the sum of chosen values ( like if i press add after value 22 and then after value 5555 it will show the result when clicking "get the sum button" 5577.0).
it looks like adding to shopping cart and then getting the sum of what i want to buy. but i've never done this before, so i'm asking for your help. | 0 |
8,977,220 | 01/23/2012 19:11:11 | 1,165,624 | 01/23/2012 19:10:13 | 1 | 0 | Android development using a netbook as development device | I've just installed Android-x86 Ice Cream Sandwich on an Acer Aspire One.
In case of a regular Android phone (I have a Galaxy S) the only thing I need is to connect the phone to the PC and then I'm ready to run my application from Eclipse.
I would like to do the same thing using this Acer netbook running Android-x86, however, I don't know how to do it. I tried connecting the netbook with the PC using a male-male USB cable, but the PC doesn't recognize the device, in fact, it doesn't even observe any new devices attached.
Can you help me on what should I do in order to be able to execute Android applications from my PC on this netbook running Android? | android | development | netbook | null | null | 01/23/2012 21:17:30 | not a real question | Android development using a netbook as development device
===
I've just installed Android-x86 Ice Cream Sandwich on an Acer Aspire One.
In case of a regular Android phone (I have a Galaxy S) the only thing I need is to connect the phone to the PC and then I'm ready to run my application from Eclipse.
I would like to do the same thing using this Acer netbook running Android-x86, however, I don't know how to do it. I tried connecting the netbook with the PC using a male-male USB cable, but the PC doesn't recognize the device, in fact, it doesn't even observe any new devices attached.
Can you help me on what should I do in order to be able to execute Android applications from my PC on this netbook running Android? | 1 |
8,090,303 | 11/11/2011 06:08:20 | 560,161 | 01/02/2011 05:33:07 | 503 | 37 | Strange php error with a variable name | This is a big puzzle for me.
I have a line of code like this:
$Fields = mysql_fetch_assoc($Result);
I then call it like this:
<?php echo $Field['BusinessName']; ?>
The strange thing is that there are no errors but no data is shown. But when I rename the variable **$Fields** as **$Field**, the data shows.
For local testing I used Ubuntu and the error was first noticed on the host (LAMP).
I checked to see if $Fields is a reserved word in PHP but I can't seem to find any hints on this.
Appreciate any inputs on this.
Thanks! | php | php-errors | null | null | null | 11/12/2011 08:42:21 | not a real question | Strange php error with a variable name
===
This is a big puzzle for me.
I have a line of code like this:
$Fields = mysql_fetch_assoc($Result);
I then call it like this:
<?php echo $Field['BusinessName']; ?>
The strange thing is that there are no errors but no data is shown. But when I rename the variable **$Fields** as **$Field**, the data shows.
For local testing I used Ubuntu and the error was first noticed on the host (LAMP).
I checked to see if $Fields is a reserved word in PHP but I can't seem to find any hints on this.
Appreciate any inputs on this.
Thanks! | 1 |
11,467,082 | 07/13/2012 08:47:35 | 1,510,440 | 07/08/2012 18:56:59 | 18 | 0 | JAVA image of random pixels | I'm trying to make an image of random pixels. I wrote this code, but no usefulness
import java.awt.*;
import java.awt.image.BufferStrategy;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferInt;
import java.util.Random;
import javax.swing.*;
public class LadderSnack extends Canvas implements Runnable {
public static final int width = Toolkit.getDefaultToolkit().getScreenSize().width, height = Toolkit.getDefaultToolkit().getScreenSize().height;
private Thread thread;
private boolean running = false;
private int[] pixels;
private void start() {
if (running)
return;
running = true;
thread = new Thread(this);
}
private void LadderSnack() {
Random r = new Random();
for(int i=0;i<height*width;i++)
{
pixels[i]=r.nextInt();
}
BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
pixels = ((DataBufferInt) img.getRaster().getDataBuffer()).getData();
BufferStrategy bs = this.getBufferStrategy();
if(bs==null)
{
createBufferStrategy(3);
//return;
}
Graphics g=bs.getDrawGraphics();
g.drawImage(img, 0, 0, width, height, null);
bs.show();
g.dispose();
}
private void stop() {
if (!running)
return;
running = false;
try {
thread.join();
} catch (Exception e) {
e.printStackTrace();
System.exit(0);
}
}
public void run() {
while (running) {
}
}
public static void main(String[] args) {
LadderSnack ladderSnack = new LadderSnack();
JFrame frame = new JFrame("EmiloLadderSnack v.1.0");
frame.pack();
frame.setSize(width, height);
frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
frame.setLocationRelativeTo(null);
frame.setResizable(false);
frame.setVisible(true);
frame.add(ladderSnack);
ladderSnack.start();
}
}
Please, help me to make an image of random pixels using JAVA
I tried to assign pixels array with random integers and then assign it using DataBufferInt | java | image | gui | random | null | null | open | JAVA image of random pixels
===
I'm trying to make an image of random pixels. I wrote this code, but no usefulness
import java.awt.*;
import java.awt.image.BufferStrategy;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferInt;
import java.util.Random;
import javax.swing.*;
public class LadderSnack extends Canvas implements Runnable {
public static final int width = Toolkit.getDefaultToolkit().getScreenSize().width, height = Toolkit.getDefaultToolkit().getScreenSize().height;
private Thread thread;
private boolean running = false;
private int[] pixels;
private void start() {
if (running)
return;
running = true;
thread = new Thread(this);
}
private void LadderSnack() {
Random r = new Random();
for(int i=0;i<height*width;i++)
{
pixels[i]=r.nextInt();
}
BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
pixels = ((DataBufferInt) img.getRaster().getDataBuffer()).getData();
BufferStrategy bs = this.getBufferStrategy();
if(bs==null)
{
createBufferStrategy(3);
//return;
}
Graphics g=bs.getDrawGraphics();
g.drawImage(img, 0, 0, width, height, null);
bs.show();
g.dispose();
}
private void stop() {
if (!running)
return;
running = false;
try {
thread.join();
} catch (Exception e) {
e.printStackTrace();
System.exit(0);
}
}
public void run() {
while (running) {
}
}
public static void main(String[] args) {
LadderSnack ladderSnack = new LadderSnack();
JFrame frame = new JFrame("EmiloLadderSnack v.1.0");
frame.pack();
frame.setSize(width, height);
frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
frame.setLocationRelativeTo(null);
frame.setResizable(false);
frame.setVisible(true);
frame.add(ladderSnack);
ladderSnack.start();
}
}
Please, help me to make an image of random pixels using JAVA
I tried to assign pixels array with random integers and then assign it using DataBufferInt | 0 |
295,156 | 11/17/2008 09:14:18 | 191 | 08/03/2008 09:55:26 | 522 | 17 | ASP.NET Security Best Practices | What are others ASP.NET Security Best Practices. Some of them are:
* Always generate new encryption keys and admin passwords whenever you are moving an application to production.
* Never stored password directly or in encrypted form. Always stored one ways hashed passwords.
* Always store connection strings in <connectionStrings> tag of Web.config and encrypt it in configuration section by using protected configuration providers (RSA or DPAPI). See [example here][1]
* Use user ID with least-privilege to connect to SQL server or the database you are using. E.g if you are only executing stored procedures from a certain module of application then you must create a user ID which has permissions to execute only.
* Use [PrincipalPermission][2] if you want to use role-base security on pages.
<code>[PrincipalPermission(SecurityAction.Demand, Role="Admin")]
public class AdminOnlyPage : BasePage
{
// ...
}</code>
* Always use parameters to prevent [SQL Injection][3] in the sql queries.
* Always keep on customErrors in web config to make you errors/exceptions private
<customErrors mode="On" defaultRedirect="MyErrorPage.htm" />
* In web applications, always validate the user's inputs for html tags or scripts.
[1]: http://msdn.microsoft.com/en-us/library/ms998372.aspx#pagpractices0001_conhowtoencryptsensitivedatainmachineconfigandwebconfig
[2]: http://msdn.microsoft.com/en-us/library/system.security.permissions.principalpermission.aspx
[3]: http://en.wikipedia.org/wiki/SQL_Injection
| asp.net | security | null | null | null | 05/29/2012 06:16:50 | not constructive | ASP.NET Security Best Practices
===
What are others ASP.NET Security Best Practices. Some of them are:
* Always generate new encryption keys and admin passwords whenever you are moving an application to production.
* Never stored password directly or in encrypted form. Always stored one ways hashed passwords.
* Always store connection strings in <connectionStrings> tag of Web.config and encrypt it in configuration section by using protected configuration providers (RSA or DPAPI). See [example here][1]
* Use user ID with least-privilege to connect to SQL server or the database you are using. E.g if you are only executing stored procedures from a certain module of application then you must create a user ID which has permissions to execute only.
* Use [PrincipalPermission][2] if you want to use role-base security on pages.
<code>[PrincipalPermission(SecurityAction.Demand, Role="Admin")]
public class AdminOnlyPage : BasePage
{
// ...
}</code>
* Always use parameters to prevent [SQL Injection][3] in the sql queries.
* Always keep on customErrors in web config to make you errors/exceptions private
<customErrors mode="On" defaultRedirect="MyErrorPage.htm" />
* In web applications, always validate the user's inputs for html tags or scripts.
[1]: http://msdn.microsoft.com/en-us/library/ms998372.aspx#pagpractices0001_conhowtoencryptsensitivedatainmachineconfigandwebconfig
[2]: http://msdn.microsoft.com/en-us/library/system.security.permissions.principalpermission.aspx
[3]: http://en.wikipedia.org/wiki/SQL_Injection
| 4 |
5,585,322 | 04/07/2011 17:46:02 | 412,691 | 08/06/2010 05:59:58 | 81 | 7 | Can the JIRA SOAP api be used to determine whether a given user can view a given record? | I'd like to be able to do something like this:
#!/usr/bin/python
if jira.user_has_permission('jsmith', 'JIRA-123'):
print '%s has permission to view %s' % (user, record)
else:
print '%s does not have permission to view %s' % (user, record)
How can I implement jira.user_has_permission()? | python | api | soap | jira | null | null | open | Can the JIRA SOAP api be used to determine whether a given user can view a given record?
===
I'd like to be able to do something like this:
#!/usr/bin/python
if jira.user_has_permission('jsmith', 'JIRA-123'):
print '%s has permission to view %s' % (user, record)
else:
print '%s does not have permission to view %s' % (user, record)
How can I implement jira.user_has_permission()? | 0 |
5,955,650 | 05/10/2011 19:50:52 | 32,816 | 10/30/2008 16:09:22 | 1,429 | 47 | How to monkeypatch Ruby properly? | I'm trying to monkeypatch a line in Net class in the standard library. I created a file called patches.rb into the lib folder of the project and added this
module Net
class HTTP < Protocol
module HTTPHeader
def initialize_http_header(initheader)
@header = {}
return unless initheader
initheader.each do |key, value|
@header[key.downcase] = [value.strip] rescue ""
end
end
end
end
end
But it doesn't work. Am I doing this right? (That parallels the inheritance hierarchy exactly.) | ruby | ruby-on-rails-3 | monkeypatching | null | null | null | open | How to monkeypatch Ruby properly?
===
I'm trying to monkeypatch a line in Net class in the standard library. I created a file called patches.rb into the lib folder of the project and added this
module Net
class HTTP < Protocol
module HTTPHeader
def initialize_http_header(initheader)
@header = {}
return unless initheader
initheader.each do |key, value|
@header[key.downcase] = [value.strip] rescue ""
end
end
end
end
end
But it doesn't work. Am I doing this right? (That parallels the inheritance hierarchy exactly.) | 0 |
9,517,396 | 03/01/2012 13:51:35 | 995,074 | 10/14/2011 08:46:46 | 9 | 0 | can anyone tell what is OpenCV and what's the use of that in java | can anyone tell what is OpenCV and what's the use of that in java?
do we have to study anything for using that? | java | null | null | null | null | 03/01/2012 13:56:10 | not a real question | can anyone tell what is OpenCV and what's the use of that in java
===
can anyone tell what is OpenCV and what's the use of that in java?
do we have to study anything for using that? | 1 |
11,304,578 | 07/03/2012 04:41:31 | 1,285,757 | 03/22/2012 11:17:15 | 24 | 0 | Learning Ruby on Rails? | I'm PHP developer working on it since 2 years. I have worked on C#.NET before PHP but then I moved to PHP and now i am working in PHP world. I have good experience of WordPress development and i am quick learner with solid object orient programing.
Nowadays, I really want to learn some other existing programming languages. I'm keen to learn Ruby on Rails because i can see, it is growing day by day.
a) Can anybody tell me about my this decision?
b) Is Ruby on Rails framework provides all the feature like other do?
b) Will the Ruby on Rails will be prominent in coming years?
c) Will i be able to earn my good living?
I don't totally want to move on Ruby on Rails, I'll keep working on PHP but Ruby sounds me great. Thanks | ruby-on-rails | ruby | wordpress | php5 | null | 07/03/2012 06:27:02 | not constructive | Learning Ruby on Rails?
===
I'm PHP developer working on it since 2 years. I have worked on C#.NET before PHP but then I moved to PHP and now i am working in PHP world. I have good experience of WordPress development and i am quick learner with solid object orient programing.
Nowadays, I really want to learn some other existing programming languages. I'm keen to learn Ruby on Rails because i can see, it is growing day by day.
a) Can anybody tell me about my this decision?
b) Is Ruby on Rails framework provides all the feature like other do?
b) Will the Ruby on Rails will be prominent in coming years?
c) Will i be able to earn my good living?
I don't totally want to move on Ruby on Rails, I'll keep working on PHP but Ruby sounds me great. Thanks | 4 |
4,293,289 | 11/27/2010 18:50:29 | 160,225 | 08/20/2009 17:20:01 | 213 | 11 | Equals sign in django-registration activation url | I am using django-registration and for some reason, when it sends the activation email, it inserts an equals sign in the third to last character as such: http://example.com/accounts/activate/a65b4aca5156211bc522e29f3e872290544d14=
e4/
This means the URL dispatcher does not catch the URL (the regex is `^activate/(?P<activation_key>\w+)/$`. The url is incorrect anyway, as it should be without the equals sign.
Anybody know why this is happening?
| django | django-registration | null | null | null | null | open | Equals sign in django-registration activation url
===
I am using django-registration and for some reason, when it sends the activation email, it inserts an equals sign in the third to last character as such: http://example.com/accounts/activate/a65b4aca5156211bc522e29f3e872290544d14=
e4/
This means the URL dispatcher does not catch the URL (the regex is `^activate/(?P<activation_key>\w+)/$`. The url is incorrect anyway, as it should be without the equals sign.
Anybody know why this is happening?
| 0 |
6,952,913 | 08/05/2011 07:31:11 | 225,956 | 12/06/2009 21:27:10 | 324 | 9 | GtkWidget -> GtkToolItem function? Adding a GtkWidget to a GtkToolItemGroup | I was looking at GtkToolPalette, it looks great. But I was wondering at the possibility to add a GtkHScale to one of the groups of the palette. I've checked GtkToolItemGroup can add only items of type GtkToolItem; Is there a way to get a GtkToolItem for an existing GtkWidget? | gtk | gtk+ | gtk2 | null | null | null | open | GtkWidget -> GtkToolItem function? Adding a GtkWidget to a GtkToolItemGroup
===
I was looking at GtkToolPalette, it looks great. But I was wondering at the possibility to add a GtkHScale to one of the groups of the palette. I've checked GtkToolItemGroup can add only items of type GtkToolItem; Is there a way to get a GtkToolItem for an existing GtkWidget? | 0 |
10,543,992 | 05/11/2012 00:46:06 | 1,351,718 | 04/23/2012 15:45:57 | 13 | 0 | How fast are ctypes in python? | I just started looking into ctypes and was a little curious on how they work. How does it compare speed wise to the regular C implementation? Will using ctypes in a python program speed it up or slow it down is basically what I am wondering. Thanks! | python | python-2.7 | ctypes | null | null | 05/31/2012 18:58:15 | not a real question | How fast are ctypes in python?
===
I just started looking into ctypes and was a little curious on how they work. How does it compare speed wise to the regular C implementation? Will using ctypes in a python program speed it up or slow it down is basically what I am wondering. Thanks! | 1 |
6,876,398 | 07/29/2011 16:49:38 | 102,526 | 05/06/2009 22:15:43 | 1,041 | 72 | Would upgrading from .net 2.0 to 4.0 give a performance increase? | Our giant vb.net 2.0 web application is finally getting a code freeze so we can put some performance enhancements into it.
I was wondering if it would be worth it to upgrade the .Net version to increase the application's performance.
| .net | performance | .net-4.0 | .net-2.0 | null | null | open | Would upgrading from .net 2.0 to 4.0 give a performance increase?
===
Our giant vb.net 2.0 web application is finally getting a code freeze so we can put some performance enhancements into it.
I was wondering if it would be worth it to upgrade the .Net version to increase the application's performance.
| 0 |
7,627,161 | 10/02/2011 15:11:01 | 595,892 | 01/30/2011 15:52:10 | 143 | 1 | Get ID of element that called a function | How can I get the ID of an element that called a JS function?
*body.jpg* is an image of a dog as the user points his/her mouse around the screen at different parts of the body an enlarged image is shown. The ID of the area element is identical to the image filename minus the folder and extension.
<div>
<img src="images/body.jpg" usemap="#anatomy"/>
</div>
<map name="anatomy">
<area id="nose" shape="rect" coords="280,240,330,275" onmouseover="zoom()"/>
</map>
<script type="text/javascript">
function zoom()
{
document.getElementById("preview").src="images/nose.jpg";
}
</script>
<div>
<img id="preview"/>
</div>
I've done my research and have come to SO as a last resort. I'm prefer a solution that doesn't involve jQuery. | javascript | javascript-events | null | null | null | null | open | Get ID of element that called a function
===
How can I get the ID of an element that called a JS function?
*body.jpg* is an image of a dog as the user points his/her mouse around the screen at different parts of the body an enlarged image is shown. The ID of the area element is identical to the image filename minus the folder and extension.
<div>
<img src="images/body.jpg" usemap="#anatomy"/>
</div>
<map name="anatomy">
<area id="nose" shape="rect" coords="280,240,330,275" onmouseover="zoom()"/>
</map>
<script type="text/javascript">
function zoom()
{
document.getElementById("preview").src="images/nose.jpg";
}
</script>
<div>
<img id="preview"/>
</div>
I've done my research and have come to SO as a last resort. I'm prefer a solution that doesn't involve jQuery. | 0 |
9,290,703 | 02/15/2012 09:22:30 | 613,064 | 12/22/2010 15:07:07 | 4,389 | 263 | Assert that current thread does not hold a CRITICAL_SECTION lock | I have an object that maintains a list; one of the helper methods needs to
- lock the list
- find the first element
- unlock the list
- notify another thread to start a cleanup operation
- wait on the other thread to finish
- repeat this until the list is empty.
The cleanup operation removes the object from the list from the other thread, thus it needs to lock the list in between.
This works fine as long as the helper is not called with the lock on the list already held as then the unlock operation will not actually allow the other thread to access the list, so I'd like to flag an error in this case.
As far as I've understood, the `CRITICAL_SECTION` API does not provide an officially supported way to query whether the current process holds this object, so I'm considering "hack-ish" approaches (after all, it's a debugging aid and not intended to go into production code):
Variant 1 is to check the `OwningThread` field of the `CRITICAL_SECTION` structure, but I wonder whether there is a guarantee that this field is
- always containing a thread ID from the same number space as `GetCurrentThreadId()` results
- always updated when any thread takes the lock
- always cleared when my own thread releases the lock
Variant 2 is to lock the `CRITICAL_SECTION` and then examine the `RecursionCount`; this assumes that the recursion counter has a fixed start value.
Is there anything that I have missed that I could use to build a somewhat future-proof (that is, it will break noisily in a line of code that is near to the comments where I explain it all) assertion statement that the current thread is *not* the holder of a certain `CRITICAL_SECTION`? | windows | multithreading | winapi | hack | critical-section | null | open | Assert that current thread does not hold a CRITICAL_SECTION lock
===
I have an object that maintains a list; one of the helper methods needs to
- lock the list
- find the first element
- unlock the list
- notify another thread to start a cleanup operation
- wait on the other thread to finish
- repeat this until the list is empty.
The cleanup operation removes the object from the list from the other thread, thus it needs to lock the list in between.
This works fine as long as the helper is not called with the lock on the list already held as then the unlock operation will not actually allow the other thread to access the list, so I'd like to flag an error in this case.
As far as I've understood, the `CRITICAL_SECTION` API does not provide an officially supported way to query whether the current process holds this object, so I'm considering "hack-ish" approaches (after all, it's a debugging aid and not intended to go into production code):
Variant 1 is to check the `OwningThread` field of the `CRITICAL_SECTION` structure, but I wonder whether there is a guarantee that this field is
- always containing a thread ID from the same number space as `GetCurrentThreadId()` results
- always updated when any thread takes the lock
- always cleared when my own thread releases the lock
Variant 2 is to lock the `CRITICAL_SECTION` and then examine the `RecursionCount`; this assumes that the recursion counter has a fixed start value.
Is there anything that I have missed that I could use to build a somewhat future-proof (that is, it will break noisily in a line of code that is near to the comments where I explain it all) assertion statement that the current thread is *not* the holder of a certain `CRITICAL_SECTION`? | 0 |
9,437,611 | 02/24/2012 20:31:36 | 1,010,393 | 10/24/2011 07:11:31 | 8 | 0 | Hotmail treating my emails as junk | The emails sent from my email server get classified as "spam" by Hotmail, whereas things work fine with Gmail and Yahoo.
Looking at the headers for Hotmail, I see that there's an error on Sender-id :
x-store-info:4r51+eLowCe79NzwdU2kRyU+pBy2R9QCy8qHgmJLLDz8C3S7+5TCub/2XhhKK5cqW17lt6GrtYxeZbhWOE+cDlmanEIHmdlGBhazzEXKh55lp0M0dGn03A==
Authentication-Results: hotmail.com; sender-id=temperror (sender IP is 94.xx.xx.xx) header.from=info@mydomain.com; dkim=none header.d=mydomain.com; x-hmca=none
X-Message-Status: n:0:n
X-SID-PRA: mydomain <info@mydomain.com>
X-DKIM-Result: None
X-AUTH-Result: NONE
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD00
X-Message-Info: 11chDOWqoTmtu97V3A/0HoazN3tbnSqQluj4t5FLSxQjA/8S/3/RsnXZN8w8dP3RH78mCVUJ3mzbbIsJemZASw5P8hRgD8Ae0l3iEWFPveO0zqD+cO//c0VpN2G38j7m
Received: from mail2.mydomain.com ([94.xx.xx.xx]) by SNT0-MC1-F37.Snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4900);
Fri, 24 Feb 2012 12:12:56 -0800
Received: (qmail 17483 invoked by uid 0); 24 Feb 2012 20:13:03 -0000
Date: 24 Feb 2012 20:13:03 -0000
Message-ID: <20120224201303.17482.qmail@mail2.mydomain.com>
To: testeurfoufou@hotmail.fr
Subject: bonjour
MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
X-Sender: <www.mydomain.com>
X-Mailer: PHP
X-auth-smtp-user: info@mydomain.com
X-abuse-contact: info@mydomain.com
From: mydomain <info@mydomain.com>
Return-Path: info@mydomain.com
X-OriginalArrivalTime: 24 Feb 2012 20:12:56.0821 (UTC) FILETIME=[B2A79A50:01CCF330]
I have submitted my site to the Sender-id once 2 weeks ago and a second time 3 days ago, but whereas I receive emails from the Sender-id program saying that my site has been taken into account, I continue getting Sender-id temperror.
Here are the relevant lines of my DNS records:
mydomain.com. IN MX 10 mail2.mydomain.com.
mydomain.com. IN A 94.yy.yy.yy
www.mydomain.com. IN A 94.yy.yy.yy
mail2.mydomain.com. IN A 94.xx.xx.xx
mydomain.com. IN TXT "v=spf1 ip4:94.xx.xx.xx include:sendgrid.net ~all"
mydomain.com. IN SPF "v=spf1 ip4:94.xx.xx.xx include:sendgrid.net ~all"
mydomain.com. IN TXT "spf2.0/pra ip4:94.xx.xx.xx include:sendgrid.net ~all"
mail2.mydomain.com. IN TXT "v=spf1 ip4:94.xx.xx.xx include:sendgrid.net ~all"
mail2.mydomain.com. IN SPF "v=spf1 ip4:94.xx.xx.xx include:sendgrid.net ~all"
Any ideas on what my cause this temp-error thing?
Thank you | email | qmail | sender-id | null | null | 02/24/2012 23:32:53 | off topic | Hotmail treating my emails as junk
===
The emails sent from my email server get classified as "spam" by Hotmail, whereas things work fine with Gmail and Yahoo.
Looking at the headers for Hotmail, I see that there's an error on Sender-id :
x-store-info:4r51+eLowCe79NzwdU2kRyU+pBy2R9QCy8qHgmJLLDz8C3S7+5TCub/2XhhKK5cqW17lt6GrtYxeZbhWOE+cDlmanEIHmdlGBhazzEXKh55lp0M0dGn03A==
Authentication-Results: hotmail.com; sender-id=temperror (sender IP is 94.xx.xx.xx) header.from=info@mydomain.com; dkim=none header.d=mydomain.com; x-hmca=none
X-Message-Status: n:0:n
X-SID-PRA: mydomain <info@mydomain.com>
X-DKIM-Result: None
X-AUTH-Result: NONE
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD00
X-Message-Info: 11chDOWqoTmtu97V3A/0HoazN3tbnSqQluj4t5FLSxQjA/8S/3/RsnXZN8w8dP3RH78mCVUJ3mzbbIsJemZASw5P8hRgD8Ae0l3iEWFPveO0zqD+cO//c0VpN2G38j7m
Received: from mail2.mydomain.com ([94.xx.xx.xx]) by SNT0-MC1-F37.Snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4900);
Fri, 24 Feb 2012 12:12:56 -0800
Received: (qmail 17483 invoked by uid 0); 24 Feb 2012 20:13:03 -0000
Date: 24 Feb 2012 20:13:03 -0000
Message-ID: <20120224201303.17482.qmail@mail2.mydomain.com>
To: testeurfoufou@hotmail.fr
Subject: bonjour
MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
X-Sender: <www.mydomain.com>
X-Mailer: PHP
X-auth-smtp-user: info@mydomain.com
X-abuse-contact: info@mydomain.com
From: mydomain <info@mydomain.com>
Return-Path: info@mydomain.com
X-OriginalArrivalTime: 24 Feb 2012 20:12:56.0821 (UTC) FILETIME=[B2A79A50:01CCF330]
I have submitted my site to the Sender-id once 2 weeks ago and a second time 3 days ago, but whereas I receive emails from the Sender-id program saying that my site has been taken into account, I continue getting Sender-id temperror.
Here are the relevant lines of my DNS records:
mydomain.com. IN MX 10 mail2.mydomain.com.
mydomain.com. IN A 94.yy.yy.yy
www.mydomain.com. IN A 94.yy.yy.yy
mail2.mydomain.com. IN A 94.xx.xx.xx
mydomain.com. IN TXT "v=spf1 ip4:94.xx.xx.xx include:sendgrid.net ~all"
mydomain.com. IN SPF "v=spf1 ip4:94.xx.xx.xx include:sendgrid.net ~all"
mydomain.com. IN TXT "spf2.0/pra ip4:94.xx.xx.xx include:sendgrid.net ~all"
mail2.mydomain.com. IN TXT "v=spf1 ip4:94.xx.xx.xx include:sendgrid.net ~all"
mail2.mydomain.com. IN SPF "v=spf1 ip4:94.xx.xx.xx include:sendgrid.net ~all"
Any ideas on what my cause this temp-error thing?
Thank you | 2 |
9,657,927 | 03/11/2012 18:59:04 | 825,670 | 07/02/2011 00:51:41 | 12 | 0 | prevent flickr api from auto-login? | my app allows people to share photos on flickr via the flickr API, but for some reason it always automatically logs me in to flickr if I've already logged in via safari. Is there some way to prevent this? Even the native Flickr app isn't this aggressive, and it makes it impossible to use multiple flickr accounts on one device. | iphone | ios | flickr-api | null | null | null | open | prevent flickr api from auto-login?
===
my app allows people to share photos on flickr via the flickr API, but for some reason it always automatically logs me in to flickr if I've already logged in via safari. Is there some way to prevent this? Even the native Flickr app isn't this aggressive, and it makes it impossible to use multiple flickr accounts on one device. | 0 |
9,573,402 | 03/05/2012 20:20:54 | 1,157,541 | 01/19/2012 02:15:36 | 42 | 0 | Understanding an SQL Query | I have the following query:
Select course_id, semester, year, sec_id, avg(tot_cred)
From takes natural join student
Where year = 2009
Group by course_id, semester,year, sec_id
Having count (ID) >= 2;
Should joining section as well in the From clause change the result?
| sql | homework | null | null | null | 03/05/2012 20:35:55 | not a real question | Understanding an SQL Query
===
I have the following query:
Select course_id, semester, year, sec_id, avg(tot_cred)
From takes natural join student
Where year = 2009
Group by course_id, semester,year, sec_id
Having count (ID) >= 2;
Should joining section as well in the From clause change the result?
| 1 |
4,749,678 | 01/20/2011 16:24:07 | 258,548 | 01/25/2010 15:45:48 | 623 | 35 | Server-side software for translating languages? | I am searching for a server-side application (not a service, we need to host this ourselves) that can take a given string and translate it to another language. Open-source, paid, doesn't matter.
Can anyone provide some recommendations? | translation | null | null | null | null | 01/21/2011 08:02:13 | off topic | Server-side software for translating languages?
===
I am searching for a server-side application (not a service, we need to host this ourselves) that can take a given string and translate it to another language. Open-source, paid, doesn't matter.
Can anyone provide some recommendations? | 2 |
7,284,397 | 09/02/2011 13:49:37 | 662,320 | 03/16/2011 10:44:51 | 413 | 3 | Similar things between java and .net developments | I am currently working in .net and want to switch over in java. But I dont have any idea about real life application developments in java. I have used net beans in past to do some college project. In that I used to write java code whithin HTML code. But in .net there is facility of HTML code and server side code. Is there such type of facility is available in java? Second thing is .net provide very good debug feature. Is java has this type of feature? Can anyone please elaborate similarities between java and .net developement so that I can start practice application...
Also what is the added advantage of using sturts, spring and hibernate like frameworks in java? | c# | java | asp.net | null | null | 09/02/2011 14:05:01 | not constructive | Similar things between java and .net developments
===
I am currently working in .net and want to switch over in java. But I dont have any idea about real life application developments in java. I have used net beans in past to do some college project. In that I used to write java code whithin HTML code. But in .net there is facility of HTML code and server side code. Is there such type of facility is available in java? Second thing is .net provide very good debug feature. Is java has this type of feature? Can anyone please elaborate similarities between java and .net developement so that I can start practice application...
Also what is the added advantage of using sturts, spring and hibernate like frameworks in java? | 4 |
4,239,194 | 11/21/2010 17:33:27 | 500,730 | 11/08/2010 13:48:36 | 1 | 2 | EntityFramework Sinlge connection string | I m beginner with EF,and my question is is there any way to use one connection string with multiple models.Because my application could have 50 models and it would be funny to change conn string in config 50 times.
Thank you... | entity-framework-4 | null | null | null | null | null | open | EntityFramework Sinlge connection string
===
I m beginner with EF,and my question is is there any way to use one connection string with multiple models.Because my application could have 50 models and it would be funny to change conn string in config 50 times.
Thank you... | 0 |
8,204,059 | 11/20/2011 19:29:22 | 556,868 | 12/29/2010 07:47:02 | 157 | 3 | About rootViewController(s) | > Assigning a view controller to this property (either programmatically
> or using Interface Builder) installs the view controller’s view as the
> content view of the window.
The above quote is from the UIWindow's reference. My question is about the particular phase :
> "installs the view controller’s view as the
> content view of the window"
What does exactly content view refer to ?
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIView_Class/UIView/UIView.html#//apple_ref/doc/c_ref/UIView | iphone | cocoa-touch | null | null | null | null | open | About rootViewController(s)
===
> Assigning a view controller to this property (either programmatically
> or using Interface Builder) installs the view controller’s view as the
> content view of the window.
The above quote is from the UIWindow's reference. My question is about the particular phase :
> "installs the view controller’s view as the
> content view of the window"
What does exactly content view refer to ?
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIView_Class/UIView/UIView.html#//apple_ref/doc/c_ref/UIView | 0 |
11,749,659 | 07/31/2012 22:02:04 | 1,492,572 | 06/30/2012 04:56:14 | 6 | 0 | What is the best way to create Java apps Web? |
After to enter in the world Java Web. I'm facing the big amount of understand for to pass method and objects, for my jsp e/or html.
I'm to learn an book that me has this info, however, I think that is very difficult.
For instance, if I want to pass the object for my jsp, I have to do:
request.setAttribute("objectName", info)
JSP:
${objectName}
Knowing that this work only with servlet. In fact , all that I want to pass my jsp, I have of to use the request.setAttribute. In other words have that to use always servlet for that.
A another example, would:
If I create another standard class, without to use servlet:
public void nameMethod() {
instructions here
}
If I want to pass the instructions of the method for my jsp, I have to create a new instance on my servlet and to use the method request.setAttribute. I cannot to use the method request.setAttribute on my class java standard. Without to speak that for my servlet run my code, the user have of do a request.
There another ways to create apps Java for Web ?
| java | servlets | null | null | null | 08/01/2012 13:12:24 | not a real question | What is the best way to create Java apps Web?
===
After to enter in the world Java Web. I'm facing the big amount of understand for to pass method and objects, for my jsp e/or html.
I'm to learn an book that me has this info, however, I think that is very difficult.
For instance, if I want to pass the object for my jsp, I have to do:
request.setAttribute("objectName", info)
JSP:
${objectName}
Knowing that this work only with servlet. In fact , all that I want to pass my jsp, I have of to use the request.setAttribute. In other words have that to use always servlet for that.
A another example, would:
If I create another standard class, without to use servlet:
public void nameMethod() {
instructions here
}
If I want to pass the instructions of the method for my jsp, I have to create a new instance on my servlet and to use the method request.setAttribute. I cannot to use the method request.setAttribute on my class java standard. Without to speak that for my servlet run my code, the user have of do a request.
There another ways to create apps Java for Web ?
| 1 |
815,528 | 05/02/2009 20:17:58 | 61,639 | 02/02/2009 19:03:45 | 269 | 24 | How to answer the interview question: What is a singleton and how would you use one? | I've read the questions on S.O. regarding Singleton and just watched an hour long google tech talk. As far as I can tell, the consensus in the OO world seems to be that singletons are more of an anti-pattern rather than a useful design pattern.
That said, I am interviewing these days and the question comes up a lot--what is a singleton, and how would you use it?
What is the best way to answer this question? Should I simply describe the design pattern and then say the only acceptable use I've heard of is for logging, and that it is often mis-used for global state?
| design | design-patterns | singleton | architecture | null | 12/03/2011 04:49:07 | not constructive | How to answer the interview question: What is a singleton and how would you use one?
===
I've read the questions on S.O. regarding Singleton and just watched an hour long google tech talk. As far as I can tell, the consensus in the OO world seems to be that singletons are more of an anti-pattern rather than a useful design pattern.
That said, I am interviewing these days and the question comes up a lot--what is a singleton, and how would you use it?
What is the best way to answer this question? Should I simply describe the design pattern and then say the only acceptable use I've heard of is for logging, and that it is often mis-used for global state?
| 4 |
4,279,643 | 11/25/2010 17:38:40 | 506,783 | 11/13/2010 15:03:43 | 16 | 2 | language vs locale for date-time formatting on ios | I noted that some apps change date-time formatting with the locale changing and not with the language changing, but also viceversa.
What is the suggested way to localize date-time? According locale or language?
Fran | datetime | ios | localization | language | date-formatting | null | open | language vs locale for date-time formatting on ios
===
I noted that some apps change date-time formatting with the locale changing and not with the language changing, but also viceversa.
What is the suggested way to localize date-time? According locale or language?
Fran | 0 |
7,587,442 | 09/28/2011 17:58:00 | 120,747 | 06/10/2009 18:13:27 | 49 | 0 | pragmatic cross platform (and very fast to make it - actually - work) "throwaway" code: which language/tools? | my development style brings me to write a lot of **throw-away "assisting" code**,
whether for automatic generation of code parts, semi-automated testing, and generally to build dummies, prototypes or temporary "sparring partners" for the main development; **I know I'm not the only one...**
since I frequently work both under windows and Unicies, I'd like to non-exclusively focus on a **single "swiss army knife"** tool that can work in both the environments with limited differences, that would allow me to do usual stuff like **text parsing, db access, sockets, nontrivial filesystem and process manipulation**
until now under unix I've used a bit of perl and massive amounts of shell scripts, but the latter are a bit limited and perl... despite being very capable and having modules for an incredible array of duties, sincerely I find it too "hostile" *for me* for something that goes beyond 100 lines of code.
***what would you suggest?***
scripting is not a requirement, it would be ok to use more static-styled languages IF it makes development faster (getting programs to actually do their work and possibly in a **human readable state**) and **if it doesn't become nightmarish to handle errors/exception and to adapt to dynamic environments** (e.g. I don't like to hardwire data /db table structure in my code, especially by hand).
I've been intrigued by **python, ruby, but maybe groovy** (with its ability to access the huge class library and his compact syntax) or something else is better suited
thanks a lot in advance!
(meanwhile, on a completely different note, **scala** looks really tempting just for the cleanliness of it, but that's - probably - a completely different story, unless you tell me the opposite...?)
| scripting | filesystems | processes | prototyping | pragmatic | 09/29/2011 10:30:09 | not constructive | pragmatic cross platform (and very fast to make it - actually - work) "throwaway" code: which language/tools?
===
my development style brings me to write a lot of **throw-away "assisting" code**,
whether for automatic generation of code parts, semi-automated testing, and generally to build dummies, prototypes or temporary "sparring partners" for the main development; **I know I'm not the only one...**
since I frequently work both under windows and Unicies, I'd like to non-exclusively focus on a **single "swiss army knife"** tool that can work in both the environments with limited differences, that would allow me to do usual stuff like **text parsing, db access, sockets, nontrivial filesystem and process manipulation**
until now under unix I've used a bit of perl and massive amounts of shell scripts, but the latter are a bit limited and perl... despite being very capable and having modules for an incredible array of duties, sincerely I find it too "hostile" *for me* for something that goes beyond 100 lines of code.
***what would you suggest?***
scripting is not a requirement, it would be ok to use more static-styled languages IF it makes development faster (getting programs to actually do their work and possibly in a **human readable state**) and **if it doesn't become nightmarish to handle errors/exception and to adapt to dynamic environments** (e.g. I don't like to hardwire data /db table structure in my code, especially by hand).
I've been intrigued by **python, ruby, but maybe groovy** (with its ability to access the huge class library and his compact syntax) or something else is better suited
thanks a lot in advance!
(meanwhile, on a completely different note, **scala** looks really tempting just for the cleanliness of it, but that's - probably - a completely different story, unless you tell me the opposite...?)
| 4 |
9,060,521 | 01/30/2012 07:13:16 | 1,177,540 | 01/30/2012 07:09:48 | 1 | 0 | How to open microsoft documents using android code? | I want to microsoft document from my applicaton any1 have idea about this.
| android | android-intent | null | null | null | 02/02/2012 21:53:12 | not a real question | How to open microsoft documents using android code?
===
I want to microsoft document from my applicaton any1 have idea about this.
| 1 |
9,377,960 | 02/21/2012 12:53:58 | 357,189 | 06/03/2010 07:13:00 | 1,480 | 24 | MySQL - selecting near a spatial point | I've based my query below to select points near a spatial point called `point` on the other <a href="http://stackoverflow.com/questions/1006654/fastest-distance-lookup-given-latitude-longitude">SO solution</a>, but I've not been able to get it to work, for the past few hours, and I'm a bit edgy now...
My table `lastcrawl` has a simple schema:
<pre>
id (primary int, autoinc)
point (spatial POINT)
</pre>
(Added the spatial key via `ALTER TABLE lastcrawl ADD SPATIAL INDEX(point);`)
<pre>
$query = sprintf("SELECT * FROM lastcrawl WHERE
MBRContains(LineFromText(CONCAT(
'('
, %F + 0.0005 * ( 111.1 / cos(%F))
, ' '
, %F + 0.0005 / 111.1
, ','
, %F - 0.0005 / ( 111.1 / cos(%F))
, ' '
, %F - 0.0005 / 111.1
, ')' )
,point)",date('Y-m-d H:i:s',$lastdate),$crawl,
$lng,$lng,$lat,$lng,$lat,$lat);
$result = mysql_query($query) or die (mysql_error());
</pre>
I've successfully inserted a few rows via:
`$query = sprintf("INSERT INTO lastcrawl (point) VALUES( GeomFromText( 'POINT(%F %F)' ))",$lat,$lng);`
But, I'm just not able to query the nearest points for a non-null result set..
----
After inserting `$lat=40, $lng=-100`, trying to query this returns nothing as well (so, not even exact coordinates match):
`SELECT * FROM lastcrawl WHERE MBRContains(LineFromText(CONCAT( '(' , -100.000000 + 0.0005 * ( 111.1 / cos(-100.000000)) , ' ' , 40.000000 + 0.0005 / 111.1 , ',' , -100.000000 - 0.0005 / ( 111.1 / cos(40.000000)) , ' ' , 40.000000 - 0.0005 / 111.1 , ')' )) ,point)` | mysql | geolocation | geospatial | spatial | null | null | open | MySQL - selecting near a spatial point
===
I've based my query below to select points near a spatial point called `point` on the other <a href="http://stackoverflow.com/questions/1006654/fastest-distance-lookup-given-latitude-longitude">SO solution</a>, but I've not been able to get it to work, for the past few hours, and I'm a bit edgy now...
My table `lastcrawl` has a simple schema:
<pre>
id (primary int, autoinc)
point (spatial POINT)
</pre>
(Added the spatial key via `ALTER TABLE lastcrawl ADD SPATIAL INDEX(point);`)
<pre>
$query = sprintf("SELECT * FROM lastcrawl WHERE
MBRContains(LineFromText(CONCAT(
'('
, %F + 0.0005 * ( 111.1 / cos(%F))
, ' '
, %F + 0.0005 / 111.1
, ','
, %F - 0.0005 / ( 111.1 / cos(%F))
, ' '
, %F - 0.0005 / 111.1
, ')' )
,point)",date('Y-m-d H:i:s',$lastdate),$crawl,
$lng,$lng,$lat,$lng,$lat,$lat);
$result = mysql_query($query) or die (mysql_error());
</pre>
I've successfully inserted a few rows via:
`$query = sprintf("INSERT INTO lastcrawl (point) VALUES( GeomFromText( 'POINT(%F %F)' ))",$lat,$lng);`
But, I'm just not able to query the nearest points for a non-null result set..
----
After inserting `$lat=40, $lng=-100`, trying to query this returns nothing as well (so, not even exact coordinates match):
`SELECT * FROM lastcrawl WHERE MBRContains(LineFromText(CONCAT( '(' , -100.000000 + 0.0005 * ( 111.1 / cos(-100.000000)) , ' ' , 40.000000 + 0.0005 / 111.1 , ',' , -100.000000 - 0.0005 / ( 111.1 / cos(40.000000)) , ' ' , 40.000000 - 0.0005 / 111.1 , ')' )) ,point)` | 0 |
8,638,545 | 12/26/2011 19:25:04 | 1,115,430 | 12/25/2011 16:12:54 | 10 | 0 | conditional remove table row on jQuery | I have some table
<table>
<tr class="trclass">
<td class ="tdc">
<img src="/images/products/nophoto_s.jpg">
</td>
</tr>
</table>
How to remove table row if img src tag not include nophoto_s.jpg ?
| jquery | table | null | null | null | null | open | conditional remove table row on jQuery
===
I have some table
<table>
<tr class="trclass">
<td class ="tdc">
<img src="/images/products/nophoto_s.jpg">
</td>
</tr>
</table>
How to remove table row if img src tag not include nophoto_s.jpg ?
| 0 |
11,473,737 | 07/13/2012 15:38:02 | 1,362,735 | 04/28/2012 10:29:42 | 71 | 10 | Error in opening an Access database in python | I am a new to python programming and i want to write a python program to read and write data to and from the database.
The connection code is as follows:
DNS='catalog'
DRV = '{Microsoft Access Driver (*.mdb)}'
conn = pyodbc.connect('DRIVER=%s;DSN=%s;' % (DRV,DNS))
catalog is the DSN name.
I am am getting the following error:
Traceback (most recent call last):
File "C:\Python27\exampes\xxx.py", line 8, in <module>
conn = pyodbc.connect('DRIVER=%s;DSN=%s;' % (DRV,DNS))
Error: ('01000', "[01000] [Microsoft][ODBC Microsoft Access Driver]General Warning Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x12b4 Thread 0x1544 DBC 0x567ea4 Jet'. (1) (SQLDriverConnect);
[01000] [Microsoft][ODBC Microsoft Access Driver]General Warning Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x12b4 Thread 0x1544 DBC 0x567ea4 Jet'. (1)"
Can anyone please help me..? | python | database | windows | ms-access | pyodbc | null | open | Error in opening an Access database in python
===
I am a new to python programming and i want to write a python program to read and write data to and from the database.
The connection code is as follows:
DNS='catalog'
DRV = '{Microsoft Access Driver (*.mdb)}'
conn = pyodbc.connect('DRIVER=%s;DSN=%s;' % (DRV,DNS))
catalog is the DSN name.
I am am getting the following error:
Traceback (most recent call last):
File "C:\Python27\exampes\xxx.py", line 8, in <module>
conn = pyodbc.connect('DRIVER=%s;DSN=%s;' % (DRV,DNS))
Error: ('01000', "[01000] [Microsoft][ODBC Microsoft Access Driver]General Warning Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x12b4 Thread 0x1544 DBC 0x567ea4 Jet'. (1) (SQLDriverConnect);
[01000] [Microsoft][ODBC Microsoft Access Driver]General Warning Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x12b4 Thread 0x1544 DBC 0x567ea4 Jet'. (1)"
Can anyone please help me..? | 0 |
6,426,412 | 06/21/2011 13:51:41 | 311,744 | 04/08/2010 09:02:45 | 63 | 5 | Migrate oscommerce to prestashop | What is the best way to migrate an oscommerce database to a prestashop database ? I saw the prestashop module [oscommerce 2 prestashop][1]. Does it work fine ? Are they any other free alternative ? Thanks
[1]: http://addons.prestashop.com/fr/outils-de-migration/436-outils-dadministration-oscommerce-2-prestashop.html | database | migration | oscommerce | prestashop | null | 02/02/2012 14:07:24 | off topic | Migrate oscommerce to prestashop
===
What is the best way to migrate an oscommerce database to a prestashop database ? I saw the prestashop module [oscommerce 2 prestashop][1]. Does it work fine ? Are they any other free alternative ? Thanks
[1]: http://addons.prestashop.com/fr/outils-de-migration/436-outils-dadministration-oscommerce-2-prestashop.html | 2 |
5,887,316 | 05/04/2011 17:19:27 | 381,517 | 07/01/2010 20:43:44 | 134 | 8 | Trouble with Selenium 2 Remote WebDriver and C# - Why won't my dictionary work? | First, a caveat: I'm brand new to C#, so please forgive me, if this is a ridiculously simple question. I'm converting some Selenium Python tests to C#, and I'm just getting started.
So, I have the following example in a test project, trying to get Selenium 2 working in C#:
public class Selenium2RemoteWebDriver
{
static void Main(string[] args)
{
var pltfm = new Platform(PlatformType.Windows);
var environment = new Dictionary<string, object>
{
{"username", "my-sauce-name"},
{"accessKey", "my-sauce-key"},
{"browserName", "iexplore"},
{"version", "8"},
{"platform", "Windows"},
{"name","Hello, Sauce!"}
};
//foreach (var pair in environment)
//{
// Console.WriteLine("Key: {0}, Value: {1}", pair.Key, pair.Value);
//}
var capabilities = new DesiredCapabilities(environment);
var driver = new RemoteWebDriver(
new Uri("http://my-sauce-id:my-sauce-key@ondemand.saucelabs.com:80/wd/hub"), capabilities);
driver.Navigate().GoToUrl("http://www.google.com");
var search = driver.FindElement(By.Name("q"));
search.SendKeys("Hello, WebDriver");
search.Submit();
Console.WriteLine(driver.Title);
driver.Quit();
}
}
When I run this test, I get the following message:
<pre>Test 'T:Selenium2_Testing.Selenium2RemoteWebDriver' failed: The given key was not present in the dictionary.</pre>
But when I uncomment the print statements, I can see the dictionary is complete:
<pre>Key: username, Value: my-sauce-id
Key: accessKey, Value: my-sauce-key
Key: browserName, Value: iexplore
Key: version, Value: 8
Key: platform, Value: Windows
Key: name, Value: Hello, Sauce!</pre>
What am I doing wrong?
| c# | webdriver | selenium2 | dictionaries | null | null | open | Trouble with Selenium 2 Remote WebDriver and C# - Why won't my dictionary work?
===
First, a caveat: I'm brand new to C#, so please forgive me, if this is a ridiculously simple question. I'm converting some Selenium Python tests to C#, and I'm just getting started.
So, I have the following example in a test project, trying to get Selenium 2 working in C#:
public class Selenium2RemoteWebDriver
{
static void Main(string[] args)
{
var pltfm = new Platform(PlatformType.Windows);
var environment = new Dictionary<string, object>
{
{"username", "my-sauce-name"},
{"accessKey", "my-sauce-key"},
{"browserName", "iexplore"},
{"version", "8"},
{"platform", "Windows"},
{"name","Hello, Sauce!"}
};
//foreach (var pair in environment)
//{
// Console.WriteLine("Key: {0}, Value: {1}", pair.Key, pair.Value);
//}
var capabilities = new DesiredCapabilities(environment);
var driver = new RemoteWebDriver(
new Uri("http://my-sauce-id:my-sauce-key@ondemand.saucelabs.com:80/wd/hub"), capabilities);
driver.Navigate().GoToUrl("http://www.google.com");
var search = driver.FindElement(By.Name("q"));
search.SendKeys("Hello, WebDriver");
search.Submit();
Console.WriteLine(driver.Title);
driver.Quit();
}
}
When I run this test, I get the following message:
<pre>Test 'T:Selenium2_Testing.Selenium2RemoteWebDriver' failed: The given key was not present in the dictionary.</pre>
But when I uncomment the print statements, I can see the dictionary is complete:
<pre>Key: username, Value: my-sauce-id
Key: accessKey, Value: my-sauce-key
Key: browserName, Value: iexplore
Key: version, Value: 8
Key: platform, Value: Windows
Key: name, Value: Hello, Sauce!</pre>
What am I doing wrong?
| 0 |
3,931,487 | 10/14/2010 08:46:43 | 318,249 | 04/16/2010 06:52:58 | 219 | 17 | is there any other way to view youtube video on delphi? | i see the http://www.delphiflash.com/demo-youtube-video on how to load flash video on delphi but its not for free. is there any other way?
like html then TWebBroeser?
sampleVideo.html //this will not work on TwebBrowser is there any other way?
<html>
<head>
</style>
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
</head>
<body>
<object width="640" height="390">
<param name="movie" value="http://www.youtube.com/v/L7NWdxFAHdY&hl=en_US&feature=player_embedded&version=3">
</param><param name="allowFullScreen" value="true">
</param><param name="allowScriptAccess" value="always">
</param><embed src="http://www.youtube.com/v/L7NWdxFAHdY&hl=en_US&feature=player_embedded&version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="390">
</embed></object>
</body>
</html> | delphi | video | activex | youtube | flash-player | null | open | is there any other way to view youtube video on delphi?
===
i see the http://www.delphiflash.com/demo-youtube-video on how to load flash video on delphi but its not for free. is there any other way?
like html then TWebBroeser?
sampleVideo.html //this will not work on TwebBrowser is there any other way?
<html>
<head>
</style>
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
</head>
<body>
<object width="640" height="390">
<param name="movie" value="http://www.youtube.com/v/L7NWdxFAHdY&hl=en_US&feature=player_embedded&version=3">
</param><param name="allowFullScreen" value="true">
</param><param name="allowScriptAccess" value="always">
</param><embed src="http://www.youtube.com/v/L7NWdxFAHdY&hl=en_US&feature=player_embedded&version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="390">
</embed></object>
</body>
</html> | 0 |
11,339,455 | 07/05/2012 07:14:41 | 1,144,882 | 01/12/2012 06:58:03 | 17 | 2 | How to pass a string from .mxml to .as class in adobe air flex? | I want to pass a string from .mxml to a .as class..For that i tried using[Bindable]..But i
get only null value.How can i get the string from mxml?
I have given the link to show u what i have tried:
http://192.150.16.67/devnet/flex/articles/databinding_pitfalls.html
| flex | air | adobe | null | null | null | open | How to pass a string from .mxml to .as class in adobe air flex?
===
I want to pass a string from .mxml to a .as class..For that i tried using[Bindable]..But i
get only null value.How can i get the string from mxml?
I have given the link to show u what i have tried:
http://192.150.16.67/devnet/flex/articles/databinding_pitfalls.html
| 0 |
4,904,561 | 02/05/2011 01:40:13 | 214,365 | 11/19/2009 06:45:06 | 694 | 32 | SSL Certificates - differences |
How come the prices on SLL certificates are so drastically varied? GoDaddy and Namecheap for example have them starting at $9 and $49 respectively. Then Verisign has them starting at $1500!
What's the difference? That's a huge price difference.
I have an application where each user account is on it's own subdomain, and so I need a certificate that covers them all.
Thoughts, suggestions?
| ssl | ssl-certificate | null | null | null | 02/05/2011 06:00:55 | off topic | SSL Certificates - differences
===
How come the prices on SLL certificates are so drastically varied? GoDaddy and Namecheap for example have them starting at $9 and $49 respectively. Then Verisign has them starting at $1500!
What's the difference? That's a huge price difference.
I have an application where each user account is on it's own subdomain, and so I need a certificate that covers them all.
Thoughts, suggestions?
| 2 |
5,517,156 | 04/01/2011 18:11:11 | 686,604 | 03/31/2011 22:18:17 | 1 | 0 | PHP to Java communication | I want to use PHP to communicate with a java using shared database to communicate, please help me with sample code or logic.
Thank you. | java | php | communicate | null | null | 04/01/2011 20:49:15 | not a real question | PHP to Java communication
===
I want to use PHP to communicate with a java using shared database to communicate, please help me with sample code or logic.
Thank you. | 1 |
8,361,844 | 12/02/2011 19:54:53 | 485,870 | 10/24/2010 21:45:38 | 128 | 6 | Suggest a project I can use to study good software architecture | I am close to completing Zed Shaw's Learn Python The Hard Way. I also know that the second best thing to programming excellence apart from actually getting hands on and working on a project is to study other peoples code. Thanks to all the repositories out there, there is no shortage of projects that one can download and study.
However its also fair to say that not all projects are of the same quality in terms of design and quality of code. I have a Phd in writing bad programmes and therefore will not want to re-educate myself.
May be you have been impressed with a piece of python application (design and code quality wise) when you started out learning. In that case I will like to know so as to benefit from it myself.
| python | null | null | null | null | 12/02/2011 22:59:14 | off topic | Suggest a project I can use to study good software architecture
===
I am close to completing Zed Shaw's Learn Python The Hard Way. I also know that the second best thing to programming excellence apart from actually getting hands on and working on a project is to study other peoples code. Thanks to all the repositories out there, there is no shortage of projects that one can download and study.
However its also fair to say that not all projects are of the same quality in terms of design and quality of code. I have a Phd in writing bad programmes and therefore will not want to re-educate myself.
May be you have been impressed with a piece of python application (design and code quality wise) when you started out learning. In that case I will like to know so as to benefit from it myself.
| 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.