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
2,894,000
05/23/2010 23:47:06
348,450
05/23/2010 19:46:26
8
0
trying to reenter IT field after a break of over 5 years
I have had some misfortune in life - I was unwell and had to stay out of work for an extended period of about 5 years.Before that I used to work as an Oracle/Oracle Ebusiness suite consultant (I was charging very good contract rates). But now I am fully recovered ,feeling sharper than ever. But there arent many opportunities in my areas of expertise in a small market like New Zealand and the long absence is no help either. So for the last 5 months I have been training myself in C# ,ASP .NET,WEB technologies like HTML,JQuery,CSS and also SQL Server.I had some previous experience with JAVA and VB .NET (few months). But I am fully confident of my abilities and believe I can hit the ground running given a chance.I used to be an expert with SQL and C language and these skills are portable to SQL Server and C#. Another problem I face is my age- I am over 50. What is your opinion - Am I doing the right thing. Can I get back into an IT career-I am willing to start all over again at a junior level, I am really facing a crisis in my life.
career-development
null
null
null
null
01/28/2012 21:16:07
not constructive
trying to reenter IT field after a break of over 5 years === I have had some misfortune in life - I was unwell and had to stay out of work for an extended period of about 5 years.Before that I used to work as an Oracle/Oracle Ebusiness suite consultant (I was charging very good contract rates). But now I am fully recovered ,feeling sharper than ever. But there arent many opportunities in my areas of expertise in a small market like New Zealand and the long absence is no help either. So for the last 5 months I have been training myself in C# ,ASP .NET,WEB technologies like HTML,JQuery,CSS and also SQL Server.I had some previous experience with JAVA and VB .NET (few months). But I am fully confident of my abilities and believe I can hit the ground running given a chance.I used to be an expert with SQL and C language and these skills are portable to SQL Server and C#. Another problem I face is my age- I am over 50. What is your opinion - Am I doing the right thing. Can I get back into an IT career-I am willing to start all over again at a junior level, I am really facing a crisis in my life.
4
6,637,973
07/09/2011 22:45:41
230,453
12/12/2009 22:16:59
104
3
Network Not Connecting to another computer but works in 127.0.0.1
hi everyone like i said on the title ive got a program that can connect 127.0.0.1 so im guessing my network logic is actually working but when i try to connect to another IP its just not connecting somehow and ive got no idea what that is any ideas? the firewalls are off
networking
network-programming
null
null
null
07/12/2011 02:36:55
not a real question
Network Not Connecting to another computer but works in 127.0.0.1 === hi everyone like i said on the title ive got a program that can connect 127.0.0.1 so im guessing my network logic is actually working but when i try to connect to another IP its just not connecting somehow and ive got no idea what that is any ideas? the firewalls are off
1
942,196
06/02/2009 22:19:51
91,266
04/15/2009 19:24:04
23
1
Next step and IBM Web-based training: any good ?
I am a junior, lone developer at my company. I have some years of experience in other areas of IT, but I am now mostly in a software developer role. I have generated and maintained some simple-yet-efficient applications for a couple of years now, but I realize my skills are still rough and my knowledge not very broad. Having coded before in Oracle PLSQL and PHP, I am fairly new to Object-Oriented Programming, using mainly VB .NET in my daily work. I want to learn more about OOP and methodologies. - What do you think would be a next step in my learning as a sodftware dev ? I am thinking of picking up some UML and Design Patterns knowledge. - Has anyone taken [IBM Rational web-based training][1] ? Do you think it is any good ? This is a major concern, as I have no colleagues or tutors here to learn from. Also, I am not talking about "hard skills" like Java or C#; rather, I want to learn techniques and methodologies that will help me go prepare for a future position in a more "professional" (dev shop) development environment. [1]: http://www-304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_description&courseCode=RWA04
career-development
training
null
null
null
09/22/2011 12:38:04
not constructive
Next step and IBM Web-based training: any good ? === I am a junior, lone developer at my company. I have some years of experience in other areas of IT, but I am now mostly in a software developer role. I have generated and maintained some simple-yet-efficient applications for a couple of years now, but I realize my skills are still rough and my knowledge not very broad. Having coded before in Oracle PLSQL and PHP, I am fairly new to Object-Oriented Programming, using mainly VB .NET in my daily work. I want to learn more about OOP and methodologies. - What do you think would be a next step in my learning as a sodftware dev ? I am thinking of picking up some UML and Design Patterns knowledge. - Has anyone taken [IBM Rational web-based training][1] ? Do you think it is any good ? This is a major concern, as I have no colleagues or tutors here to learn from. Also, I am not talking about "hard skills" like Java or C#; rather, I want to learn techniques and methodologies that will help me go prepare for a future position in a more "professional" (dev shop) development environment. [1]: http://www-304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_description&courseCode=RWA04
4
6,021,355
05/16/2011 17:56:01
756,049
05/16/2011 17:15:42
1
0
Excel VBA Newbie, help please
I'm new to excel VBA though I tried putting efforts but of no luck. Problem Statement: I have a sheet with Source (color white) row and Destination (color Yellow) row, for each source there is a corresponding destination row in next line. I have to look for an application name which user input at the beginning and will search throughout the sheet (more than 10000 rows) in column 6 and it must extract the source row also if found in destination and destination row also if found in source row in sheet2. And also one cell may have many application name within it so it should trim all other app names from that cell and leave only the searched app name. Here is the partial code i tried : Sub GetInterfaceCounts() Dim RANGEBOTTOM As String Dim cell Dim strAction As String Dim intAdd As Integer Dim strName As String intAdd = 0 RANGEBOTTOM = "G700" strName = InputBox(Prompt:="Please enter the application name.", _ Title:="Application Name", Default:="Application") For Each cell In Range("G2:" & RANGEBOTTOM) strAction = cell.Value If InStr(1, strAction, strName) <> 0 Then intAdd = intAdd + 1 End If Next MsgBox "Total number of " & strName & " counts are :" & CStr(intAdd) GetMS4AppInventory (strName) End Sub Sub GetMS4AppInventory(strName As String) Dim strAction Dim intAdd As Integer Dim RowIndex As Integer RowIndex = 0 Sheets("Sheet1").Select 'For Each cell In Range("G2:G700") With Worksheets("Sheet1").Range("G2:G700") Set strAction = .Find(strName, LookIn:=xlValues) 'strAction = cell.Value If Not strAction Is Nothing Then Do If InStr(1, strAction, strName) <> 0 Then Rows(strAction.Row).Select Selection.Copy Sheets("MS4Inventory").Select Rows(RowIndex + 1).Select Selection.Insert Shift:=xlDown Rows(RowIndex + 2).Select Application.CutCopyMode = False Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove Cells(RowIndex + 3, 1).Select End If Set strAction = .FindNext(strAction) //gets hanged here go to infinite loop Loop While Not strAction Is Nothing End If If anybody could help me it will be great else manually doing seggregation of inventory will suck me. Regards Vijay End With End Sub
excel-vba
excel-2007
null
null
null
null
open
Excel VBA Newbie, help please === I'm new to excel VBA though I tried putting efforts but of no luck. Problem Statement: I have a sheet with Source (color white) row and Destination (color Yellow) row, for each source there is a corresponding destination row in next line. I have to look for an application name which user input at the beginning and will search throughout the sheet (more than 10000 rows) in column 6 and it must extract the source row also if found in destination and destination row also if found in source row in sheet2. And also one cell may have many application name within it so it should trim all other app names from that cell and leave only the searched app name. Here is the partial code i tried : Sub GetInterfaceCounts() Dim RANGEBOTTOM As String Dim cell Dim strAction As String Dim intAdd As Integer Dim strName As String intAdd = 0 RANGEBOTTOM = "G700" strName = InputBox(Prompt:="Please enter the application name.", _ Title:="Application Name", Default:="Application") For Each cell In Range("G2:" & RANGEBOTTOM) strAction = cell.Value If InStr(1, strAction, strName) <> 0 Then intAdd = intAdd + 1 End If Next MsgBox "Total number of " & strName & " counts are :" & CStr(intAdd) GetMS4AppInventory (strName) End Sub Sub GetMS4AppInventory(strName As String) Dim strAction Dim intAdd As Integer Dim RowIndex As Integer RowIndex = 0 Sheets("Sheet1").Select 'For Each cell In Range("G2:G700") With Worksheets("Sheet1").Range("G2:G700") Set strAction = .Find(strName, LookIn:=xlValues) 'strAction = cell.Value If Not strAction Is Nothing Then Do If InStr(1, strAction, strName) <> 0 Then Rows(strAction.Row).Select Selection.Copy Sheets("MS4Inventory").Select Rows(RowIndex + 1).Select Selection.Insert Shift:=xlDown Rows(RowIndex + 2).Select Application.CutCopyMode = False Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove Cells(RowIndex + 3, 1).Select End If Set strAction = .FindNext(strAction) //gets hanged here go to infinite loop Loop While Not strAction Is Nothing End If If anybody could help me it will be great else manually doing seggregation of inventory will suck me. Regards Vijay End With End Sub
0
2,308,481
02/22/2010 02:31:51
88,470
04/08/2009 08:17:39
572
1
How can I write this regular expression for Java?
I have a string which reprsents a mathematical expression. I wish to break it up into tokens, via the String.split() command. I know that I basically want to use the regular expression: <code>"[0-9]+|[*+-^()]"</code> but that I must not be escaping the right things because it isn't working. I want it to split all integers: 0-9, and all operators *+-^(). So, 578+223-5^2 Will be split into: 578 + 223 - 5 ^ 2 What do I need to do to: <code>"[0-9]+|[*+-^()]"</code>, to make it work with java's split command?
regex
java
null
null
null
null
open
How can I write this regular expression for Java? === I have a string which reprsents a mathematical expression. I wish to break it up into tokens, via the String.split() command. I know that I basically want to use the regular expression: <code>"[0-9]+|[*+-^()]"</code> but that I must not be escaping the right things because it isn't working. I want it to split all integers: 0-9, and all operators *+-^(). So, 578+223-5^2 Will be split into: 578 + 223 - 5 ^ 2 What do I need to do to: <code>"[0-9]+|[*+-^()]"</code>, to make it work with java's split command?
0
211,616
10/17/2008 10:06:21
2,438
08/22/2008 10:45:13
58
9
Hidden features of Objective-C
Objective-C as a language is getting wider use due to its use by Apple for Mac OS X and iPhone development. What are some of your favourite "hidden" features of the Objective-C language? - One feature per answer - Give an example and short description of the feature, not just a link to documentation - Label the feature using bold title as the first line See also: - Hidden features of C - Hidden features of C# - Hidden features of C++ - Hidden features of Python - Hidden features of Java - Hidden features of JavaScript - Hidden features of Ruby - Hidden features of PHP - Hidden features of Perl - Hidden features of VB.Net
objectivec
iphone
osx
null
null
07/17/2010 01:48:11
not a real question
Hidden features of Objective-C === Objective-C as a language is getting wider use due to its use by Apple for Mac OS X and iPhone development. What are some of your favourite "hidden" features of the Objective-C language? - One feature per answer - Give an example and short description of the feature, not just a link to documentation - Label the feature using bold title as the first line See also: - Hidden features of C - Hidden features of C# - Hidden features of C++ - Hidden features of Python - Hidden features of Java - Hidden features of JavaScript - Hidden features of Ruby - Hidden features of PHP - Hidden features of Perl - Hidden features of VB.Net
1
9,042,772
01/28/2012 03:51:43
191,645
10/17/2009 10:51:27
98
2
Which is the real & best tinyMVC for PHP?
I'm confused with all the different tinyMVC's out there 1. http://tinymvc.com/ - Monte Ohrt 2. http://tinymvc.org & http://code.google.com/p/php-tinymvc/ - Adrian Wieczorek 3. http://code.google.com/p/tiny-mvc/ - Hung-Fu Aaron Chang So which is the real or best one and the one developed furthest so far? Are there more called tinyMVC?
php
mvc
null
null
null
01/28/2012 04:28:37
not constructive
Which is the real & best tinyMVC for PHP? === I'm confused with all the different tinyMVC's out there 1. http://tinymvc.com/ - Monte Ohrt 2. http://tinymvc.org & http://code.google.com/p/php-tinymvc/ - Adrian Wieczorek 3. http://code.google.com/p/tiny-mvc/ - Hung-Fu Aaron Chang So which is the real or best one and the one developed furthest so far? Are there more called tinyMVC?
4
11,303,096
07/03/2012 00:46:01
1,017,618
10/28/2011 02:20:06
3
1
BATCH/CMD: Print each line of a .txt into a variable
Goal: Have every dll file in a computer passed into regsvr32.exe Accomplished: cd\ ::REM Exports every file and directory (/s) into a file in root of c: called dir.txt with only file names (/b) dir /s /b>>dir.txt ::REM Now, this will contain every extension type. We only want dll's, so we findstr it into dll.txt: findstr ".dll$" dir.txt>>dll.txt The Kink: Now, if I want to regsvr32.exe "file" every file that is now in dll.txt, I somehow need to get out every individual filename that is individually on each line. I was wondering if there is a third party command line tool that can export each line of the file into a variable. This way, I could: ========== ::REM assume this tool had switches /l for the line number, and /v:"" for variable to use, and used "file" at the end: set line=1 :loop set dll= tool.exe /l %line% /v:"dll" "dll.txt" ::REM We if defined here because if the line doesn't exist in dll.txt, the tool would return nothing to the variable. if not defined %dll% exit ::REM With the variable defined, we can continue regsvr32.exe %dll% set /a line=%line%+1 goto loop ======================= Then the tool would process each path of each line of the file until it exits automatically, because there would be no more lines. Notice right after loop I set dll to nothing so that 'if not defined' will work each time. If this type of third-party tool cannot be done, is there a way to do that with for?? I honestly never learned for, and tried to but could never figure it out. Any help is greatly appreciated! Sorry if this has already been answered.
command-line
batch
for-loop
regsvr32
findstr
null
open
BATCH/CMD: Print each line of a .txt into a variable === Goal: Have every dll file in a computer passed into regsvr32.exe Accomplished: cd\ ::REM Exports every file and directory (/s) into a file in root of c: called dir.txt with only file names (/b) dir /s /b>>dir.txt ::REM Now, this will contain every extension type. We only want dll's, so we findstr it into dll.txt: findstr ".dll$" dir.txt>>dll.txt The Kink: Now, if I want to regsvr32.exe "file" every file that is now in dll.txt, I somehow need to get out every individual filename that is individually on each line. I was wondering if there is a third party command line tool that can export each line of the file into a variable. This way, I could: ========== ::REM assume this tool had switches /l for the line number, and /v:"" for variable to use, and used "file" at the end: set line=1 :loop set dll= tool.exe /l %line% /v:"dll" "dll.txt" ::REM We if defined here because if the line doesn't exist in dll.txt, the tool would return nothing to the variable. if not defined %dll% exit ::REM With the variable defined, we can continue regsvr32.exe %dll% set /a line=%line%+1 goto loop ======================= Then the tool would process each path of each line of the file until it exits automatically, because there would be no more lines. Notice right after loop I set dll to nothing so that 'if not defined' will work each time. If this type of third-party tool cannot be done, is there a way to do that with for?? I honestly never learned for, and tried to but could never figure it out. Any help is greatly appreciated! Sorry if this has already been answered.
0
11,300,329
07/02/2012 19:58:24
487,909
10/26/2010 17:25:49
6
0
In ASP.NET, trying to find the assigned visibility value of a control that may be inside an invisible container
I am trying to find out whether a particular control on an asp.net page has had it's "Visible" property assign to true or false. The problem is that the visible property crawl up the list of parents and if any of them show as invisible, the queried control will also show as invisible. I need to know what the control itself has been set to. I did some searching and found the post http://stackoverflow.com/q/2005322/487909 which offered the following solution public static bool LocalVisible(this Control control){ var flags = typeof (Control) .GetField("flags", BindingFlags.Instance | BindingFlags.NonPublic) .GetValue(control); return ! (bool) flags.GetType() .GetProperty("Item", BindingFlags.Instance | BindingFlags.NonPublic) .GetValue(flags, new object[] {0x10}); } But when I tried it, it returned an "Ambiguous Match Found" error on GetProperty. Can someone point out what I'm doing wrong, or show another way of getting what I want?
asp.net
null
null
null
null
null
open
In ASP.NET, trying to find the assigned visibility value of a control that may be inside an invisible container === I am trying to find out whether a particular control on an asp.net page has had it's "Visible" property assign to true or false. The problem is that the visible property crawl up the list of parents and if any of them show as invisible, the queried control will also show as invisible. I need to know what the control itself has been set to. I did some searching and found the post http://stackoverflow.com/q/2005322/487909 which offered the following solution public static bool LocalVisible(this Control control){ var flags = typeof (Control) .GetField("flags", BindingFlags.Instance | BindingFlags.NonPublic) .GetValue(control); return ! (bool) flags.GetType() .GetProperty("Item", BindingFlags.Instance | BindingFlags.NonPublic) .GetValue(flags, new object[] {0x10}); } But when I tried it, it returned an "Ambiguous Match Found" error on GetProperty. Can someone point out what I'm doing wrong, or show another way of getting what I want?
0
8,499,671
12/14/2011 04:59:08
832,097
07/06/2011 17:32:09
8
0
I need to program a site that will give each new user their own website URL. How is this accomplished?
i.e. http://myname.somedomain.com I'm writing the website using C# .net.
c#
.net
null
null
null
12/14/2011 05:07:11
not a real question
I need to program a site that will give each new user their own website URL. How is this accomplished? === i.e. http://myname.somedomain.com I'm writing the website using C# .net.
1
8,661,930
12/28/2011 22:17:50
1,116,768
12/26/2011 21:04:27
8
0
How to call a specific character from a string in C++?
How would I recall, say, the fourth character and output it on the screen from this code? #include <iostream> #include <string> using namespace std; int main () { cout << "Enter word: "; char random[99]; cin >> random; \\right here is where I would like to output the fourth character of the string "random" return 0; }
c++
null
null
null
null
12/28/2011 22:20:53
too localized
How to call a specific character from a string in C++? === How would I recall, say, the fourth character and output it on the screen from this code? #include <iostream> #include <string> using namespace std; int main () { cout << "Enter word: "; char random[99]; cin >> random; \\right here is where I would like to output the fourth character of the string "random" return 0; }
3
7,806,205
10/18/2011 11:03:38
811,678
06/23/2011 06:34:41
131
0
Error in description method
What is wrong here ? - (NSString *)description { return self.name; } Compiler gives me an error "Property name not found on object of type ..."
objective-c
xcode
cocoa
null
null
null
open
Error in description method === What is wrong here ? - (NSString *)description { return self.name; } Compiler gives me an error "Property name not found on object of type ..."
0
8,924,230
01/19/2012 10:10:26
883,921
08/08/2011 11:12:41
1
1
Strange Core Data Error During Migration
I'm absolutely pulling my hair out with Core Data after yet another bizarre error that I can't seem to solve. This will be the fourth version of the Data model, the previous migrations have worked (albeit with some headaches). All I'm trying to do is add a property of String type to an 'Engines' entity. I create a new version of the model (version 4) based on the current version (v3). I select the newly created version 4 as the 'Current model' and add the string property to the Engines entity. I then create a new mapping model, using v3 as the source and v4 as the target. I delete the previous Engines NSManagedObject subclass, and create a new one using the new, modified Engines entity, checking to make sure that the new String property is in the header file. I clean build the app and run it, and boom! I get this error, about 18 times: {NSDetailedErrors=( "Error Domain=NSCocoaErrorDomain Code=1570 \"The operation couldn\U2019t be completed. (Cocoa error 1570.)\" UserInfo=0x6015820 {NSValidationErrorObject=<NSManagedObject: 0x60a4ec0> (entity: BodySet; id: 0x60ba670 <x-coredata://F868DFA6-CB09-46AC-9CCE-73FC12C8BD98/BodySet/p14> ; data: <fault>), NSValidationErrorKey=availableCar, NSLocalizedDescription=The operation couldn\U2019t be completed. (Cocoa error 1570.)}", BodySet is another entity in the model, but I haven't touch it during this migration, so why is causing all these errors? I'm not sure if this is a help or not, but here's my Core Data code: - (NSManagedObjectContext *) managedObjectContext { if (managedObjectContext != nil) { return managedObjectContext; } NSPersistentStoreCoordinator *coordinator = [self persistentStoreCoordinator]; if (coordinator != nil) { managedObjectContext = [[NSManagedObjectContext alloc] init]; [managedObjectContext setPersistentStoreCoordinator: coordinator]; } return managedObjectContext; } - (NSManagedObjectModel *)managedObjectModel { if (managedObjectModel != nil) { return managedObjectModel; } NSString *path = [[NSBundle mainBundle] pathForResource:@"CoreDataTest" ofType:@"momd"]; NSURL *momURL = [NSURL fileURLWithPath:path]; managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:momURL]; return managedObjectModel; } - (NSPersistentStoreCoordinator *)persistentStoreCoordinator { if (persistentStoreCoordinator != nil) { return persistentStoreCoordinator; } stringByAppendingPathComponent:@"<Project Name>.sqlite"]]; //get the DB from the Documents directory: NSURL *storeUrl = [NSURL fileURLWithPath: [[self applicationDocumentsDirectory] stringByAppendingPathComponent: @"<Project Name>.sqlite"]]; NSLog(@"Loading DB at path: %@", [storeUrl path]); NSError *error = nil; persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]]; NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption, [NSNumber numberWithBool:YES], NSInferMappingModelAutomaticallyOption, nil]; if(![persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeUrl options:options error:&error]) { /*Error for store creation should be handled in here*/ NSLog(@"Something went wrong....%@", [error description]); } return persistentStoreCoordinator; } Any help with this is very much appreciated.
core-data
data
migration
core
null
null
open
Strange Core Data Error During Migration === I'm absolutely pulling my hair out with Core Data after yet another bizarre error that I can't seem to solve. This will be the fourth version of the Data model, the previous migrations have worked (albeit with some headaches). All I'm trying to do is add a property of String type to an 'Engines' entity. I create a new version of the model (version 4) based on the current version (v3). I select the newly created version 4 as the 'Current model' and add the string property to the Engines entity. I then create a new mapping model, using v3 as the source and v4 as the target. I delete the previous Engines NSManagedObject subclass, and create a new one using the new, modified Engines entity, checking to make sure that the new String property is in the header file. I clean build the app and run it, and boom! I get this error, about 18 times: {NSDetailedErrors=( "Error Domain=NSCocoaErrorDomain Code=1570 \"The operation couldn\U2019t be completed. (Cocoa error 1570.)\" UserInfo=0x6015820 {NSValidationErrorObject=<NSManagedObject: 0x60a4ec0> (entity: BodySet; id: 0x60ba670 <x-coredata://F868DFA6-CB09-46AC-9CCE-73FC12C8BD98/BodySet/p14> ; data: <fault>), NSValidationErrorKey=availableCar, NSLocalizedDescription=The operation couldn\U2019t be completed. (Cocoa error 1570.)}", BodySet is another entity in the model, but I haven't touch it during this migration, so why is causing all these errors? I'm not sure if this is a help or not, but here's my Core Data code: - (NSManagedObjectContext *) managedObjectContext { if (managedObjectContext != nil) { return managedObjectContext; } NSPersistentStoreCoordinator *coordinator = [self persistentStoreCoordinator]; if (coordinator != nil) { managedObjectContext = [[NSManagedObjectContext alloc] init]; [managedObjectContext setPersistentStoreCoordinator: coordinator]; } return managedObjectContext; } - (NSManagedObjectModel *)managedObjectModel { if (managedObjectModel != nil) { return managedObjectModel; } NSString *path = [[NSBundle mainBundle] pathForResource:@"CoreDataTest" ofType:@"momd"]; NSURL *momURL = [NSURL fileURLWithPath:path]; managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:momURL]; return managedObjectModel; } - (NSPersistentStoreCoordinator *)persistentStoreCoordinator { if (persistentStoreCoordinator != nil) { return persistentStoreCoordinator; } stringByAppendingPathComponent:@"<Project Name>.sqlite"]]; //get the DB from the Documents directory: NSURL *storeUrl = [NSURL fileURLWithPath: [[self applicationDocumentsDirectory] stringByAppendingPathComponent: @"<Project Name>.sqlite"]]; NSLog(@"Loading DB at path: %@", [storeUrl path]); NSError *error = nil; persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]]; NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption, [NSNumber numberWithBool:YES], NSInferMappingModelAutomaticallyOption, nil]; if(![persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeUrl options:options error:&error]) { /*Error for store creation should be handled in here*/ NSLog(@"Something went wrong....%@", [error description]); } return persistentStoreCoordinator; } Any help with this is very much appreciated.
0
11,118,023
06/20/2012 10:54:17
375,179
06/24/2010 11:25:11
33
2
How to allow null date in Spring 3 MVC
I've defined a global formatter for date bindings: <annotation-driven conversion-service="conversionService" /> <beans:bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean"> <beans:property name="converters"> <beans:list> ... </beans:list> </beans:property> <beans:property name="formatters"> <beans:set> <beans:bean id="dateFormatter" class="org.springframework.format.datetime.DateFormatter"> <beans:constructor-arg><beans:value>dd/MM/yyyy</beans:value></beans:constructor-arg> </beans:bean> </beans:set> </beans:property> </beans:bean> This is working fine but now the problem is: I need that a particular date field can be blank. How can I configure the formatter (or this very field) to accept null value? Thanks! :) Ivan
date
spring-mvc
formatter
null
null
null
open
How to allow null date in Spring 3 MVC === I've defined a global formatter for date bindings: <annotation-driven conversion-service="conversionService" /> <beans:bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean"> <beans:property name="converters"> <beans:list> ... </beans:list> </beans:property> <beans:property name="formatters"> <beans:set> <beans:bean id="dateFormatter" class="org.springframework.format.datetime.DateFormatter"> <beans:constructor-arg><beans:value>dd/MM/yyyy</beans:value></beans:constructor-arg> </beans:bean> </beans:set> </beans:property> </beans:bean> This is working fine but now the problem is: I need that a particular date field can be blank. How can I configure the formatter (or this very field) to accept null value? Thanks! :) Ivan
0
10,466,871
05/05/2012 23:40:16
947,301
09/15/2011 16:50:42
417
0
got parse error on input `=>' on Haskell
bmiTell :: => Double -> String bmiTell bmi | bmi <= 18.5 = "You're underweight, you emo, you!" | bmi <= 25.0 = "You're supposeldly normal. Pffft, I bet you're ugly!" | bmi <= 30.0 = "You're fat! Lose some weight, fatty!" | otherwise = "You are a whale, congratulations!" This code got me an error, "parse error on input '=>'" I have no idea why. Any help? thank you !
haskell
null
null
null
null
null
open
got parse error on input `=>' on Haskell === bmiTell :: => Double -> String bmiTell bmi | bmi <= 18.5 = "You're underweight, you emo, you!" | bmi <= 25.0 = "You're supposeldly normal. Pffft, I bet you're ugly!" | bmi <= 30.0 = "You're fat! Lose some weight, fatty!" | otherwise = "You are a whale, congratulations!" This code got me an error, "parse error on input '=>'" I have no idea why. Any help? thank you !
0
4,622,947
01/07/2011 06:10:42
107,459
05/15/2009 03:23:58
730
31
Implementing CSRF into OpenID iframe
I've implemented Janrain Open ID on my Codeigniter 2.0 website. It was working great until I enabled CSRF protection in my codeigniter config file. I read up on it and it seems that in all my forms on my website I should include a hidden form element containing a token, which is then verified against a cookie token after the post is read from the receiving page. This is all fine and dandy, but where I'm a bit stuck is when I try to log into my site now using OpenID (of which the login form comes from an iframe that is hosted on janrain.com) I cannot include any sort of hidden post values because I have no control over what the form looks like, and can only supply a return url so that janrain knows what page to return me to. **How can I get my CSRF token to submit with the form if the form is in an iframe which I don't control?**
post
iframe
openid
token
csrf
null
open
Implementing CSRF into OpenID iframe === I've implemented Janrain Open ID on my Codeigniter 2.0 website. It was working great until I enabled CSRF protection in my codeigniter config file. I read up on it and it seems that in all my forms on my website I should include a hidden form element containing a token, which is then verified against a cookie token after the post is read from the receiving page. This is all fine and dandy, but where I'm a bit stuck is when I try to log into my site now using OpenID (of which the login form comes from an iframe that is hosted on janrain.com) I cannot include any sort of hidden post values because I have no control over what the form looks like, and can only supply a return url so that janrain knows what page to return me to. **How can I get my CSRF token to submit with the form if the form is in an iframe which I don't control?**
0
5,850,201
05/01/2011 17:49:21
733,493
05/01/2011 17:10:36
1
0
hi to all! oracle count
how i can select count(*) for 30 tables with other fields. i wanna apply restriction like time constraint. i have tables like statemaster, dealermaster, businessdetail. i want result result against respective statecode, statename. i want output like:- statecode statename count(*) for dealermaster count(*) for business details 01 ca 25 20 01 au 30 35 statecode, statename from statemaster table
oracle9i
null
null
null
null
05/01/2011 22:25:15
not a real question
hi to all! oracle count === how i can select count(*) for 30 tables with other fields. i wanna apply restriction like time constraint. i have tables like statemaster, dealermaster, businessdetail. i want result result against respective statecode, statename. i want output like:- statecode statename count(*) for dealermaster count(*) for business details 01 ca 25 20 01 au 30 35 statecode, statename from statemaster table
1
9,487,206
02/28/2012 17:57:35
1,082,898
12/06/2011 05:31:42
28
0
caught segfault in [R] function
I am very new to C# but know my way around [R]. This error could be a very stupid mistake in C#. My C code does kernel smoothing. This call works: > zsmooth2( x=seq(from=0, to=80000, by=100), xpts=dat$V2, ypts=dat$V4, h=100) This call kills R: > new.y<-zsmooth2( x=c(0:80000), xpts=dat$V2, ypts=dat$V4, h=10000) *** caught segfault *** address 0x1184f8000, cause 'memory not mapped' Traceback: 1: .C("kernel_smooth", as.double(x), as.double(ypts), as.double(xpts), as.integer(n), as.integer(nxpts), as.double(h), result = double(length(xpts))) 2: zsmooth2(x = c(0:80000), xpts = dat$V2, ypts = dat$V4, h = 10000) **C-code:** #include <R.h> #include <Rmath.h> void kernel_smooth(double *x, double *ypts, double *xpts, int *n, int *nxpts, double *h, double *results){ Rprintf("test"); int i, j; double d, r, nsum, dsum; for(i = 0; i < *nxpts; i++){ nsum = 0; dsum = 0; for(j=0; j < *n; j++){ d = (xpts[j] - i) / *h; r = dnorm(d, 0, 1, 0); nsum += r * ypts[j]; dsum += r; } results[i] = (nsum / dsum); } } **R-code:** dyn.load("~/github/ZevRTricks/smoother1.so") zsmooth2<-function(x, ypts, xpts, h){ n <- length(x) nxpts <- length(xpts) dens <- .C("kernel_smooth", as.double(x), as.double(ypts), as.double(xpts), as.integer(n), as.integer(nxpts), as.double(h), result = double(length(xpts))) dens[["result"]] }
c#
r
null
null
null
null
open
caught segfault in [R] function === I am very new to C# but know my way around [R]. This error could be a very stupid mistake in C#. My C code does kernel smoothing. This call works: > zsmooth2( x=seq(from=0, to=80000, by=100), xpts=dat$V2, ypts=dat$V4, h=100) This call kills R: > new.y<-zsmooth2( x=c(0:80000), xpts=dat$V2, ypts=dat$V4, h=10000) *** caught segfault *** address 0x1184f8000, cause 'memory not mapped' Traceback: 1: .C("kernel_smooth", as.double(x), as.double(ypts), as.double(xpts), as.integer(n), as.integer(nxpts), as.double(h), result = double(length(xpts))) 2: zsmooth2(x = c(0:80000), xpts = dat$V2, ypts = dat$V4, h = 10000) **C-code:** #include <R.h> #include <Rmath.h> void kernel_smooth(double *x, double *ypts, double *xpts, int *n, int *nxpts, double *h, double *results){ Rprintf("test"); int i, j; double d, r, nsum, dsum; for(i = 0; i < *nxpts; i++){ nsum = 0; dsum = 0; for(j=0; j < *n; j++){ d = (xpts[j] - i) / *h; r = dnorm(d, 0, 1, 0); nsum += r * ypts[j]; dsum += r; } results[i] = (nsum / dsum); } } **R-code:** dyn.load("~/github/ZevRTricks/smoother1.so") zsmooth2<-function(x, ypts, xpts, h){ n <- length(x) nxpts <- length(xpts) dens <- .C("kernel_smooth", as.double(x), as.double(ypts), as.double(xpts), as.integer(n), as.integer(nxpts), as.double(h), result = double(length(xpts))) dens[["result"]] }
0
7,126,474
08/19/2011 19:28:56
322,806
04/22/2010 00:00:58
5,119
207
Python: Indentation Error
My younger cousin somehow got hold of a python book and has been trying to learn Python. He's asked me for help. But I'm having trouble doing that. He is using IDLE and he reports that he gets this error: Error: Inconsistent indentation detected! 1) Your indentation is outright incorrect (easy to fix), OR 2) Your indentation mixes tabs and spaces. To fix case 2, change all tabs to spaces by using Edit->Select All Followed by Format->Untabify Region and specify the number of Columns used by each tab. He sent me a copy of his code, and the indentation is correct in it. It fails to run because of a number of syntax errors, but that's not important. He reports that he used the Format->Untabify Region but the problem was not fixed. I can't for the life of me figure out why I can run his python file, but he can't. Does anybody have any idea what is going on with that? I'm sadly currently located a five hour plane flight away else I'd physically see what was going on.
python
indentation
idle
null
null
08/19/2011 20:27:52
not a real question
Python: Indentation Error === My younger cousin somehow got hold of a python book and has been trying to learn Python. He's asked me for help. But I'm having trouble doing that. He is using IDLE and he reports that he gets this error: Error: Inconsistent indentation detected! 1) Your indentation is outright incorrect (easy to fix), OR 2) Your indentation mixes tabs and spaces. To fix case 2, change all tabs to spaces by using Edit->Select All Followed by Format->Untabify Region and specify the number of Columns used by each tab. He sent me a copy of his code, and the indentation is correct in it. It fails to run because of a number of syntax errors, but that's not important. He reports that he used the Format->Untabify Region but the problem was not fixed. I can't for the life of me figure out why I can run his python file, but he can't. Does anybody have any idea what is going on with that? I'm sadly currently located a five hour plane flight away else I'd physically see what was going on.
1
11,220,488
06/27/2012 06:21:18
1,074,734
12/01/2011 04:39:45
134
1
Photoshop - how to add white border around my goal image
![enter image description here][1] I want to add a white border around this image. This image is inside transparent canvas which is bigger than visible image and when i opened this image in photoshop, then in this image there is only one layer. I want to edit this like ![enter image description here][2] [1]: http://i.stack.imgur.com/CgtWL.png [2]: http://i.stack.imgur.com/hgxxg.png This image has white border around it.
photoshop
null
null
null
null
06/29/2012 00:51:02
off topic
Photoshop - how to add white border around my goal image === ![enter image description here][1] I want to add a white border around this image. This image is inside transparent canvas which is bigger than visible image and when i opened this image in photoshop, then in this image there is only one layer. I want to edit this like ![enter image description here][2] [1]: http://i.stack.imgur.com/CgtWL.png [2]: http://i.stack.imgur.com/hgxxg.png This image has white border around it.
2
5,608,640
04/09/2011 23:31:11
641,246
03/02/2011 13:22:15
1
0
Creating date in PHP
I need to convert this date: 10.04.2011 19:00 to date variable that I can use in PHP. Can someone help me with that? I tried this way $dateConverted = date("d.m.Y H:i",strtotime ($date)); but it returns me 01.01.1970 00:00
php
mysql
datetime
date
null
null
open
Creating date in PHP === I need to convert this date: 10.04.2011 19:00 to date variable that I can use in PHP. Can someone help me with that? I tried this way $dateConverted = date("d.m.Y H:i",strtotime ($date)); but it returns me 01.01.1970 00:00
0
9,288,542
02/15/2012 05:54:54
1,109,243
12/21/2011 06:09:59
3
0
What would be the best server for a bandwidth sensitive Google App
I have a Google App developed in php. Google App Engine is not an option since it does not support php (but Python). We have hosted the app in MT, but our users are not satisfied of the speed and response delay. This application communicates a large amount of data with Google API. The requirement is a high band width web server. We plan to go for a VPS for the next year and up-scale to a dedicated server after that. What we need is not only outgoing bandwidth. More than server to client bandwidth, we will need high volume data transmission (both ways) with Google Servers. For every 1MB from server to client, there will be 10MB from Server to Google API. Can anyone recommend a good server for this specific requirement.
php
webserver
google-apps
bandwidth
data-transfer
07/25/2012 08:39:31
not constructive
What would be the best server for a bandwidth sensitive Google App === I have a Google App developed in php. Google App Engine is not an option since it does not support php (but Python). We have hosted the app in MT, but our users are not satisfied of the speed and response delay. This application communicates a large amount of data with Google API. The requirement is a high band width web server. We plan to go for a VPS for the next year and up-scale to a dedicated server after that. What we need is not only outgoing bandwidth. More than server to client bandwidth, we will need high volume data transmission (both ways) with Google Servers. For every 1MB from server to client, there will be 10MB from Server to Google API. Can anyone recommend a good server for this specific requirement.
4
11,589,903
07/21/2012 06:04:05
530,153
12/04/2010 04:08:27
1,929
13
Facebook Javascript SDK not working on .xhtml page
I tried out the Javascript SDK in an `html` file, everything worked fine. Then moved the same code to a `.xhtml` file & it completely stopped working. The code as follows: File name: `test.xhtml` <html xmlns="http://www.w3.org/1999/xhtml" > <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> </head> <body> <div id="fb-root"></div> <script> // Load the SDK Asynchronously (function(d){ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; ref.parentNode.insertBefore(js, ref); }(document)); // Init the SDK upon load window.fbAsyncInit = function() { FB.init({ appId : '365436556863538', // App ID channelUrl : '//'+window.location.hostname+'/channel', // Path to your Channel File status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); // listen for and handle auth.statusChange events FB.Event.subscribe('auth.statusChange', function(response) { if (response.authResponse) { FB.api('/me', function(response){ if (response.name) { $("#username").html("<img src='https://graph.facebook.com/" + response.id + "/picture'/><div>" + response.name +"</div>"); } }) $('#auth-loggedout').hide(); $('#auth-loggedin').show(); } else { // user has not auth'd your app, or is not logged into Facebook $('#auth-loggedout').show(); $('#auth-loggedin').hide(); } }); // respond to clicks on the login and logout links document.getElementById('auth-loginlink').addEventListener('click', function(){ FB.login(function(response) { // handle the response }, {scope: 'email'}); }); document.getElementById('auth-logoutlink').addEventListener('click', function(){ FB.logout(); }); } </script> <div id="auth-status"> <div id="auth-loggedout"> <a href="#" id="auth-loginlink">Login</a> </div> <div id="auth-loggedin" style="display:none"> (<a href="#" id="auth-logoutlink">logout</a>) </div> </div> <div> <div id="username"></div> </div> </body> </html> I could just find this in the console window: > Uncaught SyntaxError: Unexpected identifier > > window.script1342849602887=1;
facebook
facebook-javascript-sdk
null
null
null
null
open
Facebook Javascript SDK not working on .xhtml page === I tried out the Javascript SDK in an `html` file, everything worked fine. Then moved the same code to a `.xhtml` file & it completely stopped working. The code as follows: File name: `test.xhtml` <html xmlns="http://www.w3.org/1999/xhtml" > <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> </head> <body> <div id="fb-root"></div> <script> // Load the SDK Asynchronously (function(d){ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; ref.parentNode.insertBefore(js, ref); }(document)); // Init the SDK upon load window.fbAsyncInit = function() { FB.init({ appId : '365436556863538', // App ID channelUrl : '//'+window.location.hostname+'/channel', // Path to your Channel File status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); // listen for and handle auth.statusChange events FB.Event.subscribe('auth.statusChange', function(response) { if (response.authResponse) { FB.api('/me', function(response){ if (response.name) { $("#username").html("<img src='https://graph.facebook.com/" + response.id + "/picture'/><div>" + response.name +"</div>"); } }) $('#auth-loggedout').hide(); $('#auth-loggedin').show(); } else { // user has not auth'd your app, or is not logged into Facebook $('#auth-loggedout').show(); $('#auth-loggedin').hide(); } }); // respond to clicks on the login and logout links document.getElementById('auth-loginlink').addEventListener('click', function(){ FB.login(function(response) { // handle the response }, {scope: 'email'}); }); document.getElementById('auth-logoutlink').addEventListener('click', function(){ FB.logout(); }); } </script> <div id="auth-status"> <div id="auth-loggedout"> <a href="#" id="auth-loginlink">Login</a> </div> <div id="auth-loggedin" style="display:none"> (<a href="#" id="auth-logoutlink">logout</a>) </div> </div> <div> <div id="username"></div> </div> </body> </html> I could just find this in the console window: > Uncaught SyntaxError: Unexpected identifier > > window.script1342849602887=1;
0
520,613
02/06/2009 15:08:33
2,197
08/20/2008 20:58:04
3,499
128
Well-respected technical/developer blogs written by non-famous people
Many of us probably follow the technology blogs of well-known names - Joel Spolsky, Jeff Atwood, etc. Many of us probably also follow the technical blogs of people we've come to know through our careers or our interactions. These could be blogs of exceedingly high quality that are just not as well known. <b>What technical blogs do you rely on that the rest of us might not be aware of?</b>
blogs
experts
null
null
null
04/05/2012 13:59:02
not constructive
Well-respected technical/developer blogs written by non-famous people === Many of us probably follow the technology blogs of well-known names - Joel Spolsky, Jeff Atwood, etc. Many of us probably also follow the technical blogs of people we've come to know through our careers or our interactions. These could be blogs of exceedingly high quality that are just not as well known. <b>What technical blogs do you rely on that the rest of us might not be aware of?</b>
4
10,246,488
04/20/2012 12:43:41
878,354
08/04/2011 10:14:37
113
1
Regex search and replace across multiple files
I need to refactor some code across multiple php files stored in multiple folders. Code instances like: trim(ucfirst($userinfo['first_name'])).' '.trim(ucfirst($userinfo['last_name'])) Need to be replaced with: formatUserName($userinfo['first_name'],$userinfo['last_name']) Note that the $ variable name will be different, but everything else will be the same*. I am on a Windows machine, but have php and perl installed - would prefer to use that instead of sed. *There are variations of this line in our code, which once I have an understanding of how to build the proper regex, I'll attempt on my own.
php
regex
perl
search
replace
04/20/2012 14:16:18
off topic
Regex search and replace across multiple files === I need to refactor some code across multiple php files stored in multiple folders. Code instances like: trim(ucfirst($userinfo['first_name'])).' '.trim(ucfirst($userinfo['last_name'])) Need to be replaced with: formatUserName($userinfo['first_name'],$userinfo['last_name']) Note that the $ variable name will be different, but everything else will be the same*. I am on a Windows machine, but have php and perl installed - would prefer to use that instead of sed. *There are variations of this line in our code, which once I have an understanding of how to build the proper regex, I'll attempt on my own.
2
2,258,901
02/13/2010 20:21:21
267,304
02/05/2010 18:02:25
30
1
PHP work with JS Jquery
How do i make PHP work with JS? I mean more like, i want to check if the user is logged in or not, and if he is then it will: $("#message").fadeIn("slow"); .. How should i do this? I have an idea maybe have a file that checks it in php, and then it echo out 1 or 0. And then a script that checks if its getting 1 then do the message fade in.. But im not as so experienced to script that in JS
php
with
js
null
null
null
open
PHP work with JS Jquery === How do i make PHP work with JS? I mean more like, i want to check if the user is logged in or not, and if he is then it will: $("#message").fadeIn("slow"); .. How should i do this? I have an idea maybe have a file that checks it in php, and then it echo out 1 or 0. And then a script that checks if its getting 1 then do the message fade in.. But im not as so experienced to script that in JS
0
10,229,017
04/19/2012 13:21:23
1,322,076
04/09/2012 14:40:07
1
0
Need to construct java entites at runtime for XML unmarshalling
Conditions: simple web service recieves xml file with some entity in it from some java client. Task: marshall this xml with jaxb without entity class: class should be loaded at client's compile-time. Example: **marshaller.marshall(new Shape(), someShape.xml);** There i no class "Shape" in client app package. It should be loaded at a compile-time. How can i perform that uploading?
java
xml
web-services
jaxb
null
null
open
Need to construct java entites at runtime for XML unmarshalling === Conditions: simple web service recieves xml file with some entity in it from some java client. Task: marshall this xml with jaxb without entity class: class should be loaded at client's compile-time. Example: **marshaller.marshall(new Shape(), someShape.xml);** There i no class "Shape" in client app package. It should be loaded at a compile-time. How can i perform that uploading?
0
4,334,367
12/02/2010 11:21:02
15,985
09/17/2008 13:55:21
2,336
77
How to tell when number of process page faults will affect performance?
There is a Windows performance counter for the number of page faults a process generates. Is there a rule-of-thumb threshold at which performance will be affected?
performance
performancecounter
page-fault
null
null
null
open
How to tell when number of process page faults will affect performance? === There is a Windows performance counter for the number of page faults a process generates. Is there a rule-of-thumb threshold at which performance will be affected?
0
11,419,545
07/10/2012 18:26:15
612,266
02/10/2011 23:32:28
621
28
Probability density function between -1 and 1?
I'm currently using Gaussian distribution as a [mutation operator](http://www.iue.tuwien.ac.at/phd/heitzinger/node27.html) for my genetic algorithm. However, I only want to obtain values between -1 and 1. I also don't wish to truncate my Gaussian distribution, which leaves me with lots of 1's and -1's. What type of probability density function can I use to obtain values between -1 and 1, based on a mean value between -1 and 1? Here's an image for the distribution that I'm looking for with mean values of 0, -0.5, and 0.5: ![Distribution Function][1] [1]: http://i.stack.imgur.com/9hQLj.png
distribution
genetic-algorithm
gaussian
null
null
07/10/2012 19:29:44
off topic
Probability density function between -1 and 1? === I'm currently using Gaussian distribution as a [mutation operator](http://www.iue.tuwien.ac.at/phd/heitzinger/node27.html) for my genetic algorithm. However, I only want to obtain values between -1 and 1. I also don't wish to truncate my Gaussian distribution, which leaves me with lots of 1's and -1's. What type of probability density function can I use to obtain values between -1 and 1, based on a mean value between -1 and 1? Here's an image for the distribution that I'm looking for with mean values of 0, -0.5, and 0.5: ![Distribution Function][1] [1]: http://i.stack.imgur.com/9hQLj.png
2
5,376,852
03/21/2011 11:15:10
669,305
03/21/2011 11:15:10
1
0
Get 2 strings from a random dictionary in a .plist
I am new to iphone programming. I have been struggling with this problem and have tried so many different online solutions but can't get the desired result. I want to display 2 strings from a random array or dictionary (i'm not sure what is best to use) It would show a random question with the paired answer. Here's what i have so far: <dict> <key>q2</key> <array> <string>answer2</string> <string>question2</string> </array> <key>q1</key> <array> <string>answer1</string> <string>question1</string> </array> </dict> .m: NSString *fileContents = [[NSBundle mainBundle] pathForResource:@"questions" ofType:@"plist"]; NSMutableDictionary *plistDict = [[NSMutableDictionary alloc] initWithContentsOfFile:fileContents]; NSMutableArray *array = [plistDict objectForKey:@"q1"]; srandom(time(NULL)); int r = arc4random() %[array count]; NSString *arrayData1 = [array objectAtIndex:r]; NSString *arrayData2 = [array objectAtIndex:r+1]; label1.text = arrayData1; label2.text = arrayData2; This shows the correct result. But obviously its only picking it out of the 'q1' array. I would like to be able to get it from any array. Any help would be greatly appreciated. Thanks.
arrays
random
dictionary
plist
null
null
open
Get 2 strings from a random dictionary in a .plist === I am new to iphone programming. I have been struggling with this problem and have tried so many different online solutions but can't get the desired result. I want to display 2 strings from a random array or dictionary (i'm not sure what is best to use) It would show a random question with the paired answer. Here's what i have so far: <dict> <key>q2</key> <array> <string>answer2</string> <string>question2</string> </array> <key>q1</key> <array> <string>answer1</string> <string>question1</string> </array> </dict> .m: NSString *fileContents = [[NSBundle mainBundle] pathForResource:@"questions" ofType:@"plist"]; NSMutableDictionary *plistDict = [[NSMutableDictionary alloc] initWithContentsOfFile:fileContents]; NSMutableArray *array = [plistDict objectForKey:@"q1"]; srandom(time(NULL)); int r = arc4random() %[array count]; NSString *arrayData1 = [array objectAtIndex:r]; NSString *arrayData2 = [array objectAtIndex:r+1]; label1.text = arrayData1; label2.text = arrayData2; This shows the correct result. But obviously its only picking it out of the 'q1' array. I would like to be able to get it from any array. Any help would be greatly appreciated. Thanks.
0
11,689,301
07/27/2012 13:58:03
1,287,523
03/23/2012 04:47:34
47
0
Trouble with inner joins in hibernate (HQL)
I'm using Struts+Spring+Hibernate and I'm having trouble getting my HQL to execute properly. I have four objects, objectA, objectB, objectC, and objectD. Object A has a one to many relationship with Object B, and they are related as ObjectB has a FK ObjectA.Id. This pattern continues through the objects ie Object B has a one-many relationship with Object C etc. What I've been doing right now is calling "FROM ObjectXVO WHERE objectXId = ?" to get a list of objects. My application is becoming more complicated so I need to do some more complicated HQL. Essentially what I need is, given ObjectBVO.objectBId I need to return certain columns of the ObjectA that has the given ObjectB, certain columns of the ObjectCs that are part of the given ObjectB, and ALL columns of the ObjectDs that are part of the ObjectCs that are part of the given ObjectBs. This is my SQL Statement that I'm using in Microsoft SQL Server. It's working and hopefully will demonstrate my model. SELECT ObjectB.ObjectBID, ObjectB.ObjectBName, ObjectC.ObjectCDescription, ObjectD.*, ObjectA.ObjectAID FROM ObjectB, ObjectC, ObjectD, ObjectA WHERE ObjectB.ObjectBID = 2 AND ObjectA.ObjectAID = ObjectB.ObjectAID AND ObjectB.ObjectBID = ObjectC.ObjectBID AND ObjectD.ObjectCID = ObjectC.ObjectCID This is the code in the DAOimpl object I'm attempting to use to return List< ObjectDVO > List<ObjectDVO> objectDs; try{ String hql = "SELECT ObjectBVO.objectBId, ObjectBVO.objectBName, ObjectCVO.objectCDescription, ObjectCVO.objectCId," +" ObjectAVO.objectAId, ObjectAVO.objectAName, ObjectDVO" +" FROM ObjectBVO, ObjectAVO, ObjectCVO, ObjectDVO" +" WHERE ObjectBVO.objectBId = ?" +" AND ObjectAVO.objectAId = ObjectBVO.objectAId" +" AND ObjectBVO.objectBId = ObjectCVO.objectBId" +" AND ObjectDVO.objectCId = ObjectCVO.objectCId"; objectDs = getHibernateTemplate().find(hql, objectBID); } This just throws an error saying null. I've looked at the HQL documentation and some tutorials but it's not really clear how to do this more multiple VO objects. Can anyone help? Thanks.
hibernate
struts
hql
null
null
null
open
Trouble with inner joins in hibernate (HQL) === I'm using Struts+Spring+Hibernate and I'm having trouble getting my HQL to execute properly. I have four objects, objectA, objectB, objectC, and objectD. Object A has a one to many relationship with Object B, and they are related as ObjectB has a FK ObjectA.Id. This pattern continues through the objects ie Object B has a one-many relationship with Object C etc. What I've been doing right now is calling "FROM ObjectXVO WHERE objectXId = ?" to get a list of objects. My application is becoming more complicated so I need to do some more complicated HQL. Essentially what I need is, given ObjectBVO.objectBId I need to return certain columns of the ObjectA that has the given ObjectB, certain columns of the ObjectCs that are part of the given ObjectB, and ALL columns of the ObjectDs that are part of the ObjectCs that are part of the given ObjectBs. This is my SQL Statement that I'm using in Microsoft SQL Server. It's working and hopefully will demonstrate my model. SELECT ObjectB.ObjectBID, ObjectB.ObjectBName, ObjectC.ObjectCDescription, ObjectD.*, ObjectA.ObjectAID FROM ObjectB, ObjectC, ObjectD, ObjectA WHERE ObjectB.ObjectBID = 2 AND ObjectA.ObjectAID = ObjectB.ObjectAID AND ObjectB.ObjectBID = ObjectC.ObjectBID AND ObjectD.ObjectCID = ObjectC.ObjectCID This is the code in the DAOimpl object I'm attempting to use to return List< ObjectDVO > List<ObjectDVO> objectDs; try{ String hql = "SELECT ObjectBVO.objectBId, ObjectBVO.objectBName, ObjectCVO.objectCDescription, ObjectCVO.objectCId," +" ObjectAVO.objectAId, ObjectAVO.objectAName, ObjectDVO" +" FROM ObjectBVO, ObjectAVO, ObjectCVO, ObjectDVO" +" WHERE ObjectBVO.objectBId = ?" +" AND ObjectAVO.objectAId = ObjectBVO.objectAId" +" AND ObjectBVO.objectBId = ObjectCVO.objectBId" +" AND ObjectDVO.objectCId = ObjectCVO.objectCId"; objectDs = getHibernateTemplate().find(hql, objectBID); } This just throws an error saying null. I've looked at the HQL documentation and some tutorials but it's not really clear how to do this more multiple VO objects. Can anyone help? Thanks.
0
8,749,922
01/05/2012 21:15:50
618,170
02/15/2011 16:22:02
40
3
VB.NET Bound ComboBox SelectedValue does not display
I bind a datatable to the combobox.DataSource on load. I then give the combobox a DisplayMember and a ValueMember (2 different columns out of the datatable). In the SelectedIndexChanged of the combobox I would like to use the SelectedValue property of the combobox, just to test I MsgBox(combobox.SelectedValue) and I get "Argument 'Prompt' cannot be converted to type 'String'." Why isn't it displaying the value? :(
vb.net
combobox
null
null
null
null
open
VB.NET Bound ComboBox SelectedValue does not display === I bind a datatable to the combobox.DataSource on load. I then give the combobox a DisplayMember and a ValueMember (2 different columns out of the datatable). In the SelectedIndexChanged of the combobox I would like to use the SelectedValue property of the combobox, just to test I MsgBox(combobox.SelectedValue) and I get "Argument 'Prompt' cannot be converted to type 'String'." Why isn't it displaying the value? :(
0
8,199,755
11/20/2011 05:55:12
943,340
09/13/2011 20:19:04
466
2
C coding for GTK+ (a simple case)
I am learning C and compiling the codes with GTK+. I have a simple GTK+ of #include <gtk/gtk.h> int main( int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_show(window); gtk_main(); return 0; } Could you please give me a hint how can I insert C processing codes within this structure? For example, I want to read the content of a file and display within the gtk+ window.
c
gtk
gtk+
null
null
11/20/2011 21:51:22
not a real question
C coding for GTK+ (a simple case) === I am learning C and compiling the codes with GTK+. I have a simple GTK+ of #include <gtk/gtk.h> int main( int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_show(window); gtk_main(); return 0; } Could you please give me a hint how can I insert C processing codes within this structure? For example, I want to read the content of a file and display within the gtk+ window.
1
9,378,230
02/21/2012 13:13:45
21,030
09/23/2008 10:36:12
2,878
57
What does the EH in EHCache stand for?
Just out of idle curiosity and Google didn't give me an answer, but what does the EH stand for in [EHCache][1]? [1]: http://ehcache.org/
java
ehcache
null
null
null
02/21/2012 13:34:32
off topic
What does the EH in EHCache stand for? === Just out of idle curiosity and Google didn't give me an answer, but what does the EH stand for in [EHCache][1]? [1]: http://ehcache.org/
2
10,902,436
06/05/2012 18:01:29
1,438,023
06/05/2012 17:59:48
1
0
Maximum table comment length for Oracle and SQL Server
What is the maximum length for a table comment in Oracle and SQL Server? For MySQL this is 60 chars.
sql-server
oracle
null
null
null
null
open
Maximum table comment length for Oracle and SQL Server === What is the maximum length for a table comment in Oracle and SQL Server? For MySQL this is 60 chars.
0
5,851,645
05/01/2011 21:45:54
122,229
06/12/2009 19:07:38
493
19
How to get ajax querystring from javascript given data object
When you make an ajax request using jquery you can specify the data property that will be passed to the sever. If the data contains an array of objects it passes it to the server in format something like this: MyArray[0][MyPropertyA]=123&MyArray[1][MyPropertyA]=456 Is there a way to get the query string it will generate for the ajax request without actually doing the ajax request?
javascript
jquery
ajax
jquery-ajax
null
null
open
How to get ajax querystring from javascript given data object === When you make an ajax request using jquery you can specify the data property that will be passed to the sever. If the data contains an array of objects it passes it to the server in format something like this: MyArray[0][MyPropertyA]=123&MyArray[1][MyPropertyA]=456 Is there a way to get the query string it will generate for the ajax request without actually doing the ajax request?
0
9,830,755
03/22/2012 21:23:11
1,275,489
03/17/2012 08:19:07
21
1
How to design a comment system using Entity Framework?
I am developing a web site where users can comment on things, which are completely independent types using Entity Framework. For example a user can comment on: - Pictures - Videos - Comments - and so on So, I want a comment class which have a navigation property to user who wrote the comment and the thing(Picutres, Videos, Comments) the comment written to. public class User { public AccountInfo AccountInfo; public List<Comment> Comments; } public class Comment { public int Id; public User WrittenBy; public Thing(?) WrittenTo; // How should this part be? } The aim is to access comments from a User object and then get the thing which the comment was written to. I can derive all the thing classes from a base class like Commentable and then use inheritance. But I want to know if there is an elegant solution.
c#
asp.net
mvc
entity-framework
null
03/23/2012 02:28:28
off topic
How to design a comment system using Entity Framework? === I am developing a web site where users can comment on things, which are completely independent types using Entity Framework. For example a user can comment on: - Pictures - Videos - Comments - and so on So, I want a comment class which have a navigation property to user who wrote the comment and the thing(Picutres, Videos, Comments) the comment written to. public class User { public AccountInfo AccountInfo; public List<Comment> Comments; } public class Comment { public int Id; public User WrittenBy; public Thing(?) WrittenTo; // How should this part be? } The aim is to access comments from a User object and then get the thing which the comment was written to. I can derive all the thing classes from a base class like Commentable and then use inheritance. But I want to know if there is an elegant solution.
2
1,329,098
08/25/2009 15:37:21
162,856
08/25/2009 15:37:20
1
0
OPENQUERY on SQL Server 2005 64bit behaves weird
I just recently moved a SQL DB from SQL2005 32 bit --> 64 bit. I am having an issue connecting to Oracle using the OraOLEDB.Oracle Provider. I was able to install Oracle 10G Client , ODAC 64 bit. I was also able to add a linked server to the Oracle instance. I am able to run a query using the linked server name directly: SELECT top 10 * FROM [DB0PBB0]..[DB0PBB0].[DM_CLICK] So far it is good, however, the problem occurs when I try to use OPENQUERY. I tried the following: select * from OPENQUERY(DB0PBB0,'select * from DB0PBB0.DM_CLICK where Date_stamp <''24-Jul-09'' and Date_stamp >= ''23-Jul-09'' ') SET FMTONLY OFF select * from OPENQUERY(DB0PBB0,'select * from DB0PBB0.DM_CLICK where Date_stamp <''24-Jul-09'' and Date_stamp >= ''23-Jul-09'' ') and I get only the column names, no rows :( if I run this script: SET FMTONLY OFF select * from OPENQUERY(DB0PBB0,'select ''hello'' from dual ') I get > hello My question is, has anyone tried running OPENQUERY against Oracle from a SQL05 64bit ? Any ?Idea why would I get only columns back instead of data? I tried the same query on another server with the same link and it worked, it returned rows.
sql-server-2005
oracle
openquery
64bit
null
null
open
OPENQUERY on SQL Server 2005 64bit behaves weird === I just recently moved a SQL DB from SQL2005 32 bit --> 64 bit. I am having an issue connecting to Oracle using the OraOLEDB.Oracle Provider. I was able to install Oracle 10G Client , ODAC 64 bit. I was also able to add a linked server to the Oracle instance. I am able to run a query using the linked server name directly: SELECT top 10 * FROM [DB0PBB0]..[DB0PBB0].[DM_CLICK] So far it is good, however, the problem occurs when I try to use OPENQUERY. I tried the following: select * from OPENQUERY(DB0PBB0,'select * from DB0PBB0.DM_CLICK where Date_stamp <''24-Jul-09'' and Date_stamp >= ''23-Jul-09'' ') SET FMTONLY OFF select * from OPENQUERY(DB0PBB0,'select * from DB0PBB0.DM_CLICK where Date_stamp <''24-Jul-09'' and Date_stamp >= ''23-Jul-09'' ') and I get only the column names, no rows :( if I run this script: SET FMTONLY OFF select * from OPENQUERY(DB0PBB0,'select ''hello'' from dual ') I get > hello My question is, has anyone tried running OPENQUERY against Oracle from a SQL05 64bit ? Any ?Idea why would I get only columns back instead of data? I tried the same query on another server with the same link and it worked, it returned rows.
0
8,106,501
11/12/2011 18:15:19
773,897
05/28/2011 00:09:14
330
18
Objective-C play sound
I know how to play mp3 files and whatnot in Xcode iOS. But how do I play a certain frequency.. Like if I just wanted to emit a C# note for 25 seconds how might I do that? (The synth isn't as important to me as just the pitch of the note)
iphone
objective-c
xcode
audio
note
null
open
Objective-C play sound === I know how to play mp3 files and whatnot in Xcode iOS. But how do I play a certain frequency.. Like if I just wanted to emit a C# note for 25 seconds how might I do that? (The synth isn't as important to me as just the pitch of the note)
0
10,866,234
06/02/2012 21:53:37
1,432,905
06/02/2012 21:42:32
1
0
Venmo transactions
I am interested in finding out more about how transactions are processed within Venmo (https://venmo.com/info/product) ie - How individual user accounts are created, and associated with their wells fargo account - how their servers interact with individual users banks, and some more info on Verisign security - how accounts are verified (Yodlee?) - how transactions are processed so quickly (1 business day) I understand most of this is proprietary information/code but would appreciate any "best guesses" or points in the direction of more info. Thanks!
java
php
android
ios
transactions
06/05/2012 13:27:36
off topic
Venmo transactions === I am interested in finding out more about how transactions are processed within Venmo (https://venmo.com/info/product) ie - How individual user accounts are created, and associated with their wells fargo account - how their servers interact with individual users banks, and some more info on Verisign security - how accounts are verified (Yodlee?) - how transactions are processed so quickly (1 business day) I understand most of this is proprietary information/code but would appreciate any "best guesses" or points in the direction of more info. Thanks!
2
3,829,113
09/30/2010 08:53:46
92,153
04/17/2009 14:44:59
313
2
MS UnitTest - Private Accesor not always recognized
This problem doesnt occur in all projects, hence it makes it even more frustrating. If I click on a Private method to create a unit test, it would generate a TestProject assembly and create a predefined class in there. It woudl also create a Accessor for that class. [TestMethod()] [DeploymentItem("xxx.Client.dll")] public void PopulateIncomeCostsDataSetTest() { CashFlowOperations_Accessor target = new CashFlowOperations_Accessor(); // TODO: Initialize to an appropriate value CashflowModel cashflowModel = null; // TODO: Initialize to an appropriate value CashflowDataSet ds = null; // TODO: Initialize to an appropriate value target.PopulateIncomeCostsDataSet(cashflowModel, ds); Assert.Inconclusive("A method that does not return a value cannot be verified."); } As long as I create this unit test for private methods in a library assembly (dll) its all fine, but if I create it for a Console application where `[DeploymentItem("xxx.exe")]` is an executable, my Accesor stays in red color and I cant access the internal private methods of that accessor. Has anyone experienced this problem before? Many Thanks,
.net
unit-testing
unit
null
null
null
open
MS UnitTest - Private Accesor not always recognized === This problem doesnt occur in all projects, hence it makes it even more frustrating. If I click on a Private method to create a unit test, it would generate a TestProject assembly and create a predefined class in there. It woudl also create a Accessor for that class. [TestMethod()] [DeploymentItem("xxx.Client.dll")] public void PopulateIncomeCostsDataSetTest() { CashFlowOperations_Accessor target = new CashFlowOperations_Accessor(); // TODO: Initialize to an appropriate value CashflowModel cashflowModel = null; // TODO: Initialize to an appropriate value CashflowDataSet ds = null; // TODO: Initialize to an appropriate value target.PopulateIncomeCostsDataSet(cashflowModel, ds); Assert.Inconclusive("A method that does not return a value cannot be verified."); } As long as I create this unit test for private methods in a library assembly (dll) its all fine, but if I create it for a Console application where `[DeploymentItem("xxx.exe")]` is an executable, my Accesor stays in red color and I cant access the internal private methods of that accessor. Has anyone experienced this problem before? Many Thanks,
0
10,359,067
04/27/2012 23:16:31
204,204
11/05/2009 21:49:49
6
1
unix domain sockets on linux?
The following unix domain socket client and server example from http://www.thomasstover.com/uds.html does not work as expected on my slackware linux box. I get this output: $ ./server1 $ $ ./client1 MESSAGE FROM SERVER: hello from a client I expected the server to print the message hello from client and the client to print hello from server. server.c: #include <stdio.h> #include <sys/socket.h> #include <sys/un.h> #include <sys/types.h> #include <unistd.h> #include <string.h> int connection_handler(int connection_fd) { int nbytes; char buffer[256]; nbytes = read(connection_fd, buffer, 256); buffer[nbytes] = 0; printf("MESSAGE FROM CLIENT: %s\n", buffer); nbytes = snprintf(buffer, 256, "hello from the server"); write(connection_fd, buffer, nbytes); close(connection_fd); return 0; } int main(void) { struct sockaddr_un address; int socket_fd, connection_fd; socklen_t address_length; pid_t child; socket_fd = socket(PF_UNIX, SOCK_STREAM, 0); if(socket_fd < 0) { printf("socket() failed\n"); return 1; } unlink("./demo_socket"); /* start with a clean address structure */ memset(&address, 0, sizeof(struct sockaddr_un)); address.sun_family = AF_UNIX; snprintf(address.sun_path, UNIX_PATH_MAX, "./demo_socket"); if(bind(socket_fd, (struct sockaddr *) &address, sizeof(struct sockaddr_un)) != 0) { printf("bind() failed\n"); return 1; } if(listen(socket_fd, 5) != 0) { printf("listen() failed\n"); return 1; } while((connection_fd = accept(socket_fd, (struct sockaddr *) &address, &address_length)) > -1) { child = fork(); if(child == 0) { /* now inside newly created connection handling process */ return connection_handler(connection_fd); } /* still inside server process */ close(connection_fd); } close(socket_fd); unlink("./demo_socket"); return 0; } client.c: #include <stdio.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include <string.h> int main(void) { struct sockaddr_un address; int socket_fd, nbytes; char buffer[256]; socket_fd = socket(PF_UNIX, SOCK_STREAM, 0); if(socket_fd < 0) { printf("socket() failed\n"); return 1; } /* start with a clean address structure */ memset(&address, 0, sizeof(struct sockaddr_un)); address.sun_family = AF_UNIX; snprintf(address.sun_path, UNIX_PATH_MAX, "./demo_socket"); if(connect(socket_fd, (struct sockaddr *) &address, sizeof(struct sockaddr_un)) != 0) { printf("connect() failed\n"); return 1; } nbytes = snprintf(buffer, 256, "hello from a client"); write(socket_fd, buffer, nbytes); nbytes = read(socket_fd, buffer, 256); buffer[nbytes] = 0; printf("MESSAGE FROM SERVER: %s\n", buffer); close(socket_fd); return 0; }
c
sockets
network-programming
null
null
04/30/2012 13:02:39
not a real question
unix domain sockets on linux? === The following unix domain socket client and server example from http://www.thomasstover.com/uds.html does not work as expected on my slackware linux box. I get this output: $ ./server1 $ $ ./client1 MESSAGE FROM SERVER: hello from a client I expected the server to print the message hello from client and the client to print hello from server. server.c: #include <stdio.h> #include <sys/socket.h> #include <sys/un.h> #include <sys/types.h> #include <unistd.h> #include <string.h> int connection_handler(int connection_fd) { int nbytes; char buffer[256]; nbytes = read(connection_fd, buffer, 256); buffer[nbytes] = 0; printf("MESSAGE FROM CLIENT: %s\n", buffer); nbytes = snprintf(buffer, 256, "hello from the server"); write(connection_fd, buffer, nbytes); close(connection_fd); return 0; } int main(void) { struct sockaddr_un address; int socket_fd, connection_fd; socklen_t address_length; pid_t child; socket_fd = socket(PF_UNIX, SOCK_STREAM, 0); if(socket_fd < 0) { printf("socket() failed\n"); return 1; } unlink("./demo_socket"); /* start with a clean address structure */ memset(&address, 0, sizeof(struct sockaddr_un)); address.sun_family = AF_UNIX; snprintf(address.sun_path, UNIX_PATH_MAX, "./demo_socket"); if(bind(socket_fd, (struct sockaddr *) &address, sizeof(struct sockaddr_un)) != 0) { printf("bind() failed\n"); return 1; } if(listen(socket_fd, 5) != 0) { printf("listen() failed\n"); return 1; } while((connection_fd = accept(socket_fd, (struct sockaddr *) &address, &address_length)) > -1) { child = fork(); if(child == 0) { /* now inside newly created connection handling process */ return connection_handler(connection_fd); } /* still inside server process */ close(connection_fd); } close(socket_fd); unlink("./demo_socket"); return 0; } client.c: #include <stdio.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include <string.h> int main(void) { struct sockaddr_un address; int socket_fd, nbytes; char buffer[256]; socket_fd = socket(PF_UNIX, SOCK_STREAM, 0); if(socket_fd < 0) { printf("socket() failed\n"); return 1; } /* start with a clean address structure */ memset(&address, 0, sizeof(struct sockaddr_un)); address.sun_family = AF_UNIX; snprintf(address.sun_path, UNIX_PATH_MAX, "./demo_socket"); if(connect(socket_fd, (struct sockaddr *) &address, sizeof(struct sockaddr_un)) != 0) { printf("connect() failed\n"); return 1; } nbytes = snprintf(buffer, 256, "hello from a client"); write(socket_fd, buffer, nbytes); nbytes = read(socket_fd, buffer, 256); buffer[nbytes] = 0; printf("MESSAGE FROM SERVER: %s\n", buffer); close(socket_fd); return 0; }
1
5,517,901
04/01/2011 19:25:26
686,096
03/31/2011 15:55:19
1
0
GoogleMaps Python
Can i Link Google MAps With Python !! or upload Googlemaps in python ?!!! Thank in advance , Plz help me
python
google-maps
null
null
null
04/01/2011 21:02:18
not a real question
GoogleMaps Python === Can i Link Google MAps With Python !! or upload Googlemaps in python ?!!! Thank in advance , Plz help me
1
3,051,541
06/16/2010 07:59:01
111,469
05/23/2009 09:59:06
1,190
111
Sotred Procedure could not be found
We use SQL server 2008 as our RDBMS and we have a database that has a different user rather than dbo as its owner. The problem is in one machine a stored procedure can not run unless its owner is mentioned. If we connect to our database using this user and try to execute the following : exec ourSP we get a "could not find ourSP" error but this works fine: exec user.ourSP Does anybody knows what can lead to such a strange behavior?
sql-server-2008
stored-procedures
owner
null
null
null
open
Sotred Procedure could not be found === We use SQL server 2008 as our RDBMS and we have a database that has a different user rather than dbo as its owner. The problem is in one machine a stored procedure can not run unless its owner is mentioned. If we connect to our database using this user and try to execute the following : exec ourSP we get a "could not find ourSP" error but this works fine: exec user.ourSP Does anybody knows what can lead to such a strange behavior?
0
2,571,518
04/03/2010 14:35:56
269,160
02/09/2010 01:54:15
56
0
Class variable defined at @implementation rather than @interface?
I'm new to Objective-C, but I am curious about something that I haven't really seen addressed anywhere else. Could anyone tell me what is the difference between a private variable that is declared at the `@interface` block versus a variable that is declared within the `@implementation` block outside of the class methods, i.e: @interface Someclass : NSObject { NSString *forExample; } @end vs. @implementation Someclass NSString *anotherExample; -(void)methodsAndSuch {} @end It seems both variables ( `forExample`, `anotherExample` ) are equally accessible throughout the class and I can't really find a difference in their behaviour. Is the second form also called an instance variable?
objective-c
null
null
null
null
null
open
Class variable defined at @implementation rather than @interface? === I'm new to Objective-C, but I am curious about something that I haven't really seen addressed anywhere else. Could anyone tell me what is the difference between a private variable that is declared at the `@interface` block versus a variable that is declared within the `@implementation` block outside of the class methods, i.e: @interface Someclass : NSObject { NSString *forExample; } @end vs. @implementation Someclass NSString *anotherExample; -(void)methodsAndSuch {} @end It seems both variables ( `forExample`, `anotherExample` ) are equally accessible throughout the class and I can't really find a difference in their behaviour. Is the second form also called an instance variable?
0
7,644,948
10/04/2011 08:13:05
973,244
09/30/2011 14:09:31
1
0
MVVM - connect to grid in main window
I had a simple application where I opened a user control in the main window and placed it in a grid: private void MenuItem_Click(object sender, RoutedEventArgs e) { DataViewUC _dataViewUC = new DataViewUC(); this.mainGrid.Children.Add(_dataViewUC); Grid.SetColumn(_dataViewUC, 2); Grid.SetRow(_dataViewUC, 2); } I changed it to a MVVM application and try to do there the same (open the user control in the cell of a grid): public void ShowDataView() { _dataViewUC = new DataViewUC(); DataViewModel dataViewModel = new DataViewModel(); _dataViewUC.DataContext = dataViewModel; } But how do I get access to the grid in the main window? This is not working here: this.mainGrid.Children.Add(_dataViewUC); Grid.SetColumn(_dataViewUC, 2); Grid.SetRow(_dataViewUC, 2);
mvvm
grid
null
null
null
null
open
MVVM - connect to grid in main window === I had a simple application where I opened a user control in the main window and placed it in a grid: private void MenuItem_Click(object sender, RoutedEventArgs e) { DataViewUC _dataViewUC = new DataViewUC(); this.mainGrid.Children.Add(_dataViewUC); Grid.SetColumn(_dataViewUC, 2); Grid.SetRow(_dataViewUC, 2); } I changed it to a MVVM application and try to do there the same (open the user control in the cell of a grid): public void ShowDataView() { _dataViewUC = new DataViewUC(); DataViewModel dataViewModel = new DataViewModel(); _dataViewUC.DataContext = dataViewModel; } But how do I get access to the grid in the main window? This is not working here: this.mainGrid.Children.Add(_dataViewUC); Grid.SetColumn(_dataViewUC, 2); Grid.SetRow(_dataViewUC, 2);
0
1,112,869
07/11/2009 03:30:50
135,429
07/09/2009 05:10:22
53
3
How to avoid reference count underflow in _NSCFURLProtocolBridge in custom NSURLProtocol in GC environment
The basics are I have a custom `NSURLProtocol`. In `startLoading`, `[self client]` is of type <_NSCFURLProtocolBridge> {NSURLProtocol, CFURLProtocol} The problem is running this in a garbage-collected environment. Because I'm writing a screensaver, I'm forced to make it garbage-collected. However, the _NSCFURLProtocolBridge protocol seems to always throw: malloc: reference count underflow for (memory_id_here), break on auto_refcount_underflow_error to debug An example dump to the debug console is: ScreenSaverEngine[1678:6807] client is <_NSCFURLProtocolBridge 0x20025ab00> {NSURLProtocol 0x200258ec0, CFURLProtocol 0x20029c400} ScreenSaverEngine(1678,0x102eda000) malloc: reference count underflow for 0x20025ab00, break on auto_refcount_underflow_error to debug. You can see that the underflow is `0x20025ab00` for `<_NSCFURLProtocolBridge 0x20025ab00>` When I break on `auto_refcount_underflow_error`, it seems to stack-trace back up to `URLProtocolDidFinishLoading:` in: id client = [self client]; ... [client URLProtocolDidFinishLoading:self]; This problem seems to have existed for a while, but there seems to be no answer at all online: http://lists.apple.com/archives/cocoa-dev/2008/May/msg01272.html http://www.cocoabuilder.com/archive/message/cocoa/2007/12/17/195056 The bug only shows itself in garbage-collected environments for these listed bugs as well. Any thoughts on how I can work around this without causing memory issues? I'm assuming this probably has something to do with the CF type underneath NSURLProtocol being released improperly?
objective-c
garbage-collection
underflow
null
null
null
open
How to avoid reference count underflow in _NSCFURLProtocolBridge in custom NSURLProtocol in GC environment === The basics are I have a custom `NSURLProtocol`. In `startLoading`, `[self client]` is of type <_NSCFURLProtocolBridge> {NSURLProtocol, CFURLProtocol} The problem is running this in a garbage-collected environment. Because I'm writing a screensaver, I'm forced to make it garbage-collected. However, the _NSCFURLProtocolBridge protocol seems to always throw: malloc: reference count underflow for (memory_id_here), break on auto_refcount_underflow_error to debug An example dump to the debug console is: ScreenSaverEngine[1678:6807] client is <_NSCFURLProtocolBridge 0x20025ab00> {NSURLProtocol 0x200258ec0, CFURLProtocol 0x20029c400} ScreenSaverEngine(1678,0x102eda000) malloc: reference count underflow for 0x20025ab00, break on auto_refcount_underflow_error to debug. You can see that the underflow is `0x20025ab00` for `<_NSCFURLProtocolBridge 0x20025ab00>` When I break on `auto_refcount_underflow_error`, it seems to stack-trace back up to `URLProtocolDidFinishLoading:` in: id client = [self client]; ... [client URLProtocolDidFinishLoading:self]; This problem seems to have existed for a while, but there seems to be no answer at all online: http://lists.apple.com/archives/cocoa-dev/2008/May/msg01272.html http://www.cocoabuilder.com/archive/message/cocoa/2007/12/17/195056 The bug only shows itself in garbage-collected environments for these listed bugs as well. Any thoughts on how I can work around this without causing memory issues? I'm assuming this probably has something to do with the CF type underneath NSURLProtocol being released improperly?
0
3,681,085
09/09/2010 22:43:49
77,382
03/12/2009 19:19:56
66
6
How can I get a list of SQVI queries by User ID?
Just as some background, I intend to write an Excel add-in with .NET that can execute queries from an SAP system. Thus, I'm looking for a list of function modules for SAP's SQVI transaction. I can't seem to find much information about them; the few forum posts I had found before seem to have gone into the internet oblivion. Specifically, I want to be able to look up the queries created by a user and then display the results in Excel. I can manage the Excel manipulation as well as remotely executing SAP function modules; I simply can't find which SQVI function modules I need to execute.
sap
abap
null
null
null
null
open
How can I get a list of SQVI queries by User ID? === Just as some background, I intend to write an Excel add-in with .NET that can execute queries from an SAP system. Thus, I'm looking for a list of function modules for SAP's SQVI transaction. I can't seem to find much information about them; the few forum posts I had found before seem to have gone into the internet oblivion. Specifically, I want to be able to look up the queries created by a user and then display the results in Excel. I can manage the Excel manipulation as well as remotely executing SAP function modules; I simply can't find which SQVI function modules I need to execute.
0
5,436,185
03/25/2011 17:49:04
677,186
03/25/2011 17:30:52
1
0
URL Sniffing in Python
Does anyone know how to write a live data sniffer in Python which extracts the originating IP address and the full URL that was being accessed? I have looked at pulling data from urlsnarf however IPv6 is not supported (and the connections will be to IPv6 hosts). While I can pull data from tcpdump and greping for GET/POST that would leave me with simply the path on the webserver, and I would not obtain the associated FQDN. Unfortunately using SQUID w/ IPv6 TPROXY is not an option due to the configuration of the environment. Does anyone have any ideas on how to do this with Python bindings for libpcap? Your help would be most appreciated :) Thanks :)
python
url
ipv6
libpcap
sniffing
null
open
URL Sniffing in Python === Does anyone know how to write a live data sniffer in Python which extracts the originating IP address and the full URL that was being accessed? I have looked at pulling data from urlsnarf however IPv6 is not supported (and the connections will be to IPv6 hosts). While I can pull data from tcpdump and greping for GET/POST that would leave me with simply the path on the webserver, and I would not obtain the associated FQDN. Unfortunately using SQUID w/ IPv6 TPROXY is not an option due to the configuration of the environment. Does anyone have any ideas on how to do this with Python bindings for libpcap? Your help would be most appreciated :) Thanks :)
0
11,489,905
07/15/2012 06:25:46
624,854
02/20/2011 00:13:55
56
4
Algorithms for detection of fingertips or nails
Can you give me some advices on what could be the best algorithm(s) to use for detection of fingertips/nails in image. First thing that crossed my mind was Viola - Jones, but I'd like some more advices. Also, as this is going to be a student's project with a purpose of learning, I'am not allowed to use OpenCV or similar frameworks. Below is typical image that will be processed. (note it's not top-down view). There is no need for thumb detection. ![typical image](http://www.deviantpics.com/images/BwgPX.jpg)
algorithm
image-processing
computer-vision
null
null
07/15/2012 14:36:52
off topic
Algorithms for detection of fingertips or nails === Can you give me some advices on what could be the best algorithm(s) to use for detection of fingertips/nails in image. First thing that crossed my mind was Viola - Jones, but I'd like some more advices. Also, as this is going to be a student's project with a purpose of learning, I'am not allowed to use OpenCV or similar frameworks. Below is typical image that will be processed. (note it's not top-down view). There is no need for thumb detection. ![typical image](http://www.deviantpics.com/images/BwgPX.jpg)
2
123,957
09/23/2008 21:19:22
4,391
09/03/2008 12:40:39
6
0
Who is responsible for your UI / User Experience?
Looking for input from all, though mostly interested in small engineering teams / small companies (10 - 20 people) that develop web applications: 1. Who is responsible for the overall look and feel of your UI (i.e. setting standards)? Is this person a dedicated resource or does he / she have other responsibilities? What type of background does this person have? 2. What about the look / feel of individual features? The BA's that design the features? The engineers that implement them? A combination of both? Somebody completely separate (i.e. engineer codes core functionality and passes it on to somebody else to "pretty it up")?
project-management
user-interface
team
team-building
null
05/05/2012 13:52:08
not constructive
Who is responsible for your UI / User Experience? === Looking for input from all, though mostly interested in small engineering teams / small companies (10 - 20 people) that develop web applications: 1. Who is responsible for the overall look and feel of your UI (i.e. setting standards)? Is this person a dedicated resource or does he / she have other responsibilities? What type of background does this person have? 2. What about the look / feel of individual features? The BA's that design the features? The engineers that implement them? A combination of both? Somebody completely separate (i.e. engineer codes core functionality and passes it on to somebody else to "pretty it up")?
4
3,953,804
10/17/2010 15:13:39
445,114
09/11/2010 14:05:11
48
6
How to add widget configuration activity to launcher?
I have a widget with a configuration activity. Currently the configuration launches when you click on the widget. I want to add the configuration as an app icon to the launcher. The problem is that when the configuration launches on click, I get a specific widget id , so each widget instance can have a different configuration. What will happen if I start the activity from the launcher? I wont be able to show multiple configurations on the same activity. Thanks.
android
configuration
widget
launcher
null
null
open
How to add widget configuration activity to launcher? === I have a widget with a configuration activity. Currently the configuration launches when you click on the widget. I want to add the configuration as an app icon to the launcher. The problem is that when the configuration launches on click, I get a specific widget id , so each widget instance can have a different configuration. What will happen if I start the activity from the launcher? I wont be able to show multiple configurations on the same activity. Thanks.
0
1,329,175
08/25/2009 15:50:16
152,737
08/07/2009 20:21:37
53
1
iterating through TWO sparse matrices
I'm using boost sparse matrices holding bool's and trying to write a comparison function for storing them in a map. It is a very simple comparison function. Basically, the idea is to look at the matrix as a binary number (after being flattened into a vector) and sorting based on the value of that number. This can be accomplished in this way: for(unsigned int j = 0; j < maxJ; j++) { for(unsigned int i = 0; i < maxI; i++) { if(matrix1(i,j) < matrix2(i,j) return true; else if(matrix1(i,j) > matrix2(i,j) return false; } } return false; However, this is inefficient because of the sparseness of the matrices and I'd like to use iterators for the same result. The algorithm seems straightforward, i.e. 1) grab the first nonzero cell in each matrix, 2) compare j*maxJ+i for both, 3) if equal, grab the next nonzero cells in each matrix and repeat. What I'm wondering is (a) is there a better way to do this and (b) is there a simple way to get the "next nonzero cell" for both matrices? Obviously, I can't use nested for loops like one would to iterate through one sparse matrix. Thanks for your help.
c++
boost
sparse-matrix
iterator
null
null
open
iterating through TWO sparse matrices === I'm using boost sparse matrices holding bool's and trying to write a comparison function for storing them in a map. It is a very simple comparison function. Basically, the idea is to look at the matrix as a binary number (after being flattened into a vector) and sorting based on the value of that number. This can be accomplished in this way: for(unsigned int j = 0; j < maxJ; j++) { for(unsigned int i = 0; i < maxI; i++) { if(matrix1(i,j) < matrix2(i,j) return true; else if(matrix1(i,j) > matrix2(i,j) return false; } } return false; However, this is inefficient because of the sparseness of the matrices and I'd like to use iterators for the same result. The algorithm seems straightforward, i.e. 1) grab the first nonzero cell in each matrix, 2) compare j*maxJ+i for both, 3) if equal, grab the next nonzero cells in each matrix and repeat. What I'm wondering is (a) is there a better way to do this and (b) is there a simple way to get the "next nonzero cell" for both matrices? Obviously, I can't use nested for loops like one would to iterate through one sparse matrix. Thanks for your help.
0
1,076,294
07/02/2009 19:39:11
103,623
05/08/2009 15:16:30
82
15
Custom Input Form (Sharepoint)
I'd like to create a custom input form that collects employees hours. This data will be saved to a Access Web Datasheet in Sharepoint. How do I go about doing this? I have Sharepoint Designer and I've created a basic input form but need to link it to datasheet on Sharepoint. Any help is appreciated as this is my first attempt at SP development.
sharepoint
null
null
null
null
null
open
Custom Input Form (Sharepoint) === I'd like to create a custom input form that collects employees hours. This data will be saved to a Access Web Datasheet in Sharepoint. How do I go about doing this? I have Sharepoint Designer and I've created a basic input form but need to link it to datasheet on Sharepoint. Any help is appreciated as this is my first attempt at SP development.
0
10,891,877
06/05/2012 05:06:44
1,341,163
04/18/2012 11:17:44
11
0
Tutorilal for spring and hibernate
I need good and fast tutorial for spring and hibernate. Can any body guide me?
java
spring
hibernate
null
null
06/05/2012 05:17:40
not constructive
Tutorilal for spring and hibernate === I need good and fast tutorial for spring and hibernate. Can any body guide me?
4
5,029,401
02/17/2011 13:14:50
506,038
11/12/2010 16:55:05
11
2
Return from inheritance
How I update x.test to have values return from inheritance ? So I want x.test return ['test from B'', 'test from C'] class A() def __init__(self) self.test = [] return def coolThings(self): # do cool things here and print the new self.test print self.test class B(A) def __init__(self) A.__init__(self) return def doSomething(self) self.test.append('test from B') class C(A) def __init__(self) A.__init__(self) return def doAnotherthing(self) self.test.append('test from C') -- In [575] x = A() In [576] y = B() In [577] z = c() In [582] y.doSomething() In [583] z.doAnotherthing() In [584] x.test Out[584] [] In [585] y.test Out[585] ['test B'] In [586] z.test Out[586] ['test C'] x.coolThings() ?? So again How update x.test to have ['test from B'', 'test from C'] Regards
python
inheritance
null
null
null
null
open
Return from inheritance === How I update x.test to have values return from inheritance ? So I want x.test return ['test from B'', 'test from C'] class A() def __init__(self) self.test = [] return def coolThings(self): # do cool things here and print the new self.test print self.test class B(A) def __init__(self) A.__init__(self) return def doSomething(self) self.test.append('test from B') class C(A) def __init__(self) A.__init__(self) return def doAnotherthing(self) self.test.append('test from C') -- In [575] x = A() In [576] y = B() In [577] z = c() In [582] y.doSomething() In [583] z.doAnotherthing() In [584] x.test Out[584] [] In [585] y.test Out[585] ['test B'] In [586] z.test Out[586] ['test C'] x.coolThings() ?? So again How update x.test to have ['test from B'', 'test from C'] Regards
0
7,113,492
08/18/2011 20:08:10
549,071
12/20/2010 19:27:21
35
1
offer resource for OS Security learning
I'm interested to discuss security and want to work in this field. I need a difference of useful resources! I first want to study in the Security of operating systems. windows and a version of Linux. Which Linux version is better for security works, and what is the best resource for learning? what offer resource for learning Windows Security? And, What is The resources for the programming under these operating systems? Please help me to achieve my goal! ;-)
windows
linux
security
operating-system
null
08/19/2011 11:10:21
off topic
offer resource for OS Security learning === I'm interested to discuss security and want to work in this field. I need a difference of useful resources! I first want to study in the Security of operating systems. windows and a version of Linux. Which Linux version is better for security works, and what is the best resource for learning? what offer resource for learning Windows Security? And, What is The resources for the programming under these operating systems? Please help me to achieve my goal! ;-)
2
5,376,927
03/21/2011 11:22:05
440,074
09/05/2010 15:38:28
1
0
Graphs and ASP.Net MVC
I have a graph which I would like to represent using an image on a website. The problem is generating this image dynamically based on the current state of the graph. I'm using ASP.Net MVC 3 with C#. I've been thinking about generating the image on the harddisk using some tool(Graphwiz etc.) and then passing the path of the file to the view. Security isn't a real issue, as this is just internal project based work for now, it is much more important that its easy to implement. I've been trying quickgraph, and eventually i've had it generating DOT files (apperently it ignores my attempts to make PNG's) but the code fails because the program don't have access to where the files are generated. I suppose this is easy to fix, though. Do you have any suggestions to how I could do this (If i should do something completely different or how i can get the DOT files rendered as PNG)? Best regards, Daniel
asp.net-mvc
asp.net-mvc-3
quickgraph
null
null
null
open
Graphs and ASP.Net MVC === I have a graph which I would like to represent using an image on a website. The problem is generating this image dynamically based on the current state of the graph. I'm using ASP.Net MVC 3 with C#. I've been thinking about generating the image on the harddisk using some tool(Graphwiz etc.) and then passing the path of the file to the view. Security isn't a real issue, as this is just internal project based work for now, it is much more important that its easy to implement. I've been trying quickgraph, and eventually i've had it generating DOT files (apperently it ignores my attempts to make PNG's) but the code fails because the program don't have access to where the files are generated. I suppose this is easy to fix, though. Do you have any suggestions to how I could do this (If i should do something completely different or how i can get the DOT files rendered as PNG)? Best regards, Daniel
0
5,824,469
04/28/2011 20:20:10
724,420
04/25/2011 21:42:09
1
4
Need a line of Code that will spit out a random string of specified characters
I am working in notepad, and a need a line of code that will spit out a random line of characters (that I specify). I need to be able change the number characters also. Can anyone help?
batch-file
ms-dos
null
null
null
null
open
Need a line of Code that will spit out a random string of specified characters === I am working in notepad, and a need a line of code that will spit out a random line of characters (that I specify). I need to be able change the number characters also. Can anyone help?
0
8,742,292
01/05/2012 12:11:33
499,990
11/07/2010 17:44:22
739
20
UIAccelerometer which moments it manage ?
The apple developer documentation explains the handled movement by this image : ![Developer documentation][1] [1]: http://i.stack.imgur.com/BDAZU.jpg I'm pretty confused now... because doing some tests i get that the Accelerometer doesn't handle translation on the axis but a little set of rotations ... in example if i move my device on the `X` axe nothing happen .. if i rotate it on the `Z` i get acceleration on `X`. Here the code i use for my test: -(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration{ [self.sliderX setProgress:fabsf(acceleration.x)]; [self.sliderY setProgress:fabsf(acceleration.y)]; [self.sliderZ setProgress:fabsf(acceleration.z)]; }
ios
accelerometer
uiaccelerometer
null
null
null
open
UIAccelerometer which moments it manage ? === The apple developer documentation explains the handled movement by this image : ![Developer documentation][1] [1]: http://i.stack.imgur.com/BDAZU.jpg I'm pretty confused now... because doing some tests i get that the Accelerometer doesn't handle translation on the axis but a little set of rotations ... in example if i move my device on the `X` axe nothing happen .. if i rotate it on the `Z` i get acceleration on `X`. Here the code i use for my test: -(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration{ [self.sliderX setProgress:fabsf(acceleration.x)]; [self.sliderY setProgress:fabsf(acceleration.y)]; [self.sliderZ setProgress:fabsf(acceleration.z)]; }
0
11,086,765
06/18/2012 16:09:12
1,343,708
04/19/2012 10:31:33
21
0
Decrement in java
Sorry guys I confused with this silly question. int result = 5; result = result--; System.out.println(result); Why the result = 5? Thanks for helping me figure out this one
java
null
null
null
null
06/18/2012 17:31:27
not constructive
Decrement in java === Sorry guys I confused with this silly question. int result = 5; result = result--; System.out.println(result); Why the result = 5? Thanks for helping me figure out this one
4
4,424,668
12/12/2010 23:15:08
471,255
10/10/2010 00:40:22
311
3
In plain English, why is it "possible" to translate Python code to say C, but not possible to translate Perl code to say C?
Been looking at the differences between Perl, Python, and Ruby -- and this to me has been one of the most interesting differences I've found so far, that being that it appears it's possible to [transcribe Python into C][1], but it's not possible to transcribe [Perl into any language][2]. Haven't found anything about Ruby, but guessing that it's approach to 99.99% of everything is a object might make this hard if not impossible to do a transcription to another language. Main focus of this question is finding an answer in plain English of why Python, Perl, and Ruby are what they are when it comes to porting them to another language. [1]: http://stackoverflow.com/questions/2525518/writing-code-translator-from-python-to-c [2]: http://stackoverflow.com/questions/1808029/perl-to-python-ruby-code-translator
python
ruby
perl
transcription
null
12/13/2010 03:53:53
not a real question
In plain English, why is it "possible" to translate Python code to say C, but not possible to translate Perl code to say C? === Been looking at the differences between Perl, Python, and Ruby -- and this to me has been one of the most interesting differences I've found so far, that being that it appears it's possible to [transcribe Python into C][1], but it's not possible to transcribe [Perl into any language][2]. Haven't found anything about Ruby, but guessing that it's approach to 99.99% of everything is a object might make this hard if not impossible to do a transcription to another language. Main focus of this question is finding an answer in plain English of why Python, Perl, and Ruby are what they are when it comes to porting them to another language. [1]: http://stackoverflow.com/questions/2525518/writing-code-translator-from-python-to-c [2]: http://stackoverflow.com/questions/1808029/perl-to-python-ruby-code-translator
1
4,855,972
01/31/2011 20:53:09
329,637
04/30/2010 09:27:00
6,463
293
Illegal prime numbers: What is it exactly?
I don't know if you know this situation, but sometimes I'm just browsing from one Wikipedia page to the next. So I also saw [this one][1] about illegal primes. I read the article and it sounds really interesting, but I didn't really understand what it's really about. As far as I understand illegal primes are prime numbers that can be somehow use to generate malicious code? But how? Are there any other examples than the one in the article? And what is the real life use of them? [1]: http://en.wikipedia.org/wiki/Illegal_prime
security
primes
malicious
null
null
02/01/2011 03:45:08
off topic
Illegal prime numbers: What is it exactly? === I don't know if you know this situation, but sometimes I'm just browsing from one Wikipedia page to the next. So I also saw [this one][1] about illegal primes. I read the article and it sounds really interesting, but I didn't really understand what it's really about. As far as I understand illegal primes are prime numbers that can be somehow use to generate malicious code? But how? Are there any other examples than the one in the article? And what is the real life use of them? [1]: http://en.wikipedia.org/wiki/Illegal_prime
2
8,808,874
01/10/2012 18:56:39
84,761
03/30/2009 18:32:17
390
3
String Sorting in java
Need to display String List with sorting of second name in Java : for example my string list is like this: Walter Vetri Zubair Alan Kingston Matt Abdul Raheem It should display like this: Zubair Alan Kingston Matt Abdul Raheem Walter Vetri
java
string
sorting
null
null
null
open
String Sorting in java === Need to display String List with sorting of second name in Java : for example my string list is like this: Walter Vetri Zubair Alan Kingston Matt Abdul Raheem It should display like this: Zubair Alan Kingston Matt Abdul Raheem Walter Vetri
0
5,809,522
04/27/2011 19:33:11
688,172
04/01/2011 19:28:04
9
1
python3 Auto-logout after certain hour has passed
I have server application written in python3. It stores date and time of logins and logouts in sqlite3 database. What I need it to do is to check if a certain hour has passed eg. 23:00 and then write to database logout time eg. 24:00:00 to those users that haven't loged out yet (because at 23:00 it's obvious that they forgot to logout) . I don't really know how to code this.
time
python-3.x
null
null
null
null
open
python3 Auto-logout after certain hour has passed === I have server application written in python3. It stores date and time of logins and logouts in sqlite3 database. What I need it to do is to check if a certain hour has passed eg. 23:00 and then write to database logout time eg. 24:00:00 to those users that haven't loged out yet (because at 23:00 it's obvious that they forgot to logout) . I don't really know how to code this.
0
7,298,778
09/04/2011 11:11:48
168,535
09/04/2009 13:36:52
854
22
Messed up someone's site - need urgent help
Few days ago I was editing 3 files on some site that's run by ArticleLive CMS and the site is hosted on Godaddy. On that hosting account (croatia.org) there are 3 or 4 other sites (domains) too and the. In the root folder there is index.php which forwards to croatia.org/crown. I didn't do any big changes (added few icons and edited css file). Suddenly (at the same time when I was making and testing those changes) the site stops working - actually none of the links on site are working except Links (and Forum which is outside crown folder) and they forward to Page Not Found (currently they are forwarding to the crown folder). First thing that crossed my mind is that this could be the problem with url rewriting.<br> I have tried following:<br> - Downloaded some of the files from crown folder necessary to display data from database - Tried it locally and locally I can open all links - Uploaded it on one of my hosting servers (not Godaddy) and it also works - sinj.com.hr/crown (the same folder structure exists in croatia-org/crown2 but none of the links work) - We've spent hours and hours with hosting support but nothing helped. We have also tried to restore full site but it didn't help. I have also tried small url rewrite test and in that case it works (www.croatia.org/rtest/sdfsdf). A day before this happened I have tried to compress some of the folders using [sitebackup.php][1] file in order to make easier backup - possible that this caused some changes on the server (although gd's support says they don't see any changes? Is it possible that some of the files from folders that are outside the crown folders could influence this? There are really too many folders there and I would like to avoid deleting everything to check if that's the problem... any suggestions? Thanks in advance!<br> Ilija [1]: http://www.thewebhostinghero.com/tutorials/how-to-backup-godaddy-website.html
website
url-rewriting
hosting
null
null
09/04/2011 20:46:50
off topic
Messed up someone's site - need urgent help === Few days ago I was editing 3 files on some site that's run by ArticleLive CMS and the site is hosted on Godaddy. On that hosting account (croatia.org) there are 3 or 4 other sites (domains) too and the. In the root folder there is index.php which forwards to croatia.org/crown. I didn't do any big changes (added few icons and edited css file). Suddenly (at the same time when I was making and testing those changes) the site stops working - actually none of the links on site are working except Links (and Forum which is outside crown folder) and they forward to Page Not Found (currently they are forwarding to the crown folder). First thing that crossed my mind is that this could be the problem with url rewriting.<br> I have tried following:<br> - Downloaded some of the files from crown folder necessary to display data from database - Tried it locally and locally I can open all links - Uploaded it on one of my hosting servers (not Godaddy) and it also works - sinj.com.hr/crown (the same folder structure exists in croatia-org/crown2 but none of the links work) - We've spent hours and hours with hosting support but nothing helped. We have also tried to restore full site but it didn't help. I have also tried small url rewrite test and in that case it works (www.croatia.org/rtest/sdfsdf). A day before this happened I have tried to compress some of the folders using [sitebackup.php][1] file in order to make easier backup - possible that this caused some changes on the server (although gd's support says they don't see any changes? Is it possible that some of the files from folders that are outside the crown folders could influence this? There are really too many folders there and I would like to avoid deleting everything to check if that's the problem... any suggestions? Thanks in advance!<br> Ilija [1]: http://www.thewebhostinghero.com/tutorials/how-to-backup-godaddy-website.html
2
7,313,937
09/06/2011 00:42:50
143,273
07/22/2009 23:02:38
1,148
28
App architecture: Node.js, Socket.io and MongoDB
I recently competed in the [Node Knockout][1] and after the contest realized that my (unfinished) app had completely wrong architecture. I am new to the Node world in general, about a month and a half of experience with it so I was hoping that someone could help me understand what would have been a good architecture. What we had was a game doing real time communication in the browser. We were storing the game as a variable inside of `io.sockets.on('connection')` and that was clearly a major problem with timing because it would be possible to have a Game object that wasn't up to date. I realized after the contest that I should have been storing the Game object somewhere else. It was already stored in the database, but is it fast enough for "real time" gameplay to grab the Game from MongoDB on every Socket.io event instance? If anyone has any links discussing architecture of applications like this please share, or better yet, share your personal experiences as SO needs more discussion about Node. [1]: http://www.nodeknockout.com
mongodb
node.js
socket.io
null
null
10/02/2011 12:22:52
not a real question
App architecture: Node.js, Socket.io and MongoDB === I recently competed in the [Node Knockout][1] and after the contest realized that my (unfinished) app had completely wrong architecture. I am new to the Node world in general, about a month and a half of experience with it so I was hoping that someone could help me understand what would have been a good architecture. What we had was a game doing real time communication in the browser. We were storing the game as a variable inside of `io.sockets.on('connection')` and that was clearly a major problem with timing because it would be possible to have a Game object that wasn't up to date. I realized after the contest that I should have been storing the Game object somewhere else. It was already stored in the database, but is it fast enough for "real time" gameplay to grab the Game from MongoDB on every Socket.io event instance? If anyone has any links discussing architecture of applications like this please share, or better yet, share your personal experiences as SO needs more discussion about Node. [1]: http://www.nodeknockout.com
1
10,958,640
06/09/2012 05:31:34
1,220,350
02/20/2012 06:16:50
369
5
What is out of box features in sharepoint
What is out of box features in sharepoint. The features which we can develop through the code are know as out of box features? I am confused to know about it. I wonder if any one has an explanation. These are new in sharpeoint 2010 or existed in WSS3.0 also?
sharepoint
sharepoint2010
null
null
null
06/11/2012 02:12:35
not a real question
What is out of box features in sharepoint === What is out of box features in sharepoint. The features which we can develop through the code are know as out of box features? I am confused to know about it. I wonder if any one has an explanation. These are new in sharpeoint 2010 or existed in WSS3.0 also?
1
24,692
08/23/2008 23:08:03
1,662
08/17/2008 20:30:20
105
9
Where can you find fun/educational programming challenges?
I've searched around for different challenge sites, and most of them seem to be geared towards difficulty in problem solving logically, rather than trying to use your language of choice to do something you haven't used it for. Their center is around mathematics rather than function design. Some kind of point system for correctly solving challenges, or solving them the most efficient/smallest would be neat as well.
challenge
null
null
null
null
12/06/2011 23:16:37
not constructive
Where can you find fun/educational programming challenges? === I've searched around for different challenge sites, and most of them seem to be geared towards difficulty in problem solving logically, rather than trying to use your language of choice to do something you haven't used it for. Their center is around mathematics rather than function design. Some kind of point system for correctly solving challenges, or solving them the most efficient/smallest would be neat as well.
4
8,278,659
11/26/2011 13:21:08
1,053,821
11/18/2011 12:52:31
151
5
How Upload large files (100 mb) in php
I had uploaded two PDF files to the server in php. but they are uploaded correctly but when uploading larger files I get an error How to upload large files(100 mb) in php?
php
mysql
file-upload
null
null
05/10/2012 23:02:53
not a real question
How Upload large files (100 mb) in php === I had uploaded two PDF files to the server in php. but they are uploaded correctly but when uploading larger files I get an error How to upload large files(100 mb) in php?
1
11,646,533
07/25/2012 09:20:15
1,459,344
06/15/2012 17:12:02
19
2
show table deleted message in webpage when it is deleted from database
I've to show errors in backend database or server in frontend. (like table deletion,mismatch password,server connection etc.) I am not getting idea to do this. I've done: **mypage.jsp** <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $.ajaxSetup({ error: function(jqXHR, exception) { if (jqXHR.status === 0) { alert('Not connect.\n Verify Network.'); } else if (jqXHR.status == 404) { alert('Requested page not found. [404]'); } else if (jqXHR.status == 500) { alert('Internal Server Error [500].'); } else if (exception === 'parsererror') { alert('Requested JSON parse failed.'); } else if (exception === 'timeout') { alert('Time out error.'); } else if (exception === 'abort') { alert('Ajax request aborted.'); } else { alert('Uncaught Error.\n' + jqXHR.responseText); } } }); }); </script> <body> <form id="test"> <table id="data" cellpadding="5px;" cellspacing="5px;"> <tr> <td>name</td> <td>c_price</td> </tr> <tr> <td> <% Connection connection = null; Class.forName("oracle.jdbc.OracleDriver"); try{ connection = DriverManager.getConnection("jdbc:oracle:thin:@...","u_name","pwd"); Statement stmt = connection.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM test_tbl"); while(rs.next()) { %> <tr> <td><%out.print(rs.getString("name"));%></td> <td><%out.print(rs.getString("c_price"));%></td> <% }%> </td> <% connection.close(); } catch(Exception e) { JOptionPane.showMessageDialog(null,"Error = " + e.getMessage()); }//end of catch %> </tr> </table> </body> while executing from front end, I delete the table test_tbl from the back end, but the webpage is not showing any alert. I also typed the wrong pwd but also it did not show any error. how can I solve this problem?? I've to show **alert boxes** when: **when there is no table in the backend**. the above ajax code shows alert boxes for n/w errors but **how to show alert box when there is no table in database or mismatch password/username**???
jsp
jquery-ajax
null
null
null
null
open
show table deleted message in webpage when it is deleted from database === I've to show errors in backend database or server in frontend. (like table deletion,mismatch password,server connection etc.) I am not getting idea to do this. I've done: **mypage.jsp** <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $.ajaxSetup({ error: function(jqXHR, exception) { if (jqXHR.status === 0) { alert('Not connect.\n Verify Network.'); } else if (jqXHR.status == 404) { alert('Requested page not found. [404]'); } else if (jqXHR.status == 500) { alert('Internal Server Error [500].'); } else if (exception === 'parsererror') { alert('Requested JSON parse failed.'); } else if (exception === 'timeout') { alert('Time out error.'); } else if (exception === 'abort') { alert('Ajax request aborted.'); } else { alert('Uncaught Error.\n' + jqXHR.responseText); } } }); }); </script> <body> <form id="test"> <table id="data" cellpadding="5px;" cellspacing="5px;"> <tr> <td>name</td> <td>c_price</td> </tr> <tr> <td> <% Connection connection = null; Class.forName("oracle.jdbc.OracleDriver"); try{ connection = DriverManager.getConnection("jdbc:oracle:thin:@...","u_name","pwd"); Statement stmt = connection.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM test_tbl"); while(rs.next()) { %> <tr> <td><%out.print(rs.getString("name"));%></td> <td><%out.print(rs.getString("c_price"));%></td> <% }%> </td> <% connection.close(); } catch(Exception e) { JOptionPane.showMessageDialog(null,"Error = " + e.getMessage()); }//end of catch %> </tr> </table> </body> while executing from front end, I delete the table test_tbl from the back end, but the webpage is not showing any alert. I also typed the wrong pwd but also it did not show any error. how can I solve this problem?? I've to show **alert boxes** when: **when there is no table in the backend**. the above ajax code shows alert boxes for n/w errors but **how to show alert box when there is no table in database or mismatch password/username**???
0
10,896,689
06/05/2012 11:42:40
1,437,208
06/05/2012 11:13:52
1
0
Wordpress Centralized Managament
Are there any tools or how to setup the system which can manage the Wordpress verion or contents from one side? As I did a research, I found manageWP and infiniteWP. **manageWP** looks to pay money and it is quite expensive. **infiniteWP** is quite OK, but actually I need is that there will be only one pack of Wordpress files/plug-ins/themes . All domains will share those files except their own content files - upload folder. For example, assume that foo.com and bar.com are in the centralized system. They should ... - Those domains will use the same and actual Wordpress files. That means, if I changed wp-mail.php in the root folder, they will see the same thing that I did a change. - As well as the plug-ins and themes, they are also shared to foo.com and bar.com, but it depends on users. - In case of they are get hacked, just fix only one file or one time. Then, all domains will be fixed. Actually, I tried to setup the system by my own hand. But it is quite to make a lot of modification in both database and files. That's really hard. Any help with this would be much appreciated. Mac
wordpress
system
management
center
centralized
06/05/2012 21:46:47
off topic
Wordpress Centralized Managament === Are there any tools or how to setup the system which can manage the Wordpress verion or contents from one side? As I did a research, I found manageWP and infiniteWP. **manageWP** looks to pay money and it is quite expensive. **infiniteWP** is quite OK, but actually I need is that there will be only one pack of Wordpress files/plug-ins/themes . All domains will share those files except their own content files - upload folder. For example, assume that foo.com and bar.com are in the centralized system. They should ... - Those domains will use the same and actual Wordpress files. That means, if I changed wp-mail.php in the root folder, they will see the same thing that I did a change. - As well as the plug-ins and themes, they are also shared to foo.com and bar.com, but it depends on users. - In case of they are get hacked, just fix only one file or one time. Then, all domains will be fixed. Actually, I tried to setup the system by my own hand. But it is quite to make a lot of modification in both database and files. That's really hard. Any help with this would be much appreciated. Mac
2
8,368,187
12/03/2011 14:03:55
896,949
08/16/2011 15:10:25
21
0
RoR web service and mobile app development cicle design
i wanted to ask a couple of questions about web services with Ruby On Rails and mobile applications design cycle. I would like to know about how to design a project. Lets say i would like to create a web service based on web app (RoR3) and mobile app (iOS and Android for instance). Obviously, if you don't create the basic structure for the web service in RoR (data base model, users, services, etc), you can't start with mobile development. But the main question is, how a project should be approached? i mean, if you have a team of developers (art designer, front-end designer, back-end developer in RoR, iPhone art developer, iOS developer, etc), how do you approach diferent stages and phases, which one is first, etc? -the timeframe -developing cycle -layout - mockup -list of features -core engine -database model thank you very much in advance!
design
project-management
null
null
null
12/04/2011 09:00:51
off topic
RoR web service and mobile app development cicle design === i wanted to ask a couple of questions about web services with Ruby On Rails and mobile applications design cycle. I would like to know about how to design a project. Lets say i would like to create a web service based on web app (RoR3) and mobile app (iOS and Android for instance). Obviously, if you don't create the basic structure for the web service in RoR (data base model, users, services, etc), you can't start with mobile development. But the main question is, how a project should be approached? i mean, if you have a team of developers (art designer, front-end designer, back-end developer in RoR, iPhone art developer, iOS developer, etc), how do you approach diferent stages and phases, which one is first, etc? -the timeframe -developing cycle -layout - mockup -list of features -core engine -database model thank you very much in advance!
2
8,902,378
01/17/2012 22:04:33
1,136,294
01/07/2012 19:01:27
15
0
sharekit to share multiple images from an array
I am using sharekit to share images, and want to be able to share all the images upon users request not just one image // this is the code I have for my share button UIImage *image = [UIImage imageNamed:@"Atoms"]; SHKItem *item = [SHKItem image:image title:@"Look at this picture!"]; // Make the ShareKit action sheet SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item]; // Display the action sheet [actionSheet showInView:self.view]; // this is my array I want it my sharekit will respond to all the items in the array NSMutableArray *images = [[NSMutableArray alloc] initWithObjects:@"Americans.png",@"Approach.png",@"Arianny.png",@"Atoms.png",nil];
iphone
arrays
xcode
sharekit
null
01/19/2012 00:39:17
not a real question
sharekit to share multiple images from an array === I am using sharekit to share images, and want to be able to share all the images upon users request not just one image // this is the code I have for my share button UIImage *image = [UIImage imageNamed:@"Atoms"]; SHKItem *item = [SHKItem image:image title:@"Look at this picture!"]; // Make the ShareKit action sheet SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item]; // Display the action sheet [actionSheet showInView:self.view]; // this is my array I want it my sharekit will respond to all the items in the array NSMutableArray *images = [[NSMutableArray alloc] initWithObjects:@"Americans.png",@"Approach.png",@"Arianny.png",@"Atoms.png",nil];
1
5,439,186
03/25/2011 23:31:54
156,458
08/14/2009 12:31:05
2,112
2
Relation between programming languages
I was wondering about the following questions: 1. What does it mean "some language is a subset/superset of another"? Can it be defined in mathematics? Is it related to the subset/superset concept in elementary set theory? 2. Are almost all existing languages implemented/written in some small number of low-level languages? For example, are most languages written in C? Is C++ written in C? Is there some relation between the implementation relation and the concept of subset/superset of languages? 3. In terms of language features, some languages have more than some other. In some cases, some has all the features of some other, for example, does C++ have all the features of C? Is there some relation between the subset/superset relation in terms of the set of features and the subset/superset relation between languages? 4. Are there other aspects that characterize relation between languages? Thanks and regards!
language-agnostic
null
null
null
null
null
open
Relation between programming languages === I was wondering about the following questions: 1. What does it mean "some language is a subset/superset of another"? Can it be defined in mathematics? Is it related to the subset/superset concept in elementary set theory? 2. Are almost all existing languages implemented/written in some small number of low-level languages? For example, are most languages written in C? Is C++ written in C? Is there some relation between the implementation relation and the concept of subset/superset of languages? 3. In terms of language features, some languages have more than some other. In some cases, some has all the features of some other, for example, does C++ have all the features of C? Is there some relation between the subset/superset relation in terms of the set of features and the subset/superset relation between languages? 4. Are there other aspects that characterize relation between languages? Thanks and regards!
0
7,231,097
08/29/2011 13:55:39
866,234
07/27/2011 20:08:29
2
0
If statement using date
Right now im using this if statement, but i need to modify it so that it shows include if they signed up AFTER today's date, instead of being equal to <?php if ($userinfo['signed_up']=="2011-08-29 09:00:00") include("launchbuilder_gorilla.php"); else include("launchbuilder.php"); ?>
php
if-statement
null
null
null
null
open
If statement using date === Right now im using this if statement, but i need to modify it so that it shows include if they signed up AFTER today's date, instead of being equal to <?php if ($userinfo['signed_up']=="2011-08-29 09:00:00") include("launchbuilder_gorilla.php"); else include("launchbuilder.php"); ?>
0
5,381,623
03/21/2011 17:56:53
202,507
11/04/2009 10:35:24
460
13
web parts in asp.net mvc
This might be the most trivial question asked, but I raise it again. Am planning to get started with asp.net MVC on a personal project and here am struck if it supports webparts or any other alternative to it is present. I intend to have a start page similar to igoogle or pageflakes, but my initial research pointed out that as there's no ViewState nor Postback concepts in ASP.NET MVC implementing web parts is not possible. If that is the case, are there any resources which helps in building a start page as the one i wish to using MVC. PS: Links I found in the initial research 1. [Quick tips on asp.net MVC - webparts framework][1] 2. [Building widgets using jquery in asp.net MVC][2] [1]: http://blogs.msdn.com/b/nunos/archive/2010/02/16/quick-tips-about-asp-net-mvc-webpart-framework.aspx [2]: http://lakkakula.wordpress.com/2009/06/18/developing-web-2-0-portal-using-asp-net-mvc-microsoft-ajax-client-templates-and-jquery-with-drag-and-drop-widget-personalization-part-1/
asp.net-mvc-2
webparts
null
null
null
null
open
web parts in asp.net mvc === This might be the most trivial question asked, but I raise it again. Am planning to get started with asp.net MVC on a personal project and here am struck if it supports webparts or any other alternative to it is present. I intend to have a start page similar to igoogle or pageflakes, but my initial research pointed out that as there's no ViewState nor Postback concepts in ASP.NET MVC implementing web parts is not possible. If that is the case, are there any resources which helps in building a start page as the one i wish to using MVC. PS: Links I found in the initial research 1. [Quick tips on asp.net MVC - webparts framework][1] 2. [Building widgets using jquery in asp.net MVC][2] [1]: http://blogs.msdn.com/b/nunos/archive/2010/02/16/quick-tips-about-asp-net-mvc-webpart-framework.aspx [2]: http://lakkakula.wordpress.com/2009/06/18/developing-web-2-0-portal-using-asp-net-mvc-microsoft-ajax-client-templates-and-jquery-with-drag-and-drop-widget-personalization-part-1/
0
8,020,604
11/05/2011 13:58:44
617,883
02/15/2011 13:43:46
365
40
"Back button" - Native support for ajax
Its been a while since ajax has gone main stream with the most popular websites using it (in some or other form). Also, during this period, almost all major browsers have had more than one major release yet we do not see native support for the "Back Button", and handling the event on back button press in case of ajax based requests is left to scripting 'hacks'. What are challenges in having native support for back button in case of Ajax for browsers? Why has it still not been implemented?
ajax
browser
null
null
null
null
open
"Back button" - Native support for ajax === Its been a while since ajax has gone main stream with the most popular websites using it (in some or other form). Also, during this period, almost all major browsers have had more than one major release yet we do not see native support for the "Back Button", and handling the event on back button press in case of ajax based requests is left to scripting 'hacks'. What are challenges in having native support for back button in case of Ajax for browsers? Why has it still not been implemented?
0
5,102,134
02/24/2011 08:30:09
238,232
12/24/2009 13:41:39
566
6
How to group text columns into one column.
I need something like : SELECT dt, (???) AS C FROM (SELECT dt,c1,c2,c3,c4 ... dt - datetime and by the way I've got some weird structure , for example : 24.02.2011 null null null "text" 25.02.2011 null "te" null "text" 26.02.2011 null "te" null null it must became 24.02.2011 "text" 25.02.2011 "te" 25.02.2011 "text" 26.02.2011 "te" or maybe 24.02.2011 "c4" "text" 25.02.2011 "c2" "te" 25.02.2011 "c4 "text" 26.02.2011 "c2" "te" if I do `select dt, с1+с2+с3+с4 as C from select dt,c1,c2,c3,c4` there will be 25.02.2011 "tetext" so I need any idea how can I exchange rows+columns to rows. thank you. MS SQL Server 2008.
sql
tsq
null
null
null
null
open
How to group text columns into one column. === I need something like : SELECT dt, (???) AS C FROM (SELECT dt,c1,c2,c3,c4 ... dt - datetime and by the way I've got some weird structure , for example : 24.02.2011 null null null "text" 25.02.2011 null "te" null "text" 26.02.2011 null "te" null null it must became 24.02.2011 "text" 25.02.2011 "te" 25.02.2011 "text" 26.02.2011 "te" or maybe 24.02.2011 "c4" "text" 25.02.2011 "c2" "te" 25.02.2011 "c4 "text" 26.02.2011 "c2" "te" if I do `select dt, с1+с2+с3+с4 as C from select dt,c1,c2,c3,c4` there will be 25.02.2011 "tetext" so I need any idea how can I exchange rows+columns to rows. thank you. MS SQL Server 2008.
0
6,603,807
07/06/2011 22:28:36
557,229
12/29/2010 14:32:54
41
1
Executing a shell script inside a jar file. How to extract?
I am developing a Linux-only Java application, and I need to execute a shell script in it. According to what I have read, the only way to execute that shell script is by extracting it from the jar file and executing it. The question is? How can I extract that shell script at runtime? Thank you in advance
java
shell
null
null
null
null
open
Executing a shell script inside a jar file. How to extract? === I am developing a Linux-only Java application, and I need to execute a shell script in it. According to what I have read, the only way to execute that shell script is by extracting it from the jar file and executing it. The question is? How can I extract that shell script at runtime? Thank you in advance
0
10,510,666
05/09/2012 06:10:38
632,786
02/24/2011 17:18:23
40
6
jQuery snippet that won't work in IE7
I use the following snippet to move a table to another column. It works in all browsers except IE7 (didn't test lower than that). It seems like the remove() is actually removing the contents of the var, too, and not just the remaining element I set employment to. Any guidance is appreciated! bQuery('#bsd-contribution-header-employment').parent().nextAll().andSelf().wrapAll('<table id="employment" />'); var employment = bQuery('table#employment').html(); bQuery('table#employment').remove(); bQuery('td.contribcolumn:last').append(employment);
jquery
internet-explorer-7
ie7-bug
null
null
null
open
jQuery snippet that won't work in IE7 === I use the following snippet to move a table to another column. It works in all browsers except IE7 (didn't test lower than that). It seems like the remove() is actually removing the contents of the var, too, and not just the remaining element I set employment to. Any guidance is appreciated! bQuery('#bsd-contribution-header-employment').parent().nextAll().andSelf().wrapAll('<table id="employment" />'); var employment = bQuery('table#employment').html(); bQuery('table#employment').remove(); bQuery('td.contribcolumn:last').append(employment);
0
9,093,744
02/01/2012 09:50:24
1,002,862
10/19/2011 09:50:02
78
0
how can i run my XML file on android emulator
hi i have choose XML code over java code for static PNG images to display in android.Now i want to see my PNG file on android emulator but it is not showing anything.
android
null
null
null
null
02/01/2012 19:58:56
not a real question
how can i run my XML file on android emulator === hi i have choose XML code over java code for static PNG images to display in android.Now i want to see my PNG file on android emulator but it is not showing anything.
1
5,958,260
05/11/2011 01:29:16
236,924
12/22/2009 14:50:13
633
2
iOS app: how to
I have this iOS app idea but since it is my first app, hopefully one of you can give me advice. The app stores posts of different categories. I want there to be tab bars at the bottom to navigate between those categories. On each category should be a table view. And each tableviewcell stores the post. I think the cells should be a custom view so it will give the user options to vote up/down. These posts should be drawn from an online database. Any ideas would be appreciated!
ios
null
null
null
null
05/11/2011 02:51:24
not a real question
iOS app: how to === I have this iOS app idea but since it is my first app, hopefully one of you can give me advice. The app stores posts of different categories. I want there to be tab bars at the bottom to navigate between those categories. On each category should be a table view. And each tableviewcell stores the post. I think the cells should be a custom view so it will give the user options to vote up/down. These posts should be drawn from an online database. Any ideas would be appreciated!
1
7,047,142
08/12/2011 22:51:14
892,557
08/12/2011 22:51:14
1
0
Everything moves to the right - Cocoa Touch
I have 2 landscape views. Once the app starts everything is fine. But once I go into the second view, everything decides to move abit to the left leaving a White space. And when I switch back to the first view the White space is still there. Bit of a weird flaw. Thanks
xcode
cocoa-touch
null
null
null
08/15/2011 04:29:03
not a real question
Everything moves to the right - Cocoa Touch === I have 2 landscape views. Once the app starts everything is fine. But once I go into the second view, everything decides to move abit to the left leaving a White space. And when I switch back to the first view the White space is still there. Bit of a weird flaw. Thanks
1
5,957,297
05/10/2011 22:37:57
747,667
05/10/2011 21:44:45
1
0
UILabel Small Shifts After Zoom
After trolling Stack Overflow for a year and finding lots of help for my various iPhoneSDK issues, I need some help with an issue I have not found any clues on how to solve, if it is solvable at all. My issue is this: After zooming into or out of my UIScrollView/UIView-based app, the text and frames of the various UILabels shift slightly after I re-render them based on the scaling factor passed into scrollViewDidEndZooming. This is most noticeable if small zooms are done. I have created a test application to show this here: <http://dl.dropbox.com/u/10939606/UILabelZoom.zip> Is this something that can be fixed with my current UIScrollView/UIView implementation (and if so how?) or would I need to switch to a different method of displaying the text? Thanks for any help! John
uiview
uiscrollview
rendering
uilabel
zoom
null
open
UILabel Small Shifts After Zoom === After trolling Stack Overflow for a year and finding lots of help for my various iPhoneSDK issues, I need some help with an issue I have not found any clues on how to solve, if it is solvable at all. My issue is this: After zooming into or out of my UIScrollView/UIView-based app, the text and frames of the various UILabels shift slightly after I re-render them based on the scaling factor passed into scrollViewDidEndZooming. This is most noticeable if small zooms are done. I have created a test application to show this here: <http://dl.dropbox.com/u/10939606/UILabelZoom.zip> Is this something that can be fixed with my current UIScrollView/UIView implementation (and if so how?) or would I need to switch to a different method of displaying the text? Thanks for any help! John
0
9,701,650
03/14/2012 12:06:31
812,439
06/23/2011 14:42:48
24
1
JMS training in Europe in English or Russian
Plese, advise a place in Europe where I can be trained JMS in English (Russian also is acceptable).
jms
training
training-courses
null
null
05/02/2012 07:26:58
off topic
JMS training in Europe in English or Russian === Plese, advise a place in Europe where I can be trained JMS in English (Russian also is acceptable).
2
1,924,377
12/17/2009 20:33:13
78,182
03/15/2009 02:25:46
5,434
275
General classes/source code for solving Java algorithmic problems?
I need to build a small repository of algorithms with implementation and description. I found recently, for example, an efficient permutations generator for permutations of arbitrary length. Where can I find full source code implementations with short descriptions of other such algorithms? Anything covered in the Java API is not needed, so I don't need Euclid's algorithm for GCD, as that's implemented in BigInteger. Solutions for max-flow/prims/etc. are all welcome, as well as any useful algorithm-solving/creating Java tools.
algorithms
java
icpc
source-code
null
null
open
General classes/source code for solving Java algorithmic problems? === I need to build a small repository of algorithms with implementation and description. I found recently, for example, an efficient permutations generator for permutations of arbitrary length. Where can I find full source code implementations with short descriptions of other such algorithms? Anything covered in the Java API is not needed, so I don't need Euclid's algorithm for GCD, as that's implemented in BigInteger. Solutions for max-flow/prims/etc. are all welcome, as well as any useful algorithm-solving/creating Java tools.
0
2,979,850
06/05/2010 09:46:48
150,174
08/04/2009 07:46:19
162
17
Third party Application's Idle Session expiry
We have a third party application running. It shows login dialog when idle for 20 minutes. We need to prevent the application to display login screen. We do not have any idea how idle state is handled internally in that application. We have done the follwoing with no luck. 1. Created an small application in c# which focus it after every 5 minutes (using [SetForegroundWindow()][1]) and send a [BM_CLICK][2] message to one of its child window. Does not work. 2. focus it after every 5 minutes (using [SetForegroundWindow()][1]) and move the cursor few pixels then restore cursor at its previous position. This does not work too! Is there any other way to achieve the goal? [1]: http://msdn.microsoft.com/en-us/library/ms633539(VS.85).aspx [2]: http://msdn.microsoft.com/en-us/library/bb775985(VS.85).aspx
c#
application
idle
idle-time
null
null
open
Third party Application's Idle Session expiry === We have a third party application running. It shows login dialog when idle for 20 minutes. We need to prevent the application to display login screen. We do not have any idea how idle state is handled internally in that application. We have done the follwoing with no luck. 1. Created an small application in c# which focus it after every 5 minutes (using [SetForegroundWindow()][1]) and send a [BM_CLICK][2] message to one of its child window. Does not work. 2. focus it after every 5 minutes (using [SetForegroundWindow()][1]) and move the cursor few pixels then restore cursor at its previous position. This does not work too! Is there any other way to achieve the goal? [1]: http://msdn.microsoft.com/en-us/library/ms633539(VS.85).aspx [2]: http://msdn.microsoft.com/en-us/library/bb775985(VS.85).aspx
0
11,286,210
07/01/2012 22:47:59
1,171,313
01/26/2012 13:20:20
30
4
How to know the user response in window.onbeforeunload
I have written a function which warn a user before refreshing the (I require it for some reason). What I also want to implement is, call another function if the user clicks on `Leave this page`. If the user clicks on `stay on this page` I have to do nothing. `function warnuser()` { return "Don't refresh the page."; } window.onbeforeunload = warnuser; `//if returns true call another function!` Thank you.
javascript
function
null
null
null
null
open
How to know the user response in window.onbeforeunload === I have written a function which warn a user before refreshing the (I require it for some reason). What I also want to implement is, call another function if the user clicks on `Leave this page`. If the user clicks on `stay on this page` I have to do nothing. `function warnuser()` { return "Don't refresh the page."; } window.onbeforeunload = warnuser; `//if returns true call another function!` Thank you.
0
8,932,912
01/19/2012 20:37:20
1,094,323
12/12/2011 18:26:50
31
3
What's the advantage of using GLuint instead of unsigned int?
I like to be more standard as possible, so why should I "constrain" my classes defining it's members as OpenGL types when I can use primitive types? Is there any advantage?
c++
opengl
null
null
null
null
open
What's the advantage of using GLuint instead of unsigned int? === I like to be more standard as possible, so why should I "constrain" my classes defining it's members as OpenGL types when I can use primitive types? Is there any advantage?
0
11,357,278
07/06/2012 06:54:03
972,657
09/30/2011 07:43:42
112
0
Using $this in non object context
I am kind of lost in here: class Adamantite extends CI_Controller() { public function runner() { $token = $this->genauth(); } public function randomizer($n,$a) { $s = ""; for ($i = 0; $i != $N; ++$i) $s .= $alphabet[mt_rand(0, strlen($alphabet) - 1)]; return $s; } public function genauth() { $N = 8; $alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $genc1 = $this->randomizer($N, $alphabet); $genc2 = $this->randomizer($N, $alphabet); } } This script results in **Fatal error: Using $this when not in object context**. What I am doing wrong in here?
php
codeigniter
null
null
null
07/06/2012 11:52:44
not a real question
Using $this in non object context === I am kind of lost in here: class Adamantite extends CI_Controller() { public function runner() { $token = $this->genauth(); } public function randomizer($n,$a) { $s = ""; for ($i = 0; $i != $N; ++$i) $s .= $alphabet[mt_rand(0, strlen($alphabet) - 1)]; return $s; } public function genauth() { $N = 8; $alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $genc1 = $this->randomizer($N, $alphabet); $genc2 = $this->randomizer($N, $alphabet); } } This script results in **Fatal error: Using $this when not in object context**. What I am doing wrong in here?
1
8,585,689
12/21/2011 06:03:00
1,109,200
12/21/2011 05:37:05
1
0
Transfere XML Data
When sql is offline, I tried to send data in sql throug Xml but xml data is not transfere. Code is here: DataRow[] shouldInserted = AMSParent.con.dst.Tables["dept_tbl"].Select("dept_name='" + dept_txt.Text.ToString() + "'"); if (shouldInserted.Length == 0) { DataRow dr = AMSParent.con.dst.Tables["dept_tbl"].NewRow(); dr["dept_name"] = dept_txt.Text; AMSParent.con.dst.Tables["dept_tbl"].Rows.Add(dr); AMSParent.con.dst.Tables["dept_tbl"].AcceptChanges(); AMSParent.con.dst.AcceptChanges(); AMSParent.con.dst.WriteXml(Application.StartupPath + "\\offlineTables.xml", XmlWriteMode.WriteSchema); try { File.Delete(Application.StartupPath + "\\offlineTables.con"); } catch { } encdec.Encrypt(Application.StartupPath + "\\offlineTables.xml", Application.StartupPath + "\\offlineTables.con", ""); try { File.Delete(Application.StartupPath + "\\offlineTables.xml"); } catch { } dept_txt.Text = ""; MessageBox.Show("Successfully added"); **Is any Solution.Thanks!**
c#
null
null
null
null
12/21/2011 23:22:57
not a real question
Transfere XML Data === When sql is offline, I tried to send data in sql throug Xml but xml data is not transfere. Code is here: DataRow[] shouldInserted = AMSParent.con.dst.Tables["dept_tbl"].Select("dept_name='" + dept_txt.Text.ToString() + "'"); if (shouldInserted.Length == 0) { DataRow dr = AMSParent.con.dst.Tables["dept_tbl"].NewRow(); dr["dept_name"] = dept_txt.Text; AMSParent.con.dst.Tables["dept_tbl"].Rows.Add(dr); AMSParent.con.dst.Tables["dept_tbl"].AcceptChanges(); AMSParent.con.dst.AcceptChanges(); AMSParent.con.dst.WriteXml(Application.StartupPath + "\\offlineTables.xml", XmlWriteMode.WriteSchema); try { File.Delete(Application.StartupPath + "\\offlineTables.con"); } catch { } encdec.Encrypt(Application.StartupPath + "\\offlineTables.xml", Application.StartupPath + "\\offlineTables.con", ""); try { File.Delete(Application.StartupPath + "\\offlineTables.xml"); } catch { } dept_txt.Text = ""; MessageBox.Show("Successfully added"); **Is any Solution.Thanks!**
1
6,242,936
06/05/2011 12:37:00
777,390
05/31/2011 09:17:03
1
1
how to use webcam with Java ... for beginners
i am a beginner in java though i dont understand code much, i use netbeans and am able to copy paste nicely from given samples and change it a little to suit my preferences as i am only a school student, i do not need to acquaint myself with many details my Q is: can anybody give me a sample java code in which there is a JFrame on which webcam video is seen ........ when the user presses a button "click", photo is taken and saved in a folder please help
java
webcam
null
null
null
06/05/2011 16:01:16
not a real question
how to use webcam with Java ... for beginners === i am a beginner in java though i dont understand code much, i use netbeans and am able to copy paste nicely from given samples and change it a little to suit my preferences as i am only a school student, i do not need to acquaint myself with many details my Q is: can anybody give me a sample java code in which there is a JFrame on which webcam video is seen ........ when the user presses a button "click", photo is taken and saved in a folder please help
1
7,789,364
10/17/2011 04:25:09
572,268
01/12/2011 05:59:02
21
0
Books or resources on creating web services and APIs
I'm looking for a book or developers resource online to learn more about the proper development of web services and APIs, with a focus would be on REST/HTTP web services. Any recommendations?
web-services
api
rest
null
null
10/17/2011 15:48:05
off topic
Books or resources on creating web services and APIs === I'm looking for a book or developers resource online to learn more about the proper development of web services and APIs, with a focus would be on REST/HTTP web services. Any recommendations?
2
2,002,589
01/04/2010 22:03:27
108,234
05/16/2009 19:28:54
657
31
Boundary representation data structure
I've been reading about using the [winged-edge data structure][1] for storing a boundary representation. However, the linked site says that this is one of the oldest data structres for storing b-reps, are there newer better ones? Secondly, is there an implementation of this in C#? [1]: http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/model/winged-e.html
language-agnostic
data-structures
c#
geometry
null
null
open
Boundary representation data structure === I've been reading about using the [winged-edge data structure][1] for storing a boundary representation. However, the linked site says that this is one of the oldest data structres for storing b-reps, are there newer better ones? Secondly, is there an implementation of this in C#? [1]: http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/model/winged-e.html
0
4,769,810
01/22/2011 18:46:28
1,534,386
10/04/2010 13:38:14
104
3
Cannot find symbol : when compiling java code.
I am facing this bizarre problem. Please help. I am writing some java classes to implement RMI. I wrote all the classes and the program WORKED FINE. But from the very next day I am getting a compiler error indicating that the absence of files: Filename: **ServerInterface.java** import java.rmi.*; public interface ServerInterface extends Remote { public double sum(double[] temp) throws RemoteException; }; Filename: **ServerImplement.java** import java.rmi.*; import java.rmi.server.*; public class ServerImplement extends UnicastRemoteObject implements ServerInterface { public ServerImplement() throws RemoteException { } public double sum(double[] temp) throws RemoteException { double sum=0; int len=temp.length; for(int i=0;i<len;i++) sum+=temp[i]; return sum; } }; Even to prove that its not any filename errors: F:\E\java\rmi final>dir Volume in drive F is My Volume Volume Serial Number is E0F9-4F89 Directory of F:\E\java\rmi final 22-01-2011 23:23 <DIR> . 22-01-2011 23:23 <DIR> .. 22-12-2009 13:09 1,849 additionImplementer_Stub.class 21-01-2011 21:52 1,076 Client.class 18-01-2011 02:54 649 Client.java 21-01-2011 21:52 1,847 ClientTry.class 18-01-2011 02:54 1,268 ClientTry.java 21-01-2011 21:52 444 ServerImplement.class 18-01-2011 02:30 386 ServerImplement.java 18-01-2011 02:54 1,783 ServerImplement_Stub.class 21-01-2011 21:54 209 ServerInterface.class 22-12-2009 12:07 132 ServerInterface.java 21-01-2011 21:52 919 ServerMain.class 18-01-2011 02:36 409 ServerMain.java 12 File(s) 10,971 bytes If I try: `javac *.java` , it works fine (but trying java on any of the .class files leads to error : `Exception in thread "main" java.lang.NoClassDefFoundError: ServerMain` If I try `javac ServerImplement.java` I get an error(in fact none of my java programs are able to link :-/) : >ServerImplement.java:4: cannot find symbol `symbol: class ServerInterface` `public class ServerImplement extends UnicastRemoteObject implements ServerInterface` ` ^ ` `1 error` The program is even working fine at my college lab. Should I reinstall jdk?? Or is there any way to provide linking explicitly??
java
null
null
null
null
null
open
Cannot find symbol : when compiling java code. === I am facing this bizarre problem. Please help. I am writing some java classes to implement RMI. I wrote all the classes and the program WORKED FINE. But from the very next day I am getting a compiler error indicating that the absence of files: Filename: **ServerInterface.java** import java.rmi.*; public interface ServerInterface extends Remote { public double sum(double[] temp) throws RemoteException; }; Filename: **ServerImplement.java** import java.rmi.*; import java.rmi.server.*; public class ServerImplement extends UnicastRemoteObject implements ServerInterface { public ServerImplement() throws RemoteException { } public double sum(double[] temp) throws RemoteException { double sum=0; int len=temp.length; for(int i=0;i<len;i++) sum+=temp[i]; return sum; } }; Even to prove that its not any filename errors: F:\E\java\rmi final>dir Volume in drive F is My Volume Volume Serial Number is E0F9-4F89 Directory of F:\E\java\rmi final 22-01-2011 23:23 <DIR> . 22-01-2011 23:23 <DIR> .. 22-12-2009 13:09 1,849 additionImplementer_Stub.class 21-01-2011 21:52 1,076 Client.class 18-01-2011 02:54 649 Client.java 21-01-2011 21:52 1,847 ClientTry.class 18-01-2011 02:54 1,268 ClientTry.java 21-01-2011 21:52 444 ServerImplement.class 18-01-2011 02:30 386 ServerImplement.java 18-01-2011 02:54 1,783 ServerImplement_Stub.class 21-01-2011 21:54 209 ServerInterface.class 22-12-2009 12:07 132 ServerInterface.java 21-01-2011 21:52 919 ServerMain.class 18-01-2011 02:36 409 ServerMain.java 12 File(s) 10,971 bytes If I try: `javac *.java` , it works fine (but trying java on any of the .class files leads to error : `Exception in thread "main" java.lang.NoClassDefFoundError: ServerMain` If I try `javac ServerImplement.java` I get an error(in fact none of my java programs are able to link :-/) : >ServerImplement.java:4: cannot find symbol `symbol: class ServerInterface` `public class ServerImplement extends UnicastRemoteObject implements ServerInterface` ` ^ ` `1 error` The program is even working fine at my college lab. Should I reinstall jdk?? Or is there any way to provide linking explicitly??
0
10,675,285
05/20/2012 16:45:43
1,357,185
04/25/2012 20:38:17
8
0
News: news list (OOP PHP5)
I design the project on OOP. I started with elementary - news. Here is an example code: // Create list for news $newsList = new ArrayList(); // Get news from DB $db -> executeQuery('...'); while ($newsData = $db -> getFetchArray()) { // Create news $newsItem = new News(array( 'newsKey' => $newsData['newsKey'], 'imageMini' => $newsData['imageMini'], 'name' => $newsData['name'], 'shortlyText' => $newsData['shortlyText'], 'addedAt' => $newsData['addedAt'], )); // Add news item into news list $newsList -> add(array( 'newsKey' => $newsItem -> getNewsKey(), 'imageMini' => $newsItem -> getImageMini(), 'name' => $newsItem -> getName(), 'shortlyText' => $newsItem -> getShortlyText(), 'link' => $newsItem -> getLink(), 'addedAt' => LangDateTime :: toFormat(LangDateTime :: DATETIME_FORMAT, $newsItem -> getAddedAt()) )); } // Save news list in template $template -> set('newsList', $newsList -> toArray()); This is double the work in the cycle while(). Can it be done easier and better? Can group you want to create a class or method NewsList in Class News. Maybe need to create a class NewsList or method in the class News. Thanks.
php
oop
null
null
null
06/30/2012 17:01:23
off topic
News: news list (OOP PHP5) === I design the project on OOP. I started with elementary - news. Here is an example code: // Create list for news $newsList = new ArrayList(); // Get news from DB $db -> executeQuery('...'); while ($newsData = $db -> getFetchArray()) { // Create news $newsItem = new News(array( 'newsKey' => $newsData['newsKey'], 'imageMini' => $newsData['imageMini'], 'name' => $newsData['name'], 'shortlyText' => $newsData['shortlyText'], 'addedAt' => $newsData['addedAt'], )); // Add news item into news list $newsList -> add(array( 'newsKey' => $newsItem -> getNewsKey(), 'imageMini' => $newsItem -> getImageMini(), 'name' => $newsItem -> getName(), 'shortlyText' => $newsItem -> getShortlyText(), 'link' => $newsItem -> getLink(), 'addedAt' => LangDateTime :: toFormat(LangDateTime :: DATETIME_FORMAT, $newsItem -> getAddedAt()) )); } // Save news list in template $template -> set('newsList', $newsList -> toArray()); This is double the work in the cycle while(). Can it be done easier and better? Can group you want to create a class or method NewsList in Class News. Maybe need to create a class NewsList or method in the class News. Thanks.
2
4,172,924
11/13/2010 14:12:58
416,445
08/10/2010 17:32:08
15
1
Can i execute any code when my app is installed on an iPhone/iPad?
I would like to know if I can execute any code when my app is being (or after it's) installed on an iOS device, actually I can execute the code when the user runs the app for the first time but I don't want the first run to take so long Thank you,
iphone
ipad
null
null
null
null
open
Can i execute any code when my app is installed on an iPhone/iPad? === I would like to know if I can execute any code when my app is being (or after it's) installed on an iOS device, actually I can execute the code when the user runs the app for the first time but I don't want the first run to take so long Thank you,
0
8,798,973
01/10/2012 05:31:14
1,138,045
01/09/2012 05:26:53
1
0
Breakpoints are not fired
iam doing one application.Iam developing my application in xcode version 4.2(4c199) with IOS 5.0(9A334) and iphone simulator(9A334).And my device is Iphone 4 with ios 5(9A334).My problem is when iam running the application in my device,breakpoints are not fired.So many members said fix the build configuration to debug.But it's not useful.So please tell me how to solve this one.
iphone
null
null
null
null
01/11/2012 16:16:38
not a real question
Breakpoints are not fired === iam doing one application.Iam developing my application in xcode version 4.2(4c199) with IOS 5.0(9A334) and iphone simulator(9A334).And my device is Iphone 4 with ios 5(9A334).My problem is when iam running the application in my device,breakpoints are not fired.So many members said fix the build configuration to debug.But it's not useful.So please tell me how to solve this one.
1
4,030,398
10/27/2010 06:07:12
210,342
11/13/2009 10:35:11
534
22
How to do reverse engineering once most efficiently?
RE for me is a completely new subject, so this may be naive. I would like read data directly from the file -- the thing is the format of the file is unknown, it can be encrypted as well. I know what is in the file so I can probe it if it necessary, but I don't know how it is written (for example if "hello" is written as "hello" or "HELLO" or "h e l l o", and so on). I figure it out that I use some RE tool and disassemble a function from the program which already reads that data. But when I checked the prices for the most popular tools (IDA Pro) it appeared that this "one time job" would cost me a lot -- IDA Pro is around 400 EUR and Decompiler for it around 1600 EUR. Well, I cannot afford such purchase not only because I don't have such money, but simply because I am not sure if I won't fail with the task. And this is only done as a hobby. So -- are there any others tools without not such steep prices? Or is there other approach? Writing my own disk filter driver, or something like that? Thank you for any help in advance!
reverse-engineering
null
null
null
null
05/23/2012 20:21:21
not constructive
How to do reverse engineering once most efficiently? === RE for me is a completely new subject, so this may be naive. I would like read data directly from the file -- the thing is the format of the file is unknown, it can be encrypted as well. I know what is in the file so I can probe it if it necessary, but I don't know how it is written (for example if "hello" is written as "hello" or "HELLO" or "h e l l o", and so on). I figure it out that I use some RE tool and disassemble a function from the program which already reads that data. But when I checked the prices for the most popular tools (IDA Pro) it appeared that this "one time job" would cost me a lot -- IDA Pro is around 400 EUR and Decompiler for it around 1600 EUR. Well, I cannot afford such purchase not only because I don't have such money, but simply because I am not sure if I won't fail with the task. And this is only done as a hobby. So -- are there any others tools without not such steep prices? Or is there other approach? Writing my own disk filter driver, or something like that? Thank you for any help in advance!
4