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
3,147,266
06/30/2010 07:37:22
329,568
04/30/2010 07:36:52
30
4
Which is best serach technique to search records
I have 10,000,000 records which will be the best technique to search records, currently i m using full text search but it is slow,please suggest.
php
mysql
text
full-text-search
full
04/06/2012 21:00:05
not constructive
Which is best serach technique to search records === I have 10,000,000 records which will be the best technique to search records, currently i m using full text search but it is slow,please suggest.
4
7,051,041
08/13/2011 14:31:23
248,616
01/12/2010 05:29:49
1,653
52
XAMP, WAMP or EasyPHP which one should we choose from?
I'm working with PHP on Windows and at the monent, there are currently 3 AMP (Apache, MySQL, and PHP) packabes to choose from. Which one should we choose from? I favor the one which would ease the paint of PHP debugging. Hope to hear what you think.
php
mysql
windows-7
package
apche
08/13/2011 14:44:12
not constructive
XAMP, WAMP or EasyPHP which one should we choose from? === I'm working with PHP on Windows and at the monent, there are currently 3 AMP (Apache, MySQL, and PHP) packabes to choose from. Which one should we choose from? I favor the one which would ease the paint of PHP debugging. Hope to hear what you think.
4
8,366,015
12/03/2011 06:25:56
1,058,646
11/21/2011 21:34:49
47
0
Android App not full size on 10.1 inch tab
I have an app on android market which was working fine on tab before. I introduced an update did not change much of the design. But now all of a sudden the app is not coming full size on tab? I read few more threads here and everyone talk about min. version of sdk should be 8. But in my previous version of the app i was still using min. version of sdk as 4 but it was coming as full screen before on tab? Is there any other reason or way to fix this problem?
android
eclipse
null
null
null
null
open
Android App not full size on 10.1 inch tab === I have an app on android market which was working fine on tab before. I introduced an update did not change much of the design. But now all of a sudden the app is not coming full size on tab? I read few more threads here and everyone talk about min. version of sdk should be 8. But in my previous version of the app i was still using min. version of sdk as 4 but it was coming as full screen before on tab? Is there any other reason or way to fix this problem?
0
8,573,067
12/20/2011 09:13:17
727,479
04/27/2011 14:24:44
28
6
multiuser windows form application
A common necessity for a windows form application is multiuser mode. A common database needs to be shared among all the users. An example is a POS application. This is such a widely used thing, still I hardly could find only one example on google. [http://www.cs.trinity.edu/~thicks/Tutorials/MSSQL-Win-Form-App-Dev-Rec-Lock-5-LibraryApp/MSSQL-Win-Form-App-Dev-Rec-Lock-5-LibraryApp.html][1] [1]: http://www.cs.trinity.edu/~thicks/Tutorials/MSSQL-Win-Form-App-Dev-Rec-Lock-5-LibraryApp/MSSQL-Win-Form-App-Dev-Rec-Lock-5-LibraryApp.html This is a very good example, but I still need a couple of more. Can any one point me towards some example links. Those will be really helpful.
winforms
null
null
null
null
12/20/2011 14:58:56
not a real question
multiuser windows form application === A common necessity for a windows form application is multiuser mode. A common database needs to be shared among all the users. An example is a POS application. This is such a widely used thing, still I hardly could find only one example on google. [http://www.cs.trinity.edu/~thicks/Tutorials/MSSQL-Win-Form-App-Dev-Rec-Lock-5-LibraryApp/MSSQL-Win-Form-App-Dev-Rec-Lock-5-LibraryApp.html][1] [1]: http://www.cs.trinity.edu/~thicks/Tutorials/MSSQL-Win-Form-App-Dev-Rec-Lock-5-LibraryApp/MSSQL-Win-Form-App-Dev-Rec-Lock-5-LibraryApp.html This is a very good example, but I still need a couple of more. Can any one point me towards some example links. Those will be really helpful.
1
10,255,368
04/21/2012 01:19:12
442,466
09/08/2010 13:22:34
91
3
java servlet only receiving first get parameter
I've used java servlets with tomcat in many previous projects, but on a new installation I'm having a weird issue. Whenever I send a list of get parameters to my servlet (i.e. http://localhost:8080/Servlet?action=whatever&param1=whatever&param2=whatever) the servlet only finds the first parameter, no matter what it is. Iterating over the request's parameter map confirms this. I can provide code if needed, but this section of the system is pretty much as simple as a hello world example that echos back parameters with their values. Can anyone give me suggestions as to where to look in my setup? Thanks.
java
tomcat
servlets
null
null
04/21/2012 04:32:56
too localized
java servlet only receiving first get parameter === I've used java servlets with tomcat in many previous projects, but on a new installation I'm having a weird issue. Whenever I send a list of get parameters to my servlet (i.e. http://localhost:8080/Servlet?action=whatever&param1=whatever&param2=whatever) the servlet only finds the first parameter, no matter what it is. Iterating over the request's parameter map confirms this. I can provide code if needed, but this section of the system is pretty much as simple as a hello world example that echos back parameters with their values. Can anyone give me suggestions as to where to look in my setup? Thanks.
3
5,816,160
04/28/2011 09:01:28
728,939
04/28/2011 09:01:28
1
0
How to unserialize user defined Java objects in Matlab that were serialized in java?
I have a simulator in Java serializing a custom Result object. I would like to unserialize these objects in Matlab for further statistical analysis. Is this possible? The data in the Result object is heterogeneous. It contains another user defined class Parameters, linked lists of integers and doubles. I edited the classpath.txt file to the root of my java package and imported both Result and Parameters with succes. However, if I try to unserialize an object with load('filename'); I get the following error >> load('Type3aa_simpleToCreate_no_com.2011-04-28 00.05.29.experiment.data') ??? Error using ==> load Number of columns on line 1 of ASCII file C:\Thesis\code\Thesis v0.7\Results\Type3aa_simpleToCreate_no_com.2011-04-28 00.05.29.experiment.data must be the same as previous lines.
java
serialization
matlab
object
null
null
open
How to unserialize user defined Java objects in Matlab that were serialized in java? === I have a simulator in Java serializing a custom Result object. I would like to unserialize these objects in Matlab for further statistical analysis. Is this possible? The data in the Result object is heterogeneous. It contains another user defined class Parameters, linked lists of integers and doubles. I edited the classpath.txt file to the root of my java package and imported both Result and Parameters with succes. However, if I try to unserialize an object with load('filename'); I get the following error >> load('Type3aa_simpleToCreate_no_com.2011-04-28 00.05.29.experiment.data') ??? Error using ==> load Number of columns on line 1 of ASCII file C:\Thesis\code\Thesis v0.7\Results\Type3aa_simpleToCreate_no_com.2011-04-28 00.05.29.experiment.data must be the same as previous lines.
0
6,099,178
05/23/2011 15:12:53
761,451
05/19/2011 16:36:47
11
0
Debugging strange error that depends on the selected scheduler
I am experiencing a strange behavior in a software I am working on. It is a realtime-machine-controller, written in C++, running on Linux and it is making extensive use of multithreading. When I run the program without asking it to be realtime, everything works like I expect it to. But when I ask it to switch to its realtime mode, there is a clearly reproducible bug that lets the application crash. It must be some deadlock-thing I guess, because it is a mutex that runs into a timeout and ultimately triggers a assertion. My Question is, how to hunt this one down. Looking at the backtrace from the produced core is not very helpful as the reason for the problem lies somewhere in the past. The following code does the switching between 'normal' and 'realtime' behaviour: In main.cpp (simplified, return-codes are checked via assertions): if(startAsRealtime){ struct sched_param sp; memset(&sp, 0, sizeof(sched_param)); sp.sched_priority = 99; sched_setscheduler(getpid(), SCHED_RR, &sp);} In every thread (simplified, return-codes are checked via assertions): if(startAsRealtime){ sched_param param; pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); pthread_attr_getschedparam(&attr, &param); param.sched_priority = priority; pthread_attr_setschedpolicy(&attr, SCHED_RR); pthread_attr_setschedparam(&attr, &param);} Thanks in advance
c++
linux
debugging
real-time
null
null
open
Debugging strange error that depends on the selected scheduler === I am experiencing a strange behavior in a software I am working on. It is a realtime-machine-controller, written in C++, running on Linux and it is making extensive use of multithreading. When I run the program without asking it to be realtime, everything works like I expect it to. But when I ask it to switch to its realtime mode, there is a clearly reproducible bug that lets the application crash. It must be some deadlock-thing I guess, because it is a mutex that runs into a timeout and ultimately triggers a assertion. My Question is, how to hunt this one down. Looking at the backtrace from the produced core is not very helpful as the reason for the problem lies somewhere in the past. The following code does the switching between 'normal' and 'realtime' behaviour: In main.cpp (simplified, return-codes are checked via assertions): if(startAsRealtime){ struct sched_param sp; memset(&sp, 0, sizeof(sched_param)); sp.sched_priority = 99; sched_setscheduler(getpid(), SCHED_RR, &sp);} In every thread (simplified, return-codes are checked via assertions): if(startAsRealtime){ sched_param param; pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); pthread_attr_getschedparam(&attr, &param); param.sched_priority = priority; pthread_attr_setschedpolicy(&attr, SCHED_RR); pthread_attr_setschedparam(&attr, &param);} Thanks in advance
0
6,573,468
07/04/2011 15:32:11
791,316
06/09/2011 16:11:22
287
1
Delphi: alternative for TCategoryPanelGroup
Does an alternative exist for TCategoryPanelGroup? My problem is I use a CategoryPanelGroup on a PageControl, therefore there is an enormous flicker which I can not prevent (using DoubleBuffered, disabling a ParentBackground and other things). Thanks!
delphi
panel
group
category
null
null
open
Delphi: alternative for TCategoryPanelGroup === Does an alternative exist for TCategoryPanelGroup? My problem is I use a CategoryPanelGroup on a PageControl, therefore there is an enormous flicker which I can not prevent (using DoubleBuffered, disabling a ParentBackground and other things). Thanks!
0
11,714,437
07/30/2012 01:25:56
1,561,723
07/30/2012 01:00:05
1
0
press the save button EditText value is stored in to the SQL database
this is the mainActivity class: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_new_car); } // OK button public void addCar(CarsHandler db) { EditText car = (EditText) findViewById(R.id.setcar); String carName = car.getText().toString(); EditText year = (EditText) findViewById(R.id.setyear); Integer caryear = Integer.parseInt(year.getText().toString()); db.addCar(new Cars(carName, caryear)); } this is the carHandler class: public CarsHandler(Context context){ this.dbhelper = new CarsDbHelper(context, DATABASE_NAME, null, DATABASE_VERSION); } //add car public void addCar(Cars cars) { db = dbhelper.getReadableDatabase(); ContentValues newCarValues = new ContentValues(); newCarValues.put(CAR_MANUFACTURER, cars.getManufacturer()); newCarValues.put(CAR_YEAR, cars.getYear()); db.insertOrThrow(TABLE_NAME, null, newCarValues); db.close(); } } addCar calld when i push a button (by onclick option). well its crash when i push it... whats wrong?
android
sql
database
textbox
onclick
null
open
press the save button EditText value is stored in to the SQL database === this is the mainActivity class: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_new_car); } // OK button public void addCar(CarsHandler db) { EditText car = (EditText) findViewById(R.id.setcar); String carName = car.getText().toString(); EditText year = (EditText) findViewById(R.id.setyear); Integer caryear = Integer.parseInt(year.getText().toString()); db.addCar(new Cars(carName, caryear)); } this is the carHandler class: public CarsHandler(Context context){ this.dbhelper = new CarsDbHelper(context, DATABASE_NAME, null, DATABASE_VERSION); } //add car public void addCar(Cars cars) { db = dbhelper.getReadableDatabase(); ContentValues newCarValues = new ContentValues(); newCarValues.put(CAR_MANUFACTURER, cars.getManufacturer()); newCarValues.put(CAR_YEAR, cars.getYear()); db.insertOrThrow(TABLE_NAME, null, newCarValues); db.close(); } } addCar calld when i push a button (by onclick option). well its crash when i push it... whats wrong?
0
3,770,344
09/22/2010 14:37:26
395,863
07/19/2010 13:38:36
155
13
List of limits of programming languages
It's difficult to pick a new language to learn. Let's face it, everybody is enthousiastic about something : I've got ruby-fanatics friends ; some advise me C# ; others would recommand Lisp, to see something completely different. And so on. There are too many reason to pick a particular language. So I figure : perhaps there are much less reason to avoid a particular language, and it will make my choice easier. Asking directly to every members of stack overflow the question could be spotted as "too personal", so I'd better ask for a book or a link. Do you know anything that lists the "weak spot" of most well-known languages ? It's easy to find arguments like "Learn the X language, 'coz it's good for doing this, and that", but much more difficult to find the "You should know that the Y language is not good for graphical tweaks / complex computing / small script / etc.".
programming-languages
null
null
null
null
09/22/2010 14:46:53
not constructive
List of limits of programming languages === It's difficult to pick a new language to learn. Let's face it, everybody is enthousiastic about something : I've got ruby-fanatics friends ; some advise me C# ; others would recommand Lisp, to see something completely different. And so on. There are too many reason to pick a particular language. So I figure : perhaps there are much less reason to avoid a particular language, and it will make my choice easier. Asking directly to every members of stack overflow the question could be spotted as "too personal", so I'd better ask for a book or a link. Do you know anything that lists the "weak spot" of most well-known languages ? It's easy to find arguments like "Learn the X language, 'coz it's good for doing this, and that", but much more difficult to find the "You should know that the Y language is not good for graphical tweaks / complex computing / small script / etc.".
4
9,184,643
02/07/2012 21:59:28
1,195,757
02/07/2012 21:18:31
1
0
How to update a label while the center of a MKMapView is moving
At the beginning I will apologize my bad english, I hope you will understand my problem. I want to detect, if the center of my MKMapView is changing. For example, if I move the map by dragging it with my finger, if want to update an UILabel with the position of the center. Doing this by using the MKMapViewDelegate methods mapView:regionDidChangeAnimated: mapView:regionWillChangeAnimated: won't give me my desired effect, because my label will only be updated before or after the mapView is finished moving. I also tried [this Solution](http://stackoverflow.com/questions/1049889/how-to-intercept-touches-events-on-a-mkmapview-or-uiwebview-objects) with a custom GestureRecognizer and the touchesMoved callbackMethod. This solutions works fine with one exception. Now my Label will be updated permanently while i am moving the center. But if I make a swipe, and my mapView is still moving while my finger is already raised, the label won't be updated, because I only respond to the touchesMoved Event. So how can i recognize the center of the MKMapView is changing? Thanks a lot for any response :) !!!
iphone
objective-c
mapkit
center
moving
null
open
How to update a label while the center of a MKMapView is moving === At the beginning I will apologize my bad english, I hope you will understand my problem. I want to detect, if the center of my MKMapView is changing. For example, if I move the map by dragging it with my finger, if want to update an UILabel with the position of the center. Doing this by using the MKMapViewDelegate methods mapView:regionDidChangeAnimated: mapView:regionWillChangeAnimated: won't give me my desired effect, because my label will only be updated before or after the mapView is finished moving. I also tried [this Solution](http://stackoverflow.com/questions/1049889/how-to-intercept-touches-events-on-a-mkmapview-or-uiwebview-objects) with a custom GestureRecognizer and the touchesMoved callbackMethod. This solutions works fine with one exception. Now my Label will be updated permanently while i am moving the center. But if I make a swipe, and my mapView is still moving while my finger is already raised, the label won't be updated, because I only respond to the touchesMoved Event. So how can i recognize the center of the MKMapView is changing? Thanks a lot for any response :) !!!
0
11,309,093
07/03/2012 10:34:00
995,333
10/14/2011 11:52:51
31
3
Login in Android app with Gmail credentials
After getting the auth Token how to use it to login with google credentials AccountManager am=AccountManager.get(this); Account[] accounts= am.getAccountsByType("com.google"); account=accounts[0]; amf = am.getAuthToken(account,"com.google", true, new AccountManagerCallback<Bundle>() { public void run(AccountManagerFuture<Bundle> arg0) { try { Bundle result; Intent i; String token; result = arg0.getResult(); if (result.containsKey(AccountManager.KEY_INTENT)) { i = (Intent)result.get(AccountManager.KEY_INTENT); System.out.println("INtect=="+i.toString()); if (i.toString().contains("GrantCredentialsPermissionActivity")) { cbt.startActivity(i); System.out.println("ssstttt"); } else { cbt.startActivity(i); System.out.println("endddddd"); } } else { token = (String)result.get(AccountManager.KEY_AUTHTOKEN); I have got the generated API key from google Account,but where to send the authToken and API key so that user can login using his gmail credentials
android
gmail
accountmanager
null
null
null
open
Login in Android app with Gmail credentials === After getting the auth Token how to use it to login with google credentials AccountManager am=AccountManager.get(this); Account[] accounts= am.getAccountsByType("com.google"); account=accounts[0]; amf = am.getAuthToken(account,"com.google", true, new AccountManagerCallback<Bundle>() { public void run(AccountManagerFuture<Bundle> arg0) { try { Bundle result; Intent i; String token; result = arg0.getResult(); if (result.containsKey(AccountManager.KEY_INTENT)) { i = (Intent)result.get(AccountManager.KEY_INTENT); System.out.println("INtect=="+i.toString()); if (i.toString().contains("GrantCredentialsPermissionActivity")) { cbt.startActivity(i); System.out.println("ssstttt"); } else { cbt.startActivity(i); System.out.println("endddddd"); } } else { token = (String)result.get(AccountManager.KEY_AUTHTOKEN); I have got the generated API key from google Account,but where to send the authToken and API key so that user can login using his gmail credentials
0
7,673,820
10/06/2011 11:48:26
28,004
10/14/2008 20:23:06
14,808
665
Trouble reusing DownloadFile inside a BackgroundWorker
I have a simple class: public class DownloadFile { ... public string GetFile(string fileUrl, string pathOut) { using (WebClient wc = new WebClient()) { wc.DownloadFile(new Uri(fileUrl), pathOut); return pathOut; } } } that I call it from a `BackgroundWorker` 2 times as the process is to download and install 2 files (Doing a custom Installer here). Problem is that, the first file downloads and installs normally, but the 2nd file hangs on the `wc2.DownloadFile(new Uri(fileUrl), pathOut);` line and **never get's out from there**! using `using` I'm disposing the `WebClient` every time I use, so I could say: DownloadFile fileManager = new DownloadFile(); fileManager.GetFile("http://domain.com/file_A.zip", "C:\\TEMP\\file_a.zip"); fileManager.GetFile("http://domain.com/file_B.zip", "C:\\TEMP\\file_b.zip"); I do not see any problem here ... but the truth is that the file hangs on the `DownloadFile` method, even tried using the Microsoft Symbols to navigate inside the method with no luck. Even added a header to the request, but still, the problem remains wc.Headers["User-Agent"] = "Mozilla/4.0 (Compatible; Windows NT 5.1; MSIE 6.0)" + " (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"; Am I missing something obvious here?
c#
winforms
file-download
null
null
null
open
Trouble reusing DownloadFile inside a BackgroundWorker === I have a simple class: public class DownloadFile { ... public string GetFile(string fileUrl, string pathOut) { using (WebClient wc = new WebClient()) { wc.DownloadFile(new Uri(fileUrl), pathOut); return pathOut; } } } that I call it from a `BackgroundWorker` 2 times as the process is to download and install 2 files (Doing a custom Installer here). Problem is that, the first file downloads and installs normally, but the 2nd file hangs on the `wc2.DownloadFile(new Uri(fileUrl), pathOut);` line and **never get's out from there**! using `using` I'm disposing the `WebClient` every time I use, so I could say: DownloadFile fileManager = new DownloadFile(); fileManager.GetFile("http://domain.com/file_A.zip", "C:\\TEMP\\file_a.zip"); fileManager.GetFile("http://domain.com/file_B.zip", "C:\\TEMP\\file_b.zip"); I do not see any problem here ... but the truth is that the file hangs on the `DownloadFile` method, even tried using the Microsoft Symbols to navigate inside the method with no luck. Even added a header to the request, but still, the problem remains wc.Headers["User-Agent"] = "Mozilla/4.0 (Compatible; Windows NT 5.1; MSIE 6.0)" + " (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"; Am I missing something obvious here?
0
4,944,126
02/09/2011 11:17:26
378,807
06/29/2010 08:35:01
3
2
CMS - Alfresco, Magnolia and Joomla Comparison & JSR compliance.
I am comparing Alfresco, Magnolia & Joomla especially specific to following features: a. Ease of Integration of user created templates b. JCR compliance (JSR-170?) c. Scalability in architecture d. Mobile site deployment I used cmsmatrix.org to compare features but I could not get some of the specific information related to above mentioned points. Any insights based on your experience on working with one or more of the above CMS products will be helpful. Thanks, Krish.
joomla
alfresco
jcr
magnolia
jsr170
null
open
CMS - Alfresco, Magnolia and Joomla Comparison & JSR compliance. === I am comparing Alfresco, Magnolia & Joomla especially specific to following features: a. Ease of Integration of user created templates b. JCR compliance (JSR-170?) c. Scalability in architecture d. Mobile site deployment I used cmsmatrix.org to compare features but I could not get some of the specific information related to above mentioned points. Any insights based on your experience on working with one or more of the above CMS products will be helpful. Thanks, Krish.
0
3,016,748
06/10/2010 17:14:22
280,319
02/24/2010 12:40:47
26
0
when i get a new iphone, can i still test apps on my 3g?
i will be getting a iphone 4 but was wondering if i can still use my iphone 3g to test on?
iphone
null
null
null
null
06/10/2010 20:16:35
off topic
when i get a new iphone, can i still test apps on my 3g? === i will be getting a iphone 4 but was wondering if i can still use my iphone 3g to test on?
2
7,888,514
10/25/2011 11:24:32
426,171
08/20/2010 09:23:39
33
1
how to make redmine reload local .yml files
Good afternoon all, Does anyone know how to reload a changed locale file in Redmine? In this case /redmine/config/locales/en-GB.yml I traced the application through to see what was happening, but I'm no Ruby expert and couldn't find the answer. After first noticing that changes to these files do not take effect, I assumed the data was copied to another file or moved into the database but can't find anything to prove that theory. Or if anyone has a better idea for doing some basic term/phrase replacement - then please let me know :) Thanks in advance
ruby
redmine
null
null
null
null
open
how to make redmine reload local .yml files === Good afternoon all, Does anyone know how to reload a changed locale file in Redmine? In this case /redmine/config/locales/en-GB.yml I traced the application through to see what was happening, but I'm no Ruby expert and couldn't find the answer. After first noticing that changes to these files do not take effect, I assumed the data was copied to another file or moved into the database but can't find anything to prove that theory. Or if anyone has a better idea for doing some basic term/phrase replacement - then please let me know :) Thanks in advance
0
10,092,070
04/10/2012 15:50:59
1,199,235
02/09/2012 09:09:09
47
3
Splash Screen, playing a mp4
I have to play a video at the launching of my application. I want it to be local, but it's too big to be translated to raw (11 sec), i've got to keep my app the lighter possible. And because it's a splashscreen, i don't need media controller. I wonder what is the best way to do so, if I'm right, VideoView can't understand direct mp4. Does anybody have done so ? thx
android
video
null
null
null
04/11/2012 10:21:00
not a real question
Splash Screen, playing a mp4 === I have to play a video at the launching of my application. I want it to be local, but it's too big to be translated to raw (11 sec), i've got to keep my app the lighter possible. And because it's a splashscreen, i don't need media controller. I wonder what is the best way to do so, if I'm right, VideoView can't understand direct mp4. Does anybody have done so ? thx
1
5,108,498
02/24/2011 17:51:02
147,021
07/29/2009 11:17:57
46
24
Antivirus for mobile
Could you please suggest a good and free antivirus software for Nokia X6 mobile?
mobile-web
antivirus
null
null
null
02/24/2011 17:55:13
off topic
Antivirus for mobile === Could you please suggest a good and free antivirus software for Nokia X6 mobile?
2
932,589
05/31/2009 18:23:53
105,685
05/12/2009 20:16:22
54
2
What is the simplest unique identifier available in .Net?
So I have this public class Foo { public int UniqueIdentifier; public Foo() { UniqueIdentifier = ???? } } How do I get a completely unique number? Thanks!
.net
c#
class-design
null
null
null
open
What is the simplest unique identifier available in .Net? === So I have this public class Foo { public int UniqueIdentifier; public Foo() { UniqueIdentifier = ???? } } How do I get a completely unique number? Thanks!
0
9,162,897
02/06/2012 15:53:01
1,167,514
01/24/2012 16:49:49
1
1
Java Gui and Business Logic
>I created a netbeans application in which i added a gui (JFrameForm) and >then i added a class Method.java i had JTextField and a Button in gui and >there logic is in Method.java class all i want is to utilize JTextField in Method.java class >How to do this .I search alot help me >i create gui object in method.java but then i dont know how to use JtextField in Method.java <code> public void writemsg() { //i want to use JTextField here like String f=JTextField.getText(); } </code> >this writemsg() is in Method.java
java
swing
sockets
null
null
02/07/2012 15:36:36
not a real question
Java Gui and Business Logic === >I created a netbeans application in which i added a gui (JFrameForm) and >then i added a class Method.java i had JTextField and a Button in gui and >there logic is in Method.java class all i want is to utilize JTextField in Method.java class >How to do this .I search alot help me >i create gui object in method.java but then i dont know how to use JtextField in Method.java <code> public void writemsg() { //i want to use JTextField here like String f=JTextField.getText(); } </code> >this writemsg() is in Method.java
1
8,214,912
11/21/2011 16:19:31
508,957
11/16/2010 01:01:16
71
0
Wireshark does not capture all packets in the network
In my Windows box, Wireshark captures all the packets of the network. But in Linux (Ubuntu) It is capturing my outgoing and incoming packets only. How can it be resolved in Linux? Thank you!
wireshark
null
null
null
null
11/21/2011 19:40:10
off topic
Wireshark does not capture all packets in the network === In my Windows box, Wireshark captures all the packets of the network. But in Linux (Ubuntu) It is capturing my outgoing and incoming packets only. How can it be resolved in Linux? Thank you!
2
7,421,605
09/14/2011 19:03:25
584,676
01/21/2011 16:00:22
534
36
Project Management Software similar to Redmine or Trac
Is there any decent free project/task management software out there with tasks management? I am looking for something similar to Trac or Redmine, but I would also like subtasking my tasks as well. Any suggestions would be appreciated.
project-management
task-management
null
null
null
09/15/2011 06:25:13
off topic
Project Management Software similar to Redmine or Trac === Is there any decent free project/task management software out there with tasks management? I am looking for something similar to Trac or Redmine, but I would also like subtasking my tasks as well. Any suggestions would be appreciated.
2
4,403,444
12/09/2010 21:45:40
223,130
12/02/2009 18:23:07
1,049
40
Jquery : how to trigger an event when the user clear a textbox
i have a function that currently working on .keypress event when the user right something in the textbox it do some code, but i want the same event to be triggered also when the user clear the textbox .change doesn't help since it fires after the user change the focus to something else Thanks
javascript
jquery
null
null
null
null
open
Jquery : how to trigger an event when the user clear a textbox === i have a function that currently working on .keypress event when the user right something in the textbox it do some code, but i want the same event to be triggered also when the user clear the textbox .change doesn't help since it fires after the user change the focus to something else Thanks
0
8,548,210
12/17/2011 22:00:56
1,103,942
12/17/2011 21:55:27
1
0
C do-while loop
Hello I am a beginner adn i'm trying to write a program with do..while loop for: list all the numbers from 100 downwards that are dividable by 7 and 5 but not 11. can you help me? thanks Andy
c
do-while
null
null
null
12/17/2011 22:20:19
not constructive
C do-while loop === Hello I am a beginner adn i'm trying to write a program with do..while loop for: list all the numbers from 100 downwards that are dividable by 7 and 5 but not 11. can you help me? thanks Andy
4
1,123,796
07/14/2009 06:40:11
25,749
10/07/2008 09:40:23
308
0
Is there any method to know whether a directory contain a sub directory?
I am woking in c++. Is there any method to know whether a directory contain a sub directory? CFileFind seems have to search through total files. It is time consuming if the only subdirectory is at the end of the list and the there are lots of files.
directory
subdirectory
null
null
null
null
open
Is there any method to know whether a directory contain a sub directory? === I am woking in c++. Is there any method to know whether a directory contain a sub directory? CFileFind seems have to search through total files. It is time consuming if the only subdirectory is at the end of the list and the there are lots of files.
0
6,211,297
06/02/2011 06:41:48
762,267
05/20/2011 07:00:20
15
0
How to export excel from database table
hi guys actually I have a problem during export to excel the data.The problem is "The file you are trying to openis in different format than specified by the file extension.Verify that the file is not corrupted & id is from a trusted source."Please give me any solution
php
javascript
html
null
null
06/02/2011 10:46:18
not a real question
How to export excel from database table === hi guys actually I have a problem during export to excel the data.The problem is "The file you are trying to openis in different format than specified by the file extension.Verify that the file is not corrupted & id is from a trusted source."Please give me any solution
1
6,504,927
06/28/2011 10:17:57
777,563
05/31/2011 11:25:13
1
0
multithreading java
public class A{ int i; public int getI(){ return i; } public void setI(int i){ this.i = i; } } how to make it threadsafe? always counters are the example Thanks Naveen
multithreading
null
null
null
null
06/28/2011 10:40:22
not a real question
multithreading java === public class A{ int i; public int getI(){ return i; } public void setI(int i){ this.i = i; } } how to make it threadsafe? always counters are the example Thanks Naveen
1
11,675,282
07/26/2012 18:01:41
1,281,677
03/20/2012 18:11:40
23
2
Can I use Bresenham's midpoint algorithm in my projects?
I found Bresenham's" (midpoint) algorithm to draw circles and I was wondering if I could just copy and paste it into my projects? I mean like legally... do I have to get permission to use it? by the way I modify it a little bit for my needs but it is basically the same algorithm.
legal
graph-algorithm
algorithmic-trading
bresenham
null
07/27/2012 11:44:42
off topic
Can I use Bresenham's midpoint algorithm in my projects? === I found Bresenham's" (midpoint) algorithm to draw circles and I was wondering if I could just copy and paste it into my projects? I mean like legally... do I have to get permission to use it? by the way I modify it a little bit for my needs but it is basically the same algorithm.
2
9,860,083
03/25/2012 12:26:10
976,936
10/03/2011 15:12:01
8
0
optimized query of 2 tables
I have 2 tables. Restaurant ------------------ id, name, address Inspection --------------------------------------------- id, result, date_of_inspection, restaurant_id Now each Restaurant have 1 or more inspections. So what i want to do is list out all the restaurants and show their latest inspection_result. Is it possible to do this in 1 query and without having the result set contain 1 row for each inspection? Ideally each returned row would contain something like this: Result row ------------------------------------ restaurantid, name, address, result
sql
sqlite
null
null
null
null
open
optimized query of 2 tables === I have 2 tables. Restaurant ------------------ id, name, address Inspection --------------------------------------------- id, result, date_of_inspection, restaurant_id Now each Restaurant have 1 or more inspections. So what i want to do is list out all the restaurants and show their latest inspection_result. Is it possible to do this in 1 query and without having the result set contain 1 row for each inspection? Ideally each returned row would contain something like this: Result row ------------------------------------ restaurantid, name, address, result
0
8,889,230
01/17/2012 03:12:58
190,296
10/15/2009 01:50:19
268
11
Detecting eventmachine disconnections and testing for reconnect
I'm trying to build a system ontop of event machine that will detect when a TCP connection has failed and will test to see if a reconnect can be fired. I've gone through all of the eventmachine code but can't seem to find where there is a callback for the connection either timing out in action or in reconnection. Even though I've set the times in the code, there is no callback on the pending connect, and if I try to re fire reconnect I get no feedback as to whether the connection has succeeded or failed. I'm using it to connect to effectively a telnet interface. EventMachine.run do c = EventMachine.connect "10.8.1.99",5000,ConnectInterface c.pending_connect_timeout = 10 end Any help would be greatly appreciated.
ruby
sockets
telnet
eventmachine
reconnect
null
open
Detecting eventmachine disconnections and testing for reconnect === I'm trying to build a system ontop of event machine that will detect when a TCP connection has failed and will test to see if a reconnect can be fired. I've gone through all of the eventmachine code but can't seem to find where there is a callback for the connection either timing out in action or in reconnection. Even though I've set the times in the code, there is no callback on the pending connect, and if I try to re fire reconnect I get no feedback as to whether the connection has succeeded or failed. I'm using it to connect to effectively a telnet interface. EventMachine.run do c = EventMachine.connect "10.8.1.99",5000,ConnectInterface c.pending_connect_timeout = 10 end Any help would be greatly appreciated.
0
2,920,658
05/27/2010 11:30:33
466,534
04/21/2010 12:03:08
153
4
question about permutation problem
i have posted similar problem here http://stackoverflow.com/questions/2920315/permutation-of-array but i want following we know that with length n there is n! possible permutation from which one such that all element are in order they are in sorted variant so i want break permutation when array is in order and print result but something is wrong i think that problem is repeated of permutation here is my code import java.util.*; public class permut{ public static Random r=new Random(); public static void display(int a[],int n){ for (int i=0;i<n;i++){ System.out.println(a[i]); } } public static void Permut(int a[],int n){ int j=0; int k=0; while (j<fact(n)){ int s=r.nextInt(n); for (int i=0;i<n;i++){ k=a[i]; a[i]=a[s]; a[s]=k; } j++; if (sorted(a,n)) display(a,n); break; } } public static void main(String[]args){ int a[]=new int[]{3,4,1,2}; int n=a.length; Permut(a,n); } public static int fact(int n){ if (n==0 || (n==1) ) return 1; return n*fact(n-1); } public static boolean sorted(int a[],int n ){ boolean flag=false; for (int i=0;i<n-1;i++){ if (a[i]<a[i+1]){ flag=true; } else{ flag=false; } } return flag; } } can anybody help me? result is nothing
algorithm
null
null
null
null
01/22/2012 19:53:27
too localized
question about permutation problem === i have posted similar problem here http://stackoverflow.com/questions/2920315/permutation-of-array but i want following we know that with length n there is n! possible permutation from which one such that all element are in order they are in sorted variant so i want break permutation when array is in order and print result but something is wrong i think that problem is repeated of permutation here is my code import java.util.*; public class permut{ public static Random r=new Random(); public static void display(int a[],int n){ for (int i=0;i<n;i++){ System.out.println(a[i]); } } public static void Permut(int a[],int n){ int j=0; int k=0; while (j<fact(n)){ int s=r.nextInt(n); for (int i=0;i<n;i++){ k=a[i]; a[i]=a[s]; a[s]=k; } j++; if (sorted(a,n)) display(a,n); break; } } public static void main(String[]args){ int a[]=new int[]{3,4,1,2}; int n=a.length; Permut(a,n); } public static int fact(int n){ if (n==0 || (n==1) ) return 1; return n*fact(n-1); } public static boolean sorted(int a[],int n ){ boolean flag=false; for (int i=0;i<n-1;i++){ if (a[i]<a[i+1]){ flag=true; } else{ flag=false; } } return flag; } } can anybody help me? result is nothing
3
10,653,436
05/18/2012 13:20:52
1,382,191
05/08/2012 13:29:53
8
0
JavaScript code optimize
Following is my javascript code,is there a better way to write my code?I think my concept is not good. function(){ if(1) { document.getElementByID("AprEmail1").style.display=""; document.getElementByID("chkApp1").style.display=""; document.getElementByID("AprEmail2").style.display=""; document.getElementByID("chkApp2").style.display=""; document.getElementByID("chkApp2").disabled=false; document.getElementByID("AprEmail3").style.display=""; document.getElementByID("chkApp3").style.display=""; document.getElementByID("chkApp3").disabled=false; } else if(2) { document.getElementByID("AprEmail1").style.display=""; document.getElementByID("chkApp1").style.display=""; document.getElementByID("AprEmail2").style.display=""; document.getElementByID("chkApp2").style.display=""; document.getElementByID("chkApp2").disabled=true; document.getElementByID("AprEmail3").style.display=""; document.getElementByID("chkApp3").style.display=""; } else if(3) { document.getElementByID("AprEmail1").style.display=""; document.getElementByID("chkApp1").style.display=""; document.getElementByID("AprEmail2").style.display=""; document.getElementByID("chkApp2").style.display=""; document.getElementByID("chkApp2").disabled=true; document.getElementByID("AprEmail3").style.display=""; document.getElementByID("chkApp3").style.display=""; document.getElementByID("chkApp3").disabled=true; } else { document.getElementByID("AprEmail1").style.display="none"; document.getElementByID("chkApp1").style.display="none"; document.getElementByID("AprEmail2").style.display="none"; document.getElementByID("chkApp2").style.display="none"; document.getElementByID("AprEmail3").style.display="none"; document.getElementByID("chkApp3").style.display="none"; } }
javascript
null
null
null
null
05/18/2012 13:25:06
off topic
JavaScript code optimize === Following is my javascript code,is there a better way to write my code?I think my concept is not good. function(){ if(1) { document.getElementByID("AprEmail1").style.display=""; document.getElementByID("chkApp1").style.display=""; document.getElementByID("AprEmail2").style.display=""; document.getElementByID("chkApp2").style.display=""; document.getElementByID("chkApp2").disabled=false; document.getElementByID("AprEmail3").style.display=""; document.getElementByID("chkApp3").style.display=""; document.getElementByID("chkApp3").disabled=false; } else if(2) { document.getElementByID("AprEmail1").style.display=""; document.getElementByID("chkApp1").style.display=""; document.getElementByID("AprEmail2").style.display=""; document.getElementByID("chkApp2").style.display=""; document.getElementByID("chkApp2").disabled=true; document.getElementByID("AprEmail3").style.display=""; document.getElementByID("chkApp3").style.display=""; } else if(3) { document.getElementByID("AprEmail1").style.display=""; document.getElementByID("chkApp1").style.display=""; document.getElementByID("AprEmail2").style.display=""; document.getElementByID("chkApp2").style.display=""; document.getElementByID("chkApp2").disabled=true; document.getElementByID("AprEmail3").style.display=""; document.getElementByID("chkApp3").style.display=""; document.getElementByID("chkApp3").disabled=true; } else { document.getElementByID("AprEmail1").style.display="none"; document.getElementByID("chkApp1").style.display="none"; document.getElementByID("AprEmail2").style.display="none"; document.getElementByID("chkApp2").style.display="none"; document.getElementByID("AprEmail3").style.display="none"; document.getElementByID("chkApp3").style.display="none"; } }
2
10,499,778
05/08/2012 13:40:11
1,181,942
02/01/2012 05:11:27
87
1
Highlight text in Text box
When we add tags in Tags box of this site, tag or any text we put is highlighted i.e. A box appears around text. Also there is a delete button in the box. I have requirement of similar functionality in my project. I wanted to know how this is done. I have been trying with text box, however I could not add box around a part of text in text box. I believe in text box css is applied to whole text and can not be applied to a part of it. I have no idea how this can be done. Please help me... Thank you
jquery
asp.net
css
null
null
05/08/2012 20:20:16
not a real question
Highlight text in Text box === When we add tags in Tags box of this site, tag or any text we put is highlighted i.e. A box appears around text. Also there is a delete button in the box. I have requirement of similar functionality in my project. I wanted to know how this is done. I have been trying with text box, however I could not add box around a part of text in text box. I believe in text box css is applied to whole text and can not be applied to a part of it. I have no idea how this can be done. Please help me... Thank you
1
2,129,827
01/25/2010 02:09:55
226,235
12/07/2009 09:56:44
432
20
Silverlight 3 Books
I am looking for a good book on Silverlight 3, for myself and my development team. We are all experienced .NET developers, but with virtually no exposure to Silverlight. [This site on Silverlight.Net][1] lists the following books on Silverlight 3 development - * Silverlight 3 Programmer's Reference by J. Ambrose Little, Jason Beres, Grant Hinkson, and Devin Rader * Beginning Silverlight 3 by Robert Lair * Silverlight 3 Jumpstart by David Yack * Game Programming with Silverlight by Michael Snow * Introducing Microsoft Silverlight 3 by Laurence Moroney * Pro Silverlight 3 in C# by Matthew MacDonald * Accelerated Silverlight 3 by Jeff Scanlon and Ashish Ghoda * Essential Silverlight 3 by Ashraf Michail I was hoping to get a few comments on each, and some overall recommendations. Note that previous SO questions on Silverlight books have all been about Silverlight 2. [1]: http://www.silverlight.net/learn/books/
silverlight
silverlight-3.0
null
null
null
09/25/2011 10:55:38
not constructive
Silverlight 3 Books === I am looking for a good book on Silverlight 3, for myself and my development team. We are all experienced .NET developers, but with virtually no exposure to Silverlight. [This site on Silverlight.Net][1] lists the following books on Silverlight 3 development - * Silverlight 3 Programmer's Reference by J. Ambrose Little, Jason Beres, Grant Hinkson, and Devin Rader * Beginning Silverlight 3 by Robert Lair * Silverlight 3 Jumpstart by David Yack * Game Programming with Silverlight by Michael Snow * Introducing Microsoft Silverlight 3 by Laurence Moroney * Pro Silverlight 3 in C# by Matthew MacDonald * Accelerated Silverlight 3 by Jeff Scanlon and Ashish Ghoda * Essential Silverlight 3 by Ashraf Michail I was hoping to get a few comments on each, and some overall recommendations. Note that previous SO questions on Silverlight books have all been about Silverlight 2. [1]: http://www.silverlight.net/learn/books/
4
5,506,139
03/31/2011 20:48:35
673,965
03/23/2011 22:24:22
1
0
Trouble with hjkl navigation with ViM remotely.
When I navigate using hjkl over ssh, I notice that I cannot go past an empty line. For eg., if the code were: \#include<blah> func() (cursor here) the line above func() cannot be reached by pressing **k** as you would expect it to be. Surprisingly this problem doesn't occur when I edit files locally. Any ideas? I use ViM 7.2 and have :set nocompatible.
vim
null
null
null
null
null
open
Trouble with hjkl navigation with ViM remotely. === When I navigate using hjkl over ssh, I notice that I cannot go past an empty line. For eg., if the code were: \#include<blah> func() (cursor here) the line above func() cannot be reached by pressing **k** as you would expect it to be. Surprisingly this problem doesn't occur when I edit files locally. Any ideas? I use ViM 7.2 and have :set nocompatible.
0
5,686,450
04/16/2011 12:26:51
562,171
01/04/2011 06:31:20
25
6
prblem in json parsing in webservice and returning a value
hiii i m having an problem regarding a webservice and a jquery ajax. the thing is .. it would take a modal dialog and get the inputs from the modal dialog put it into an object and then return a boolean result back from the webservice to the jquery ajax call . hhere is the code : $('[id*="dialog"]').dialog({ autoOpen: false, modal: true, resizable: false, show: "blind", hide: "puff", buttons: { 'Create': function() { Materials.MaterialName = $('[id*="txtMaterialName"]').val(); Materials.QuantityType = $('[id*="txtquantity"]').val(); var jsonMaterial = JSON.stringify(Materials); AddNewMaterial(jsonMaterial); $(this).dialog('close'); }, 'Cancel': function() { $(this).dialog('close'); } }, close: function() { window.document.location = "ResourcePlanningMaster.aspx"; } }); function AddNewMaterial(materials) { $.ajax({ type: 'POST', contentType: "application/json; charset=utf-8", url: 'Services/Service.asmx/AddNewMaterial', data: '{"Materials":"' + materials + '"}', dataType: "json", success: function(data, textStatus) { if (textStatus == "success") { if (data.d == true) { alert('New Item Added'); } } }, error: function(data, textStatus) { alert('An error has occured retrieving data!'); } }); } and the web service is as : [WebMethod] [ScriptMethod] public String AddNewMaterial(String Materials) { Boolean Result = false; try { MaterialEntity Material = JsonConvert.DeserializeObject<MaterialEntity>(Materials); Result = JsonHelper.InsertMaterial(Material); } catch (Exception ex) { logger.Error(ex.Message); logger.Fatal(ex.InnerException); } return Result.ToString(); } the MaterialEntity Class : public class MaterialEntity { public String MaterialName { get; set; } public String QuantityType { get; set; } } now when i am invking the create button in web service then the error i am getting in data.responseText is : {"Message":"Invalid object passed in, \u0027:\u0027 or \u0027}\u0027 expected. (17): {\"Materials\":\"{\"MaterialName\":\"assd\",\"QuantityType\":\"asd\"}\"}","StackTrace":" at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth)\r\n at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth)\r\n at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer)\r\n at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)\r\n at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)\r\n at System.Web.Script.Services.RestHandler.GetRawParamsFromPostRequest(HttpContext context, JavaScriptSerializer serializer)\r\n at System.Web.Script.Services.RestHandler.GetRawParams(WebServiceMethodData methodData, HttpContext context)\r\n at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)","ExceptionType":"System.ArgumentException"} can someone tel me why am i getting this ? although i am parsing it quite correct as a json and then deserializing it as MaterialEntity Class itself ? whts causing this error if someone can help me out :(
jquery-ajax
null
null
null
null
null
open
prblem in json parsing in webservice and returning a value === hiii i m having an problem regarding a webservice and a jquery ajax. the thing is .. it would take a modal dialog and get the inputs from the modal dialog put it into an object and then return a boolean result back from the webservice to the jquery ajax call . hhere is the code : $('[id*="dialog"]').dialog({ autoOpen: false, modal: true, resizable: false, show: "blind", hide: "puff", buttons: { 'Create': function() { Materials.MaterialName = $('[id*="txtMaterialName"]').val(); Materials.QuantityType = $('[id*="txtquantity"]').val(); var jsonMaterial = JSON.stringify(Materials); AddNewMaterial(jsonMaterial); $(this).dialog('close'); }, 'Cancel': function() { $(this).dialog('close'); } }, close: function() { window.document.location = "ResourcePlanningMaster.aspx"; } }); function AddNewMaterial(materials) { $.ajax({ type: 'POST', contentType: "application/json; charset=utf-8", url: 'Services/Service.asmx/AddNewMaterial', data: '{"Materials":"' + materials + '"}', dataType: "json", success: function(data, textStatus) { if (textStatus == "success") { if (data.d == true) { alert('New Item Added'); } } }, error: function(data, textStatus) { alert('An error has occured retrieving data!'); } }); } and the web service is as : [WebMethod] [ScriptMethod] public String AddNewMaterial(String Materials) { Boolean Result = false; try { MaterialEntity Material = JsonConvert.DeserializeObject<MaterialEntity>(Materials); Result = JsonHelper.InsertMaterial(Material); } catch (Exception ex) { logger.Error(ex.Message); logger.Fatal(ex.InnerException); } return Result.ToString(); } the MaterialEntity Class : public class MaterialEntity { public String MaterialName { get; set; } public String QuantityType { get; set; } } now when i am invking the create button in web service then the error i am getting in data.responseText is : {"Message":"Invalid object passed in, \u0027:\u0027 or \u0027}\u0027 expected. (17): {\"Materials\":\"{\"MaterialName\":\"assd\",\"QuantityType\":\"asd\"}\"}","StackTrace":" at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth)\r\n at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth)\r\n at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer)\r\n at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)\r\n at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)\r\n at System.Web.Script.Services.RestHandler.GetRawParamsFromPostRequest(HttpContext context, JavaScriptSerializer serializer)\r\n at System.Web.Script.Services.RestHandler.GetRawParams(WebServiceMethodData methodData, HttpContext context)\r\n at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)","ExceptionType":"System.ArgumentException"} can someone tel me why am i getting this ? although i am parsing it quite correct as a json and then deserializing it as MaterialEntity Class itself ? whts causing this error if someone can help me out :(
0
10,389,203
04/30/2012 19:10:06
1,289,282
03/23/2012 22:39:14
98
0
sql / sqlplus - How to view schema
I was just wondering - is there a command to view the schema for the database I have created? - Using SqlPlus Thanks.
sql
sqlplus
null
null
null
05/01/2012 18:42:48
not a real question
sql / sqlplus - How to view schema === I was just wondering - is there a command to view the schema for the database I have created? - Using SqlPlus Thanks.
1
9,154,825
02/06/2012 01:54:39
1,162,794
01/21/2012 20:52:58
8
0
Python how to: convert set to int
can some one please explain to me how I could go about converting a set to an int when i need to compare the length of the set to the length of a list or something else?
python
python-3.2
null
null
null
02/06/2012 03:02:25
not a real question
Python how to: convert set to int === can some one please explain to me how I could go about converting a set to an int when i need to compare the length of the set to the length of a list or something else?
1
9,266,940
02/13/2012 19:43:51
1,182,630
02/01/2012 12:11:09
1
0
Initialize property of a class in function
I have a problem that I got class: class A { private: Mat asd; public: void Do() { asd.create(size,size,type); } void Print() { asd.DoSomething() } } The problem is that when i call Do and then Print programs says that asd isnt created. How I can create instance of asd in 1 function and then call this asd in another function not using references as parameters?
c++
opencv
null
null
null
02/14/2012 14:41:16
too localized
Initialize property of a class in function === I have a problem that I got class: class A { private: Mat asd; public: void Do() { asd.create(size,size,type); } void Print() { asd.DoSomething() } } The problem is that when i call Do and then Print programs says that asd isnt created. How I can create instance of asd in 1 function and then call this asd in another function not using references as parameters?
3
3,589,944
08/28/2010 07:53:18
117,069
06/04/2009 05:02:17
3,716
208
Firing a Button's Click event from outside Button
I have a Button and I need to fire it's Click event externally from actually clicking it. However, the code myButton.Click(this, EventArgs.Empty); gives me the error The event 'System.Windows.Forms.Control.Click' can only appear on the left hand side of += or -= How can I fix it?
.net
events
button
null
null
null
open
Firing a Button's Click event from outside Button === I have a Button and I need to fire it's Click event externally from actually clicking it. However, the code myButton.Click(this, EventArgs.Empty); gives me the error The event 'System.Windows.Forms.Control.Click' can only appear on the left hand side of += or -= How can I fix it?
0
11,153,362
06/22/2012 09:15:18
1,474,280
06/22/2012 08:40:12
6
0
How to make your design more compatible in different browser specially IE
I'm just wondering, when i test my web design in Chrome and Firefox, everything seems to be alright, the position, the alignment, hover etc. but when i test my layout in IE8, everything change, positioning got worse, alignment and even the hover funct is not functioning. So my question is, how can i make a web design that will not change even though i load it in different browser specially in IE. Thanks and regards in advance friends.
html
css
null
null
null
06/23/2012 13:37:53
not a real question
How to make your design more compatible in different browser specially IE === I'm just wondering, when i test my web design in Chrome and Firefox, everything seems to be alright, the position, the alignment, hover etc. but when i test my layout in IE8, everything change, positioning got worse, alignment and even the hover funct is not functioning. So my question is, how can i make a web design that will not change even though i load it in different browser specially in IE. Thanks and regards in advance friends.
1
3,108,052
06/24/2010 07:46:57
355,092
06/01/2010 05:33:22
6
0
regular expression for money in asp.net
regular expression for money in asp.net
.net-3.5
null
null
null
null
06/24/2010 08:12:46
not a real question
regular expression for money in asp.net === regular expression for money in asp.net
1
6,464,308
06/24/2011 06:40:15
390,134
07/13/2010 05:58:12
47
0
How to better store arrays of data for use in a JavaScript app
I have an interactive JavaScript app that runs through arrays of data. I don't want users to be able to easily view the array content, so I have stored the arrays in PHP and pass them to the JavaScript app with AJAX and JSON. I had thought about using a database, but since these files only have to read (not written) I thought it would be unnecessary. Am I missing an obvious and easier way to do this? Perhaps some sort of server-side cache? Cheers,
php
javascript
null
null
null
null
open
How to better store arrays of data for use in a JavaScript app === I have an interactive JavaScript app that runs through arrays of data. I don't want users to be able to easily view the array content, so I have stored the arrays in PHP and pass them to the JavaScript app with AJAX and JSON. I had thought about using a database, but since these files only have to read (not written) I thought it would be unnecessary. Am I missing an obvious and easier way to do this? Perhaps some sort of server-side cache? Cheers,
0
7,260,605
08/31/2011 16:55:58
834,525
07/07/2011 23:54:56
57
1
How can I track if an embedded video (youtube, vimeo, etc.) was played?
Is there a way to track play counts for embedded videos? Ideally without resorting to a thumbnail linked to launch the embed / iframe code.
video
reporting
embed
analytics
tracking
null
open
How can I track if an embedded video (youtube, vimeo, etc.) was played? === Is there a way to track play counts for embedded videos? Ideally without resorting to a thumbnail linked to launch the embed / iframe code.
0
8,939,596
01/20/2012 09:59:51
801,072
06/16/2011 08:23:06
27
2
Why is bash stopping processing the script
I'm generating a script like this (echo "ssh [email protected] echo hello" ; echo 'echo Done') which produces ssh [email protected] echo hello echo Done I'm executing the script by piping these commands to bash (echo "ssh [email protected] echo hello" ; echo 'echo Done') | bash The result is Warning: No xauth data; using fake authentication data for X11 forwarding. hello As you can see bash did not execute the 'echo Done' command. My first thought was that ssh probably produces a non zero return value probaby caused by this xauth warning. So I did this ssh [email protected] echo hello echo $? which produced Warning: No xauth data; using fake authentication data for X11 forwarding. hello 0 So return value is oke. Now I tried using a trap trap "" ERR but this also didn't help. Pretty logical as the return value was zero anyway. So I'm lost. Why is the 'echo Done' command not being executed?
bash
ssh
null
null
null
null
open
Why is bash stopping processing the script === I'm generating a script like this (echo "ssh [email protected] echo hello" ; echo 'echo Done') which produces ssh [email protected] echo hello echo Done I'm executing the script by piping these commands to bash (echo "ssh [email protected] echo hello" ; echo 'echo Done') | bash The result is Warning: No xauth data; using fake authentication data for X11 forwarding. hello As you can see bash did not execute the 'echo Done' command. My first thought was that ssh probably produces a non zero return value probaby caused by this xauth warning. So I did this ssh [email protected] echo hello echo $? which produced Warning: No xauth data; using fake authentication data for X11 forwarding. hello 0 So return value is oke. Now I tried using a trap trap "" ERR but this also didn't help. Pretty logical as the return value was zero anyway. So I'm lost. Why is the 'echo Done' command not being executed?
0
8,490,745
12/13/2011 14:20:30
165,107
08/28/2009 20:55:46
3,508
36
Best free or paid solution for C# HTTP web request and response
I am looking for free or paid solution for C# web request and response. With great support. Currently I am using one paid tool which is not providing proper support. The Feature That I need in That Library:- 1. It can be handle long page source (No time out Issue) 2. Able to handle java script. 3. Proxy Support. Please suggest me such a tool. Thanks in advance.
c#
httpwebrequest
web-crawler
web-scraping
crawler
12/14/2011 02:23:09
not constructive
Best free or paid solution for C# HTTP web request and response === I am looking for free or paid solution for C# web request and response. With great support. Currently I am using one paid tool which is not providing proper support. The Feature That I need in That Library:- 1. It can be handle long page source (No time out Issue) 2. Able to handle java script. 3. Proxy Support. Please suggest me such a tool. Thanks in advance.
4
2,947,727
06/01/2010 06:39:58
206,659
11/09/2009 06:31:53
574
20
How do I propagate an exception thrown by croak in forked child to parent/foreground process?
Throwing an exception via `croak` in a forked child process seems to print the error as a background process would. That is, it clobbers the shell prompt. If I `die` instead of `croak`, the the error message pops up as a foreground process. I've trying to find out why that is in the `Carp` documentation without any luck. Here's what I mean. The `croak` version: $ perl Wrapper.pm $ error: ... does not exist at Wrapper.pm line 624 The `die` version: $ perl Wrapper.pm error: ... does not exist at Wrapper.pm line 515. I tried trapping the `fork` and printing `$@` to STDERR and exiting, but that didn't have an effect. Any ideas? I'd like to be able to use `croak` in this particular case.
perl
exception-handling
fork
null
null
null
open
How do I propagate an exception thrown by croak in forked child to parent/foreground process? === Throwing an exception via `croak` in a forked child process seems to print the error as a background process would. That is, it clobbers the shell prompt. If I `die` instead of `croak`, the the error message pops up as a foreground process. I've trying to find out why that is in the `Carp` documentation without any luck. Here's what I mean. The `croak` version: $ perl Wrapper.pm $ error: ... does not exist at Wrapper.pm line 624 The `die` version: $ perl Wrapper.pm error: ... does not exist at Wrapper.pm line 515. I tried trapping the `fork` and printing `$@` to STDERR and exiting, but that didn't have an effect. Any ideas? I'd like to be able to use `croak` in this particular case.
0
11,581,228
07/20/2012 14:18:26
942,767
09/13/2011 14:34:36
321
3
Codeigniter, multiple domains
I am building a multi-language site with english and french. The site is made so that my default controller is /en and the french site entry controller will be at /fr. The problem is that the french site will have a different domain, will that be a problem to point the french domain to the /fr controller ?
codeigniter
domain
null
null
null
null
open
Codeigniter, multiple domains === I am building a multi-language site with english and french. The site is made so that my default controller is /en and the french site entry controller will be at /fr. The problem is that the french site will have a different domain, will that be a problem to point the french domain to the /fr controller ?
0
7,210,426
08/26/2011 20:49:46
179,736
09/27/2009 11:27:55
7,133
53
Is it OK to use Facebook's profile picture url on my site?
Let's say I do this: <img src="http://graph.facebook.com/7644904/picture?type=square"> It that allowed? (hot linking facebook)
facebook
facebook-graph-api
facebook-connect
facebook-like
null
08/26/2011 21:15:48
off topic
Is it OK to use Facebook's profile picture url on my site? === Let's say I do this: <img src="http://graph.facebook.com/7644904/picture?type=square"> It that allowed? (hot linking facebook)
2
11,355,248
07/06/2012 02:54:27
1,505,608
07/06/2012 02:43:37
1
0
simultaneous equation solving in loop
Needing to get MATLAB to simultaneously solve 2 equations in a for loop. Solving for link lengths of a mechanism as it makes a full 360 degree cycle. Only given info is the separation between the link bases, and the angles (need to solve for the link lengths each time, to then use to solve for velocities and accelerations at each) Tried using fsolve, either I'm not using it right or it doesn't know how to handle t
matlab
null
null
null
null
07/09/2012 01:44:58
not a real question
simultaneous equation solving in loop === Needing to get MATLAB to simultaneously solve 2 equations in a for loop. Solving for link lengths of a mechanism as it makes a full 360 degree cycle. Only given info is the separation between the link bases, and the angles (need to solve for the link lengths each time, to then use to solve for velocities and accelerations at each) Tried using fsolve, either I'm not using it right or it doesn't know how to handle t
1
10,467,995
05/06/2012 04:03:58
172,637
09/13/2009 00:11:44
6,412
143
Autorotate Landscape/Portrait View
I'm working on a gallery where I want to rotate the view automatically based on the pictures orientation. So for example, two photos: - 1200w x 800h pixels - 550w x 800h pixels Now to determine which is **portrait**, I just need to check `if height > width`? Is that the only way? Can someone suggest a better way? Thanks!
ios
image
orientation
autorotate
null
null
open
Autorotate Landscape/Portrait View === I'm working on a gallery where I want to rotate the view automatically based on the pictures orientation. So for example, two photos: - 1200w x 800h pixels - 550w x 800h pixels Now to determine which is **portrait**, I just need to check `if height > width`? Is that the only way? Can someone suggest a better way? Thanks!
0
1,093,316
07/07/2009 16:17:00
93,830
04/21/2009 14:32:48
5
2
Flex AdvancedDataGrid caching records
I have an AdvancedDataGrid(ADG) bound to an ArrayCollection. ArrayCollection is populated from my Oracle database. Now, the records I have in the database are in millions and sometimes, based on the worst case criteria by the user, I can get around 10,000 records. Now, as this collection is bound to the ADG, it tries to render all the records at the same time and hence the application becomes sluggish. What I need to know is, if there is any way to cache all the result from the database in the ArrayCollection and then render every 100 records based on the scrolling of the grid. That is, render only when it is needed to be shown. So, instead of querying the database for every 100 records, I need to render every 100 records when they are needed to be shown. Is there any way to do like this? Thanks :)
flex
flex3
advanceddatagrid
null
null
null
open
Flex AdvancedDataGrid caching records === I have an AdvancedDataGrid(ADG) bound to an ArrayCollection. ArrayCollection is populated from my Oracle database. Now, the records I have in the database are in millions and sometimes, based on the worst case criteria by the user, I can get around 10,000 records. Now, as this collection is bound to the ADG, it tries to render all the records at the same time and hence the application becomes sluggish. What I need to know is, if there is any way to cache all the result from the database in the ArrayCollection and then render every 100 records based on the scrolling of the grid. That is, render only when it is needed to be shown. So, instead of querying the database for every 100 records, I need to render every 100 records when they are needed to be shown. Is there any way to do like this? Thanks :)
0
10,355,195
04/27/2012 17:27:14
1,046,177
11/14/2011 18:55:21
14
1
Stock real time (tick-by-tick) data
Does anyone know how can I get yahoo free real time tick-by-tick stock feed. I want to develop daily charts and graphs for a .Net application. -Ali
.net
finance
trading
stockquotes
null
04/29/2012 02:26:46
off topic
Stock real time (tick-by-tick) data === Does anyone know how can I get yahoo free real time tick-by-tick stock feed. I want to develop daily charts and graphs for a .Net application. -Ali
2
6,563,081
07/03/2011 13:11:49
776,548
05/30/2011 16:48:59
3
0
use multple select queries to fetch data for grid view
In .net 2008 I want to bind data to a grid view using multiple select queries the reason for this is i want data to come from multiple data and i have to to some processing on the data before displaying it in grid view an example is (i dont have to actually do this) I have two tables one with columns uid and uname named udata other with columns uid and unum named uinfo now the problem is i want to have uid uname and unum concatenated together by a complex operation and display it in grid view that complex operation can only be done in C# and not in T-SQL I am basically making a case that one single query cannot fetch the data so how do i do this for grid view
asp.net
gridview
c#-3.0
null
null
null
open
use multple select queries to fetch data for grid view === In .net 2008 I want to bind data to a grid view using multiple select queries the reason for this is i want data to come from multiple data and i have to to some processing on the data before displaying it in grid view an example is (i dont have to actually do this) I have two tables one with columns uid and uname named udata other with columns uid and unum named uinfo now the problem is i want to have uid uname and unum concatenated together by a complex operation and display it in grid view that complex operation can only be done in C# and not in T-SQL I am basically making a case that one single query cannot fetch the data so how do i do this for grid view
0
6,132,565
05/26/2011 00:38:58
642,178
03/03/2011 00:33:00
323
9
Flex - condition in binding (for TextInput prop. text)
For example `<s:TextInput id="sd" text="{if () {0} else if() {1} else {2}}"/>` Is it possible to do something like that?
flash
flex
actionscript-3
null
null
null
open
Flex - condition in binding (for TextInput prop. text) === For example `<s:TextInput id="sd" text="{if () {0} else if() {1} else {2}}"/>` Is it possible to do something like that?
0
5,282,485
03/12/2011 12:31:35
474,290
10/13/2010 09:39:21
86
18
List of things what JavaScript is capable of
I can easly find what Flash or Silverligth capable of, but it's really hadr to find what JavaScript can do.. **Is there someone ho can List of major JavaScript features?** (something like: working with file systems, webCam support, json parsin, socket support, and so one)
javascript
null
null
null
null
03/12/2011 14:03:28
not a real question
List of things what JavaScript is capable of === I can easly find what Flash or Silverligth capable of, but it's really hadr to find what JavaScript can do.. **Is there someone ho can List of major JavaScript features?** (something like: working with file systems, webCam support, json parsin, socket support, and so one)
1
3,414,460
08/05/2010 12:04:12
411,921
08/05/2010 12:02:29
1
0
Virtual Scrolling Grid In asp.net
I like to implement a Virtual scrolling Grid like Yahoo Inbox... I Don't want Telerik or Other third party dll....I want a solution with open source code....
c#
asp.net
null
null
null
07/26/2012 12:18:46
not constructive
Virtual Scrolling Grid In asp.net === I like to implement a Virtual scrolling Grid like Yahoo Inbox... I Don't want Telerik or Other third party dll....I want a solution with open source code....
4
10,082,880
04/10/2012 03:48:00
1,312,088
04/04/2012 06:23:19
11
4
Is jquery a dynamic redefinition of javascript?
http://stackoverflow.com/questions/10071308/learn-javascript-before-learning-jquery/10071626#10071626 I have read that thread and I still don't find any points convincing me that Javascript is a must-learn-before-jquery thing. I think jquery is far more than just a javascript library, I would like to call it a redefinition of the dynamic language, the new javascript instead. The library writers clearly made the greatest hit here to change old JavaScript's face almost completely. Javascript and Jquery are co-existing because Jquery is the javascript library and the fact that people support learning JS first before jquery is likely because they've been client side coders long before the jquery was out, WHICH CURRENTLY EASES THEIR INVESTIGATIONS INTO THE LANGUAGE FAR BETTER, psychologically, they certainly then say "Oh yes, procedural methodologies work greater". For points concerning writing a function call via mouse/keyboard events, I still agree that javascript structures are preserved and need learning. But does this really make a big difference whether or not learning jquery first should be more beneficial at all ? Ex: function something() { //jquery code } //// <input type="..." onclick="something();"/> Advice and corrections are required. Thank you so very much.
javascript
jquery
ajax
json
node.js
04/10/2012 03:54:18
not constructive
Is jquery a dynamic redefinition of javascript? === http://stackoverflow.com/questions/10071308/learn-javascript-before-learning-jquery/10071626#10071626 I have read that thread and I still don't find any points convincing me that Javascript is a must-learn-before-jquery thing. I think jquery is far more than just a javascript library, I would like to call it a redefinition of the dynamic language, the new javascript instead. The library writers clearly made the greatest hit here to change old JavaScript's face almost completely. Javascript and Jquery are co-existing because Jquery is the javascript library and the fact that people support learning JS first before jquery is likely because they've been client side coders long before the jquery was out, WHICH CURRENTLY EASES THEIR INVESTIGATIONS INTO THE LANGUAGE FAR BETTER, psychologically, they certainly then say "Oh yes, procedural methodologies work greater". For points concerning writing a function call via mouse/keyboard events, I still agree that javascript structures are preserved and need learning. But does this really make a big difference whether or not learning jquery first should be more beneficial at all ? Ex: function something() { //jquery code } //// <input type="..." onclick="something();"/> Advice and corrections are required. Thank you so very much.
4
10,306,033
04/24/2012 21:10:15
1,354,736
04/24/2012 20:59:13
1
0
Java Script submit button
I need the following on my webpage: 1. Drop-down menu (with list of all states) 2. Text Box. (For ID numbers) 3. Submit Button. Here is how it works: Client 1.Picks **State** 2.Input Their **code** (ID) 3.Click on Submit Page will redirect client to a URL (Based on **ID** and **state**) Any ideas or help is greatly appreciated.
javascript
webparts
null
null
null
04/25/2012 11:16:45
not a real question
Java Script submit button === I need the following on my webpage: 1. Drop-down menu (with list of all states) 2. Text Box. (For ID numbers) 3. Submit Button. Here is how it works: Client 1.Picks **State** 2.Input Their **code** (ID) 3.Click on Submit Page will redirect client to a URL (Based on **ID** and **state**) Any ideas or help is greatly appreciated.
1
5,809,963
04/27/2011 20:13:04
135,256
07/08/2009 20:52:51
131
1
Difference between WCF Web API and WCF Data Services
Can any one explain the difference between WCF Data Services and http://wcf.codeplex.com Wcf Web API?
wcf
null
null
null
null
null
open
Difference between WCF Web API and WCF Data Services === Can any one explain the difference between WCF Data Services and http://wcf.codeplex.com Wcf Web API?
0
467,791
01/22/2009 01:44:24
22,329
09/25/2008 18:58:37
545
39
How do you treat handles in C++/CLI?
I know I'm not asking this quite right, either. Please help me better form my question. I'm having a bit of a hard time getting my mind wrapped around handles -- in some ways, it looks like pointers. But unlike pointers, it seems like I can assign values directly to the handle variable, and it affects the underlying data value, not the handle itself. The test code clearly shows that I get the same value whether I use the handle, or if I "dereference" the handle to get to the data. Clearly, this wouldn't work with unmanaged pointers. What am I not understanding? #include <iostream> int main() { int ^y; int ^a, ^b, ^c; long x; y= gcnew int(100); a=y; b=y; c=y; c= gcnew int(200); b= 300; System::Console::WriteLine(y); // returns 100 (instead of something pointer-like) System::Console::WriteLine(*y); // also returns 100 System::Console::WriteLine(a); // 100 System::Console::WriteLine(b); // 300 System::Console::WriteLine(c); // 200 x = static_cast<long>(y); *y = 10; System::Console::WriteLine(x); // 10 System::Console::WriteLine(y); // 10 System::Console::WriteLine(*y); // 10 }
c++-cli
null
null
null
null
null
open
How do you treat handles in C++/CLI? === I know I'm not asking this quite right, either. Please help me better form my question. I'm having a bit of a hard time getting my mind wrapped around handles -- in some ways, it looks like pointers. But unlike pointers, it seems like I can assign values directly to the handle variable, and it affects the underlying data value, not the handle itself. The test code clearly shows that I get the same value whether I use the handle, or if I "dereference" the handle to get to the data. Clearly, this wouldn't work with unmanaged pointers. What am I not understanding? #include <iostream> int main() { int ^y; int ^a, ^b, ^c; long x; y= gcnew int(100); a=y; b=y; c=y; c= gcnew int(200); b= 300; System::Console::WriteLine(y); // returns 100 (instead of something pointer-like) System::Console::WriteLine(*y); // also returns 100 System::Console::WriteLine(a); // 100 System::Console::WriteLine(b); // 300 System::Console::WriteLine(c); // 200 x = static_cast<long>(y); *y = 10; System::Console::WriteLine(x); // 10 System::Console::WriteLine(y); // 10 System::Console::WriteLine(*y); // 10 }
0
8,860,620
01/14/2012 06:32:36
1,148,973
01/14/2012 06:16:48
1
0
Need help temporarily modifying a variable
I am developing a pong redux in html5 and javascript. I need help modifying it so that upon holding down D, it will subtract 4 from the ball.speedModifier variable, and then add 4 upon releasing D. The reason I don't just set the modifier back to 0 when the key is released, is because I want to have multiple things changing the modifier at once that stack on top of one another. With my current system for detecting key presses, the addition and subtraction of the variable would repeat at 60 FPS, while I only want it to occur once until the amount is subtracted again. Here is a pastie of my code: HTML: http://pastebin.com/txeNftNT Javascript: http://pastebin.com/scpBqGqx
javascript
variables
suggestions
null
null
null
open
Need help temporarily modifying a variable === I am developing a pong redux in html5 and javascript. I need help modifying it so that upon holding down D, it will subtract 4 from the ball.speedModifier variable, and then add 4 upon releasing D. The reason I don't just set the modifier back to 0 when the key is released, is because I want to have multiple things changing the modifier at once that stack on top of one another. With my current system for detecting key presses, the addition and subtraction of the variable would repeat at 60 FPS, while I only want it to occur once until the amount is subtracted again. Here is a pastie of my code: HTML: http://pastebin.com/txeNftNT Javascript: http://pastebin.com/scpBqGqx
0
7,109,152
08/18/2011 14:34:19
900,803
08/18/2011 14:34:19
1
0
correct sign when converting sin to cos (or vice versa) using sin = sqrt(1-cos^2)
I'm using the formula sin = sqrt(1-cos^2) to convert from cos to sin where source angle is not known an a call to arccos is too expensive. This operation obviously produces a wrong sign if source angle is in the 3rd or 4th quadrants. Could someone recommend me an effective way to compute the correct sign? Thank you!
math
trigonometry
null
null
null
08/18/2011 18:38:38
off topic
correct sign when converting sin to cos (or vice versa) using sin = sqrt(1-cos^2) === I'm using the formula sin = sqrt(1-cos^2) to convert from cos to sin where source angle is not known an a call to arccos is too expensive. This operation obviously produces a wrong sign if source angle is in the 3rd or 4th quadrants. Could someone recommend me an effective way to compute the correct sign? Thank you!
2
8,574,193
12/20/2011 10:43:55
238,631
12/25/2009 17:29:59
402
6
Batch statement to convert mp3 to aac
My question is straight forward. I have tow commands to convert a single mp3 file to aac in tow pass. Here are the commands - ffmpeg -i input.mp3 -f wav - | neroAacEnc -ignorelength -q 0.5 -if - -of output.m4a ffmpeg -i output.m4a -y -vn -acodec libvo_aacenc -ab 128k -ar 48000 -ac 2 final.aac Please guide me to some script where I'll be able to convert a folder full to mp3 files in one shot. Suppose if its a VBScript then would it ask for the folders where mp3 are kept. Also a question about `libvo_aacenc` codec, is it the best codec to convert to aac if not then what codec should I use for the second pass for converting m4a to aac with highest compression but good quality. The above settings does not produce too good compression. Please help. Am very new to audio encoding.
audio
encoding
ffmpeg
null
null
12/21/2011 09:19:11
off topic
Batch statement to convert mp3 to aac === My question is straight forward. I have tow commands to convert a single mp3 file to aac in tow pass. Here are the commands - ffmpeg -i input.mp3 -f wav - | neroAacEnc -ignorelength -q 0.5 -if - -of output.m4a ffmpeg -i output.m4a -y -vn -acodec libvo_aacenc -ab 128k -ar 48000 -ac 2 final.aac Please guide me to some script where I'll be able to convert a folder full to mp3 files in one shot. Suppose if its a VBScript then would it ask for the folders where mp3 are kept. Also a question about `libvo_aacenc` codec, is it the best codec to convert to aac if not then what codec should I use for the second pass for converting m4a to aac with highest compression but good quality. The above settings does not produce too good compression. Please help. Am very new to audio encoding.
2
5,168,368
03/02/2011 13:50:47
373,547
06/22/2010 19:27:16
3
0
How to program some XPath functions using Java Design Patterns
I need your help and your experience to realize the best java code using Design Patterns. I must write some custom XPath functions that can: 1. Load a DOM document (I can use a mock object); 2. Check the validity of an user XPath expression; 3. Find and return the DOM node that satisfy the user expression. I must evaluate only absolute expressions ( /... ) that can contain the path expression " .. " and predicates, embedded in square brackets, regarding attributes or leaf nodes, for examples: /com/university/student/../exam /com/university/exam[@tt = 'poo']/vote /com/university/student/number[. = '1234'] I'll use the Composite pattern for the first step, the Chain of Resonsibility for the second step and a Visitor for the third step but I am not sure that this can be the best way to do this. Can Chain of Resonsibility be usefull to check the validity? All suggestions are welcome, thank you in advance for any help you can provide.
java
design-patterns
null
null
null
null
open
How to program some XPath functions using Java Design Patterns === I need your help and your experience to realize the best java code using Design Patterns. I must write some custom XPath functions that can: 1. Load a DOM document (I can use a mock object); 2. Check the validity of an user XPath expression; 3. Find and return the DOM node that satisfy the user expression. I must evaluate only absolute expressions ( /... ) that can contain the path expression " .. " and predicates, embedded in square brackets, regarding attributes or leaf nodes, for examples: /com/university/student/../exam /com/university/exam[@tt = 'poo']/vote /com/university/student/number[. = '1234'] I'll use the Composite pattern for the first step, the Chain of Resonsibility for the second step and a Visitor for the third step but I am not sure that this can be the best way to do this. Can Chain of Resonsibility be usefull to check the validity? All suggestions are welcome, thank you in advance for any help you can provide.
0
8,682,230
12/30/2011 17:38:25
1,123,284
12/30/2011 17:14:57
1
0
Like Button, send button displays random pictures
How do I specify the product image that I want the send button to display. I would like it to display the product on the product page but it seems to just pick up random images from the page.
facebook-like
send
null
null
null
null
open
Like Button, send button displays random pictures === How do I specify the product image that I want the send button to display. I would like it to display the product on the product page but it seems to just pick up random images from the page.
0
9,809,211
03/21/2012 16:53:05
989,749
10/11/2011 14:39:24
301
8
Cant send emails anymore
I'm using simple `mail()` function to send email to the customers on my server - it was working great for about two months. After two months, every email sent from my server was placed in the `Spam` directory on `Hotmail`, `Gmail`, `Yahoo`... And now, when I want to send an email message, it doesnt appear in the Inbox or even in the spam directory. I'm sending about 30 emails per day, so its not that much... What can I do with that?
php
email
freebsd
null
null
03/22/2012 14:46:20
off topic
Cant send emails anymore === I'm using simple `mail()` function to send email to the customers on my server - it was working great for about two months. After two months, every email sent from my server was placed in the `Spam` directory on `Hotmail`, `Gmail`, `Yahoo`... And now, when I want to send an email message, it doesnt appear in the Inbox or even in the spam directory. I'm sending about 30 emails per day, so its not that much... What can I do with that?
2
9,663,166
03/12/2012 07:27:52
617,427
02/15/2011 08:32:34
1
1
Memory leak on WPF/MVVM/PRISM - memory increased when window close and open again
i have a big project and when it start up, it used ~100MB Ram and keep increasing over and over again when i open a window and close it, my app used more 30MB RAM and keep increase, i don't know how to fix this... Please help me resolve this issue. Regards.
wpf
memory
mvvm
prism
null
03/12/2012 19:35:01
not a real question
Memory leak on WPF/MVVM/PRISM - memory increased when window close and open again === i have a big project and when it start up, it used ~100MB Ram and keep increasing over and over again when i open a window and close it, my app used more 30MB RAM and keep increase, i don't know how to fix this... Please help me resolve this issue. Regards.
1
2,337,446
02/25/2010 20:39:13
76,885
03/11/2009 20:28:26
23
2
Is it ok to use a static variable to initalize/register variables?
Language: C++ Toolkit: Qt4 The toolkit I'm using has a static method called `int QEvent::registerEventType()` to register my own event types. When I subclass this `QEvent` I need to supply the base class this value. `QEvent::QEvent(int type)`. Is it ok to use a static variable to call this before application starts? Consider the following: //This is all in my .cpp file static int myEventType; //This will contain my registered type /*If I create a static instance of this class the constructor gets called before the main() function starts. */ class DoRegisterMyEventType { public: DoRegisterMyEventType() { myEventType = QEvent::registerEventType(); } }; static DoRegisterMyEventType doRegisterMyEventType; //Here is the constructor for MyEvent class which inherits QEvent. MyEvent::MyEvent() : QEvent(myEventType) { } How 'evil' is this? I could wrap the whole thing in a namespace to prevent polluting the global namespace.
c++
static-variables
null
null
null
null
open
Is it ok to use a static variable to initalize/register variables? === Language: C++ Toolkit: Qt4 The toolkit I'm using has a static method called `int QEvent::registerEventType()` to register my own event types. When I subclass this `QEvent` I need to supply the base class this value. `QEvent::QEvent(int type)`. Is it ok to use a static variable to call this before application starts? Consider the following: //This is all in my .cpp file static int myEventType; //This will contain my registered type /*If I create a static instance of this class the constructor gets called before the main() function starts. */ class DoRegisterMyEventType { public: DoRegisterMyEventType() { myEventType = QEvent::registerEventType(); } }; static DoRegisterMyEventType doRegisterMyEventType; //Here is the constructor for MyEvent class which inherits QEvent. MyEvent::MyEvent() : QEvent(myEventType) { } How 'evil' is this? I could wrap the whole thing in a namespace to prevent polluting the global namespace.
0
11,567,061
07/19/2012 18:26:24
445,746
09/12/2010 19:45:28
157
6
Where should we put our enums in Java
A short question that always bother me when I develop in Java. I actually use a lot of different enums and I am never sure of where I should put them. Usually, I create a special package named *enumeration* which I am quite sure is not the best practice. Should I put my enums directly in the same package than the group of class it most belong to? Also, would it be the same for another language (C# or C++)?
coding-style
null
null
null
null
07/20/2012 17:10:08
not a real question
Where should we put our enums in Java === A short question that always bother me when I develop in Java. I actually use a lot of different enums and I am never sure of where I should put them. Usually, I create a special package named *enumeration* which I am quite sure is not the best practice. Should I put my enums directly in the same package than the group of class it most belong to? Also, would it be the same for another language (C# or C++)?
1
1,214,040
07/31/2009 18:13:47
90,691
04/14/2009 14:42:27
2,395
131
How to get the length of a MP3 in C#
Yes this is an exact duplicate of [this question][1], but the link given and accepted as answer is not working for me. It is returning incorrect values (a 2 minutes mp3 will be listed as 1'30, 3 minutes as 2'20) with no obvious pattern. So here it is again: how can I get the length of a MP3 using C# ? *or* What am I doing wrong with the [MP3Header class][2]: MP3Header mp3hdr = new MP3Header(); bool boolIsMP3 = mp3hdr.ReadMP3Information("1.mp3"); if(boolIsMP3) Response.Write(mp3hdr.intLength); [1]: http://stackoverflow.com/questions/1007547/finding-mp3-length-in-c [2]: http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=79
c#
mp3
null
null
null
null
open
How to get the length of a MP3 in C# === Yes this is an exact duplicate of [this question][1], but the link given and accepted as answer is not working for me. It is returning incorrect values (a 2 minutes mp3 will be listed as 1'30, 3 minutes as 2'20) with no obvious pattern. So here it is again: how can I get the length of a MP3 using C# ? *or* What am I doing wrong with the [MP3Header class][2]: MP3Header mp3hdr = new MP3Header(); bool boolIsMP3 = mp3hdr.ReadMP3Information("1.mp3"); if(boolIsMP3) Response.Write(mp3hdr.intLength); [1]: http://stackoverflow.com/questions/1007547/finding-mp3-length-in-c [2]: http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=79
0
2,818,284
05/12/2010 11:24:14
260,511
01/27/2010 22:55:12
50
8
UDP server doesnt accept calls from outside.
ive implement simple udp server on my Android device.(sdk 1.5) it works fine when i am runnning a local client on the phone sends through it trigger to my server. but when i try to get udp call from an outside server to my phone, it doesnt work. already make sure the outside server isnt blocked by firewall and it's sending the udp trigger to the right port, which my phone is listening to. i used natstat on the phone and checked that the phone is realy listening to the it's local ip and the port ive setted it to. here is my code of the server:(on the device) / server will listen to one client try { Thread udpServerThread = new Thread() { @Override public void run() { try { // Retrieve the ServerName InetAddress serverAddr = InetAddress .getByName("localhost"); Log.d("UDP", "S: Connecting..."); // Create new UDP-Socket socket = new DatagramSocket(SERVERPORT,serverAddr); byte[] buf = new byte[17]; // * Prepare a UDP-Packet that can contain the data we // * want to receive DatagramPacket packet = new DatagramPacket(buf, buf.length); Log.d("UDP", "S: Receiving..."); // wait to Receive the UDP-Packet socket.receive(packet); Log.d("UDP", "S: Received: '" + new String(packet.getData()) + "'"); acceptedMsg=new String(packet.getData()); notifyService(acceptedMsg); Log.d("UDP", "S: Done."); } catch (Exception e) { Log.e("UDP", "S: Error", e); } } }; udpServerThread.start(); } catch (Exception E) { Log.e("r",E.getMessage()) ; } so as i said, when i try it with local client(seperate thread) which sends udp trigger it works fine, but when i take this client implementation and put it on an outside real server, after UDP being sent, the phone doesnt respond to it. any idea? thanks, ray.
android
null
null
null
null
null
open
UDP server doesnt accept calls from outside. === ive implement simple udp server on my Android device.(sdk 1.5) it works fine when i am runnning a local client on the phone sends through it trigger to my server. but when i try to get udp call from an outside server to my phone, it doesnt work. already make sure the outside server isnt blocked by firewall and it's sending the udp trigger to the right port, which my phone is listening to. i used natstat on the phone and checked that the phone is realy listening to the it's local ip and the port ive setted it to. here is my code of the server:(on the device) / server will listen to one client try { Thread udpServerThread = new Thread() { @Override public void run() { try { // Retrieve the ServerName InetAddress serverAddr = InetAddress .getByName("localhost"); Log.d("UDP", "S: Connecting..."); // Create new UDP-Socket socket = new DatagramSocket(SERVERPORT,serverAddr); byte[] buf = new byte[17]; // * Prepare a UDP-Packet that can contain the data we // * want to receive DatagramPacket packet = new DatagramPacket(buf, buf.length); Log.d("UDP", "S: Receiving..."); // wait to Receive the UDP-Packet socket.receive(packet); Log.d("UDP", "S: Received: '" + new String(packet.getData()) + "'"); acceptedMsg=new String(packet.getData()); notifyService(acceptedMsg); Log.d("UDP", "S: Done."); } catch (Exception e) { Log.e("UDP", "S: Error", e); } } }; udpServerThread.start(); } catch (Exception E) { Log.e("r",E.getMessage()) ; } so as i said, when i try it with local client(seperate thread) which sends udp trigger it works fine, but when i take this client implementation and put it on an outside real server, after UDP being sent, the phone doesnt respond to it. any idea? thanks, ray.
0
3,484,591
08/14/2010 18:28:21
179,542
09/26/2009 18:15:52
1,858
101
Common strategies when defining Spring beans for different environments
What are common strategies for defining a bunch of beans, which are used differently in development and production environments? Let's say I have 2 beans, each implementing the same interface. One bean serves as abstraction for local filesystem, the other connects to a distributed filesystem. To keep the development as steady, as possible, the development environment should use local filesystem implementation, the production release uses distributed filesystem bean. Currently what I'm doing is having two xml definitions. **native.xml** <bean id="resourceSystem" class="com.cust.NativeResourceSystem" /> **distributed.xml** <bean id="resourceSystem" class="com.cust.HadoopResourceSystem"> <constructor-arg name="fs" ref="hdfs" /> </bean> When creating application context I omit either `native.xml` or `distributed.xml` depending on environment and grab the `resourceSystem` bean. Are there any proper tools or best practices in Spring to configure bean definitions for different environments? Thanks.
java
spring
configuration
spring-context
null
null
open
Common strategies when defining Spring beans for different environments === What are common strategies for defining a bunch of beans, which are used differently in development and production environments? Let's say I have 2 beans, each implementing the same interface. One bean serves as abstraction for local filesystem, the other connects to a distributed filesystem. To keep the development as steady, as possible, the development environment should use local filesystem implementation, the production release uses distributed filesystem bean. Currently what I'm doing is having two xml definitions. **native.xml** <bean id="resourceSystem" class="com.cust.NativeResourceSystem" /> **distributed.xml** <bean id="resourceSystem" class="com.cust.HadoopResourceSystem"> <constructor-arg name="fs" ref="hdfs" /> </bean> When creating application context I omit either `native.xml` or `distributed.xml` depending on environment and grab the `resourceSystem` bean. Are there any proper tools or best practices in Spring to configure bean definitions for different environments? Thanks.
0
646,943
03/14/2009 23:39:53
14,663
09/17/2008 01:51:17
2,292
107
What is the worst abuse of XML that you have seen?
XML has it's uses. What is the worst abuse of XML that you have seen? What about XML made it so unsuitable for the task?
xml
null
null
null
null
05/18/2012 17:21:59
not constructive
What is the worst abuse of XML that you have seen? === XML has it's uses. What is the worst abuse of XML that you have seen? What about XML made it so unsuitable for the task?
4
6,061,495
05/19/2011 16:02:50
363,701
06/10/2010 16:40:48
123
5
Jquery to insert src attribute of iframes to be their respective id's
I am trying to dynamically add the src attribute to iframes, taken from their respective id's. Here is what I am working with (using improper use of 'this' but you should get what I am trying to do.) $(this).parent().find("iframe").attr('src', http://www.youtube.com/embed/" + $(this).attr('id')); my iframe code looks something like this: <iframe id = "XpOPKZB8dgY" src=""></iframe> some more context if it helps: <script> $(document).ready(function() { $("iframe").attr('src', ''); $(".details").slideUp(); $("a.date").click(function() { var key = $(this).parent().attr('class'); $(this).parent().children("div").slideToggle('slow'); $(this).parent().find("iframe").attr('src', "http://www.youtube.com/embed/" + $(this).attr('id'); $(document.body).animate({ 'scrollTop': $(this).offset().top }, 1000); }); }); </script> Thanks!
jquery
null
null
null
null
null
open
Jquery to insert src attribute of iframes to be their respective id's === I am trying to dynamically add the src attribute to iframes, taken from their respective id's. Here is what I am working with (using improper use of 'this' but you should get what I am trying to do.) $(this).parent().find("iframe").attr('src', http://www.youtube.com/embed/" + $(this).attr('id')); my iframe code looks something like this: <iframe id = "XpOPKZB8dgY" src=""></iframe> some more context if it helps: <script> $(document).ready(function() { $("iframe").attr('src', ''); $(".details").slideUp(); $("a.date").click(function() { var key = $(this).parent().attr('class'); $(this).parent().children("div").slideToggle('slow'); $(this).parent().find("iframe").attr('src', "http://www.youtube.com/embed/" + $(this).attr('id'); $(document.body).animate({ 'scrollTop': $(this).offset().top }, 1000); }); }); </script> Thanks!
0
8,090,235
11/11/2011 06:00:01
895,518
08/15/2011 19:43:34
1
0
Why won't my CoffeeScript if/else statement work?
I've been trying to update a total price when someone changes the select option. Here is the select element I'm using: <select id="payment_talks_purchased" name="payment[talks_purchased]"> <option value="1">One</option> <option value="2">Three</option> </select> This is the jQuery I'm using: jQuery(document).ready(function() { var price = $(".total-price span.price") var save = $(".savings") $("#payment_talks_purchased").change(function() { var selection = $("#payment_talks_purchased").val() if (selection == 2) { price.html("$12"); save.css("visibility", "visible"); } else if (selection == 1) { price.html("$5"); save.css("visibility", "hidden"); } }); }); It works perfectly. It changes the price to $12 and shows the discount message. If I change the select option back to One/1, it changes the text back to $5 and removes the discount message. I converted this to CoffeeScript but it only works when I make the first change. The price is updated. However, when I try to change it back to option 1, it doesn't update. jQuery -> price = $(".total-price span.price") save = $(".savings") select = $("#payment_talks_purchased") select.change -> selection = select.val() if selection = 2 price.html "$12" return save.css "visibility", "visible" else if selection = 1 price.html "$5" return save.css "visibility", "hidden" I've been working on this for hours and am at my wits end. Any help would be greatly appreciated.
if-statement
coffeescript
null
null
null
null
open
Why won't my CoffeeScript if/else statement work? === I've been trying to update a total price when someone changes the select option. Here is the select element I'm using: <select id="payment_talks_purchased" name="payment[talks_purchased]"> <option value="1">One</option> <option value="2">Three</option> </select> This is the jQuery I'm using: jQuery(document).ready(function() { var price = $(".total-price span.price") var save = $(".savings") $("#payment_talks_purchased").change(function() { var selection = $("#payment_talks_purchased").val() if (selection == 2) { price.html("$12"); save.css("visibility", "visible"); } else if (selection == 1) { price.html("$5"); save.css("visibility", "hidden"); } }); }); It works perfectly. It changes the price to $12 and shows the discount message. If I change the select option back to One/1, it changes the text back to $5 and removes the discount message. I converted this to CoffeeScript but it only works when I make the first change. The price is updated. However, when I try to change it back to option 1, it doesn't update. jQuery -> price = $(".total-price span.price") save = $(".savings") select = $("#payment_talks_purchased") select.change -> selection = select.val() if selection = 2 price.html "$12" return save.css "visibility", "visible" else if selection = 1 price.html "$5" return save.css "visibility", "hidden" I've been working on this for hours and am at my wits end. Any help would be greatly appreciated.
0
10,256,268
04/21/2012 04:41:25
1,043,121
11/12/2011 12:48:34
11
0
How to edit MYSQL queries the way MSSQL is edited?
I am studying PHP right now and our professor thought us how to write MySql queries. I already have background in writing queries in MsSql though. I am quite annoyed with the way we create each table because every time we need to create a table, it seems we need to create another query file after we press the button GO. We are using XAMP and PHPMYADMIN. Not like in MsSql where you can type all the queries in one form then you can just highlight a selected part of the code then press execute (as far as i can remember), then there you have it, the table you wanted. I just want the copy paste version and of course, i can look back at all the queries I've made. I hope you can all imagine what I am saying right now! Thanks!
mysql
sql-server
query
null
null
04/23/2012 02:50:08
off topic
How to edit MYSQL queries the way MSSQL is edited? === I am studying PHP right now and our professor thought us how to write MySql queries. I already have background in writing queries in MsSql though. I am quite annoyed with the way we create each table because every time we need to create a table, it seems we need to create another query file after we press the button GO. We are using XAMP and PHPMYADMIN. Not like in MsSql where you can type all the queries in one form then you can just highlight a selected part of the code then press execute (as far as i can remember), then there you have it, the table you wanted. I just want the copy paste version and of course, i can look back at all the queries I've made. I hope you can all imagine what I am saying right now! Thanks!
2
5,904,545
05/05/2011 21:54:10
20,471
09/22/2008 14:22:51
7,061
399
Where does it say the name of the database/file I'm in?
I recently upgraded to Access 2007 and now the file name / database name does not appear in the title bar like it used to. Is there a way I can display it or find it somewhere else easily?
ms-access-2007
null
null
null
null
null
open
Where does it say the name of the database/file I'm in? === I recently upgraded to Access 2007 and now the file name / database name does not appear in the title bar like it used to. Is there a way I can display it or find it somewhere else easily?
0
8,663,520
12/29/2011 02:53:07
1,100,937
12/15/2011 23:08:58
13
0
Sanitization of data
I was told to use a particular web service and write application in PHP which takes a name of video game and stores it in database. So is there a way or what things should be kept in mind in order to sanitize the data?
web-services
php5
codeigniter
sanitization
null
08/01/2012 14:02:03
not a real question
Sanitization of data === I was told to use a particular web service and write application in PHP which takes a name of video game and stores it in database. So is there a way or what things should be kept in mind in order to sanitize the data?
1
9,036,988
01/27/2012 16:49:44
318,535
04/16/2010 13:45:41
405
31
Drop DB using MSBuild even if in use
I am using the following command in my MSBuild file to drop a database: sqlcmd -E -S <ServerName> -Q "DROP DATABASE <DBName>". But sometimes I get the error "Cannot drop database <DBName> because it is currently in use." What command should I use so that the DB is dropped even if it is in use?
sql-server
msbuild
sqlcmd
null
null
null
open
Drop DB using MSBuild even if in use === I am using the following command in my MSBuild file to drop a database: sqlcmd -E -S <ServerName> -Q "DROP DATABASE <DBName>". But sometimes I get the error "Cannot drop database <DBName> because it is currently in use." What command should I use so that the DB is dropped even if it is in use?
0
8,384,514
12/05/2011 11:20:54
581,268
11/28/2010 10:24:26
173
10
What slider does the BBC use?
I would like to know if you could tell me if there is a jQuery Plugin exactly like: http://www.bbc.co.uk/ 's "Discovery Zone". Would be helpful if you have some ideas. To be on the same page: I am talking about this area: http://imgur.com/sWpmw Thank you very much in advance.
javascript
jquery
slider
gallery
null
12/05/2011 11:36:37
off topic
What slider does the BBC use? === I would like to know if you could tell me if there is a jQuery Plugin exactly like: http://www.bbc.co.uk/ 's "Discovery Zone". Would be helpful if you have some ideas. To be on the same page: I am talking about this area: http://imgur.com/sWpmw Thank you very much in advance.
2
8,953,655
01/21/2012 14:17:29
815,051
06/25/2011 05:42:39
1
0
how to highlight my java syntax?
from a week or so i m trying to build a app that highlights my java syntax for eg int , String , class and all but i don't know what can i use to change the foreground of this words to some color say blue i have googled but that didnt helped , i m not demanding library that will simplify my work i need to learn how most editors do this kind of this , can any one explain me please ? note : i m already fimiliar with highlighter , and i m not asking you about that. if you have any algorithm or something to say me , you are most welcome !
java
html
swing
null
null
01/21/2012 14:39:55
not a real question
how to highlight my java syntax? === from a week or so i m trying to build a app that highlights my java syntax for eg int , String , class and all but i don't know what can i use to change the foreground of this words to some color say blue i have googled but that didnt helped , i m not demanding library that will simplify my work i need to learn how most editors do this kind of this , can any one explain me please ? note : i m already fimiliar with highlighter , and i m not asking you about that. if you have any algorithm or something to say me , you are most welcome !
1
6,981,905
08/08/2011 12:12:28
882,993
08/07/2011 17:45:31
16
1
how can I dynamically create a tweet button
I'm currently trying to create a tweet button with the horizontal count feature dynamically: **JavaScript** var twitter = document.createElement('a'); twitter.setAttribute('href', 'http://twitter.com/share'); twitter.setAttribute('class', 'twitter-share-button twitter-tweet'); twitter.setAttribute('data-url','http://mindcloud.co.uk/idea/?idea=' + this.id); twitter.setAttribute('data-count', 'horizontal'); twitter.setAttribute('data-via', 'jtbrowncouk'); twitter.style.top = '20px'; twitter.style.left = '300px'; twitter.innerHTML = "Tweet"; The problem i'm having is that the button is being displayed as a text link, not as a button with the horizontal count box. I've created a facebook button in the same way, which works correctly, however to make it work I use the following: **JavaScript** var facebook = document.createElement('fb:like'); facebook.setAttribute('id', 'like'+this.id); facebook.setAttribute('href', 'http://mindcloud.co.uk/idea/?idea=' + this.id); facebook.setAttribute('layout', 'button_count'); facebook.setAttribute('send', 'false'); facebook.setAttribute('width' , '300'); facebook.setAttribute('font', ''); facebook.setAttribute('show_faces', 'true'); facebook.style.top = '0px'; facebook.style.left = '300px'; using the following: FB.XFBML.parse(); to parse and draw the button. `FB.XFBML.parse()` comes from http://connect.facebook.net/en_US/all.js When I create the Tweet button statically inside a .html file it works correctly. I'm including the following script within my index page where the tweet button should be created dynamically: <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> If you can see what i'm doing incorrectly please inform me!
javascript
twitter
dhtml
null
null
null
open
how can I dynamically create a tweet button === I'm currently trying to create a tweet button with the horizontal count feature dynamically: **JavaScript** var twitter = document.createElement('a'); twitter.setAttribute('href', 'http://twitter.com/share'); twitter.setAttribute('class', 'twitter-share-button twitter-tweet'); twitter.setAttribute('data-url','http://mindcloud.co.uk/idea/?idea=' + this.id); twitter.setAttribute('data-count', 'horizontal'); twitter.setAttribute('data-via', 'jtbrowncouk'); twitter.style.top = '20px'; twitter.style.left = '300px'; twitter.innerHTML = "Tweet"; The problem i'm having is that the button is being displayed as a text link, not as a button with the horizontal count box. I've created a facebook button in the same way, which works correctly, however to make it work I use the following: **JavaScript** var facebook = document.createElement('fb:like'); facebook.setAttribute('id', 'like'+this.id); facebook.setAttribute('href', 'http://mindcloud.co.uk/idea/?idea=' + this.id); facebook.setAttribute('layout', 'button_count'); facebook.setAttribute('send', 'false'); facebook.setAttribute('width' , '300'); facebook.setAttribute('font', ''); facebook.setAttribute('show_faces', 'true'); facebook.style.top = '0px'; facebook.style.left = '300px'; using the following: FB.XFBML.parse(); to parse and draw the button. `FB.XFBML.parse()` comes from http://connect.facebook.net/en_US/all.js When I create the Tweet button statically inside a .html file it works correctly. I'm including the following script within my index page where the tweet button should be created dynamically: <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> If you can see what i'm doing incorrectly please inform me!
0
3,151,153
06/30/2010 16:08:21
366,797
01/23/2010 04:19:59
187
28
Re-Invent a better wheel or make ado with available RDBMS-based app development products?
My first experience developing DBMS-based apps was with IMS, using COBOL calls to DLI. Later on, I worked with several other products, on a smaller scale, such as: DBASE, INFORMIX 3.3/SQL and ORACLE on DOS, UNIX-XENIX and VAX/VMS platforms. When I was a product planner for AT&T-IS Labs, I had the opportunity to eval several RDBMS-based app development products. Since those days until present, I have not come across a truly decent rapid development (RDS) product which allowed me to quickly generate a prototype and easily customize it to achieve desired functionality. Informix-SQL was one product which came close to achieving this, however some customization required lengthy and cumbersome ESQL/C or re-writing the app with I4GL. Progress RDBMS had good features, but no code generation and was not SQL compatible. I considered Oracle to be functionally rich but lacked RDS capabilites that I've been seeking. It would be great if an RDS app generation product existed which had a combination of all the best features from the currently availble products. Perhaps some day, with so many experienced app developers in this realm, we could design and produce an ideal RDBMS-based RDS!
mysql
database
oracle
rdbms
informix
07/02/2010 19:18:21
not a real question
Re-Invent a better wheel or make ado with available RDBMS-based app development products? === My first experience developing DBMS-based apps was with IMS, using COBOL calls to DLI. Later on, I worked with several other products, on a smaller scale, such as: DBASE, INFORMIX 3.3/SQL and ORACLE on DOS, UNIX-XENIX and VAX/VMS platforms. When I was a product planner for AT&T-IS Labs, I had the opportunity to eval several RDBMS-based app development products. Since those days until present, I have not come across a truly decent rapid development (RDS) product which allowed me to quickly generate a prototype and easily customize it to achieve desired functionality. Informix-SQL was one product which came close to achieving this, however some customization required lengthy and cumbersome ESQL/C or re-writing the app with I4GL. Progress RDBMS had good features, but no code generation and was not SQL compatible. I considered Oracle to be functionally rich but lacked RDS capabilites that I've been seeking. It would be great if an RDS app generation product existed which had a combination of all the best features from the currently availble products. Perhaps some day, with so many experienced app developers in this realm, we could design and produce an ideal RDBMS-based RDS!
1
7,105,999
08/18/2011 10:32:07
889,475
08/11/2011 08:06:57
1
0
Struts1 - Passing objects between servlets and jsp
What is the best way to pass objects between servlets and JSP when using Struts1? Help needed.
java
struts1
null
null
null
08/18/2011 11:23:17
not a real question
Struts1 - Passing objects between servlets and jsp === What is the best way to pass objects between servlets and JSP when using Struts1? Help needed.
1
8,260,418
11/24/2011 17:00:06
1,064,373
11/24/2011 16:58:24
1
0
What does this PHP do? Haven't seen it before
I have a php file, im just wondering what it does. Im studying php so any help is appreciated Here it is <?PHP $items = Array( //added-10-nov-2011// "XX11113154005564,37e9cece4d9f09fd50e4932a9873b685", "XX11113164400456,6e1e5eba7c41984c87e13d80348f86dc", "XX11113173701214,9cc77e266e4c0f172b4b98652c69dbe5", "XX11113182201437,1a20947a598d25aa4263436eae0950c2", "XX11113185805873,a79964c2355d1320599e9b28ac716746", "XX11113193407109,f8de195a951e9dff88265e832e08f7a3", ); echo $items[array_rand($items)]; /* //old array-initcommit// "XX11109392408136,f7b973046bcf801350d3c77b609b462b", "XX11111160004664,cffa99324444334671b0ec2670e74c70", "XX11111171804325,3676114df09bf484e39316462ea52195", "XX11111180400794,28551d27fd35b3fb1e7e8c5f6a2219d5", "XX11111184609870,767011776555c44b329f2acb3b4e3cd9", "XX11110221705625,751dfb5def4ffd805cb21b0188b37ee2", "XX11110255402072,408220eb85245d6e0d88c48cf18c909b", "XX11110262508864,c8a3430bb7adaab1e3c5768734d64ba3", "XX11110271704034,fa19ea833977ce4fcd5286282470c999", "XX11110275703702,994791b261a96a14f38b55b6967d0c83", */ ?>
php
null
null
null
null
11/24/2011 21:25:32
not a real question
What does this PHP do? Haven't seen it before === I have a php file, im just wondering what it does. Im studying php so any help is appreciated Here it is <?PHP $items = Array( //added-10-nov-2011// "XX11113154005564,37e9cece4d9f09fd50e4932a9873b685", "XX11113164400456,6e1e5eba7c41984c87e13d80348f86dc", "XX11113173701214,9cc77e266e4c0f172b4b98652c69dbe5", "XX11113182201437,1a20947a598d25aa4263436eae0950c2", "XX11113185805873,a79964c2355d1320599e9b28ac716746", "XX11113193407109,f8de195a951e9dff88265e832e08f7a3", ); echo $items[array_rand($items)]; /* //old array-initcommit// "XX11109392408136,f7b973046bcf801350d3c77b609b462b", "XX11111160004664,cffa99324444334671b0ec2670e74c70", "XX11111171804325,3676114df09bf484e39316462ea52195", "XX11111180400794,28551d27fd35b3fb1e7e8c5f6a2219d5", "XX11111184609870,767011776555c44b329f2acb3b4e3cd9", "XX11110221705625,751dfb5def4ffd805cb21b0188b37ee2", "XX11110255402072,408220eb85245d6e0d88c48cf18c909b", "XX11110262508864,c8a3430bb7adaab1e3c5768734d64ba3", "XX11110271704034,fa19ea833977ce4fcd5286282470c999", "XX11110275703702,994791b261a96a14f38b55b6967d0c83", */ ?>
1
1,879,664
12/10/2009 09:03:43
183,828
10/04/2009 03:38:22
225
11
A List processing problem in F#
I am trying to do [problem 11][1] in Project Euler. numDivisor64 is to calculate number of divisors. I wrote this F# code: let problem12 = {1L..300000L} |> Seq.map (fun x->x*(x+1L)/2L) |> Seq.map numDivisor64 |> Seq.filter (fun x->x>500L) The problem asks to find the number rather than its # of divisors. Besides writing this in a less compact way using loops or recursion, any beautiful method? Another problem, I occasionally find that I need to convert a 32-bit int version of code to a 64-bit one by adding 'L' to all the numbers. Is there a way to avoid this? Anything like c++ template? let numDivisor64 n = let rec countd n d = if n%d=0L then let n2, cnt = countd (n/d) d n2, cnt+1L else n, 0L let rec collect n d = if n < d then 1L elif n%d=0L then let n2, cnt = countd n d (cnt+1L) * (collect n2 d) else collect n (d+1L) collect n 2L [1]: http://projecteuler.net/index.php?section=problems&id=12
f#
list
null
null
null
null
open
A List processing problem in F# === I am trying to do [problem 11][1] in Project Euler. numDivisor64 is to calculate number of divisors. I wrote this F# code: let problem12 = {1L..300000L} |> Seq.map (fun x->x*(x+1L)/2L) |> Seq.map numDivisor64 |> Seq.filter (fun x->x>500L) The problem asks to find the number rather than its # of divisors. Besides writing this in a less compact way using loops or recursion, any beautiful method? Another problem, I occasionally find that I need to convert a 32-bit int version of code to a 64-bit one by adding 'L' to all the numbers. Is there a way to avoid this? Anything like c++ template? let numDivisor64 n = let rec countd n d = if n%d=0L then let n2, cnt = countd (n/d) d n2, cnt+1L else n, 0L let rec collect n d = if n < d then 1L elif n%d=0L then let n2, cnt = countd n d (cnt+1L) * (collect n2 d) else collect n (d+1L) collect n 2L [1]: http://projecteuler.net/index.php?section=problems&id=12
0
9,463,246
02/27/2012 10:12:36
1,215,518
02/17/2012 06:07:41
6
0
Difference between device id and registration id in c2dm
I got both device id and registration id from c2dm. Device id is like this "a63d1a55d0c6d17" registration id is like this "APA91bET_aQJyYTHBkS1Y1Cb3t5ngWVURuWmDYhY8vP_MshOmmjKT0JsyZDtjz7CzHIcxXuPuUr3XzkCxXLJU_ACQmS1bjhl5eSbPNX1sJvRBG-KmHIF22aJfCPDCAXvIgVrjoGAKS0eaWsHaFetTmuZCbztusxNc9jsfesta5x5LHezNI82vqM"
android
android-c2dm
null
null
null
02/28/2012 13:58:16
not a real question
Difference between device id and registration id in c2dm === I got both device id and registration id from c2dm. Device id is like this "a63d1a55d0c6d17" registration id is like this "APA91bET_aQJyYTHBkS1Y1Cb3t5ngWVURuWmDYhY8vP_MshOmmjKT0JsyZDtjz7CzHIcxXuPuUr3XzkCxXLJU_ACQmS1bjhl5eSbPNX1sJvRBG-KmHIF22aJfCPDCAXvIgVrjoGAKS0eaWsHaFetTmuZCbztusxNc9jsfesta5x5LHezNI82vqM"
1
11,168,787
06/23/2012 10:31:34
629,760
02/23/2011 07:55:16
6
0
Pjax on Secure Web Sites
I am wondering that using pjax on secure web sites (admin area, user area etc, using session and cookie not https) is safe? Thank You
jquery
security
jquery-plugins
web-security
pjax
06/24/2012 02:52:13
not a real question
Pjax on Secure Web Sites === I am wondering that using pjax on secure web sites (admin area, user area etc, using session and cookie not https) is safe? Thank You
1
9,860,871
03/25/2012 14:20:33
871,026
07/30/2011 20:23:27
38
0
Building Spring example for Flex in Maven
Has anyone got a working example of a Spring supported Flex app which builds using maven? I checked out the Java/Flex example at: svn co http://svn.springbyexample.org/flex/simple-flex-webapp/tags/1.1/ simple-flex-webapp but got the following error: [ERROR] Failed to execute goal on project simple-flex-webapp: Could not resolvedependencies for project org.springbyexample.web:simple-flex-webapp:war:1.1: Failure to find com.adobe.flex.framework:flex-framework:pom:3.2.0.3958 in http://www.springbyexample.org/maven/repo was cached in the local repository, resolution will not be reattempted until the update interval of springbyexample.org has elapsed or updates are forced I tried tweaking the flex-framework dependency version with no success.
java
flex
spring
maven
null
null
open
Building Spring example for Flex in Maven === Has anyone got a working example of a Spring supported Flex app which builds using maven? I checked out the Java/Flex example at: svn co http://svn.springbyexample.org/flex/simple-flex-webapp/tags/1.1/ simple-flex-webapp but got the following error: [ERROR] Failed to execute goal on project simple-flex-webapp: Could not resolvedependencies for project org.springbyexample.web:simple-flex-webapp:war:1.1: Failure to find com.adobe.flex.framework:flex-framework:pom:3.2.0.3958 in http://www.springbyexample.org/maven/repo was cached in the local repository, resolution will not be reattempted until the update interval of springbyexample.org has elapsed or updates are forced I tried tweaking the flex-framework dependency version with no success.
0
5,489,178
03/30/2011 16:26:54
684,317
03/30/2011 16:26:54
1
0
how to let the size of array to grow and shrink automatically ?
int filename = 100; String[] fileName = new String[filename]; int a = 0; int totalCount = 0; int wordCount = 0; // Count the number of documents containing the query System.out.println("Please enter the query :"); Scanner scan2 = new Scanner(System.in); String word2 = scan2.nextLine(); String[] array2 = word2.split(" "); int[] numofDoc = new int[array2.length]; for (int b = 0; b < array2.length; b++) { numofDoc[b] = 0; for (int i = 0; i < filename; i++) { try { BufferedReader bf = new BufferedReader(new FileReader( "C:\\Users\\user\\fypworkspace\\FYP\\abc" + i + ".txt")); int matchedWord = 0; Scanner s2 = new Scanner(bf); { while (s2.hasNext()) { if (s2.next().equals(array2[b])) matchedWord++; } } if (matchedWord > 0) numofDoc[b]++; } catch (IOException e) { System.out.println(); } } _resultArea.append(array2[b] + " --> This number of files that contain this term " + numofDoc[b]+ newline); } hi, this is my code for calculating number of files that contain a specific input keyed in by the user. This code analyze a folder of text files and search the text files whether it has the input or not. The problem i facing now is, i now declaring the array size of 100. It means that it will process 100 text files whether the folder have 100 files or not. **How do i let the program to process exact number of text files inside a folder ?** Note : The number of text files is dynamic. It doesnt has a constant number of text files inside the folder.
java
null
null
null
null
null
open
how to let the size of array to grow and shrink automatically ? === int filename = 100; String[] fileName = new String[filename]; int a = 0; int totalCount = 0; int wordCount = 0; // Count the number of documents containing the query System.out.println("Please enter the query :"); Scanner scan2 = new Scanner(System.in); String word2 = scan2.nextLine(); String[] array2 = word2.split(" "); int[] numofDoc = new int[array2.length]; for (int b = 0; b < array2.length; b++) { numofDoc[b] = 0; for (int i = 0; i < filename; i++) { try { BufferedReader bf = new BufferedReader(new FileReader( "C:\\Users\\user\\fypworkspace\\FYP\\abc" + i + ".txt")); int matchedWord = 0; Scanner s2 = new Scanner(bf); { while (s2.hasNext()) { if (s2.next().equals(array2[b])) matchedWord++; } } if (matchedWord > 0) numofDoc[b]++; } catch (IOException e) { System.out.println(); } } _resultArea.append(array2[b] + " --> This number of files that contain this term " + numofDoc[b]+ newline); } hi, this is my code for calculating number of files that contain a specific input keyed in by the user. This code analyze a folder of text files and search the text files whether it has the input or not. The problem i facing now is, i now declaring the array size of 100. It means that it will process 100 text files whether the folder have 100 files or not. **How do i let the program to process exact number of text files inside a folder ?** Note : The number of text files is dynamic. It doesnt has a constant number of text files inside the folder.
0
5,165,271
03/02/2011 08:55:31
639,304
03/01/2011 12:08:26
1
0
cocoa-objective c
scm connectivity to internet is not working. it is showing the fallowing error: RA layer faild
cocoa
null
null
null
null
03/02/2011 13:15:22
not a real question
cocoa-objective c === scm connectivity to internet is not working. it is showing the fallowing error: RA layer faild
1
11,452,034
07/12/2012 12:37:50
300,593
03/24/2010 07:31:03
100
7
POSIX mqueue and System V msg queue, which is more efficient?
I have read this article, > http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi/0650/bks/SGI_Developer/books/T_IRIX_Prog/sgi_html/ch06.html but it didn't talk much on performace.
linux
posix
ipc
mq
mqueue
07/12/2012 19:35:49
not constructive
POSIX mqueue and System V msg queue, which is more efficient? === I have read this article, > http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi/0650/bks/SGI_Developer/books/T_IRIX_Prog/sgi_html/ch06.html but it didn't talk much on performace.
4
383,784
12/20/2008 21:49:54
35,594
11/07/2008 19:17:39
37
0
How to minimize code area in Eclipse?
There is a nice feature in Visual Studio: you can create special code areas which can be minimized just as class methods in Eclipse are minimized. Is there a way do make such pleasant feature in Eclipse?
eclipse
minimize
null
null
null
null
open
How to minimize code area in Eclipse? === There is a nice feature in Visual Studio: you can create special code areas which can be minimized just as class methods in Eclipse are minimized. Is there a way do make such pleasant feature in Eclipse?
0
3,696,206
09/12/2010 19:21:02
445,739
09/12/2010 19:21:02
1
0
scalable layout for storing and displaying user uploaded images
I am trying to figure out the best way to layout my directory structure so that I can store images form multiple users in a way that would be scalable when used in combination with a database. The database will store the absolute path to each image. So lets assume I was dealing with users' profile images each of which would have thumbnails of a different size. Would the structure below be sufficient: /profile_images /user_1 /image_a image_a.jpg image_a_small.jpg image_a_tiny.jpg /image_b image_b.jpg image_b_small.jpg image_b_tiny.jpg /user_2 ... /user_3 ... So my question is whether such an approach would be good. If not, could someone please suggest a better approach that uses a database and filesystem to manage image uploads. Thanks
database
django
image
file-upload
twitter
null
open
scalable layout for storing and displaying user uploaded images === I am trying to figure out the best way to layout my directory structure so that I can store images form multiple users in a way that would be scalable when used in combination with a database. The database will store the absolute path to each image. So lets assume I was dealing with users' profile images each of which would have thumbnails of a different size. Would the structure below be sufficient: /profile_images /user_1 /image_a image_a.jpg image_a_small.jpg image_a_tiny.jpg /image_b image_b.jpg image_b_small.jpg image_b_tiny.jpg /user_2 ... /user_3 ... So my question is whether such an approach would be good. If not, could someone please suggest a better approach that uses a database and filesystem to manage image uploads. Thanks
0
6,266,166
06/07/2011 13:45:31
212,211
11/16/2009 16:52:56
2,627
207
Re-structuring CVS repositories and retaining history
Currently, we have the following in our CVS Repository : Module1 | | +-----A | +-----B We want o restructure this module such that the sub directories A and B appears as high level modules. What I could do is to check Module1 out and then pull A and B out and then do a fresh `cvs add` for A and B individually, thus making them new cvs modules. But I am sure if I do this, I am going to lose the history as well as I would have to remove all internal CVS folders under A and B. Q1: So is there a way to restructure this and retain the history? What I essentially am trying to do is to filter out access between A and B. So - Q2: Is there a way to set up security so that certain users can check out Module1/A only and not Module1/B ? and vice-versa?
repository
cvs
history
null
null
null
open
Re-structuring CVS repositories and retaining history === Currently, we have the following in our CVS Repository : Module1 | | +-----A | +-----B We want o restructure this module such that the sub directories A and B appears as high level modules. What I could do is to check Module1 out and then pull A and B out and then do a fresh `cvs add` for A and B individually, thus making them new cvs modules. But I am sure if I do this, I am going to lose the history as well as I would have to remove all internal CVS folders under A and B. Q1: So is there a way to restructure this and retain the history? What I essentially am trying to do is to filter out access between A and B. So - Q2: Is there a way to set up security so that certain users can check out Module1/A only and not Module1/B ? and vice-versa?
0
6,647,144
07/11/2011 07:46:43
68,571
02/19/2009 19:03:31
1,925
30
web sql database foreign key support
I'm testing this statement in Safari 5.0.5, but I get an error before FOREIGN: CREATE TABLE IF NOT EXISTS Idea ( id INTEGER PRIMARY KEY, title TEXT NOT NULL, content TEXT NOT NULL, created TIMESTAMP NOT NULL, sketchID INTEGER, categoryID INTEGER NOT NULL, FOREIGN KEY (sketchID) REFERENCES (Sketch), FOREIGN KEY (categoryID) REFERENCES (Category)); Where is the error in this SQL statement?
html5
foreign-keys
web-database
null
null
null
open
web sql database foreign key support === I'm testing this statement in Safari 5.0.5, but I get an error before FOREIGN: CREATE TABLE IF NOT EXISTS Idea ( id INTEGER PRIMARY KEY, title TEXT NOT NULL, content TEXT NOT NULL, created TIMESTAMP NOT NULL, sketchID INTEGER, categoryID INTEGER NOT NULL, FOREIGN KEY (sketchID) REFERENCES (Sketch), FOREIGN KEY (categoryID) REFERENCES (Category)); Where is the error in this SQL statement?
0
205,534
10/15/2008 16:58:51
366,094
10/07/2008 11:03:32
76
3
Database for ENORMOUS amounts of data?
Here, my boss, is asking me and the people at the office which DataBase engine could be the best for a very very huge ammount of data. We have been disussing a while in the office and no conclusion came... But as I think that this is a pretty interesting question for discussing
databases
null
null
null
null
12/02/2011 23:46:29
not constructive
Database for ENORMOUS amounts of data? === Here, my boss, is asking me and the people at the office which DataBase engine could be the best for a very very huge ammount of data. We have been disussing a while in the office and no conclusion came... But as I think that this is a pretty interesting question for discussing
4
3,797,273
09/26/2010 09:50:21
63,051
02/05/2009 20:53:34
7,560
105
Simple script to find "lowest" available domain name
I need a script to find out what is the lowest available domain name with a give TLD (say .com, .info, or .net). For example, [1000423.com][1] is free but [1000.com][2] is taken. Probably my spammiest question so far. [1]: http://www.who.is/whois/1000423.com/ [2]: http://www.who.is/whois/1000.com/
dns
domain
internet
robot
null
null
open
Simple script to find "lowest" available domain name === I need a script to find out what is the lowest available domain name with a give TLD (say .com, .info, or .net). For example, [1000423.com][1] is free but [1000.com][2] is taken. Probably my spammiest question so far. [1]: http://www.who.is/whois/1000423.com/ [2]: http://www.who.is/whois/1000.com/
0
10,523,652
05/09/2012 20:30:18
1,382,792
05/08/2012 17:59:27
1
0
What is stept and How to apply Design pattern in any project
To apply design pattern in project .. What is the steps I follow it to apply design pattern in any project
design-patterns
design
null
null
null
05/10/2012 01:38:00
not a real question
What is stept and How to apply Design pattern in any project === To apply design pattern in project .. What is the steps I follow it to apply design pattern in any project
1