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
84,404
09/17/2008 15:22:38
6,839
09/15/2008 12:42:27
11
2
Using Visual Studio's 'cl' from a normal command line
Visual Studio 2003 and 2005 (and perhaps 2008 for all I know) require the command line user to run in the 'Visual Studio Command Prompt'. When starting this command prompt it sets various environment variables that the C++ compiler, cl, uses when compiling. Is there an easy way to run cl without having to run from within the Visual Studio command prompt?
visual-studio
command-line
null
null
null
null
open
Using Visual Studio's 'cl' from a normal command line === Visual Studio 2003 and 2005 (and perhaps 2008 for all I know) require the command line user to run in the 'Visual Studio Command Prompt'. When starting this command prompt it sets various environment variables that the C++ compiler, cl, uses when compiling. Is there an easy way to run cl without having to run from within the Visual Studio command prompt?
0
9,057,720
01/29/2012 23:21:53
195,652
10/23/2009 21:57:30
526
14
jQuery UI datepicker - month viewer
I saw this feature in on a mootools plugins here: http://dev.base86.com/scripts/mootools_javascript_datepicker_calendar_eightysix.html What happens is that when I click the month "January 2012", the calendar zooms out to show all the months, the left and right arrows navigate between years, and I can zoom into any month by clicking it. How can this be done with jQuery UI datepicker?
jquery
jquery-ui
jquery-ui-datepicker
null
null
null
open
jQuery UI datepicker - month viewer === I saw this feature in on a mootools plugins here: http://dev.base86.com/scripts/mootools_javascript_datepicker_calendar_eightysix.html What happens is that when I click the month "January 2012", the calendar zooms out to show all the months, the left and right arrows navigate between years, and I can zoom into any month by clicking it. How can this be done with jQuery UI datepicker?
0
4,641,012
01/09/2011 18:44:18
559,142
12/31/2010 09:33:03
27
2
FileInput Help/Advice
I have a fileinput class. It has a string parameter in the constructor to load the filename supplied. However it just exits if the file doesn't exist. I would like it to output a message if the file doesn't exist - but not sure how.... Here is the class: public class FileInput extends Input { /** * Construct <code>FileInput</code> object given a file name. */ public FileInput(final String fileName) { try { scanner = new Scanner(new FileInputStream(fileName)); } catch (FileNotFoundException e) { System.err.println("File " + fileName + " could not be found."); System.exit(1); } } /** * Construct <code>FileInput</code> object given a file name. */ public FileInput(final FileInputStream fileStream) { super(fileStream); } } And its implementation: private void loadFamilyTree() { out.print("Enter file name: "); String fileName = in.nextLine(); FileInput input = new FileInput(fileName); family.load(input); input.close(); }
java
file
file-io
input
null
null
open
FileInput Help/Advice === I have a fileinput class. It has a string parameter in the constructor to load the filename supplied. However it just exits if the file doesn't exist. I would like it to output a message if the file doesn't exist - but not sure how.... Here is the class: public class FileInput extends Input { /** * Construct <code>FileInput</code> object given a file name. */ public FileInput(final String fileName) { try { scanner = new Scanner(new FileInputStream(fileName)); } catch (FileNotFoundException e) { System.err.println("File " + fileName + " could not be found."); System.exit(1); } } /** * Construct <code>FileInput</code> object given a file name. */ public FileInput(final FileInputStream fileStream) { super(fileStream); } } And its implementation: private void loadFamilyTree() { out.print("Enter file name: "); String fileName = in.nextLine(); FileInput input = new FileInput(fileName); family.load(input); input.close(); }
0
7,707,315
10/09/2011 23:37:34
986,876
10/09/2011 23:34:40
1
0
Function C++ to C#
I have a function in c + + that returns pointer values​​: fPosFirst ( int &aId, char *aNname, char *aDirectory ); But I have to pass to c#, I wish someone could help me.
c#
.net
c++
null
null
null
open
Function C++ to C# === I have a function in c + + that returns pointer values​​: fPosFirst ( int &aId, char *aNname, char *aDirectory ); But I have to pass to c#, I wish someone could help me.
0
5,564,192
04/06/2011 09:28:33
694,538
04/06/2011 09:28:33
1
0
grid view errors
nw am doing one example with grid veiw control in c#.net....then i got some errors like Line 19: " OracleConnection con = new OracleConnection(ConfigurationManager.ConnectionStrings["ocon"].ConnectionString); "
.net
null
null
null
null
04/06/2011 11:06:06
not a real question
grid view errors === nw am doing one example with grid veiw control in c#.net....then i got some errors like Line 19: " OracleConnection con = new OracleConnection(ConfigurationManager.ConnectionStrings["ocon"].ConnectionString); "
1
4,414,904
12/11/2010 02:39:50
538,594
12/11/2010 02:39:50
1
0
Learn COBOL or VBA?
I am a college student currently trying to decide courses for my next semester, so far, my program has mainly only had Java and .NET courses to offer. I am now have a choice between COBOL and VBA. I have researched both languages and am somewhat confused, as I'm not sure how useful it is to learn VBA (and I think I could likely learn it later on by myself), while COBOL, though obviously starting to disappear supposedly has a niche-market value... Mainly wondering what people's thoughts are on which will be more useful to have as far as the marketplace goes... how hard is it to self-teach VBA? how quickly are these COBOL jobs disappearing... etc. Any info would be greatly appreciated thanks very much
vba
cobol
null
null
null
02/14/2012 02:19:20
off topic
Learn COBOL or VBA? === I am a college student currently trying to decide courses for my next semester, so far, my program has mainly only had Java and .NET courses to offer. I am now have a choice between COBOL and VBA. I have researched both languages and am somewhat confused, as I'm not sure how useful it is to learn VBA (and I think I could likely learn it later on by myself), while COBOL, though obviously starting to disappear supposedly has a niche-market value... Mainly wondering what people's thoughts are on which will be more useful to have as far as the marketplace goes... how hard is it to self-teach VBA? how quickly are these COBOL jobs disappearing... etc. Any info would be greatly appreciated thanks very much
2
10,468,772
05/06/2012 06:54:31
961,125
09/23/2011 12:17:07
154
31
Multi-threading in javascipt
Is there any way to implement a multithreading execution in Javascript. I am implementing a pagination in my application, with a target of the minimum waiting time for the user. Neither I want all the data to be brought to the client-side in one go, nor do I want to make a server as well as a DB hit on every "next/previous" button clicked. So I want the browser to create a request and update my data list, while the front end user has not reached the last page. If any one who has implemented this, then please suggest me....
javascript
ajax
multithreading
json
null
null
open
Multi-threading in javascipt === Is there any way to implement a multithreading execution in Javascript. I am implementing a pagination in my application, with a target of the minimum waiting time for the user. Neither I want all the data to be brought to the client-side in one go, nor do I want to make a server as well as a DB hit on every "next/previous" button clicked. So I want the browser to create a request and update my data list, while the front end user has not reached the last page. If any one who has implemented this, then please suggest me....
0
7,606,348
09/30/2011 05:40:36
719,040
04/21/2011 13:35:41
6
0
Display SplashScreen in LandScape mode in ipad
I am trying to display my splash screen in landscape mode i have set its name to Default-Landscape.png also i have specified the launch image in info.plist as well as the supported interface orientation key is set to lanscape mode in the plist but still the image get displayed in potrait even though the ipad orientation is in landscape mode
ipad
landscape
splash-screen
info.plist
null
null
open
Display SplashScreen in LandScape mode in ipad === I am trying to display my splash screen in landscape mode i have set its name to Default-Landscape.png also i have specified the launch image in info.plist as well as the supported interface orientation key is set to lanscape mode in the plist but still the image get displayed in potrait even though the ipad orientation is in landscape mode
0
1,577,628
10/16/2009 11:53:21
56,717
01/19/2009 15:17:06
39
4
Slideshow plus pop-up Bubble conflict (jQuery)
I'm working with a Slideshow, and I'd like to give to the items in it a smooth pop-up bubble, to give some more info about them on mouseover. The thing is, when I use the nice system that I found here in [jQuery for designers][1], combined with [jCarousel Lite][2], it seems to be a conflict. I got both versions working OK as separate things, the problem appears when I mix them, and I wouldn't know where I should start to check. <img src="http://paragraphe.org/stackoverflowdemos/slide-and-bubble-standalone/image.png"> What I got by now : [Slide and bubble, separated, working][4] [Slide and bubble incorporated, not working][5] Thanks for any input, [1]: http://jqueryfordesigners.com/coda-popup-bubbles/ [2]: http://www.gmarwaha.com/jquery/jcarousellite/ [3]: http://paragraphe.org/stackoverflowdemos/slide-and-bubble-standalone/image.png [4]: http://paragraphe.org/stackoverflowdemos/slide-and-bubble-standalone/ [5]: http://paragraphe.org/stackoverflowdemos/slide-and-bubble-mix/
jquery
jcarousel
bubble
null
null
null
open
Slideshow plus pop-up Bubble conflict (jQuery) === I'm working with a Slideshow, and I'd like to give to the items in it a smooth pop-up bubble, to give some more info about them on mouseover. The thing is, when I use the nice system that I found here in [jQuery for designers][1], combined with [jCarousel Lite][2], it seems to be a conflict. I got both versions working OK as separate things, the problem appears when I mix them, and I wouldn't know where I should start to check. <img src="http://paragraphe.org/stackoverflowdemos/slide-and-bubble-standalone/image.png"> What I got by now : [Slide and bubble, separated, working][4] [Slide and bubble incorporated, not working][5] Thanks for any input, [1]: http://jqueryfordesigners.com/coda-popup-bubbles/ [2]: http://www.gmarwaha.com/jquery/jcarousellite/ [3]: http://paragraphe.org/stackoverflowdemos/slide-and-bubble-standalone/image.png [4]: http://paragraphe.org/stackoverflowdemos/slide-and-bubble-standalone/ [5]: http://paragraphe.org/stackoverflowdemos/slide-and-bubble-mix/
0
11,412,282
07/10/2012 11:22:56
1,362,555
04/28/2012 07:46:48
22
0
How to set the startup activity in android programatically
For the first time use of the application I will show the user with a login screen which i will defined in manifest file as "android.intent.action.MAIN". After a successful login, each time application starts I want the user to see the home screen. Please let me know how i can achieve this. Also please let me know is there any way I can change the MAIN activity programmatically after a successful login, So that I can redirect to the home screen. Thanks, Vijay
android
login
android-manifest
homescreen
app-startup
07/10/2012 12:04:05
not a real question
How to set the startup activity in android programatically === For the first time use of the application I will show the user with a login screen which i will defined in manifest file as "android.intent.action.MAIN". After a successful login, each time application starts I want the user to see the home screen. Please let me know how i can achieve this. Also please let me know is there any way I can change the MAIN activity programmatically after a successful login, So that I can redirect to the home screen. Thanks, Vijay
1
4,081,788
11/02/2010 20:26:01
472,168
10/11/2010 10:04:13
37
0
Call a function from an injected DLL
First off I would like to say, that I am not trying to hack a game. I am actually employed by the company whose process I am trying to inject. :) I would like to know how to call a function from an already injected DLL. So, I have successfully injected and loaded my DLL in the target using CreateRemoteThread(). Below you can see a snippet of the injection: private static bool Inject(Process pToBeInjected, string sDllPath,out string sError, out IntPtr hwnd, out IntPtr hLibModule) { IntPtr zeroPtr = (IntPtr)0; hLibModule = zeroPtr; IntPtr hProcess = NativeUtils.OpenProcess( (0x2 | 0x8 | 0x10 | 0x20 | 0x400), //create thread, query info, operation ,write, and read 1, (uint)pToBeInjected.Id); hwnd = hProcess; IntPtr loadLibH = NativeUtils.GetProcAddress( NativeUtils.GetModuleHandle("kernel32.dll"),"LoadLibraryA"); IntPtr dllAddress = NativeUtils.VirtualAllocEx( hProcess, (IntPtr)null, (IntPtr)sDllPath.Length, //520 bytes should be enough (uint)NativeUtils.AllocationType.Commit | (uint)NativeUtils.AllocationType.Reserve, (uint)NativeUtils.MemoryProtection.ExecuteReadWrite); byte[] bytes = CalcBytes(sDllPath); IntPtr ipTmp = IntPtr.Zero; NativeUtils.WriteProcessMemory( hProcess, dllAddress, bytes, (uint)bytes.Length, out ipTmp); IntPtr hThread = NativeUtils.CreateRemoteThread( hProcess, (IntPtr)null, (IntPtr)0, loadLibH, //handle to LoabLibrary function dllAddress,//Address of the dll in remote process 0, (IntPtr)null); uint retV= NativeUtils.WaitForSingleObject(hThread, NativeUtils.INFINITE_WAIT); bool exitR = NativeUtils.GetExitCodeThread(hThread, out hLibModule); return true; } Note: Error checking and freeing resources were removed for brevity, but rest assured I check all the pointers and free my resources. After the function above exits, I have a non-zero module handle to my DLL returned by LoadLibrary through `hLibModule`, meaning that the DLL was loaded correctly. My DLL is a C# class library meant to show a message box (for testing). I have tried testing the function and the message box pops up. It looks like this: public class Class1 { public static void ThreadFunc(IntPtr param ) { IntPtr libPtr = LoadLibrary("user32.dll"); MessageBox(IntPtr.Zero, "I'm ALIVE!!!!", "InjectedDll", 0); } [DllImport("kernel32", SetLastError = true)] public static extern IntPtr LoadLibrary(string lpFileName); [DllImport("user32.dll", CharSet = CharSet.Auto)] static extern int MessageBox(IntPtr hWnd, String text, String caption, int options); } I compile it from Visual Studio and the DLL appears in the Debug folder. I then pass the full path of my DLL to the injector. After injection into the target process, I don't know how to call my `ThreadFunc` from the injected DLL, so it never executes. I cannot use `GetProcAddress(hLibModule,"ThreadFunc")` since I am out of process, so the answer must lie into calling CreateRemoteThread() somehow. Also, I have read that DllMain is no longer allowed for .NET DLLs, so I cannot get any free execution that way either. Does anyone have any idea how to call a function from an injected DLL? Thank you in advance.
c#
.net
multithreading
dll-injection
null
null
open
Call a function from an injected DLL === First off I would like to say, that I am not trying to hack a game. I am actually employed by the company whose process I am trying to inject. :) I would like to know how to call a function from an already injected DLL. So, I have successfully injected and loaded my DLL in the target using CreateRemoteThread(). Below you can see a snippet of the injection: private static bool Inject(Process pToBeInjected, string sDllPath,out string sError, out IntPtr hwnd, out IntPtr hLibModule) { IntPtr zeroPtr = (IntPtr)0; hLibModule = zeroPtr; IntPtr hProcess = NativeUtils.OpenProcess( (0x2 | 0x8 | 0x10 | 0x20 | 0x400), //create thread, query info, operation ,write, and read 1, (uint)pToBeInjected.Id); hwnd = hProcess; IntPtr loadLibH = NativeUtils.GetProcAddress( NativeUtils.GetModuleHandle("kernel32.dll"),"LoadLibraryA"); IntPtr dllAddress = NativeUtils.VirtualAllocEx( hProcess, (IntPtr)null, (IntPtr)sDllPath.Length, //520 bytes should be enough (uint)NativeUtils.AllocationType.Commit | (uint)NativeUtils.AllocationType.Reserve, (uint)NativeUtils.MemoryProtection.ExecuteReadWrite); byte[] bytes = CalcBytes(sDllPath); IntPtr ipTmp = IntPtr.Zero; NativeUtils.WriteProcessMemory( hProcess, dllAddress, bytes, (uint)bytes.Length, out ipTmp); IntPtr hThread = NativeUtils.CreateRemoteThread( hProcess, (IntPtr)null, (IntPtr)0, loadLibH, //handle to LoabLibrary function dllAddress,//Address of the dll in remote process 0, (IntPtr)null); uint retV= NativeUtils.WaitForSingleObject(hThread, NativeUtils.INFINITE_WAIT); bool exitR = NativeUtils.GetExitCodeThread(hThread, out hLibModule); return true; } Note: Error checking and freeing resources were removed for brevity, but rest assured I check all the pointers and free my resources. After the function above exits, I have a non-zero module handle to my DLL returned by LoadLibrary through `hLibModule`, meaning that the DLL was loaded correctly. My DLL is a C# class library meant to show a message box (for testing). I have tried testing the function and the message box pops up. It looks like this: public class Class1 { public static void ThreadFunc(IntPtr param ) { IntPtr libPtr = LoadLibrary("user32.dll"); MessageBox(IntPtr.Zero, "I'm ALIVE!!!!", "InjectedDll", 0); } [DllImport("kernel32", SetLastError = true)] public static extern IntPtr LoadLibrary(string lpFileName); [DllImport("user32.dll", CharSet = CharSet.Auto)] static extern int MessageBox(IntPtr hWnd, String text, String caption, int options); } I compile it from Visual Studio and the DLL appears in the Debug folder. I then pass the full path of my DLL to the injector. After injection into the target process, I don't know how to call my `ThreadFunc` from the injected DLL, so it never executes. I cannot use `GetProcAddress(hLibModule,"ThreadFunc")` since I am out of process, so the answer must lie into calling CreateRemoteThread() somehow. Also, I have read that DllMain is no longer allowed for .NET DLLs, so I cannot get any free execution that way either. Does anyone have any idea how to call a function from an injected DLL? Thank you in advance.
0
2,141,564
01/26/2010 18:13:59
240,489
12/29/2009 21:37:40
1
0
Sort by date using acts_as_solr
I have gotten sorting working from my rails application using acts_as_solr for text fields, as seen below with Title. I am having problems getting it to work for date. My model has the following class Article < ActiveRecord::Base acts_as_solr :fields[:title, {:title_s=> :string}, {:created_at_d => :date}] def title_s self.title end def created_at_d self.created_at end The following is being sent to the solr server: path=/select params={wt=ruby&rows=10start=0&sort=created_at_d_d+asc&fl=pk_i,score&q=(+searchtext).......... The solr code Article.paginate_all_by_solr(searchString, :order=> "created_at_d asc", :page = page, :per_page => results_per_page, :total_entrieds => count) Is there something obvious I am doing wrong? I am not sure that the {:created_at_d => :date} in the model is the correct way to do this for dates.
solr
ruby
sorting
search
null
null
open
Sort by date using acts_as_solr === I have gotten sorting working from my rails application using acts_as_solr for text fields, as seen below with Title. I am having problems getting it to work for date. My model has the following class Article < ActiveRecord::Base acts_as_solr :fields[:title, {:title_s=> :string}, {:created_at_d => :date}] def title_s self.title end def created_at_d self.created_at end The following is being sent to the solr server: path=/select params={wt=ruby&rows=10start=0&sort=created_at_d_d+asc&fl=pk_i,score&q=(+searchtext).......... The solr code Article.paginate_all_by_solr(searchString, :order=> "created_at_d asc", :page = page, :per_page => results_per_page, :total_entrieds => count) Is there something obvious I am doing wrong? I am not sure that the {:created_at_d => :date} in the model is the correct way to do this for dates.
0
10,799,161
05/29/2012 12:28:07
1,157,687
01/19/2012 04:50:01
1
0
Battery related logs interrupting bluetooth communication
I have written a code which uses bluetooth communication in Jni, meanwhile I get below attached battery logs which interrupt my communication somehow.I just wanted to know what causes these logs.Any help is appreciated 05-29 11:23:19.400: INFO//system/bin/batteryd(1189): 6268023 v_bat 4.190 (4.187), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.187), level 100% (100%, 100%), state 8 05-29 11:23:19.400: INFO//system/bin/batteryd(1189): 6268023 v_bat 4.190 (4.187), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.187), level 100% (100%, 100%), state 8 05-29 11:23:21.400: INFO//system/bin/batteryd(1189): 6270023 v_bat 4.189 (4.175), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.175), level 100% (100%, 100%), state 8 05-29 11:23:21.400: INFO//system/bin/batteryd(1189): 6270023 v_bat 4.189 (4.175), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.175), level 100% (100%, 100%), state 8 05-29 11:23:23.400: INFO//system/bin/batteryd(1189): 6272023 v_bat 4.190 (4.199), i_supply 0.500, i_demand 0.218 => v_bat_idle 4.190 (4.199), level 100% (100%, 100%), state 8 05-29 11:23:23.400: INFO//system/bin/batteryd(1189): 6272023 v_bat 4.190 (4.199), i_supply 0.500, i_demand 0.218 => v_bat_idle 4.190 (4.199), level 100% (100%, 100%), state 8 05-29 11:23:25.400: INFO//system/bin/batteryd(1189): 6274024 v_bat 4.190 (4.187), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.187), level 100% (100%, 100%), state 8 05-29 11:23:25.400: INFO//system/bin/batteryd(1189): 6274024 v_bat 4.190 (4.187), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.187), level 100% (100%, 100%), state 8
android
android-ndk
null
null
null
null
open
Battery related logs interrupting bluetooth communication === I have written a code which uses bluetooth communication in Jni, meanwhile I get below attached battery logs which interrupt my communication somehow.I just wanted to know what causes these logs.Any help is appreciated 05-29 11:23:19.400: INFO//system/bin/batteryd(1189): 6268023 v_bat 4.190 (4.187), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.187), level 100% (100%, 100%), state 8 05-29 11:23:19.400: INFO//system/bin/batteryd(1189): 6268023 v_bat 4.190 (4.187), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.187), level 100% (100%, 100%), state 8 05-29 11:23:21.400: INFO//system/bin/batteryd(1189): 6270023 v_bat 4.189 (4.175), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.175), level 100% (100%, 100%), state 8 05-29 11:23:21.400: INFO//system/bin/batteryd(1189): 6270023 v_bat 4.189 (4.175), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.175), level 100% (100%, 100%), state 8 05-29 11:23:23.400: INFO//system/bin/batteryd(1189): 6272023 v_bat 4.190 (4.199), i_supply 0.500, i_demand 0.218 => v_bat_idle 4.190 (4.199), level 100% (100%, 100%), state 8 05-29 11:23:23.400: INFO//system/bin/batteryd(1189): 6272023 v_bat 4.190 (4.199), i_supply 0.500, i_demand 0.218 => v_bat_idle 4.190 (4.199), level 100% (100%, 100%), state 8 05-29 11:23:25.400: INFO//system/bin/batteryd(1189): 6274024 v_bat 4.190 (4.187), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.187), level 100% (100%, 100%), state 8 05-29 11:23:25.400: INFO//system/bin/batteryd(1189): 6274024 v_bat 4.190 (4.187), i_supply 0.500, i_demand 0.219 => v_bat_idle 4.190 (4.187), level 100% (100%, 100%), state 8
0
6,294,578
06/09/2011 14:37:24
683,710
03/30/2011 10:06:52
79
5
C++ Container of Non-Interleaved Stored Tuples
I'm looking for a variant of `std::vector` or `std::array` of **tuples**, where the tuple elements are placed ***non-interleaved*** into separate memory areas instead of interleaved as would be the case for, for example, a `std::vector<std::tuple<...>>`. The motivations for this is - Better ***control*** over ***alignment*** and in turn better performance for vector optimizations. - Prevents us from having to ***unpack*** data-elements when interfacing low-level CPU-GPU data-transfer-operations (such as an array of vertices and colors) in OpenGL. Iterators should construct and return a `boost::tuple<>` ***on-the-fly*** when dereferenced. I'm aware that not all STL-member functions could be supported efficiently in this container. Still I believe it could be made very STL-like anyway. Has anybody constructed such a table container already?
c++
table
boost
containers
memory-alignment
null
open
C++ Container of Non-Interleaved Stored Tuples === I'm looking for a variant of `std::vector` or `std::array` of **tuples**, where the tuple elements are placed ***non-interleaved*** into separate memory areas instead of interleaved as would be the case for, for example, a `std::vector<std::tuple<...>>`. The motivations for this is - Better ***control*** over ***alignment*** and in turn better performance for vector optimizations. - Prevents us from having to ***unpack*** data-elements when interfacing low-level CPU-GPU data-transfer-operations (such as an array of vertices and colors) in OpenGL. Iterators should construct and return a `boost::tuple<>` ***on-the-fly*** when dereferenced. I'm aware that not all STL-member functions could be supported efficiently in this container. Still I believe it could be made very STL-like anyway. Has anybody constructed such a table container already?
0
6,773,984
07/21/2011 09:28:54
573,759
01/13/2011 05:34:16
16
0
Best way to Windows application development using C# + WPF + MVVC + prism 4 ?
I am little bit new in **.Net + C# + WPF + MVVC + prism 4**. I am going to create one windows application using **C# and WPF.** I think it's good to using **MVVM + prism 4.** But be-four start to working, i want to know few think > 1. Which is **Best Project Solution Structure for C# + WPF + MVVC + > prism 4**. Can give some reference for this. > 2. Which is Best way to **create Project Solution Structure.** > 3. Which is Best Way for **Exception Handling** > 4. If any one know LinQ, **is LinQ suitable with WPF + MVVC + prism 4.** > Any LinQ extended library which help for development. > 5. Any **Existing or 3'rd party library** which help for **development** like > Microsoft Enterprise Library > 6. Any suggestions for different **Tool,Framework,Design Patterns.** > ...etc > 7. Any **Reference/Help site** links **Thanks In Advance**
c#
mvvm
prism
projects-and-solutions
null
07/21/2011 10:26:54
not constructive
Best way to Windows application development using C# + WPF + MVVC + prism 4 ? === I am little bit new in **.Net + C# + WPF + MVVC + prism 4**. I am going to create one windows application using **C# and WPF.** I think it's good to using **MVVM + prism 4.** But be-four start to working, i want to know few think > 1. Which is **Best Project Solution Structure for C# + WPF + MVVC + > prism 4**. Can give some reference for this. > 2. Which is Best way to **create Project Solution Structure.** > 3. Which is Best Way for **Exception Handling** > 4. If any one know LinQ, **is LinQ suitable with WPF + MVVC + prism 4.** > Any LinQ extended library which help for development. > 5. Any **Existing or 3'rd party library** which help for **development** like > Microsoft Enterprise Library > 6. Any suggestions for different **Tool,Framework,Design Patterns.** > ...etc > 7. Any **Reference/Help site** links **Thanks In Advance**
4
6,596,489
07/06/2011 12:38:43
831,574
07/06/2011 12:38:43
1
0
Capturing Keypress Events in VB.NET
I'm feeling frustrated. I have spent hours looking for a good piece of code to capture the keypress events in any windows no matter if my application is focused or not. I need to create an application to work in the background to capture the F5 key. Does anyone have any code?
.net
vb.net
visual-studio-2010
vb
null
07/07/2011 06:20:30
off topic
Capturing Keypress Events in VB.NET === I'm feeling frustrated. I have spent hours looking for a good piece of code to capture the keypress events in any windows no matter if my application is focused or not. I need to create an application to work in the background to capture the F5 key. Does anyone have any code?
2
8,767,862
01/07/2012 06:26:48
632,038
02/24/2011 09:35:06
20
2
iPad how to connect to network share drive programatically?
I would like to write a program on iPad to connect network share drive (similar to the apps FileBrowser). However, I cannot find many resources and sample code on the Internet. Does anyone know how to do it? Any website for reference? Thanks so much!
ios
ipad
null
null
null
null
open
iPad how to connect to network share drive programatically? === I would like to write a program on iPad to connect network share drive (similar to the apps FileBrowser). However, I cannot find many resources and sample code on the Internet. Does anyone know how to do it? Any website for reference? Thanks so much!
0
9,481,942
02/28/2012 12:30:49
442,216
09/08/2010 08:41:39
100
0
log4net log file not been written using Quartz.net + Common.Logging
I'm trying to add logging to my windows web service built with Quartz.net using common.logging to write a log file with log4net. My App.config looks like this: <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="common"> <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging"/> </sectionGroup> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> <section name="quartz" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" /> </configSections> <quartz> <add key="quartz.scheduler.instanceName" value="CommerceScheduler" /> <add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz" /> <add key="quartz.threadPool.threadCount" value="10" /> <add key="quartz.threadPool.threadPriority" value="Normal" /> </quartz> <appSettings> <add key="configpath" value="C:\Projects\SiteScheduler\SiteScheduler\Schedule.xml"/> </appSettings> <common> <logging> <factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net"> <arg key="configType" value="INLINE" /> </factoryAdapter> </logging> </common> <log4net> <root> <level value="DEBUG" /> <appender-ref ref="LogFileAppender" /> </root> <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender" > <param name="File" value="log.txt" /> <param name="AppendToFile" value="true" /> <rollingStyle value="Size" /> <maxSizeRollBackups value="10" /> <maximumFileSize value="10MB" /> <staticLogFileName value="true" /> <layout type="log4net.Layout.PatternLayout"> <param name="ConversionPattern" value="%-5p%d{yyyy-MM-dd hh:mm:ss} – %m%n" /> </layout> </appender> </log4net> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration> I then write some logs on the onStart() event: protected override void OnStart(string[] args) { var log = LogManager.GetCurrentClassLogger(); // construct a scheduler factory ISchedulerFactory schedFact = new StdSchedulerFactory(); // get a scheduler var sched = schedFact.GetScheduler(); sched.Start(); log.Debug(m => m("Scheduler started")); log.Debug(m => m("Load Schedules")); ProcessLogs("Scheduler started"); LoadSchedules(sched); } The process starts fine, but no log files? What am I missing?
log4net
quartz.net
log4netconfiguration
common.logging
null
null
open
log4net log file not been written using Quartz.net + Common.Logging === I'm trying to add logging to my windows web service built with Quartz.net using common.logging to write a log file with log4net. My App.config looks like this: <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="common"> <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging"/> </sectionGroup> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> <section name="quartz" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" /> </configSections> <quartz> <add key="quartz.scheduler.instanceName" value="CommerceScheduler" /> <add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz" /> <add key="quartz.threadPool.threadCount" value="10" /> <add key="quartz.threadPool.threadPriority" value="Normal" /> </quartz> <appSettings> <add key="configpath" value="C:\Projects\SiteScheduler\SiteScheduler\Schedule.xml"/> </appSettings> <common> <logging> <factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net"> <arg key="configType" value="INLINE" /> </factoryAdapter> </logging> </common> <log4net> <root> <level value="DEBUG" /> <appender-ref ref="LogFileAppender" /> </root> <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender" > <param name="File" value="log.txt" /> <param name="AppendToFile" value="true" /> <rollingStyle value="Size" /> <maxSizeRollBackups value="10" /> <maximumFileSize value="10MB" /> <staticLogFileName value="true" /> <layout type="log4net.Layout.PatternLayout"> <param name="ConversionPattern" value="%-5p%d{yyyy-MM-dd hh:mm:ss} – %m%n" /> </layout> </appender> </log4net> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration> I then write some logs on the onStart() event: protected override void OnStart(string[] args) { var log = LogManager.GetCurrentClassLogger(); // construct a scheduler factory ISchedulerFactory schedFact = new StdSchedulerFactory(); // get a scheduler var sched = schedFact.GetScheduler(); sched.Start(); log.Debug(m => m("Scheduler started")); log.Debug(m => m("Load Schedules")); ProcessLogs("Scheduler started"); LoadSchedules(sched); } The process starts fine, but no log files? What am I missing?
0
3,421,808
08/06/2010 07:28:18
412,755
08/06/2010 07:28:18
1
0
how to play mp3 files in an image button in html page
how to play mp3 files in an image button in html page
php
html
null
null
null
08/06/2010 07:48:44
not a real question
how to play mp3 files in an image button in html page === how to play mp3 files in an image button in html page
1
5,503,508
03/31/2011 17:01:15
268,588
02/08/2010 11:11:02
111
0
Flame or fire with jquery
is there any flame or fire effect with jquery in the net ? (for both side of my site with devil between them) i googled it with no results ... thanks for answer best regards
javascript
jquery
effect
flame
null
03/31/2011 17:05:47
not a real question
Flame or fire with jquery === is there any flame or fire effect with jquery in the net ? (for both side of my site with devil between them) i googled it with no results ... thanks for answer best regards
1
10,739,465
05/24/2012 14:26:21
1,357,225
04/25/2012 20:59:49
5
0
How to strip last element of dash delimited string in Javascript
I have string delimited with dashes like: x#-ls-foobar-takemeoff- How can I remove "takemeoff-" using javascript where "takemeoff-" can be any amount of characters ending in a dash?
javascript
null
null
null
null
null
open
How to strip last element of dash delimited string in Javascript === I have string delimited with dashes like: x#-ls-foobar-takemeoff- How can I remove "takemeoff-" using javascript where "takemeoff-" can be any amount of characters ending in a dash?
0
11,073,850
06/17/2012 18:39:00
1,462,195
06/17/2012 18:09:06
6
0
Using Symfony 2 Components in Magento
How easy would it be to integrate some Symfony 2 components/bundles to the Magento framework? I am thinking in particular the twig templating engine, though the question will generally apply to any components?
magento
symfony-2.0
null
null
null
null
open
Using Symfony 2 Components in Magento === How easy would it be to integrate some Symfony 2 components/bundles to the Magento framework? I am thinking in particular the twig templating engine, though the question will generally apply to any components?
0
4,993,295
02/14/2011 14:26:37
616,339
02/14/2011 14:16:48
1
0
what a simple main could be for those functions??(a list of tables problem)
stack.h: #ifndef __STACK_H_INCLUDED__ #define __STACK_H_INCLUDED__ typedef struct snode{ int data[maxsize]; int top; struct snode *next; }anode; typedef struct sstack{ anode *start; }sstack; void MakeEmpty(struct hstack s)void MakeEmpty(struct hstack s); int IsEmpty(hstack s); int TopNode(hstack s); void Push(hstack s,int x); void Pop(hstack s); #endif stack.c: include stdio.h include stdlib.h void MakeEmpty( sstack *s){ s->start = NULL; } int IsEmpty( sstack s){ if((s->start)==NULL) return TRUE; return FALSE; } int TopNode( sstack s){ if (!IsEmpty(s)){ anode *a = s->start; return (a->data[a->(top –1)]); } else printf("error"); return -1; } void Push( sstack *s,int x){ anode *a=s->start; if (IsEmpty || a->top == maxsize ) { anode *k = (anode*)malloc(sizeof(anode)); k->top = 0; k->next = a; s->start = m; } n=s->start; n->block[n->top] = x; n->top = n->top +1; } void Pop( hstack s){ n=s->start; x= n->block[n->top-1]; n->top = n->top -1; if (n->top==0){ s->start= n->next; free(n); return x; } else{ printf("error "); return -1; } }
c
list
struct
stack
node
02/14/2011 14:51:07
not a real question
what a simple main could be for those functions??(a list of tables problem) === stack.h: #ifndef __STACK_H_INCLUDED__ #define __STACK_H_INCLUDED__ typedef struct snode{ int data[maxsize]; int top; struct snode *next; }anode; typedef struct sstack{ anode *start; }sstack; void MakeEmpty(struct hstack s)void MakeEmpty(struct hstack s); int IsEmpty(hstack s); int TopNode(hstack s); void Push(hstack s,int x); void Pop(hstack s); #endif stack.c: include stdio.h include stdlib.h void MakeEmpty( sstack *s){ s->start = NULL; } int IsEmpty( sstack s){ if((s->start)==NULL) return TRUE; return FALSE; } int TopNode( sstack s){ if (!IsEmpty(s)){ anode *a = s->start; return (a->data[a->(top –1)]); } else printf("error"); return -1; } void Push( sstack *s,int x){ anode *a=s->start; if (IsEmpty || a->top == maxsize ) { anode *k = (anode*)malloc(sizeof(anode)); k->top = 0; k->next = a; s->start = m; } n=s->start; n->block[n->top] = x; n->top = n->top +1; } void Pop( hstack s){ n=s->start; x= n->block[n->top-1]; n->top = n->top -1; if (n->top==0){ s->start= n->next; free(n); return x; } else{ printf("error "); return -1; } }
1
7,936,323
10/29/2011 01:09:00
1,015,863
10/27/2011 04:50:09
6
1
Should I Learn C# or C++?
When I first became interested in programming, I took a class that introduced me briefly to C++ for a semester (this class mostly focused on topics like "what is a variable", so I know very little about what C++ is capable of). Up next was a year of AP Computer Science, where I learned Java. Don't get me wrong, I love Java, but I feel like I have become so dependent on it. I am pretty good at programming in Java, and I like the extensive packages like Swing and io that give a great degree of power to even a new learner. I have exhausted my school's (extremely) limited supply of Computer Science classes and am looking at Internet tutorials or books to learn on my own. However, I don't want to start learning a language only to realize that it isn't "right" for me. I guess what I am looking for is a widely used, well-known, powerful language that will not only be good for controlling a computer but also for opening doors later in my life. I am specifically looking at C# or C++, although I don't know why. If you think some other language would be better, please suggest it and why. Hopefully this is enough information for someone to answer. If not, please ask me to clarify because I really would like a specific good answer.
c#
java
c++
null
null
10/29/2011 01:12:53
not constructive
Should I Learn C# or C++? === When I first became interested in programming, I took a class that introduced me briefly to C++ for a semester (this class mostly focused on topics like "what is a variable", so I know very little about what C++ is capable of). Up next was a year of AP Computer Science, where I learned Java. Don't get me wrong, I love Java, but I feel like I have become so dependent on it. I am pretty good at programming in Java, and I like the extensive packages like Swing and io that give a great degree of power to even a new learner. I have exhausted my school's (extremely) limited supply of Computer Science classes and am looking at Internet tutorials or books to learn on my own. However, I don't want to start learning a language only to realize that it isn't "right" for me. I guess what I am looking for is a widely used, well-known, powerful language that will not only be good for controlling a computer but also for opening doors later in my life. I am specifically looking at C# or C++, although I don't know why. If you think some other language would be better, please suggest it and why. Hopefully this is enough information for someone to answer. If not, please ask me to clarify because I really would like a specific good answer.
4
4,929,240
02/08/2011 03:18:56
481,885
10/20/2010 15:02:23
5
1
How to I setup a database that tracks prices for 100k+ products over time?
I would like to setup a server that stores prices data for potentially 100,000+ products over time. Updates will be provided once or twice per month. I would also have many components of such prices. Such that I run out of the 255 fields that Access allows me, and would burst the 2 Gig limit sooner or later. (New fields might just pop up at any moment for some products) The scale of this project is somehow too small to get database experts to do a full scale database at the moment. Is there any quick fix I can do with the free Microsoft SQL Server ? Or I am going to run into hardware limitations also?
sql
database
pricing
products
ticker
02/08/2011 05:34:21
not a real question
How to I setup a database that tracks prices for 100k+ products over time? === I would like to setup a server that stores prices data for potentially 100,000+ products over time. Updates will be provided once or twice per month. I would also have many components of such prices. Such that I run out of the 255 fields that Access allows me, and would burst the 2 Gig limit sooner or later. (New fields might just pop up at any moment for some products) The scale of this project is somehow too small to get database experts to do a full scale database at the moment. Is there any quick fix I can do with the free Microsoft SQL Server ? Or I am going to run into hardware limitations also?
1
2,628,753
04/13/2010 10:25:10
116,512
06/03/2009 06:26:51
194
0
database importing problem with sql server
I have a database working in mu local sql server 2005 express edition. I have to import my local dtabase to a remote servr database. For that i established connection to that remote server, and i can now see that database . but when i tried to restore database fro my local machine i'm getting an error message when i tried to give backup file location. Below is the error message The EXECUTE permission was denied on the object 'xp_availablemedia', database 'mssqlsystemresource', schema 'sys'. The user does not have permission to perform this action. The statement has been terminated. (Microsoft SQL Server, Error: 229) waht is the problem, how can i solve this. Please help me
sqlserver2005
import
null
null
null
null
open
database importing problem with sql server === I have a database working in mu local sql server 2005 express edition. I have to import my local dtabase to a remote servr database. For that i established connection to that remote server, and i can now see that database . but when i tried to restore database fro my local machine i'm getting an error message when i tried to give backup file location. Below is the error message The EXECUTE permission was denied on the object 'xp_availablemedia', database 'mssqlsystemresource', schema 'sys'. The user does not have permission to perform this action. The statement has been terminated. (Microsoft SQL Server, Error: 229) waht is the problem, how can i solve this. Please help me
0
11,462,002
07/12/2012 23:05:50
1,522,201
07/12/2012 22:58:22
1
0
Ruby, iterate with tire on database ElasticSearch
I need to iterate throught every item in ElesticSearch with tire, is it possible? Tire.search with size = NUMBER it is unusable Thanks for answers.
ruby
elasticsearch
tire
null
null
07/13/2012 12:43:04
not a real question
Ruby, iterate with tire on database ElasticSearch === I need to iterate throught every item in ElesticSearch with tire, is it possible? Tire.search with size = NUMBER it is unusable Thanks for answers.
1
4,824,352
01/28/2011 02:44:58
418,029
08/12/2010 05:40:04
599
16
UIKeyboardTypeNumberPad without a done button
How can we implement UIKeyboardTypeNumberPad without a done button?
iphone
cocoa
ios
uikeyboard
null
null
open
UIKeyboardTypeNumberPad without a done button === How can we implement UIKeyboardTypeNumberPad without a done button?
0
4,932,800
02/08/2011 12:08:46
680,599
02/06/2011 17:01:32
8
0
Newly built C# Assembly's access to predefined functions.
Okay I will first admit I don't know the proper terminology for all this so I apologize if this is addressed already and I just am not using the appropriate words. I'm trying to make a program in C# that will allow C# code compiled by the program to act as a scripting language. Here is my example code for the program that loads and compiles the code: using Microsoft.CSharp; using System; using System.CodeDom.Compiler; using System.Collections.Generic; using System.IO; using System.Reflection; namespace RuntimeCompilation { public class Program { public static void Main(string[] args) { Program b = new Program(); CompilerResults results = b.BuildAssembly("Class1.cs"); // compiles the class if (results.Errors.Count > 0) { System.Console.Out.WriteLine("Errors Follow:"); String ErrorText = ""; foreach (CompilerError CompErr in results.Errors) { ErrorText = ErrorText + "Line number " + CompErr.Line + ", Error Number: " + CompErr.ErrorNumber + ", '" + CompErr.ErrorText + ";" + Environment.NewLine + Environment.NewLine; } System.Console.Out.WriteLine(ErrorText); } else { Assembly assembly = results.CompiledAssembly; foreach (Type type in assembly.GetTypes()) { System.Console.WriteLine("Type found: " + type.FullName); System.Console.WriteLine("Creating Instance:"); System.Console.WriteLine("======================="); assembly.CreateInstance(type.FullName); System.Console.Out.WriteLine("======================="); System.Console.Out.WriteLine("Done"); } } System.Console.Out.WriteLine("DONE."); } // Compile a file of source and return the CompilerResults object. private CompilerResults BuildAssembly(string filename) { TextReader tr = new StreamReader(filename); string code = tr.ReadToEnd(); CSharpCodeProvider provider = new CSharpCodeProvider(); CompilerParameters compilerparams = new CompilerParameters(); compilerparams.GenerateExecutable = false; compilerparams.GenerateInMemory = true; return provider.CompileAssemblyFromSource(compilerparams, code); } public bool iCanHasAccess() { return true; } } } And here is the class it builds: using System; using RuntimeCompilation; namespace RuntimeCompilation { public class Class1 { public Class1() { System.Console.WriteLine("This was instancialized"); if (Program.iCanHasAccess()) System.Console.WriteLine("I have access"); } } } The error outputted by the program is that the name Program doesn't exist in the current context. How can I ensure that the "script" program has access to the functions and members of the compiling program? I'm trying to allow an easy way with minimal runtime overhead to let users modify the behaviour of a component within the program without requiring a rebuild. If this is not possible through C# assemblies I'll likely use LUA but I'd like to avoid it. As I'd like this product to work on an XBox360 necessitation compiling the WHOLE project and scripts together before deployment through XNA.
c#
scripting
game-development
assemblies
xna
null
open
Newly built C# Assembly's access to predefined functions. === Okay I will first admit I don't know the proper terminology for all this so I apologize if this is addressed already and I just am not using the appropriate words. I'm trying to make a program in C# that will allow C# code compiled by the program to act as a scripting language. Here is my example code for the program that loads and compiles the code: using Microsoft.CSharp; using System; using System.CodeDom.Compiler; using System.Collections.Generic; using System.IO; using System.Reflection; namespace RuntimeCompilation { public class Program { public static void Main(string[] args) { Program b = new Program(); CompilerResults results = b.BuildAssembly("Class1.cs"); // compiles the class if (results.Errors.Count > 0) { System.Console.Out.WriteLine("Errors Follow:"); String ErrorText = ""; foreach (CompilerError CompErr in results.Errors) { ErrorText = ErrorText + "Line number " + CompErr.Line + ", Error Number: " + CompErr.ErrorNumber + ", '" + CompErr.ErrorText + ";" + Environment.NewLine + Environment.NewLine; } System.Console.Out.WriteLine(ErrorText); } else { Assembly assembly = results.CompiledAssembly; foreach (Type type in assembly.GetTypes()) { System.Console.WriteLine("Type found: " + type.FullName); System.Console.WriteLine("Creating Instance:"); System.Console.WriteLine("======================="); assembly.CreateInstance(type.FullName); System.Console.Out.WriteLine("======================="); System.Console.Out.WriteLine("Done"); } } System.Console.Out.WriteLine("DONE."); } // Compile a file of source and return the CompilerResults object. private CompilerResults BuildAssembly(string filename) { TextReader tr = new StreamReader(filename); string code = tr.ReadToEnd(); CSharpCodeProvider provider = new CSharpCodeProvider(); CompilerParameters compilerparams = new CompilerParameters(); compilerparams.GenerateExecutable = false; compilerparams.GenerateInMemory = true; return provider.CompileAssemblyFromSource(compilerparams, code); } public bool iCanHasAccess() { return true; } } } And here is the class it builds: using System; using RuntimeCompilation; namespace RuntimeCompilation { public class Class1 { public Class1() { System.Console.WriteLine("This was instancialized"); if (Program.iCanHasAccess()) System.Console.WriteLine("I have access"); } } } The error outputted by the program is that the name Program doesn't exist in the current context. How can I ensure that the "script" program has access to the functions and members of the compiling program? I'm trying to allow an easy way with minimal runtime overhead to let users modify the behaviour of a component within the program without requiring a rebuild. If this is not possible through C# assemblies I'll likely use LUA but I'd like to avoid it. As I'd like this product to work on an XBox360 necessitation compiling the WHOLE project and scripts together before deployment through XNA.
0
6,975,442
08/07/2011 20:05:39
883,087
08/07/2011 20:05:39
1
0
Excel: how to get cells count with some year of date?
I've got column with dates for example: 21.01.2011 20.02.2011 21.02.2010 19.03.2009 I need to get count of cells with for example 2011 year I don't want to use macroses and aditional (helpers) cells. Thank's.
excel
null
null
null
null
08/07/2011 20:17:23
off topic
Excel: how to get cells count with some year of date? === I've got column with dates for example: 21.01.2011 20.02.2011 21.02.2010 19.03.2009 I need to get count of cells with for example 2011 year I don't want to use macroses and aditional (helpers) cells. Thank's.
2
5,136,072
02/27/2011 21:20:19
507,678
11/14/2010 23:11:03
10
0
java vs python for GAE
from these links:- http://shootout.alioth.debian.org/u64q/benchmark.php?test=all&lang=python3&lang2=java http://shootout.alioth.debian.org/u32q/benchmark.php?test=all&lang=python3&lang2=java http://shootout.alioth.debian.org/u64/benchmark.php?test=all&lang=python3&lang2=java http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=python3&lang2=java they appear clearly that the best choice for GAE is java, if scalable feature is what we are looking for. my question is, What are the implications that will affect on performance if we use one of frameworks? e.g. django --> python spring MVC --> java slim3 --> java ... etc
java
python
performance
google-app-engine
web-frameworks
02/28/2011 10:24:58
not constructive
java vs python for GAE === from these links:- http://shootout.alioth.debian.org/u64q/benchmark.php?test=all&lang=python3&lang2=java http://shootout.alioth.debian.org/u32q/benchmark.php?test=all&lang=python3&lang2=java http://shootout.alioth.debian.org/u64/benchmark.php?test=all&lang=python3&lang2=java http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=python3&lang2=java they appear clearly that the best choice for GAE is java, if scalable feature is what we are looking for. my question is, What are the implications that will affect on performance if we use one of frameworks? e.g. django --> python spring MVC --> java slim3 --> java ... etc
4
8,885,630
01/16/2012 20:04:06
1,018,129
10/28/2011 10:10:55
55
0
python items in list added to string
# I am trying to concatenate items in a list onto a string. list = ['a', 'b', 'c', 'd'] string = '' for i in list: string.join(str(i)) #>>
python
null
null
null
null
null
open
python items in list added to string === # I am trying to concatenate items in a list onto a string. list = ['a', 'b', 'c', 'd'] string = '' for i in list: string.join(str(i)) #>>
0
11,394,393
07/09/2012 11:46:11
902,102
08/19/2011 08:51:56
13
0
how to connect wifi using command line in linux?
I have only terminal access not have gui on linux fedora. I want search available wifi connection and want to connect. How to search and enter password to connect specific connection.
linux
command
wifi
null
null
07/10/2012 12:19:52
off topic
how to connect wifi using command line in linux? === I have only terminal access not have gui on linux fedora. I want search available wifi connection and want to connect. How to search and enter password to connect specific connection.
2
10,685,953
05/21/2012 13:13:50
767,912
05/24/2011 14:23:57
498
14
Which jQuery "edit-in-place" plugin do you use?
I need to implement some edit-in-place functionality for a table (where each table cell (in that row) will turn into a textbox/textarea when clicking an edit button, then when the save button is clicked, update a database and change the fields back to text. Obviously I'll be handling the AJAX edit/update part, but what is the "best" edit-in-place jQuery plugin? Thanks.
jquery
null
null
null
null
05/22/2012 15:25:30
not constructive
Which jQuery "edit-in-place" plugin do you use? === I need to implement some edit-in-place functionality for a table (where each table cell (in that row) will turn into a textbox/textarea when clicking an edit button, then when the save button is clicked, update a database and change the fields back to text. Obviously I'll be handling the AJAX edit/update part, but what is the "best" edit-in-place jQuery plugin? Thanks.
4
3,385,973
08/02/2010 07:57:12
756,597
12/11/2009 05:30:07
219
0
phpbb - How do I enable 'forum subscriptions' ?
I'm having some issues in setting up Subscriptions for my phpbb forum, in that, I can't find a link to subscribe to the forum :/ Through the ACP, I've set the following to enabled: * Allow subscribing to topics * Allow subscribing to forums This was done through `General > Board Configuration > Board Features`. I can't find any other section that has relevant settings that would require activation... So, as far as I know, this should be all that's needed to enable forum subscriptions. However, when I browse my forum using both my administrator account and a newly made test account, no where do I see a link to subscribe to the forum/thread. How do I set this up? :/
forum
phpbb
null
null
null
null
open
phpbb - How do I enable 'forum subscriptions' ? === I'm having some issues in setting up Subscriptions for my phpbb forum, in that, I can't find a link to subscribe to the forum :/ Through the ACP, I've set the following to enabled: * Allow subscribing to topics * Allow subscribing to forums This was done through `General > Board Configuration > Board Features`. I can't find any other section that has relevant settings that would require activation... So, as far as I know, this should be all that's needed to enable forum subscriptions. However, when I browse my forum using both my administrator account and a newly made test account, no where do I see a link to subscribe to the forum/thread. How do I set this up? :/
0
9,851,320
03/24/2012 11:23:19
1,389,515
06/23/2011 10:01:37
115
2
What is iPhone Provisioning Portal and how it works?
The process of provisioning portal, certificates, provisioning profiles, etc etc.. still confusing me. I red apple's documentations and googled lot about it.. Nothing helps me.. I have a Mac and an iPhone. How can I install the application that I developed in Xcode in my device? Could anyone give a simple steps to understand the work flow of Provisioning Portal process? Thanks
iphone
installation
workflow
provisioning
certificates
03/24/2012 12:22:06
not a real question
What is iPhone Provisioning Portal and how it works? === The process of provisioning portal, certificates, provisioning profiles, etc etc.. still confusing me. I red apple's documentations and googled lot about it.. Nothing helps me.. I have a Mac and an iPhone. How can I install the application that I developed in Xcode in my device? Could anyone give a simple steps to understand the work flow of Provisioning Portal process? Thanks
1
8,982,004
01/24/2012 04:26:01
1,166,266
01/24/2012 04:19:07
1
0
How to open a prompt of a running command?
I'd like to know if there is any way to for me to re open my prompt for my MC server once it's closed terminal is closed. Some times the java keeps running so I want to know if I can some how reopen the command prompt to an existing process? If this was too confusing just tell me.(I rewrote this 3 times :D)
java
command
closed
null
null
01/28/2012 21:21:40
not a real question
How to open a prompt of a running command? === I'd like to know if there is any way to for me to re open my prompt for my MC server once it's closed terminal is closed. Some times the java keeps running so I want to know if I can some how reopen the command prompt to an existing process? If this was too confusing just tell me.(I rewrote this 3 times :D)
1
8,433,139
12/08/2011 15:12:43
902,500
08/19/2011 13:17:04
1
0
How to permit only single session for a single account with restful_authentication (rails plugin)
I use restful_authentication plugin in rails 2.3.5. application. In this application, I want to permit to login with a single session for a single account at the same time. In other words, I don't want the users to login with single account using several computers. Does the restful_authentication plugin support this function? If not, how can I realize this function? Please give me some advise. Thank you very much in advance.
ruby-on-rails
session
restful-authentication
null
null
null
open
How to permit only single session for a single account with restful_authentication (rails plugin) === I use restful_authentication plugin in rails 2.3.5. application. In this application, I want to permit to login with a single session for a single account at the same time. In other words, I don't want the users to login with single account using several computers. Does the restful_authentication plugin support this function? If not, how can I realize this function? Please give me some advise. Thank you very much in advance.
0
5,954,408
05/10/2011 18:07:35
406,322
04/10/2009 18:07:02
918
6
Implementation of an @mention (tagging friends) using ASP.NET MVC
I'm wondering if there is any article on how to implement a tagging system (like Facebook's @mention) using ASP.NET MVC and jquery. Basically I think I'need to parse the string that follows the @ character (while posting, this will send an email notification, while reading, this will link the user). And I'd probably need some sort of an auto-complete jquery plugin. If someone has already gone through the process, I'd appreciate a few tips! Thanks.
c#
jquery
.net
asp.net
asp.net-mvc
null
open
Implementation of an @mention (tagging friends) using ASP.NET MVC === I'm wondering if there is any article on how to implement a tagging system (like Facebook's @mention) using ASP.NET MVC and jquery. Basically I think I'need to parse the string that follows the @ character (while posting, this will send an email notification, while reading, this will link the user). And I'd probably need some sort of an auto-complete jquery plugin. If someone has already gone through the process, I'd appreciate a few tips! Thanks.
0
4,017,603
10/25/2010 18:24:41
397,339
07/20/2010 22:16:35
13
1
SQL duplicate data for excel dynamic table
First thanks for reading me and sorry for my bad english. I have the following code on sql server 2008 r2 <pre><code>SELECT FA960.*, UMCONVPZ.UMFR, UMCONVPZ.UMCONF AS Piezas, UMCONVPL.UMCONF AS PL, UMCONVCJ.UMCONF AS Cajas FROM FA960 FA960 INNER JOIN UMCONV UMCONVPZ ON FA960.RECURV = UMCONVPZ.UMRESR INNER JOIN UMCONV UMCONVPL ON FA960.RECURV = UMCONVPL.UMRESR INNER JOIN UMCONV UMCONVCJ ON FA960.RECURV = UMCONVCJ.UMRESR WHERE FA960.RMUMSR = UMCONVPZ.UMFR AND UMCONVPZ.UMTO = 'PZ' AND UMCONVPL.UMTO = 'PL' AND UMCONVCJ.UMTO = 'CJ' </code></pre> This is a view, the UMCONV table is a conversion of measures that goes from palets to boxes, to pieces. Now my problem is that CJ (Boxes) go to both PZ (Pieces) and PL (Palets) thus making me a duplicate entry that bring "trash data". Any idea of how to solve it? so far I think force it to convert and do a rock paper scissors Any other idea?
sql
sql-server
excel
null
null
null
open
SQL duplicate data for excel dynamic table === First thanks for reading me and sorry for my bad english. I have the following code on sql server 2008 r2 <pre><code>SELECT FA960.*, UMCONVPZ.UMFR, UMCONVPZ.UMCONF AS Piezas, UMCONVPL.UMCONF AS PL, UMCONVCJ.UMCONF AS Cajas FROM FA960 FA960 INNER JOIN UMCONV UMCONVPZ ON FA960.RECURV = UMCONVPZ.UMRESR INNER JOIN UMCONV UMCONVPL ON FA960.RECURV = UMCONVPL.UMRESR INNER JOIN UMCONV UMCONVCJ ON FA960.RECURV = UMCONVCJ.UMRESR WHERE FA960.RMUMSR = UMCONVPZ.UMFR AND UMCONVPZ.UMTO = 'PZ' AND UMCONVPL.UMTO = 'PL' AND UMCONVCJ.UMTO = 'CJ' </code></pre> This is a view, the UMCONV table is a conversion of measures that goes from palets to boxes, to pieces. Now my problem is that CJ (Boxes) go to both PZ (Pieces) and PL (Palets) thus making me a duplicate entry that bring "trash data". Any idea of how to solve it? so far I think force it to convert and do a rock paper scissors Any other idea?
0
9,201,379
02/08/2012 21:03:59
34,768
11/05/2008 17:16:38
370
15
How I can add programming to shapes?
I have the next problem: I have a JAVA desktop application with shapes that can be drawn into a workspace, which can be connected by arrows: [ Node1 ] ---------------> [Node2] Besides, I have a desktop application which interprets the diagram nodes, each node is a screen, so I know that when you get (Next) to Node1, show the screen that represents the Node2. What we now need is that each node has programming, this means for example that I say: If Node2 receives an arrow of Node1, then increases and returns a variable x 3 (For instance) What comes to mind is to make a programming language that is interpreted by java and assign a function to each node, so I would have the following function (defined in pseudolenguaje) function f_node2() { var++; if (var == 3) { return "OK"; } else { return "BAD"; } } [ Nodo1 ] ---------------> [Nodo 2] (apply function "f_node2") What I do not understand is if I have to develop a compiler entirely, if I have to develop an interpreter, if I can do this directly with Java or Groovy and then interpret that code with a tool, I saw something of ANTLR but do not wave :S I feel a little lost, infinitely appreciate your guidance
java
antlr
desktop
compiler-theory
null
02/09/2012 21:54:20
not a real question
How I can add programming to shapes? === I have the next problem: I have a JAVA desktop application with shapes that can be drawn into a workspace, which can be connected by arrows: [ Node1 ] ---------------> [Node2] Besides, I have a desktop application which interprets the diagram nodes, each node is a screen, so I know that when you get (Next) to Node1, show the screen that represents the Node2. What we now need is that each node has programming, this means for example that I say: If Node2 receives an arrow of Node1, then increases and returns a variable x 3 (For instance) What comes to mind is to make a programming language that is interpreted by java and assign a function to each node, so I would have the following function (defined in pseudolenguaje) function f_node2() { var++; if (var == 3) { return "OK"; } else { return "BAD"; } } [ Nodo1 ] ---------------> [Nodo 2] (apply function "f_node2") What I do not understand is if I have to develop a compiler entirely, if I have to develop an interpreter, if I can do this directly with Java or Groovy and then interpret that code with a tool, I saw something of ANTLR but do not wave :S I feel a little lost, infinitely appreciate your guidance
1
9,080,470
01/31/2012 13:40:54
1,180,318
01/31/2012 12:30:16
1
0
progress bar on a survey using c#
I made an on-line survey in asp.net using c#. My survey contains 30 questions each question on a different page.I want to display a progress bar that will show the user how much he completed. How can I do that?
c#
null
null
null
null
01/31/2012 17:27:11
not a real question
progress bar on a survey using c# === I made an on-line survey in asp.net using c#. My survey contains 30 questions each question on a different page.I want to display a progress bar that will show the user how much he completed. How can I do that?
1
6,237,909
06/04/2011 16:22:48
743,253
05/07/2011 17:11:11
1
0
What we so isolated tags php
What we so isolated $row_Recordset1['tags'] // tag1,tag2,tag3 sample : foreach ( $row_Recordset1['tags'] as &$value) { echo "<a href=\"#\" class=\"tags-b\" >" . $value . "</a>"; }
php
tags
null
null
null
06/04/2011 16:30:25
not a real question
What we so isolated tags php === What we so isolated $row_Recordset1['tags'] // tag1,tag2,tag3 sample : foreach ( $row_Recordset1['tags'] as &$value) { echo "<a href=\"#\" class=\"tags-b\" >" . $value . "</a>"; }
1
5,716,619
04/19/2011 12:51:25
599,876
02/02/2011 11:04:33
49
6
iphonesdk dialing a number form a function
NSURL *url = [ [ NSURL alloc ] initWithString: @"tel:212-555-1234" ]; [[UIApplication sharedApplication] openURL:url]; i m dialing this number from a function . the problem is that it takes me away from my app, and after i dialed a number i cannot get on the state of application which i was at . how can i get back to my app after i finished dialing. thanks in advance.
iphone
iphone-sdk-4.0
null
null
null
null
open
iphonesdk dialing a number form a function === NSURL *url = [ [ NSURL alloc ] initWithString: @"tel:212-555-1234" ]; [[UIApplication sharedApplication] openURL:url]; i m dialing this number from a function . the problem is that it takes me away from my app, and after i dialed a number i cannot get on the state of application which i was at . how can i get back to my app after i finished dialing. thanks in advance.
0
3,212,174
07/09/2010 11:32:38
450,469
07/08/2010 06:03:23
31
1
Which one is better in SQL ?
Which one is better in SQL ? SELECT A.COL_A1, B.COL_B1 FROM TABLE1 A, TABLE2 B WHERE A.COL_A1 = B.COL_B1 OR SELECT B.COL_B1, A.COL_A1 FROM TABLE2 B, TABLE1 A WHERE B.COL_B1 = A.COL_A1 more info.. http://publib.boulder.ibm.com/infocenter/iisclzos/v9r1/index.jsp?topic=/com.ibm.websphere.ii.federation.classic.tuning.doc/tuning/iiyfctqcjoin.html
sql
null
null
null
null
07/09/2010 15:31:10
not a real question
Which one is better in SQL ? === Which one is better in SQL ? SELECT A.COL_A1, B.COL_B1 FROM TABLE1 A, TABLE2 B WHERE A.COL_A1 = B.COL_B1 OR SELECT B.COL_B1, A.COL_A1 FROM TABLE2 B, TABLE1 A WHERE B.COL_B1 = A.COL_A1 more info.. http://publib.boulder.ibm.com/infocenter/iisclzos/v9r1/index.jsp?topic=/com.ibm.websphere.ii.federation.classic.tuning.doc/tuning/iiyfctqcjoin.html
1
6,889,564
07/31/2011 12:47:35
406,686
07/30/2010 12:06:28
154
0
Add mathjax support to a (local) ikiwiki
Is there a way to add mathjax support to ikiwiki? If so, how to proceed step by step (in linux) to get this?
wiki
mathjax
null
null
null
12/14/2011 05:22:08
off topic
Add mathjax support to a (local) ikiwiki === Is there a way to add mathjax support to ikiwiki? If so, how to proceed step by step (in linux) to get this?
2
9,386,408
02/21/2012 22:35:40
442,695
09/08/2010 17:46:31
1,463
74
iOS5: Core Data or SQLite 3
I have read up on Core Data and SQLite 3 however I am not sure which would be best for me. I am getting a list of appointments from our API and will then need to store them. I will need to reference them based on date range, employee, customer etc. From what I have read SQLite3 would be the best for retrieving appointments that occur during a time range and appointments assigned to certain customers and employees. I read that Core Data is the way to go however it doesn't seem like it can function how I would like. Can someone explain this a bit more based on my needs and let me know which would work best? If I were to use SQLite3 would FMDB be the best?
objective-c
core-data
ios5
sqlite3
null
02/23/2012 23:25:27
not constructive
iOS5: Core Data or SQLite 3 === I have read up on Core Data and SQLite 3 however I am not sure which would be best for me. I am getting a list of appointments from our API and will then need to store them. I will need to reference them based on date range, employee, customer etc. From what I have read SQLite3 would be the best for retrieving appointments that occur during a time range and appointments assigned to certain customers and employees. I read that Core Data is the way to go however it doesn't seem like it can function how I would like. Can someone explain this a bit more based on my needs and let me know which would work best? If I were to use SQLite3 would FMDB be the best?
4
5,157,663
03/01/2011 16:57:32
634,984
02/25/2011 22:40:29
6
1
How to return a value from server to client using curl and php
How does a client receive a value (not status code) from the server using HTTP connection - using curl? Please help me..I have an assignment due in a few days.
php
rest
curl
null
null
03/01/2011 21:51:59
not a real question
How to return a value from server to client using curl and php === How does a client receive a value (not status code) from the server using HTTP connection - using curl? Please help me..I have an assignment due in a few days.
1
4,661,661
01/11/2011 19:19:27
571,764
01/11/2011 19:19:27
1
0
python twisted DeferedList ErrorBack ( Unhandled error in Deferred )
In my below code I pass a host:port combination and try to get some information from the server using twisted Defered. I have shown a very basic code of what I am trying to do. The connection to host port is made via httplib. It works correctly if the host is up. Correct callback methods are called. But when it fails ( when the retrieve url fails ), it does not go in t the printError function. I get 'Unhandled error in Deferred' error and the looping stops. Can someone please show me how I can get rid of the error. Please provide a solution. enter code here import httplib, time, sys from twisted.internet import reactor, defer, task from twisted.python import log class Getter: def gotResults(self, x): ( host, port ) = x.split(":") conn = httplib.HTTPConnection( host, port ) try : conn.request ( 'GET', '/get/data/' ) response = conn.getresponse() self.d.callback ( response ) except ( httplib.HTTPException ) : self.d.errback(ValueError("Error Connecting")) def getDummyData(self, x): currTime = time.strftime( "%H:%M:%S" ) print currTime self.d = defer.Deferred() self.gotResults(x) return self.d def printData(data): for d in data: print "Results %s %s" % ( str(d[1].status), str(d[1].reason) ) def printError(data): print data def testmessage(): # this series of callbacks and errbacks will print an error message g = Getter() deferred1 = g.getDummyData( 'valid_hostname1:port1' ) # this should go to printData g = Getter() deferred2 = g.getDummyData('invalid_hostname2:port2') # this should go to printError d1 = defer.DeferredList ( [ deferred1, deferred2 ] ) d1.addCallback ( printData ) d1.addErrback ( printError ) x = task.LoopingCall ( testmessage ) x.start ( 1 ) reactor.callLater(300, reactor.stop); reactor.run()
python
twisted
deferred
null
null
null
open
python twisted DeferedList ErrorBack ( Unhandled error in Deferred ) === In my below code I pass a host:port combination and try to get some information from the server using twisted Defered. I have shown a very basic code of what I am trying to do. The connection to host port is made via httplib. It works correctly if the host is up. Correct callback methods are called. But when it fails ( when the retrieve url fails ), it does not go in t the printError function. I get 'Unhandled error in Deferred' error and the looping stops. Can someone please show me how I can get rid of the error. Please provide a solution. enter code here import httplib, time, sys from twisted.internet import reactor, defer, task from twisted.python import log class Getter: def gotResults(self, x): ( host, port ) = x.split(":") conn = httplib.HTTPConnection( host, port ) try : conn.request ( 'GET', '/get/data/' ) response = conn.getresponse() self.d.callback ( response ) except ( httplib.HTTPException ) : self.d.errback(ValueError("Error Connecting")) def getDummyData(self, x): currTime = time.strftime( "%H:%M:%S" ) print currTime self.d = defer.Deferred() self.gotResults(x) return self.d def printData(data): for d in data: print "Results %s %s" % ( str(d[1].status), str(d[1].reason) ) def printError(data): print data def testmessage(): # this series of callbacks and errbacks will print an error message g = Getter() deferred1 = g.getDummyData( 'valid_hostname1:port1' ) # this should go to printData g = Getter() deferred2 = g.getDummyData('invalid_hostname2:port2') # this should go to printError d1 = defer.DeferredList ( [ deferred1, deferred2 ] ) d1.addCallback ( printData ) d1.addErrback ( printError ) x = task.LoopingCall ( testmessage ) x.start ( 1 ) reactor.callLater(300, reactor.stop); reactor.run()
0
6,161,974
05/28/2011 13:38:34
622,203
02/17/2011 21:57:36
39
1
Shared instance of App -iPhone
How to create shared instance of my app? "appDel is an AppDelegate shared instance of your application"
iphone
instance
shared
null
null
05/29/2011 00:25:12
not a real question
Shared instance of App -iPhone === How to create shared instance of my app? "appDel is an AppDelegate shared instance of your application"
1
9,253,310
02/12/2012 22:27:04
1,055,637
11/19/2011 19:18:36
392
0
query on db to select id and password
here it is my query to find username and password stored in mysql db made using codeigniter php framework. public function find_user($username,$password) { $sql = "SELECT * FROM users_login WHERE username = ? AND password = ?"; $query = $this->db->query($sql,array($username,md5($password))); if($query->num_rows() == 1) { return TRUE; } else { return FALSE; } } where the db is made: `id,username,password`. there is some mistake because it doesn't work as should be?
php
mysql
codeigniter
null
null
02/14/2012 01:20:04
not a real question
query on db to select id and password === here it is my query to find username and password stored in mysql db made using codeigniter php framework. public function find_user($username,$password) { $sql = "SELECT * FROM users_login WHERE username = ? AND password = ?"; $query = $this->db->query($sql,array($username,md5($password))); if($query->num_rows() == 1) { return TRUE; } else { return FALSE; } } where the db is made: `id,username,password`. there is some mistake because it doesn't work as should be?
1
9,413,970
02/23/2012 13:26:14
1,228,415
02/23/2012 13:08:13
1
0
javaEE and sql server
I've been learning java and sql server (seperately) at university, and was wanting to make a java application that uses sql server rather than oracle or mySql. Is there any easy to understand or good guides to help me do this. There is no current module that covers this specific area and would like to know how to do this. I've searched around but most books or tutorials are for oracle or mySql when it comes to the database layer. As I have four computers (2 laptops) in the house, I'd like to have one to house the database while the others house the application itself (although if the database computer can run the application, that would be a bonus). I am very new to databases and have a good understanding of java and a small portion of experience with javaEE, so if its the same to connect to an oracle database as with an SQLserver database, my bad. Also, if there are any good guides otu there for javaEE specifically applications on a LAN based network with a database layer, that would help too. I hope someone can help me, I'd like to do this before i leave for my placement. Brian.
sql-server
java-ee
sql-server-2008-r2
java-ee-6
null
02/23/2012 16:33:02
not constructive
javaEE and sql server === I've been learning java and sql server (seperately) at university, and was wanting to make a java application that uses sql server rather than oracle or mySql. Is there any easy to understand or good guides to help me do this. There is no current module that covers this specific area and would like to know how to do this. I've searched around but most books or tutorials are for oracle or mySql when it comes to the database layer. As I have four computers (2 laptops) in the house, I'd like to have one to house the database while the others house the application itself (although if the database computer can run the application, that would be a bonus). I am very new to databases and have a good understanding of java and a small portion of experience with javaEE, so if its the same to connect to an oracle database as with an SQLserver database, my bad. Also, if there are any good guides otu there for javaEE specifically applications on a LAN based network with a database layer, that would help too. I hope someone can help me, I'd like to do this before i leave for my placement. Brian.
4
7,392,893
09/12/2011 19:25:09
923,780
09/01/2011 15:49:01
3
0
Linq - Referencing a Child Table
I have a few tables I'm dealing with regarding a "Goals" application (screen grab is below). I'm using MVC 3, razor and linq. I am using a model, goalsModel, to retrieve my data: ` public goals GetGoal(int id) { return qDB.goals.Single(g => g.goalID == id); } ` I'd like Activities to be available as well... where I could do something like: ` public goals GetGoalActivities(int id) { return qDB.ilpActivities.Where(g => g.goalID == id); }` However this returns an error. The smart tags for don't show any columns available for ilpActivities. I've seen several methods of writing code in the controller where it's a linq query - but I'd really like to use the format above if possible for consistency. Here's a link that I've been trying to follow that may do what I want. Keep in mind, however, I'll eventually be editing existing activities, creating new ones, and deleting activities. The link: http://geekswithblogs.net/michelotti/archive/2007/12/30/118076.aspx [Edit] I couldn't post an image as a new user. My tables consist of goalID as the primary key of goals and foreign key in ilpActivities. ilpActivities has a primary key of activityID.
linq
asp.net-mvc-3
razor
null
null
null
open
Linq - Referencing a Child Table === I have a few tables I'm dealing with regarding a "Goals" application (screen grab is below). I'm using MVC 3, razor and linq. I am using a model, goalsModel, to retrieve my data: ` public goals GetGoal(int id) { return qDB.goals.Single(g => g.goalID == id); } ` I'd like Activities to be available as well... where I could do something like: ` public goals GetGoalActivities(int id) { return qDB.ilpActivities.Where(g => g.goalID == id); }` However this returns an error. The smart tags for don't show any columns available for ilpActivities. I've seen several methods of writing code in the controller where it's a linq query - but I'd really like to use the format above if possible for consistency. Here's a link that I've been trying to follow that may do what I want. Keep in mind, however, I'll eventually be editing existing activities, creating new ones, and deleting activities. The link: http://geekswithblogs.net/michelotti/archive/2007/12/30/118076.aspx [Edit] I couldn't post an image as a new user. My tables consist of goalID as the primary key of goals and foreign key in ilpActivities. ilpActivities has a primary key of activityID.
0
10,793,091
05/29/2012 04:33:05
1,422,821
05/29/2012 04:28:46
1
0
Java standalone application for callout
I need some help to develop an application where I can create interactive callout for an image. Is there any framework, by which I can do this..I've used swing and awt but couldn't make it anyway..Plzz reply me..
java
callouts
null
null
null
05/29/2012 12:19:10
not a real question
Java standalone application for callout === I need some help to develop an application where I can create interactive callout for an image. Is there any framework, by which I can do this..I've used swing and awt but couldn't make it anyway..Plzz reply me..
1
7,295,820
09/03/2011 20:52:54
927,010
09/03/2011 20:52:54
1
0
Assembly simulator Javascriot
Is there an assembly simulator in JavaScript available? If not, would it be feasible and realistic to make one?
javascript
assembly
null
null
null
09/03/2011 21:02:53
not a real question
Assembly simulator Javascriot === Is there an assembly simulator in JavaScript available? If not, would it be feasible and realistic to make one?
1
9,050,463
01/29/2012 02:38:34
510,346
11/17/2010 04:07:26
673
16
grails 2.0 - formatDate using fieldValue, is this a bug in Grails 2.0?
In my Grails 2.0 the following GSP code works: <g:formatDate date="${merchantTrans.dateCreated}" /> But the code <g:formatDate date="${fieldValue(bean: merchantTrans, field: 'dateCreated')}" /> causes the following error: Stacktrace follows: Message: Unknown class: org.codehaus.groovy.grails.web.util.StreamCharBuffer I tried different combos of single and double quotes but got the same error. This code worked in Grails 1.3.7, so ? There, I actually got away using double quotes on "dateCreated" as well as on date="...". If you have a moment, can you please test a dateCreated field in one of your domain objects to see if you have the same problem. Perhaps I have some other update-to-Grails 2.0 problem that I'm unaware of? In case it matters, I iterate over the merchantTrans objects as so: <g:each in="${merchantTransactionInstanceList}" status="i" var="merchantTrans"> Thanks, Ray
grails
null
null
null
null
null
open
grails 2.0 - formatDate using fieldValue, is this a bug in Grails 2.0? === In my Grails 2.0 the following GSP code works: <g:formatDate date="${merchantTrans.dateCreated}" /> But the code <g:formatDate date="${fieldValue(bean: merchantTrans, field: 'dateCreated')}" /> causes the following error: Stacktrace follows: Message: Unknown class: org.codehaus.groovy.grails.web.util.StreamCharBuffer I tried different combos of single and double quotes but got the same error. This code worked in Grails 1.3.7, so ? There, I actually got away using double quotes on "dateCreated" as well as on date="...". If you have a moment, can you please test a dateCreated field in one of your domain objects to see if you have the same problem. Perhaps I have some other update-to-Grails 2.0 problem that I'm unaware of? In case it matters, I iterate over the merchantTrans objects as so: <g:each in="${merchantTransactionInstanceList}" status="i" var="merchantTrans"> Thanks, Ray
0
6,844,252
07/27/2011 12:25:44
186,202
10/08/2009 08:01:14
1,478
56
Which JQuery Charting library to use for multi plotting ?
I have to plot this kind of chart using a JQuery Plugin. So far I was using the [JQuery Visualize plugin](http://www.filamentgroup.com/lab/update_to_jquery_visualize_accessible_charts_with_html5_from_designing_with/) but I guess this is too complicated for it. ![Regression](http://hubscher.remy.free.fr/tally/images/2011/07/27/Regression557.jpg) Do you have any idea of how to display the markers and the line in the same chart.
jquery
charts
plot
null
null
null
open
Which JQuery Charting library to use for multi plotting ? === I have to plot this kind of chart using a JQuery Plugin. So far I was using the [JQuery Visualize plugin](http://www.filamentgroup.com/lab/update_to_jquery_visualize_accessible_charts_with_html5_from_designing_with/) but I guess this is too complicated for it. ![Regression](http://hubscher.remy.free.fr/tally/images/2011/07/27/Regression557.jpg) Do you have any idea of how to display the markers and the line in the same chart.
0
191,691
10/10/2008 14:49:58
1,199,234
09/15/2008 15:43:49
221
4
Should C# include multiple inheritance?
I have come across numerous arguments against the inclusion on multiple inheritance in C#, some of which include (philosophical arguments aside): - Multiple inheritance is to complicated and often ambiguous - It is unnecessary because interfaces provide something similar - Composition is a good substitute where interfaces are inappropriate I come from a C++ background and miss the power and elegance of multiple inheritance. Although it is not suited to all software designs there are situations where it is difficult to deny it's utility over interfaces, composition and similar OO techniques. Is the exclusion of multiple inheritance saying that developers are not smart enough to use them wisely and are incapable of addressing the complexities when they arise? I personally would welcome the introduction of multiple inheritance into C# (perhaps C##).
c#
multiple
inheritance
null
null
03/16/2012 01:20:38
not constructive
Should C# include multiple inheritance? === I have come across numerous arguments against the inclusion on multiple inheritance in C#, some of which include (philosophical arguments aside): - Multiple inheritance is to complicated and often ambiguous - It is unnecessary because interfaces provide something similar - Composition is a good substitute where interfaces are inappropriate I come from a C++ background and miss the power and elegance of multiple inheritance. Although it is not suited to all software designs there are situations where it is difficult to deny it's utility over interfaces, composition and similar OO techniques. Is the exclusion of multiple inheritance saying that developers are not smart enough to use them wisely and are incapable of addressing the complexities when they arise? I personally would welcome the introduction of multiple inheritance into C# (perhaps C##).
4
4,481,002
12/19/2010 00:28:37
494,422
11/02/2010 07:04:18
3
0
what is better to learn for pattern recognition?
c or c++?? if i want to make a project on pattern recognition( artificial computing) using c or c++ which one should i choose??
c++
c
null
null
null
12/19/2010 00:53:02
not constructive
what is better to learn for pattern recognition? === c or c++?? if i want to make a project on pattern recognition( artificial computing) using c or c++ which one should i choose??
4
9,218,765
02/09/2012 21:07:25
1,200,646
02/09/2012 20:58:08
1
0
Simple Barcode/Icon Recognition for iPad/iPhone
I basically need direction for developing a prototype for a simple iPad image scanner that will recognise either a barcode, symbol or QRcode from a poster which will open up an info box with more information. Any links will be greatly appreciated as I am new to ipad development and as yet have not found the best online resources
ipad
barcode
recognition
null
null
02/12/2012 07:38:34
not constructive
Simple Barcode/Icon Recognition for iPad/iPhone === I basically need direction for developing a prototype for a simple iPad image scanner that will recognise either a barcode, symbol or QRcode from a poster which will open up an info box with more information. Any links will be greatly appreciated as I am new to ipad development and as yet have not found the best online resources
4
7,174,007
08/24/2011 10:32:43
738,055
05/04/2011 13:10:09
-1
3
How to calculate UILabel height dynamically?
I want to calculate number of lines and height of UILabel dynamically from given text for same.
iphone
null
null
null
null
null
open
How to calculate UILabel height dynamically? === I want to calculate number of lines and height of UILabel dynamically from given text for same.
0
3,165,179
07/02/2010 11:11:42
381,983
07/02/2010 11:11:42
1
0
Postgres Editable Union View
I have a table which stores 'links' between 2 people. In order prevent further complications down the road on an application I am building, I want to create an editable view, that shows the link records and an inverse copy of the link records. Meaning if Joe is linked to Sally, then the view should show Joe linked to Sally and Sally linked to Joe. So I have created a UNION as follows: CREATE VIEW links AS SELECT id, link_origin_id AS person_id, link_origin_id, link_rcvd_id, link_type, link_summary, created_at, updated_at FROM links_data UNION SELECT id, link_rcvd_id, link_origin_id, link_rcvd_id, link_type, link_summary, created_at, updated_at FROM links_data The view works fine. Note that the view creates an additional column 'person_id' which is not in the underlying table. I am running into trouble creating postgres rules that will edit the underlying table. Specifically, I can successfully edit a table view when it is not a UNION view. But below is what occurs when I try to write a rule with a UNION view: CREATE RULE inverse_links AS ON INSERT TO links DO INSTEAD INSERT INTO links_data (id, link_origin_id, link_type, link_summary, link_rcvd_id, created_at, updated_at) VALUES (nextval('people_id_seq'), new.link_origin_id, new.link_type, new.link_summary, new.link_rcvd_id, new.created_at, new.updated_at) RETURNING *; The above rule should redirect the edits to the underlying table 'links_data'. But I am getting the following error: ERROR: RETURNING list's entry 3 has different type from column "link_origin_id" ********** Error ********** ERROR: RETURNING list's entry 3 has different type from column "link_origin_id" SQL state: 42P17 The 2 things I feel might be the problem is that 1) the view has an additional column which is causing the column types to not match up or 2) there might be something with the fact that the table is a UNION on itself and editing this might be a problem. Any idea of where I can go with this?
postgresql
view
union
editable
null
null
open
Postgres Editable Union View === I have a table which stores 'links' between 2 people. In order prevent further complications down the road on an application I am building, I want to create an editable view, that shows the link records and an inverse copy of the link records. Meaning if Joe is linked to Sally, then the view should show Joe linked to Sally and Sally linked to Joe. So I have created a UNION as follows: CREATE VIEW links AS SELECT id, link_origin_id AS person_id, link_origin_id, link_rcvd_id, link_type, link_summary, created_at, updated_at FROM links_data UNION SELECT id, link_rcvd_id, link_origin_id, link_rcvd_id, link_type, link_summary, created_at, updated_at FROM links_data The view works fine. Note that the view creates an additional column 'person_id' which is not in the underlying table. I am running into trouble creating postgres rules that will edit the underlying table. Specifically, I can successfully edit a table view when it is not a UNION view. But below is what occurs when I try to write a rule with a UNION view: CREATE RULE inverse_links AS ON INSERT TO links DO INSTEAD INSERT INTO links_data (id, link_origin_id, link_type, link_summary, link_rcvd_id, created_at, updated_at) VALUES (nextval('people_id_seq'), new.link_origin_id, new.link_type, new.link_summary, new.link_rcvd_id, new.created_at, new.updated_at) RETURNING *; The above rule should redirect the edits to the underlying table 'links_data'. But I am getting the following error: ERROR: RETURNING list's entry 3 has different type from column "link_origin_id" ********** Error ********** ERROR: RETURNING list's entry 3 has different type from column "link_origin_id" SQL state: 42P17 The 2 things I feel might be the problem is that 1) the view has an additional column which is causing the column types to not match up or 2) there might be something with the fact that the table is a UNION on itself and editing this might be a problem. Any idea of where I can go with this?
0
8,442,843
12/09/2011 08:23:15
1,093,391
11/28/2011 04:08:06
12
0
Post Data but GET Method json -ios
how can i use the get method to post data on an api link with 6 values and a json format? im really fuzzled. im doing this for days . is it best to have 6 textfields that will be used to write the value and a button to indicate post data? check out my code and please help. -(IBAction)postDataPressed { NSString *urlString = @"http://192.168.18.8/apisample2/friendb.php?fm=jsn"; NSURL *url = [NSURL URLWithString:urlString]; ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url]; [request setPostValue:user.text forKey:@"un"]; [request setPostValue:pass.text forKey:@"pd"]; [request setPostValue:gender.text forKey:@"gd"]; [request setPostValue:age.text forKey:@"ag"]; [request setPostValue:status.text forKey:@"st"]; [request setPostValue:lookfor.text forKey:@"lf"]; [request setRequestMethod:@"GET"]; [request setCompletionBlock:^{ NSString *responseString = [request responseString]; NSLog(@"Response: %@", responseString); }]; [request setFailedBlock:^{ NSError *error = [request error]; NSLog(@"Error: %@", error.localizedDescription); }]; [request setDidFinishSelector:@selector(requestFinished:)]; [request setDidFailSelector:@selector(requestFailed:)]; [request startAsynchronous]; } i hope someone will help.
iphone
ios
post
get
pro
null
open
Post Data but GET Method json -ios === how can i use the get method to post data on an api link with 6 values and a json format? im really fuzzled. im doing this for days . is it best to have 6 textfields that will be used to write the value and a button to indicate post data? check out my code and please help. -(IBAction)postDataPressed { NSString *urlString = @"http://192.168.18.8/apisample2/friendb.php?fm=jsn"; NSURL *url = [NSURL URLWithString:urlString]; ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url]; [request setPostValue:user.text forKey:@"un"]; [request setPostValue:pass.text forKey:@"pd"]; [request setPostValue:gender.text forKey:@"gd"]; [request setPostValue:age.text forKey:@"ag"]; [request setPostValue:status.text forKey:@"st"]; [request setPostValue:lookfor.text forKey:@"lf"]; [request setRequestMethod:@"GET"]; [request setCompletionBlock:^{ NSString *responseString = [request responseString]; NSLog(@"Response: %@", responseString); }]; [request setFailedBlock:^{ NSError *error = [request error]; NSLog(@"Error: %@", error.localizedDescription); }]; [request setDidFinishSelector:@selector(requestFinished:)]; [request setDidFailSelector:@selector(requestFailed:)]; [request startAsynchronous]; } i hope someone will help.
0
10,994,991
06/12/2012 10:40:08
37,298
11/13/2008 09:33:21
5,033
242
Infinity in JFreeChart
I have found this link: http://www.jfree.org/forum/viewtopic.php?f=3&t=6314 Its back in 2007 where they agree that infinity should be supported in JFreeChart. Anyone know if it is supported or not? I need to be able to support this. Or be able to draw a line on the X axis that doesn't have an end.
jfreechart
infinity
null
null
null
null
open
Infinity in JFreeChart === I have found this link: http://www.jfree.org/forum/viewtopic.php?f=3&t=6314 Its back in 2007 where they agree that infinity should be supported in JFreeChart. Anyone know if it is supported or not? I need to be able to support this. Or be able to draw a line on the X axis that doesn't have an end.
0
9,218,302
02/09/2012 20:31:55
1,200,494
02/09/2012 19:33:12
1
0
Sorting files based on a timestamp within the file
I have a bunch of files which contain an ascii header with a time stamp **WITHIN** the file, followed by a large chunck of binary data. I would like to sort the files based on this time stamp. The file headers look similar to the following: encoding: raw endian: big dimension: 4 sizes: 128 128 1 4 spacings: 1.0 1.0 1.0 NaN position: -3164,-13678 date_time: 06.02.12.18:59 user_name: Operator1 sample_name: dwell_time: 4.000 count_time: 65.536 duration: 202.000 raster: 79912 pixel_width: 624.3125 pixel_height: 624.3125 ....binary data.... I would like to sort based on the "date_time" time stamp, which uses the format *dd.mm.yy.hh:mm* The sort --key option looks promising but all my attempts have failed. Any help is much appreciated. Thanks.
sorting
null
null
null
null
null
open
Sorting files based on a timestamp within the file === I have a bunch of files which contain an ascii header with a time stamp **WITHIN** the file, followed by a large chunck of binary data. I would like to sort the files based on this time stamp. The file headers look similar to the following: encoding: raw endian: big dimension: 4 sizes: 128 128 1 4 spacings: 1.0 1.0 1.0 NaN position: -3164,-13678 date_time: 06.02.12.18:59 user_name: Operator1 sample_name: dwell_time: 4.000 count_time: 65.536 duration: 202.000 raster: 79912 pixel_width: 624.3125 pixel_height: 624.3125 ....binary data.... I would like to sort based on the "date_time" time stamp, which uses the format *dd.mm.yy.hh:mm* The sort --key option looks promising but all my attempts have failed. Any help is much appreciated. Thanks.
0
4,664,071
01/12/2011 00:03:11
322,784
04/21/2010 23:36:22
1
4
Why domain names are backwards?
I realize that this question might not make sense to some, but I was just curious of why the domain names built starting from most specific and ending with most global identifier. www.google.com [most specific].[2nd level].[top level] All other tree traversing formats, syntax conventions and identifiers (at least ones that I'm aware of) start with the most global namespace and end with the most specific node. * **Filepath:** /root/subfolder1/subfolder2/file * **Component:** com.android.notepad.NoteEditor * **Object:** rootObject.subObject1.subObject2 * **IP:** 1.2.3.4 * **Newsgroups:** comp.lang.java.help * **Phone numbers:** +1-555-555-1234 So I guess my question is whether there is any productive reason behind this special treatment of domain names by specifying them backwards, or it was just decided by throwing a coin?
dns
internet
domain-name
null
null
01/12/2011 00:45:06
off topic
Why domain names are backwards? === I realize that this question might not make sense to some, but I was just curious of why the domain names built starting from most specific and ending with most global identifier. www.google.com [most specific].[2nd level].[top level] All other tree traversing formats, syntax conventions and identifiers (at least ones that I'm aware of) start with the most global namespace and end with the most specific node. * **Filepath:** /root/subfolder1/subfolder2/file * **Component:** com.android.notepad.NoteEditor * **Object:** rootObject.subObject1.subObject2 * **IP:** 1.2.3.4 * **Newsgroups:** comp.lang.java.help * **Phone numbers:** +1-555-555-1234 So I guess my question is whether there is any productive reason behind this special treatment of domain names by specifying them backwards, or it was just decided by throwing a coin?
2
1,641,054
10/29/2009 00:54:38
198,564
10/29/2009 00:54:38
1
0
what is the advantages for count down and count up?
Count up and count down seems no difference, we can implement either one as we like. But actually what is the advantage for using count up and count down. what is the difference between them (besides that one is increament, another one is decrement)? Thanks! Regards, Molly Lee
counter
null
null
null
null
10/29/2009 01:06:46
not a real question
what is the advantages for count down and count up? === Count up and count down seems no difference, we can implement either one as we like. But actually what is the advantage for using count up and count down. what is the difference between them (besides that one is increament, another one is decrement)? Thanks! Regards, Molly Lee
1
3,839,689
10/01/2010 13:37:59
427,683
08/22/2010 14:52:55
17
0
ruby beginner, initialize object
In rails default controller the new method makes an object, and the create method is used later to save that. I want to set a mod_user field in the DB, without it being input into the form. Based on this link http://api.rubyonrails.org/classes/ActiveRecord/Base.html I've tried adding the following to my pages controller. def new @page = Page.new(:n_publisher_id => session[:n_publisher_id]) or def create page = Page.new(params[:page]) page.n_publisher_id = session[:n_publisher_id] But it is saving as NULL If I put this in the controller and model then I get nil object errors from ActiveRecord def new @page = Page.new(1) def initialize(n_publisher) @n_publisher_id = n_publisher end I have attr_accessor :n_publisher_id included in my page model. This works in the console... >> @i = Page.new => #<Page id: nil, fk_issue: nil, n_status_id: nil, dt_published_datetime: nil, dt_offline_date: nil, dt_created_date: nil, n_publisher_id: nil, created_at: nil, updated_at: nil, page_name: nil> >> @i.n_publisher_id => nil >> @i.n_publisher_id = 1 => 1 >> @i.n_publisher_id => 1
ruby-on-rails
ruby
null
null
null
null
open
ruby beginner, initialize object === In rails default controller the new method makes an object, and the create method is used later to save that. I want to set a mod_user field in the DB, without it being input into the form. Based on this link http://api.rubyonrails.org/classes/ActiveRecord/Base.html I've tried adding the following to my pages controller. def new @page = Page.new(:n_publisher_id => session[:n_publisher_id]) or def create page = Page.new(params[:page]) page.n_publisher_id = session[:n_publisher_id] But it is saving as NULL If I put this in the controller and model then I get nil object errors from ActiveRecord def new @page = Page.new(1) def initialize(n_publisher) @n_publisher_id = n_publisher end I have attr_accessor :n_publisher_id included in my page model. This works in the console... >> @i = Page.new => #<Page id: nil, fk_issue: nil, n_status_id: nil, dt_published_datetime: nil, dt_offline_date: nil, dt_created_date: nil, n_publisher_id: nil, created_at: nil, updated_at: nil, page_name: nil> >> @i.n_publisher_id => nil >> @i.n_publisher_id = 1 => 1 >> @i.n_publisher_id => 1
0
6,142,867
05/26/2011 17:47:31
72,350
03/01/2009 01:02:53
1,282
39
How to enable WCF net.tcp in IPSec?
I'm trying to connect from a web app to another web app using the WCF.NET NET-TCP protocol. This net.tcp protocol is enabled in IIS and is using the port TCP 808 in my case. I've configured IP Filter in the server, but it blocks the connection between both applications unless I completely disable IP Filter. This is the rule I've tried to add, and which doesn't work: Source address: Any IP Address Destination address: My IP Address Protocol: 6 (TCP) From Port: Any port To Port: 808 Action: Permit Using TCPView, when the connection is blocked shows: Protocol Local Address Remote Address Status TCP server.com:64706 server.com:808 SYN_SENT How do I permit this connections? Thanks!
.net
windows-server-2008-r2
net.tcp
ipsec
null
null
open
How to enable WCF net.tcp in IPSec? === I'm trying to connect from a web app to another web app using the WCF.NET NET-TCP protocol. This net.tcp protocol is enabled in IIS and is using the port TCP 808 in my case. I've configured IP Filter in the server, but it blocks the connection between both applications unless I completely disable IP Filter. This is the rule I've tried to add, and which doesn't work: Source address: Any IP Address Destination address: My IP Address Protocol: 6 (TCP) From Port: Any port To Port: 808 Action: Permit Using TCPView, when the connection is blocked shows: Protocol Local Address Remote Address Status TCP server.com:64706 server.com:808 SYN_SENT How do I permit this connections? Thanks!
0
11,636,083
07/24/2012 17:22:49
672,232
03/23/2011 01:15:40
118
6
Why python's interprets not empty strig's objects as logical False?
I don't understand why not empty strings are False, same like empty strings. I think that collection of characters is much something than less. What is a root of python purpose in this case? >>> "" in 'fdsa' True >>> '' in '' True >>> 'asdf' in '' False >>> 'adsf' is True False
python
null
null
null
null
07/24/2012 17:37:04
not a real question
Why python's interprets not empty strig's objects as logical False? === I don't understand why not empty strings are False, same like empty strings. I think that collection of characters is much something than less. What is a root of python purpose in this case? >>> "" in 'fdsa' True >>> '' in '' True >>> 'asdf' in '' False >>> 'adsf' is True False
1
7,656,113
10/05/2011 02:31:09
37,759
11/14/2008 18:52:57
1,576
26
Linq InsertOnSubmit is throwing exception: Object reference not set to an instance of an object
The following throws exception. The *course* object that is being passed to InsertOnSubmit is of type Course that is generated by Linq. SchedulerDataContext db = new SchedulerDataContext(); db.Courses.InsertOnSubmit(course); // <- this is where exception is thrown db.SubmitChanges(); There are already questions about this [here][1] and [here][2], however, I don't understand their answer. Supposedly I'm not creating an object in time. Which object and what exactly needs to happen? [1]: http://stackoverflow.com/questions/499436/linq-insertonsubmit-nullreferenceexception [2]: http://stackoverflow.com/questions/2198072/nullreferenceexception-when-doing-insertonsubmit-in-linq-to-sql
linq
linq-to-sql
null
null
null
null
open
Linq InsertOnSubmit is throwing exception: Object reference not set to an instance of an object === The following throws exception. The *course* object that is being passed to InsertOnSubmit is of type Course that is generated by Linq. SchedulerDataContext db = new SchedulerDataContext(); db.Courses.InsertOnSubmit(course); // <- this is where exception is thrown db.SubmitChanges(); There are already questions about this [here][1] and [here][2], however, I don't understand their answer. Supposedly I'm not creating an object in time. Which object and what exactly needs to happen? [1]: http://stackoverflow.com/questions/499436/linq-insertonsubmit-nullreferenceexception [2]: http://stackoverflow.com/questions/2198072/nullreferenceexception-when-doing-insertonsubmit-in-linq-to-sql
0
7,923,176
10/27/2011 22:25:06
69,983
02/23/2009 17:57:45
1,584
61
smartphone: looking for suggestions on image feeds
I'm creating an app to highlight Movember. One of the features of the app is to display the progression of a MoBro's Mo throughout Movember (yes, that is seriously what we call it!). I want to host the images on a service and then display the images in-app through a feed from afore-mentioned service. I'm looking for suggestions on image services and various pros/cons of each one.
android
iphone
image
windows-phone-7
rss
10/28/2011 16:05:55
not constructive
smartphone: looking for suggestions on image feeds === I'm creating an app to highlight Movember. One of the features of the app is to display the progression of a MoBro's Mo throughout Movember (yes, that is seriously what we call it!). I want to host the images on a service and then display the images in-app through a feed from afore-mentioned service. I'm looking for suggestions on image services and various pros/cons of each one.
4
5,302,033
03/14/2011 17:19:37
400,462
09/16/2009 14:39:44
38
5
Is there a way to get CSS-Transforms to work in Firefox 3.0?
I know you can do it with Firefox 3.5+ but is there a hack to get it to work on Firefox 3.0?
javascript
css
firefox
css3
transform
null
open
Is there a way to get CSS-Transforms to work in Firefox 3.0? === I know you can do it with Firefox 3.5+ but is there a hack to get it to work on Firefox 3.0?
0
7,968,341
11/01/2011 14:56:12
287,254
03/05/2010 15:54:53
2,317
213
Weird iPad Browser Quirk/ CSS Issue
I'm working on a page (http://oscarspad.co.uk/Gallery/) which uses the Galleria plugin to generate an image browser. All is fine *except* when the page is viewed on iPads. In this scenario the page bodycontent moves way over to the right while everything else stays as it is. Can anyone shed any light on this? I've tested the page on all major browsers under Win and Mac and also on my HTC Desire HD with both Opera and HTC's own browser ...
css
ios
browser
rendering
quirksmode
11/01/2011 15:20:31
too localized
Weird iPad Browser Quirk/ CSS Issue === I'm working on a page (http://oscarspad.co.uk/Gallery/) which uses the Galleria plugin to generate an image browser. All is fine *except* when the page is viewed on iPads. In this scenario the page bodycontent moves way over to the right while everything else stays as it is. Can anyone shed any light on this? I've tested the page on all major browsers under Win and Mac and also on my HTC Desire HD with both Opera and HTC's own browser ...
3
7,279,730
09/02/2011 05:59:22
851,401
07/19/2011 06:45:46
1
0
Rufus-scheduler variable for time zone - ruby on rails
I am running a rails app that uses rufus-scheduler to send out a daily e-mail to all users at noon, however, it currently sends it out at noon for the apps timezone "Taipei". I am capturing user timezones on signup, but I am unable to put a variable into a rufus-scheduler task scheduler.cron('0 15 * * * @time_zone') do Account.all.each do |account| CODE account.users.each do |user| DELIVER EMAIL CODE end end end I guess I'm just not sure where to define the @time_zone variable so that rufus will read it properly. Thanks in advance!
ruby-on-rails
ruby
rufus-scheduler
null
null
null
open
Rufus-scheduler variable for time zone - ruby on rails === I am running a rails app that uses rufus-scheduler to send out a daily e-mail to all users at noon, however, it currently sends it out at noon for the apps timezone "Taipei". I am capturing user timezones on signup, but I am unable to put a variable into a rufus-scheduler task scheduler.cron('0 15 * * * @time_zone') do Account.all.each do |account| CODE account.users.each do |user| DELIVER EMAIL CODE end end end I guess I'm just not sure where to define the @time_zone variable so that rufus will read it properly. Thanks in advance!
0
10,613,846
05/16/2012 07:25:40
1,192,399
02/06/2012 13:40:44
1
0
create table with sequence.nextval in oracle
i created a sequence using the following query, create sequence qname_id_seq start with 1 increment by 1 nocache; Now when i try to create a table which uses the above sequence, it is throwing the following error, Error report: SQL Error: ORA-00907: missing right parenthesis 00907. 00000 - "missing right parenthesis" I used the following query to create a table with sequence.nextval, CREATE TABLE qname ( qname_id integer NOT NULL default qname_id_seq.nextval PRIMARY KEY, qname VARCHAR2(4000) NOT NULL -- CONSTRAINT qname_uk UNIQUE );
sql
database
oracle
query
plsql
null
open
create table with sequence.nextval in oracle === i created a sequence using the following query, create sequence qname_id_seq start with 1 increment by 1 nocache; Now when i try to create a table which uses the above sequence, it is throwing the following error, Error report: SQL Error: ORA-00907: missing right parenthesis 00907. 00000 - "missing right parenthesis" I used the following query to create a table with sequence.nextval, CREATE TABLE qname ( qname_id integer NOT NULL default qname_id_seq.nextval PRIMARY KEY, qname VARCHAR2(4000) NOT NULL -- CONSTRAINT qname_uk UNIQUE );
0
8,560,561
12/19/2011 11:20:41
767,303
05/24/2011 07:37:01
89
0
Analyze internet speed using java program
I need a program that anlyze the internet speed of the network, is possible to write this program by using java. anybody knows? help is highly appreciated. Thanks, Shihab.
java
java-ee
null
null
null
12/20/2011 08:41:21
not a real question
Analyze internet speed using java program === I need a program that anlyze the internet speed of the network, is possible to write this program by using java. anybody knows? help is highly appreciated. Thanks, Shihab.
1
5,564,507
04/06/2011 09:56:14
694,538
04/06/2011 09:28:33
1
0
grid view errors
i want to delete,update,select the data in grid view in c#.net..then give me the code for that.am using oracle database..
c#
null
null
null
null
04/06/2011 11:05:58
not a real question
grid view errors === i want to delete,update,select the data in grid view in c#.net..then give me the code for that.am using oracle database..
1
5,732,405
04/20/2011 14:58:35
475,995
10/14/2010 16:03:26
11
0
Using sigaction for SIGCHLD to know when children terminate but unable to tell when the child SIGSEVs
According to the man page for sigaction, if we use it with SIGCHLD then in our handler function - this is if we use void (*sa_sigaction)(int, siginfo_t *, void *); the si_code member of the siginfo_t structure should contain the reason the signal was sent. I am interested in these reasons... CLD_EXITED CLD_KILLED CLD_DUMPED Now my question is... even if the child exited abnormally (i.e by executing buggy code to cause a crash) i still get CLD_EXITED. I assumed I should get CLD_DUMPED instead. As for CLD_KILLED, if I kill a child process, I get this one correctly. What am I missing? In my parent process, I need to know if any of the child processes terminate abruptly. I am causing the abrupt error by trying to write to a null pointer but I need to know of any kind of abnormal termination. It is not necessary to know exactly what or how it happened. When is the CLD_DUMPED generated? Kind Regards.
c
linux
signal-processing
null
null
null
open
Using sigaction for SIGCHLD to know when children terminate but unable to tell when the child SIGSEVs === According to the man page for sigaction, if we use it with SIGCHLD then in our handler function - this is if we use void (*sa_sigaction)(int, siginfo_t *, void *); the si_code member of the siginfo_t structure should contain the reason the signal was sent. I am interested in these reasons... CLD_EXITED CLD_KILLED CLD_DUMPED Now my question is... even if the child exited abnormally (i.e by executing buggy code to cause a crash) i still get CLD_EXITED. I assumed I should get CLD_DUMPED instead. As for CLD_KILLED, if I kill a child process, I get this one correctly. What am I missing? In my parent process, I need to know if any of the child processes terminate abruptly. I am causing the abrupt error by trying to write to a null pointer but I need to know of any kind of abnormal termination. It is not necessary to know exactly what or how it happened. When is the CLD_DUMPED generated? Kind Regards.
0
2,987,296
06/07/2010 05:39:45
138,821
07/15/2009 16:06:40
1
0
Trying to perform a series of actions on page unload, but the pages unloads too fast to finish them.
I have a series of actions I want to perform on page unload. Namely if a user is editing an input field, and they refresh or close browser or leave page, I want to save the contents of the field. The actions don't include an AJAX call, so I can't just make it synchronous. It's actually saving to local storage, but the page unloads before the storage can take place. The code is correct, if I add an alert to the actions, the delay allows the rest of the code to finish before it even displays. Any ideas? Thanks!
browser
javascript-events
unload
null
null
null
open
Trying to perform a series of actions on page unload, but the pages unloads too fast to finish them. === I have a series of actions I want to perform on page unload. Namely if a user is editing an input field, and they refresh or close browser or leave page, I want to save the contents of the field. The actions don't include an AJAX call, so I can't just make it synchronous. It's actually saving to local storage, but the page unloads before the storage can take place. The code is correct, if I add an alert to the actions, the delay allows the rest of the code to finish before it even displays. Any ideas? Thanks!
0
10,528,723
05/10/2012 06:42:45
1,175,540
01/28/2012 17:47:20
23
2
WordPress in subdirectory of subdirectory
This should be simple - can't figure out where I'm going wrong: We have WordPress installed in the following location: http://example.com/gallery/cms and I want the site to be visible at http://example.com/gallery I have the WordPress Address set to http://example.com/gallery/cms and the Site Address set to http://example.com/gallery I copied the .htaccess and index.php to the /gallery folder. The .htaccess contains the following code: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /gallery/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /gallery/index.php [L] </IfModule> The index.php contains the following code: define('WP_USE_THEMES', true); require('./cms/wp-blog-header.php'); The home page loads up fine, but any interior pages kick of a "Not Found" error: `http://playstartshere.com/gallery/specs/` yields `The requested URL /gallery/specs/ was not found on this server.` Where am I going wrong? I tried changing index.php to: The index.php contains the following code: define('WP_USE_THEMES', true); require('./gallery/cms/wp-blog-header.php'); but that broke the site entirely.
wordpress
.htaccess
subdirectory
null
null
05/11/2012 16:08:09
off topic
WordPress in subdirectory of subdirectory === This should be simple - can't figure out where I'm going wrong: We have WordPress installed in the following location: http://example.com/gallery/cms and I want the site to be visible at http://example.com/gallery I have the WordPress Address set to http://example.com/gallery/cms and the Site Address set to http://example.com/gallery I copied the .htaccess and index.php to the /gallery folder. The .htaccess contains the following code: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /gallery/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /gallery/index.php [L] </IfModule> The index.php contains the following code: define('WP_USE_THEMES', true); require('./cms/wp-blog-header.php'); The home page loads up fine, but any interior pages kick of a "Not Found" error: `http://playstartshere.com/gallery/specs/` yields `The requested URL /gallery/specs/ was not found on this server.` Where am I going wrong? I tried changing index.php to: The index.php contains the following code: define('WP_USE_THEMES', true); require('./gallery/cms/wp-blog-header.php'); but that broke the site entirely.
2
7,762,418
10/14/2011 02:16:06
994,623
10/14/2011 02:10:55
1
0
Filter out Temporary Files from a Directory.GetFiles List C#
I am trying to only keep files with the file extensions .SLDPRT, .SLDASM, and .SLDDRW. However, I keep getting hidden temporary files that begin with ~$ like C:\directory\~$IamAtemporaryfile.sldprt . What are your suggestions to get rid of those? string[] solidworksFileList = Directory.GetFiles(args[0], "*.SLD???", SearchOption.AllDirectories).Where(str => str.EndsWith(".SLDPRT", StringComparison.OrdinalIgnoreCase) || str.EndsWith(".SLDASM", StringComparison.OrdinalIgnoreCase) || str.EndsWith(".SLDDRW", StringComparison.OrdinalIgnoreCase)).ToArray();
c#-4.0
null
null
null
null
null
open
Filter out Temporary Files from a Directory.GetFiles List C# === I am trying to only keep files with the file extensions .SLDPRT, .SLDASM, and .SLDDRW. However, I keep getting hidden temporary files that begin with ~$ like C:\directory\~$IamAtemporaryfile.sldprt . What are your suggestions to get rid of those? string[] solidworksFileList = Directory.GetFiles(args[0], "*.SLD???", SearchOption.AllDirectories).Where(str => str.EndsWith(".SLDPRT", StringComparison.OrdinalIgnoreCase) || str.EndsWith(".SLDASM", StringComparison.OrdinalIgnoreCase) || str.EndsWith(".SLDDRW", StringComparison.OrdinalIgnoreCase)).ToArray();
0
8,051,385
11/08/2011 13:47:50
971,017
09/29/2011 11:34:09
15
0
Can't get FadeIn to work
I'm trying to get my background to fadeIn on button click, am I doing it correctly? $(document).ready(function () { $('#d_clip_container').click(function() { $('#d_clip_button').css('background-image','url(img/steps.png)').fadeIn("slow"); }); });
jquery
null
null
null
null
null
open
Can't get FadeIn to work === I'm trying to get my background to fadeIn on button click, am I doing it correctly? $(document).ready(function () { $('#d_clip_container').click(function() { $('#d_clip_button').css('background-image','url(img/steps.png)').fadeIn("slow"); }); });
0
7,132,961
08/20/2011 16:07:53
704,178
04/12/2011 13:32:59
20
0
linux alive message
I'm trying to periodically check out if several linux machines are alive. My idea is to have a main computer that receives a periodic message from every machine, so if any of them stops messaging, the main one will know something's going wrong with that particular equipment. I want to make it as "lite" as possible, I mean, using the less data transmission possible, because some of the machines I want to look after are placed on installation with a not so good internet connection. So, if it's possible, I'll prefer not to use email or ftp. Any idea? Thanks in advance.
linux
remote
null
null
null
08/20/2011 16:44:39
off topic
linux alive message === I'm trying to periodically check out if several linux machines are alive. My idea is to have a main computer that receives a periodic message from every machine, so if any of them stops messaging, the main one will know something's going wrong with that particular equipment. I want to make it as "lite" as possible, I mean, using the less data transmission possible, because some of the machines I want to look after are placed on installation with a not so good internet connection. So, if it's possible, I'll prefer not to use email or ftp. Any idea? Thanks in advance.
2
11,055,046
06/15/2012 16:52:52
127,522
06/23/2009 11:41:35
1,067
29
What is the point of the PHP "resource" type?
I'm just trying to deepen my understanding of the resource type, and I'm not really sure why it was invented in the first place, when surely just a standard object would suffice. From my experience, architecturally, you only ever send resources around as dependencies for other functions in the same operation in which you're executing, but you will never send that resource to a separate part of your program. Am I missing something or is it just an ugly piece of PHP baggage?
php
php5
null
null
null
06/16/2012 00:57:31
not constructive
What is the point of the PHP "resource" type? === I'm just trying to deepen my understanding of the resource type, and I'm not really sure why it was invented in the first place, when surely just a standard object would suffice. From my experience, architecturally, you only ever send resources around as dependencies for other functions in the same operation in which you're executing, but you will never send that resource to a separate part of your program. Am I missing something or is it just an ugly piece of PHP baggage?
4
7,333,640
09/07/2011 12:08:08
95,245
04/23/2009 23:49:55
2,615
120
GIT clone not working
I am trying to get the latest [NHibernate source from GitHub](https://github.com/nhibernate/nhibernate-core) using the latest Tortoise Hg client using the read only string provided, get the following error: % hg clone --verbose -- git://github.com/nhibernate/nhibernate-core.git repository git://github.com/nhibernate/nhibernate-core.git not found [command returned code 255 Wed Sep 07 08:01:23 2011] What am I doing wrong? Cheers, Berryl
git
nhibernate
github
null
null
09/08/2011 09:58:10
too localized
GIT clone not working === I am trying to get the latest [NHibernate source from GitHub](https://github.com/nhibernate/nhibernate-core) using the latest Tortoise Hg client using the read only string provided, get the following error: % hg clone --verbose -- git://github.com/nhibernate/nhibernate-core.git repository git://github.com/nhibernate/nhibernate-core.git not found [command returned code 255 Wed Sep 07 08:01:23 2011] What am I doing wrong? Cheers, Berryl
3
9,459,888
02/27/2012 04:01:06
345,905
05/20/2010 08:45:50
253
13
google places api callback workaround
i am looking for a workaround for getting the google search method to return the results of the callback rather than undefined. $.find_place_details = function(successCallback, reference, mapElementId) { var service; if (mapElementId == null) mapElementId = 'map'; service = new google.maps.places.PlacesService(document.getElementById(mapElementId)); return service.getDetails({ reference: reference }, function(place, status) { return successCallback(place, status); }); }; for example... i want $.find_places_nearby(2.4, -100.5, function(results, status) { return "callback results"; }); to return `callback results` instead of `undefined`
javascript
google-places-api
null
null
null
null
open
google places api callback workaround === i am looking for a workaround for getting the google search method to return the results of the callback rather than undefined. $.find_place_details = function(successCallback, reference, mapElementId) { var service; if (mapElementId == null) mapElementId = 'map'; service = new google.maps.places.PlacesService(document.getElementById(mapElementId)); return service.getDetails({ reference: reference }, function(place, status) { return successCallback(place, status); }); }; for example... i want $.find_places_nearby(2.4, -100.5, function(results, status) { return "callback results"; }); to return `callback results` instead of `undefined`
0
146,329
09/28/2008 17:41:59
23,213
09/28/2008 16:46:31
1
0
What is the worst 'gotcha' you've experienced?
From wikipedia: "In programming, a gotcha is a feature of a system, a program or a programming language that works in the way it is documented but is counter-intuitive and almost invites mistakes because it is both enticingly easy to invoke and completely unexpected and/or unreasonable in its outcome." So, what are some of the worst offenders that you've experienced?
gotcha
null
null
null
null
02/03/2012 16:35:46
not constructive
What is the worst 'gotcha' you've experienced? === From wikipedia: "In programming, a gotcha is a feature of a system, a program or a programming language that works in the way it is documented but is counter-intuitive and almost invites mistakes because it is both enticingly easy to invoke and completely unexpected and/or unreasonable in its outcome." So, what are some of the worst offenders that you've experienced?
4
4,020,553
10/26/2010 03:47:32
150,807
08/05/2009 05:45:42
907
33
Push a branch of a git repo to a new remote (github), hiding its history
My organisation is preparing to release an open-source version of our software using github, however I'm not sure the best way to approach this: We have two branches **master** and **release**, **master** contains some proprietary components that we have decided not to release, and **release** contains the cleaned-up version that we want to distribute. The problem is, if we just push the **release** branch to github, the proprietary components can be retrieved by looking through the revision history. I was considering creating a separate repository, copying the HEAD of **relase** into it, doing a <code>git init</code>, and pushing that repository to github. However, we want to retain the ability to cherry-pick certain patches from **master** into **release** in the future, and push those changes up to github. Is there a way to do this without maintaining two separte repositories? Thanks!
git
github
git-branch
remote-branch
null
null
open
Push a branch of a git repo to a new remote (github), hiding its history === My organisation is preparing to release an open-source version of our software using github, however I'm not sure the best way to approach this: We have two branches **master** and **release**, **master** contains some proprietary components that we have decided not to release, and **release** contains the cleaned-up version that we want to distribute. The problem is, if we just push the **release** branch to github, the proprietary components can be retrieved by looking through the revision history. I was considering creating a separate repository, copying the HEAD of **relase** into it, doing a <code>git init</code>, and pushing that repository to github. However, we want to retain the ability to cherry-pick certain patches from **master** into **release** in the future, and push those changes up to github. Is there a way to do this without maintaining two separte repositories? Thanks!
0
111,744
09/21/2008 19:01:21
1,695
08/18/2008 02:49:06
2,317
128
How do you "preview" user actions like resize or editing in GoDiagrams?
- The GoDiagram object model has a GoDocument. - GoViews have a reference to a GoDocument. - If the user does any modification on the diagramming surface, a GoDocument.Changed event is raised with the relevant information in the event arguments. I would like to be notified when some user-actions happen, so that I can confer with my Controller (disallow/cancel it if need be) and then issue view-update orders from there that actually modify the **Northwoods GoDiagram** third party component. The Changed event is a notification that something just happened (past tense) - Doing all of the above in the event handler results in a .... (*wait for it*)... StackOverflowException. (GoDocument.Changed handler > Updates GoDocument > Firing new Changed events.. ) So question, how do I get a BeforeEditing or BeforeResizing kind of notification model in GoDiagrams? Has anyone who's been there lived to tell a tale?
winforms
controls
null
null
null
null
open
How do you "preview" user actions like resize or editing in GoDiagrams? === - The GoDiagram object model has a GoDocument. - GoViews have a reference to a GoDocument. - If the user does any modification on the diagramming surface, a GoDocument.Changed event is raised with the relevant information in the event arguments. I would like to be notified when some user-actions happen, so that I can confer with my Controller (disallow/cancel it if need be) and then issue view-update orders from there that actually modify the **Northwoods GoDiagram** third party component. The Changed event is a notification that something just happened (past tense) - Doing all of the above in the event handler results in a .... (*wait for it*)... StackOverflowException. (GoDocument.Changed handler > Updates GoDocument > Firing new Changed events.. ) So question, how do I get a BeforeEditing or BeforeResizing kind of notification model in GoDiagrams? Has anyone who's been there lived to tell a tale?
0
9,220,964
02/10/2012 00:16:12
2,118
08/20/2008 12:54:09
1,933
23
Enable full screen using seesaw?
How can I make my seesaw program full screen when F11 is pressed? (not just maximized) I currently have this: (defn toggle-full-screen [e] (-> (to-root e) magic!) (def full-screen-action (action :name "Full Screen" :tip "Full Screen" :mnemonic \f :key (keystroke "F11") :handler toggle-full-screen)) (def view-menu (menu :text "View" :mnemonic \v :items [full-screen-action])) (def top-menubar (menubar :items [view-menu])) [...] `toggle-full-screen` runs when F11 is pressed however I can't figure out how to make the frame fullscreen.
swing
clojure
fullscreen
seesaw
null
null
open
Enable full screen using seesaw? === How can I make my seesaw program full screen when F11 is pressed? (not just maximized) I currently have this: (defn toggle-full-screen [e] (-> (to-root e) magic!) (def full-screen-action (action :name "Full Screen" :tip "Full Screen" :mnemonic \f :key (keystroke "F11") :handler toggle-full-screen)) (def view-menu (menu :text "View" :mnemonic \v :items [full-screen-action])) (def top-menubar (menubar :items [view-menu])) [...] `toggle-full-screen` runs when F11 is pressed however I can't figure out how to make the frame fullscreen.
0
4,078,089
11/02/2010 13:26:19
406,001
07/29/2010 17:45:19
28
0
how to find who send the sigterm signal to my process or my process group?
We have a daemon server program which forks one child. When the child exits, Parent is receiving SIGTERM signal. So, we want to know 1) Who sent this SIGTERM? 2) Whether the SIGTERM is only for parent or its group? 3) What are the possible ways SIGTERM can be generated under this scenario? 4) Is it possible to mask this SIGTERM signal? If yes what would be the side effect of this call? Thanks in Advance
c
linux
unix
null
null
null
open
how to find who send the sigterm signal to my process or my process group? === We have a daemon server program which forks one child. When the child exits, Parent is receiving SIGTERM signal. So, we want to know 1) Who sent this SIGTERM? 2) Whether the SIGTERM is only for parent or its group? 3) What are the possible ways SIGTERM can be generated under this scenario? 4) Is it possible to mask this SIGTERM signal? If yes what would be the side effect of this call? Thanks in Advance
0
7,824,795
10/19/2011 16:37:22
1,003,569
10/19/2011 16:05:41
1
0
java: Find integer's frequency in an array
I need to develop a java program that asks the user to inter some integers and find the largest and smallest number and the average of those numbers and then divide the set of array into a number of sub-intervals a user specify then it generates a boundary points each has a length of sub-interfal width.. the problem is that I need to create a frequency: ex: Boundaries Frequency 14.5-16.5 1 (here it should shows how many integers belong to this boundaries) 16.5-18.5 4 and so on.. here is the code I have so far, almost done except finding the frequency of each boundary.. import java.util.Scanner; public class Sta { public static void main(String args[]) { Scanner input = new Scanner(System.in); int num=0; int range=0; int subnum; int subwid; System.out.print("How many numbers do you want to enter: "); num=input.nextInt(); int array[]=new int[num]; System.out.print("Enter the numbers now: "); for(int i=0; i<array.length; i++) { array[i]=input.nextInt(); } System.out.print("These are the numbers you entered:\n"); printArray(array); int smallest=array[0]; int largest=array[0]; for(int i=0; i<array.length; i++) { if(array[i]>largest) largest=array[i]; else if(array[i]<smallest) smallest=array[i]; range=largest-smallest; } System.out.printf("Largest is %d\n",largest); System.out.printf("Smallest is %d\n",smallest); System.out.printf("Range is %d\n",range); System.out.print("Enter the number of subinterval: "); subnum=input.nextInt(); subwid=range/subnum; System.out.printf("The width of subinterval is %d\n", subwid); double boundary=smallest-.5; while(boundary <=largest+.5) { System.out.printf("Boundaries are %.1f\n",boundary); boundary +=subwid; } } public static void printArray(int arr[]) { for(int i=0; i<arr.length; i++) { System.out.print(arr[i] + "\n"); } } }
java
frequency
null
null
null
null
open
java: Find integer's frequency in an array === I need to develop a java program that asks the user to inter some integers and find the largest and smallest number and the average of those numbers and then divide the set of array into a number of sub-intervals a user specify then it generates a boundary points each has a length of sub-interfal width.. the problem is that I need to create a frequency: ex: Boundaries Frequency 14.5-16.5 1 (here it should shows how many integers belong to this boundaries) 16.5-18.5 4 and so on.. here is the code I have so far, almost done except finding the frequency of each boundary.. import java.util.Scanner; public class Sta { public static void main(String args[]) { Scanner input = new Scanner(System.in); int num=0; int range=0; int subnum; int subwid; System.out.print("How many numbers do you want to enter: "); num=input.nextInt(); int array[]=new int[num]; System.out.print("Enter the numbers now: "); for(int i=0; i<array.length; i++) { array[i]=input.nextInt(); } System.out.print("These are the numbers you entered:\n"); printArray(array); int smallest=array[0]; int largest=array[0]; for(int i=0; i<array.length; i++) { if(array[i]>largest) largest=array[i]; else if(array[i]<smallest) smallest=array[i]; range=largest-smallest; } System.out.printf("Largest is %d\n",largest); System.out.printf("Smallest is %d\n",smallest); System.out.printf("Range is %d\n",range); System.out.print("Enter the number of subinterval: "); subnum=input.nextInt(); subwid=range/subnum; System.out.printf("The width of subinterval is %d\n", subwid); double boundary=smallest-.5; while(boundary <=largest+.5) { System.out.printf("Boundaries are %.1f\n",boundary); boundary +=subwid; } } public static void printArray(int arr[]) { for(int i=0; i<arr.length; i++) { System.out.print(arr[i] + "\n"); } } }
0
5,902,261
05/05/2011 18:09:03
708,430
04/14/2011 17:26:57
19
2
Use DataAnnotations to force a DropDownList populated from my model
Is there a way use DataAnnotations to tell Razor to render a DropDownList and populate the choices from a specific field in a specific entity? Specifically I am capturing a "Calendar Year" property in my View and would like it to be a DropDownList. I am doing this currently by passing the years into my view via the ViewBag and then calling "DropDownListFor". I was hoping for a way to define it in my ViewModel and them simply call "EditorFor". Thanks!
entity-framework
asp.net-mvc-3
razor
dataannotations
null
null
open
Use DataAnnotations to force a DropDownList populated from my model === Is there a way use DataAnnotations to tell Razor to render a DropDownList and populate the choices from a specific field in a specific entity? Specifically I am capturing a "Calendar Year" property in my View and would like it to be a DropDownList. I am doing this currently by passing the years into my view via the ViewBag and then calling "DropDownListFor". I was hoping for a way to define it in my ViewModel and them simply call "EditorFor". Thanks!
0
3,505,229
08/17/2010 17:33:31
188,962
10/13/2009 09:17:39
2,096
6
compare "array of words" against textarea with php
I asked this question yesterday: http://stackoverflow.com/questions/3495735/compare-array-of-words-to-a-textarea-input-with-javascript Now I want to do the same thing with php... Is there any easy code for this? Thanks
php
javascript
html
null
null
null
open
compare "array of words" against textarea with php === I asked this question yesterday: http://stackoverflow.com/questions/3495735/compare-array-of-words-to-a-textarea-input-with-javascript Now I want to do the same thing with php... Is there any easy code for this? Thanks
0
7,233,558
08/29/2011 17:27:52
918,260
08/29/2011 17:27:52
1
0
Major Pros & Cons of Grails and Django
I've had a lot of experience with Groovy/Grails but I've recently gotten into python and found it to be a really useful language and now since I'm looking for a good framework to write a webApp in I'm wondering what the pros and cons of both are. I know people usually say to go with what you have the most experience with but assuming I have equal experience in both what are the differences I will notice?
python
django
grails
groovy
differences
08/29/2011 18:49:34
not constructive
Major Pros & Cons of Grails and Django === I've had a lot of experience with Groovy/Grails but I've recently gotten into python and found it to be a really useful language and now since I'm looking for a good framework to write a webApp in I'm wondering what the pros and cons of both are. I know people usually say to go with what you have the most experience with but assuming I have equal experience in both what are the differences I will notice?
4
9,593,552
03/06/2012 23:26:19
813,817
05/25/2011 13:08:33
4
1
dont show google plus button if user really clicked on it
I looking for jquery JavaScript which detect the button Plus+ 1 clicked ( blue ) from user.. so i hide or remove that button .. prevent user click on that button one more time remove they vote.. the detect may check the var set of style when google plus change colour style of button.. ect not sure what will be need please help, thanks for any infor
jquery
google-plus
null
null
null
04/17/2012 11:56:56
not a real question
dont show google plus button if user really clicked on it === I looking for jquery JavaScript which detect the button Plus+ 1 clicked ( blue ) from user.. so i hide or remove that button .. prevent user click on that button one more time remove they vote.. the detect may check the var set of style when google plus change colour style of button.. ect not sure what will be need please help, thanks for any infor
1
3,596,785
08/29/2010 22:01:54
44,286
12/08/2008 12:56:11
1,128
40
duplicate entry validation in rails model
If I have a model `Department` with columns `user_id` and `group_id` When the `action` tries to save an entry into this `model` that already exists, i.e. 1 (user_id), 22 (group_id) already exists, at that time I want to raise a violation. What is the way to do this in rails? Following is the code I am using to save right now: if @department.save flash[:notice] = "Successfully created department." redirect_to @department else render :action => 'new' end `Department` model class Department < ActiveRecord::Base belongs_to :group belongs_to :user end
ruby-on-rails
validation
activerecord
null
null
null
open
duplicate entry validation in rails model === If I have a model `Department` with columns `user_id` and `group_id` When the `action` tries to save an entry into this `model` that already exists, i.e. 1 (user_id), 22 (group_id) already exists, at that time I want to raise a violation. What is the way to do this in rails? Following is the code I am using to save right now: if @department.save flash[:notice] = "Successfully created department." redirect_to @department else render :action => 'new' end `Department` model class Department < ActiveRecord::Base belongs_to :group belongs_to :user end
0
6,023,879
05/16/2011 21:53:24
756,088
05/16/2011 17:40:47
1
0
Why isn't "--comment" working when "-- comment" does?
I've finally found why my PHP script didn't work. It was because of MySQL "--comment" instead of "-- comment". I recently started with PHP, and until then, I had always used "--comment". Now, I wonder why this isn't allowed in PHP's mysql_query()? <?php $query = "SELECT firstname, -- comment lastname, address, --not a comment age FROM friends WHERE firstname='%s' AND lastname='%s'"; // Perform Query $result = mysql_query($query); // Check result // This shows the actual query sent to MySQL, and the error. Useful for debugging. if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; die($message); } ?>
php
mysql
null
null
null
null
open
Why isn't "--comment" working when "-- comment" does? === I've finally found why my PHP script didn't work. It was because of MySQL "--comment" instead of "-- comment". I recently started with PHP, and until then, I had always used "--comment". Now, I wonder why this isn't allowed in PHP's mysql_query()? <?php $query = "SELECT firstname, -- comment lastname, address, --not a comment age FROM friends WHERE firstname='%s' AND lastname='%s'"; // Perform Query $result = mysql_query($query); // Check result // This shows the actual query sent to MySQL, and the error. Useful for debugging. if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; die($message); } ?>
0
6,806,306
07/24/2011 10:40:16
677,442
03/25/2011 21:02:50
267
13
Geoprocessing service - empty memory after calling
I'm following this sample for ADF libraries http://edndoc.esri.com/arcobjects/9.2/NET_Server_Doc/developer/samples/Web_Applications/ArcGIS_Buffer_Geoprocessing/ee05ac98-384b-4dbe-b8e3-8d741180dc9a.htm I'm practically drawing a circle around a point with a geoprocessing service. The radius is about 20 km. The code is working fine, but the "Clear" routine isn't. Every time I clear the map from the previous data, the memory of the buffer service isn't cleared too and I get this ![enter image description here][1] The code of the "Clear" routine is the same of the sample, but isn't working: // Clears features from all graphics layers in the resource specified by _graphicsResourceName protected void ClearGraphics() { // Retrieve the resource and clear its graphics dataset ESRI.ArcGIS.ADF.Web.DataSources.Graphics.MapResource graphicsMapResource = Map1.GetFunctionality(_graphicsResourceName).Resource as ESRI.ArcGIS.ADF.Web.DataSources.Graphics.MapResource; graphicsMapResource.Graphics.Clear(); // This won't work too GeoprocessingResourceManager1.GetResource(0).ClearState(); // Refresh the resource and copy the map's callback results to the callback results collection so // the graphics are removed from the map Map1.RefreshResource(graphicsMapResource.Name); _callbackResultCollection.CopyFrom(Map1.CallbackResults); } This should be simple but I can't figure out how to solve this.. the only solution I found is to restart the IIS server which is obviously very bad Can someone please help me out? [1]: http://i.stack.imgur.com/gNtWK.jpg
c#
asp.net
arcgis
esri
arcgis-server
null
open
Geoprocessing service - empty memory after calling === I'm following this sample for ADF libraries http://edndoc.esri.com/arcobjects/9.2/NET_Server_Doc/developer/samples/Web_Applications/ArcGIS_Buffer_Geoprocessing/ee05ac98-384b-4dbe-b8e3-8d741180dc9a.htm I'm practically drawing a circle around a point with a geoprocessing service. The radius is about 20 km. The code is working fine, but the "Clear" routine isn't. Every time I clear the map from the previous data, the memory of the buffer service isn't cleared too and I get this ![enter image description here][1] The code of the "Clear" routine is the same of the sample, but isn't working: // Clears features from all graphics layers in the resource specified by _graphicsResourceName protected void ClearGraphics() { // Retrieve the resource and clear its graphics dataset ESRI.ArcGIS.ADF.Web.DataSources.Graphics.MapResource graphicsMapResource = Map1.GetFunctionality(_graphicsResourceName).Resource as ESRI.ArcGIS.ADF.Web.DataSources.Graphics.MapResource; graphicsMapResource.Graphics.Clear(); // This won't work too GeoprocessingResourceManager1.GetResource(0).ClearState(); // Refresh the resource and copy the map's callback results to the callback results collection so // the graphics are removed from the map Map1.RefreshResource(graphicsMapResource.Name); _callbackResultCollection.CopyFrom(Map1.CallbackResults); } This should be simple but I can't figure out how to solve this.. the only solution I found is to restart the IIS server which is obviously very bad Can someone please help me out? [1]: http://i.stack.imgur.com/gNtWK.jpg
0