PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
9,938,878
03/30/2012 07:44:55
1,302,702
03/30/2012 07:40:36
1
0
What‘s do "Performance isolation" and "Fairness isolation" mean?
Are there any information about the two terms? Please let me know. Thanks!
performance
isolation
null
null
null
03/31/2012 23:25:29
off topic
What‘s do "Performance isolation" and "Fairness isolation" mean? === Are there any information about the two terms? Please let me know. Thanks!
2
4,314,423
11/30/2010 13:47:18
310,662
04/07/2010 05:52:50
177
13
PHP and Python static methods in objects, two different worlds...?
i'm php coder, trying to get into python world, and it's very hard for me. Biggest enjoy of static methods in php is automatic builder of instance. No need to declare object, if you needed it once, in every file (or with different constructor params , in one line) <?php class Foo { function __constructor__(){ $this->var = 'blah'; } public static function aStaticMethod() { return $this->var; } } echo Foo::aStaticMethod(); ?> we can call constructor from static method don't we? and we can access everything in class as it would be simple method ... we can even have STATIC CONSTRUCTOR in php class and call it like so: Object::construct()->myMethod(); (to pass different params every time) but not in python???? @staticmethod makes method in class a simple function that doesn't see totally anything ?? class socket(object): def __init__(self): self.oclass = otherclass() print 'test' # does this constructor called at all when calling static method?? def ping(): return self.oclass.send('PING') # i can't access anything!!! print Anidb.ping() I can't access anything from that god damned static method, it's like a standalone function or something like this..?? Maybe I'm using the wrong decorator? Maybe there's something like php offers with static methods in python? 1) Please tell why static methods is isolated 2) Please tell me how to make the same behavior like php static methods have. 3) Please tell me alternative practical use of this, if php static methods behavior is a bad thing P.s. the goal of all this to write totally less code as much as possible. P.p.s Heavy commenting of sample code is appreciated Thank you.
php
python
best-practies
null
null
null
open
PHP and Python static methods in objects, two different worlds...? === i'm php coder, trying to get into python world, and it's very hard for me. Biggest enjoy of static methods in php is automatic builder of instance. No need to declare object, if you needed it once, in every file (or with different constructor params , in one line) <?php class Foo { function __constructor__(){ $this->var = 'blah'; } public static function aStaticMethod() { return $this->var; } } echo Foo::aStaticMethod(); ?> we can call constructor from static method don't we? and we can access everything in class as it would be simple method ... we can even have STATIC CONSTRUCTOR in php class and call it like so: Object::construct()->myMethod(); (to pass different params every time) but not in python???? @staticmethod makes method in class a simple function that doesn't see totally anything ?? class socket(object): def __init__(self): self.oclass = otherclass() print 'test' # does this constructor called at all when calling static method?? def ping(): return self.oclass.send('PING') # i can't access anything!!! print Anidb.ping() I can't access anything from that god damned static method, it's like a standalone function or something like this..?? Maybe I'm using the wrong decorator? Maybe there's something like php offers with static methods in python? 1) Please tell why static methods is isolated 2) Please tell me how to make the same behavior like php static methods have. 3) Please tell me alternative practical use of this, if php static methods behavior is a bad thing P.s. the goal of all this to write totally less code as much as possible. P.p.s Heavy commenting of sample code is appreciated Thank you.
0
7,665,536
10/05/2011 17:57:15
220,180
11/27/2009 17:56:06
346
6
SEO optimization url and routes, deal with not unique parameters?
Everyone knows that: www.example.com/city/new-york is much better than: www.example.com/city?id=43567 Fine, meaningful and human-readable. But how to deal with slug or not unique names (e.g. the city of *Naples* in both Italy and USA)? What i mean is that when the user click on that link i should query the database for the city: i can't use the slug new-work as it's **not unique** and the function for calculating the slug is **not invertible**. ***Question***: should i store the slug in the database for the purpose of url generating or should i append the *id* after/before the city slug? Which method is better from SEO point of view? Does any other way exist? www.example.com/city/43567/naples www.example.com/city/naples-43567
url
routing
url-rewriting
seo
null
null
open
SEO optimization url and routes, deal with not unique parameters? === Everyone knows that: www.example.com/city/new-york is much better than: www.example.com/city?id=43567 Fine, meaningful and human-readable. But how to deal with slug or not unique names (e.g. the city of *Naples* in both Italy and USA)? What i mean is that when the user click on that link i should query the database for the city: i can't use the slug new-work as it's **not unique** and the function for calculating the slug is **not invertible**. ***Question***: should i store the slug in the database for the purpose of url generating or should i append the *id* after/before the city slug? Which method is better from SEO point of view? Does any other way exist? www.example.com/city/43567/naples www.example.com/city/naples-43567
0
6,942,535
08/04/2011 13:44:03
878,706
08/04/2011 13:44:03
1
0
JSF 2 with PrimeFaces: Incell-Editing, no updated object in RowEditEvent parameter
I'm using Mojarra 2.0.3 on Tomcat 6.0 with Primefaces 2. I got a dataTable and want to make it incell-editable. Everything works fine, but my rowEditListener with the parameter "RowEditEvent event" returns no new object. public void onEditRow(RowEditEvent event) { Nutzer nutzer = (Nutzer) event.getObject(); // Get object from event System.out.println(nutzer.toString()); // This prints the OLD data, // not the data I wrote into the form nutzerManager.editNutzer(nutzer); // Write into the database } The managed bean is in session scope. Why does the listener only receive the old data, not the data I wrote into the incell-formular? Hope, you can help me. Greets from germany, Andy
java
jsf
datatable
primefaces
null
null
open
JSF 2 with PrimeFaces: Incell-Editing, no updated object in RowEditEvent parameter === I'm using Mojarra 2.0.3 on Tomcat 6.0 with Primefaces 2. I got a dataTable and want to make it incell-editable. Everything works fine, but my rowEditListener with the parameter "RowEditEvent event" returns no new object. public void onEditRow(RowEditEvent event) { Nutzer nutzer = (Nutzer) event.getObject(); // Get object from event System.out.println(nutzer.toString()); // This prints the OLD data, // not the data I wrote into the form nutzerManager.editNutzer(nutzer); // Write into the database } The managed bean is in session scope. Why does the listener only receive the old data, not the data I wrote into the incell-formular? Hope, you can help me. Greets from germany, Andy
0
6,370,291
06/16/2011 10:16:50
801,231
06/16/2011 10:16:50
1
0
Ruby Shoes and MySQL: GUI freezes, should I use threads?
I'm trying to learn Shoes and decided to make a simple GUI to run a SQL-script line-by-line. My problem is that in GUI pressing the button, which executes my function, freezes the GUI for the time it takes the function to execute the script. With long scripts this might take several minutes. Someone had a similar problem ([http://www.stackoverflow.com/questions/958662/shoes-and-heavy-operation-in-separate-thread][1]) and the suggestion was just to put intensive stuff under a Thread: if I copy the math-code from previously mentioned thread and replace my mysql-code the GUI works without freezing, so that probably hints to a problem with how I'm using the mysql-adapter? Below is a simplified version of the code: problem.rb: __________ # copy the mysql-gem if not in gem-folder already Shoes.setup do gem 'mysql' end require "mysql" # the function that does the mysql stuff def someFunction con = Mysql::real_connect("myserver", "user", "pass", "db") scriptFile = File.open("myfile.sql", "r") script = scriptFile.read scriptFile.close result = [] script.each_line do |line| result << con.query(line) end return result end # the Shoes app with the Thread Shoes.app do stack do button "Execute someFunction" do Thread.start do result = someFunction para "Done!" end end end stack do button "Can't click me when GUI is frozen" do alert "GUI wasn't frozen?" end end end [1]: http://www.stackoverflow.com/questions/958662/shoes-and-heavy-operation-in-separate-thread
mysql
ruby
multithreading
gui
shoes
null
open
Ruby Shoes and MySQL: GUI freezes, should I use threads? === I'm trying to learn Shoes and decided to make a simple GUI to run a SQL-script line-by-line. My problem is that in GUI pressing the button, which executes my function, freezes the GUI for the time it takes the function to execute the script. With long scripts this might take several minutes. Someone had a similar problem ([http://www.stackoverflow.com/questions/958662/shoes-and-heavy-operation-in-separate-thread][1]) and the suggestion was just to put intensive stuff under a Thread: if I copy the math-code from previously mentioned thread and replace my mysql-code the GUI works without freezing, so that probably hints to a problem with how I'm using the mysql-adapter? Below is a simplified version of the code: problem.rb: __________ # copy the mysql-gem if not in gem-folder already Shoes.setup do gem 'mysql' end require "mysql" # the function that does the mysql stuff def someFunction con = Mysql::real_connect("myserver", "user", "pass", "db") scriptFile = File.open("myfile.sql", "r") script = scriptFile.read scriptFile.close result = [] script.each_line do |line| result << con.query(line) end return result end # the Shoes app with the Thread Shoes.app do stack do button "Execute someFunction" do Thread.start do result = someFunction para "Done!" end end end stack do button "Can't click me when GUI is frozen" do alert "GUI wasn't frozen?" end end end [1]: http://www.stackoverflow.com/questions/958662/shoes-and-heavy-operation-in-separate-thread
0
5,159,246
03/01/2011 19:19:52
639,971
03/01/2011 19:19:52
1
0
MEMORY READ/WRITE PROCESSES
PLEASE MY DEAREST INTELLECTUALS, THE PROCESSOR PERFORMS READ/WRITE PROCESSES FROM AND TO THE MEMORY. PLEASE, MY QUESTION IS; WHAT IS THE UNIFIED NAME (OR COMPUTER TERM) FOR READ/WRITE PROCESS? OR IS THERE A UNIFIED NAME FOR READ/WRITE CYCLE? PLEASE ANSWERS TO BOTH QUESTIONS ARE IMPORTANT. THANKS IN ADVANCE.
memory
read
write
processor
null
03/01/2011 19:55:02
off topic
MEMORY READ/WRITE PROCESSES === PLEASE MY DEAREST INTELLECTUALS, THE PROCESSOR PERFORMS READ/WRITE PROCESSES FROM AND TO THE MEMORY. PLEASE, MY QUESTION IS; WHAT IS THE UNIFIED NAME (OR COMPUTER TERM) FOR READ/WRITE PROCESS? OR IS THERE A UNIFIED NAME FOR READ/WRITE CYCLE? PLEASE ANSWERS TO BOTH QUESTIONS ARE IMPORTANT. THANKS IN ADVANCE.
2
822,781
05/05/2009 00:35:25
66,519
02/14/2009 22:34:12
2,827
144
Is there a catchy term for repatriating work once offshored?
I think the term repatriation is specific for people. "Unshore, deshore, disremote." Every term I think up sounds like a nails scratching down a chalk board. "Inshoring" blech....
offshoring
terminology
null
null
null
09/23/2011 05:08:07
off topic
Is there a catchy term for repatriating work once offshored? === I think the term repatriation is specific for people. "Unshore, deshore, disremote." Every term I think up sounds like a nails scratching down a chalk board. "Inshoring" blech....
2
5,220,307
03/07/2011 13:32:08
591,826
01/27/2011 07:46:05
62
1
Qt or Visual C# for desktop applicatons
i have a question about qt vs visual C# can you tell me which will be good choice for desktop programming, qt or visual c# and is there any differences in qt that i can not do in c# Thanks
c#
qt
null
null
null
03/07/2011 13:40:12
not constructive
Qt or Visual C# for desktop applicatons === i have a question about qt vs visual C# can you tell me which will be good choice for desktop programming, qt or visual c# and is there any differences in qt that i can not do in c# Thanks
4
8,712,690
01/03/2012 13:00:52
1,125,950
01/02/2012 08:58:11
11
0
Which are the default defined constants in php
I need to know default constants in php like default functions such as explode, split, strpos etc. Thanks
php
null
null
null
null
01/03/2012 13:06:39
not a real question
Which are the default defined constants in php === I need to know default constants in php like default functions such as explode, split, strpos etc. Thanks
1
6,534,271
06/30/2011 11:50:11
171,546
09/10/2009 16:13:36
995
16
Export beamer slides to powerpoint editable format
I usually prepare my talks using powerpoint, where I explaing programs, pseudocodes, etc. Recently I was thinking about creating text-only, code-only and pseudocode-only slides with beamer and then exporting them somehow to powerpoint where I modify them to add figures or some minor details for polishing the presentation, which are usually hard to do with beamer. I googled a bit around and found that beamer can export to PDF or PS but not to powerpoint. I wonder anyway if you know some possibility of conversion from beamer to on-screen editable powerpoint - openffice impress.
latex
export
powerpoint
edit
beamer
07/03/2011 01:42:58
off topic
Export beamer slides to powerpoint editable format === I usually prepare my talks using powerpoint, where I explaing programs, pseudocodes, etc. Recently I was thinking about creating text-only, code-only and pseudocode-only slides with beamer and then exporting them somehow to powerpoint where I modify them to add figures or some minor details for polishing the presentation, which are usually hard to do with beamer. I googled a bit around and found that beamer can export to PDF or PS but not to powerpoint. I wonder anyway if you know some possibility of conversion from beamer to on-screen editable powerpoint - openffice impress.
2
7,116,131
08/19/2011 01:49:52
224,200
12/03/2009 19:40:16
111
3
Understanding Rails 3 Hump?
I'm relatively new to ruby, and rails. I've gone through the rails tutorial, and a few other tutorials/info about ruby. However I don't feel like I've made it over the "hump" I understand a good bit of what's going on, but routes and active record still throw me off. I've done plenty of database backed development in php (with a few different frameworks) and even some in python/django, however it really seems like rails has a much larger community and I'd like to get involved here rather than else where. Did anyone else experience something similar? I'm attempting work on my second project and I still feel like I need to look up/ask for help for close to every non-basic thing I do. This is a very foreign feeling to me... Any advice?
ruby-on-rails
null
null
null
null
08/19/2011 17:56:46
not constructive
Understanding Rails 3 Hump? === I'm relatively new to ruby, and rails. I've gone through the rails tutorial, and a few other tutorials/info about ruby. However I don't feel like I've made it over the "hump" I understand a good bit of what's going on, but routes and active record still throw me off. I've done plenty of database backed development in php (with a few different frameworks) and even some in python/django, however it really seems like rails has a much larger community and I'd like to get involved here rather than else where. Did anyone else experience something similar? I'm attempting work on my second project and I still feel like I need to look up/ask for help for close to every non-basic thing I do. This is a very foreign feeling to me... Any advice?
4
2,759,354
05/03/2010 16:00:15
54,259
01/12/2009 17:40:26
777
53
Left floated element and unordered lists (ul).
I am trying to indent the li elements of a ul. There is a left floated div with an image in it. The li element will indent only if I add left padding that is wider than the image itself. I you would like to look at a version irl, [take a look][1]. On this page, I have given the li a background color to demonstrate. <div class="left"> <p ><img src='image.jpg' alt='homepage.jpg' width="360" height="395" /></p> </div> <p> Est tincidunt doming iis nobis nibh. Ullamcorper eorum elit lius me delenit. </p> <hr /> <h3>Lorem</h3> <ul> <li>list element</li> <li>list element</li> <li>list element</li> </ul> The css: .left {float: left; } .left img {padding-right: 20px;} ul li { padding-left: 10px; background: blue; } thanks! [1]: http://superuntitled.com/cms/home
css
html
null
null
null
null
open
Left floated element and unordered lists (ul). === I am trying to indent the li elements of a ul. There is a left floated div with an image in it. The li element will indent only if I add left padding that is wider than the image itself. I you would like to look at a version irl, [take a look][1]. On this page, I have given the li a background color to demonstrate. <div class="left"> <p ><img src='image.jpg' alt='homepage.jpg' width="360" height="395" /></p> </div> <p> Est tincidunt doming iis nobis nibh. Ullamcorper eorum elit lius me delenit. </p> <hr /> <h3>Lorem</h3> <ul> <li>list element</li> <li>list element</li> <li>list element</li> </ul> The css: .left {float: left; } .left img {padding-right: 20px;} ul li { padding-left: 10px; background: blue; } thanks! [1]: http://superuntitled.com/cms/home
0
9,848,427
03/24/2012 01:43:40
1,247,509
02/06/2012 22:16:41
407
7
Rails Book Suggestions
I'm looking to learn Ruby on Rails. I already have a small background in Ruby and don't really need a book that covers both, as I ordered the Pickaxe Book a couple days ago. I recently read some of Beginning Ruby on Rails-Steven Holzner, but abandoned that after seeing multiple statements on SO about how terrible the code in it was, and also the fact that it used Rails 1...Just wondering, what is the best book for an ABSOLUTE BEGINNER in Rails?
ruby-on-rails
ruby
books
null
null
03/27/2012 20:26:30
not constructive
Rails Book Suggestions === I'm looking to learn Ruby on Rails. I already have a small background in Ruby and don't really need a book that covers both, as I ordered the Pickaxe Book a couple days ago. I recently read some of Beginning Ruby on Rails-Steven Holzner, but abandoned that after seeing multiple statements on SO about how terrible the code in it was, and also the fact that it used Rails 1...Just wondering, what is the best book for an ABSOLUTE BEGINNER in Rails?
4
3,332,236
07/26/2010 04:37:57
187,870
10/11/2009 04:19:32
41
3
jQuery update element using .each()
<iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/vc7qB/4/embedded/"></iframe>
javascript
jquery
.each
null
null
07/27/2010 02:49:18
not a real question
jQuery update element using .each() === <iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/vc7qB/4/embedded/"></iframe>
1
4,155,233
11/11/2010 14:13:00
291,120
03/11/2010 02:40:46
381
6
what for is microsoft document explorer 2008???
what for is microsoft document explorer 2008??? cant find any deep information in google, please help.
microsoft
document
explorer
null
null
11/11/2010 14:48:25
not a real question
what for is microsoft document explorer 2008??? === what for is microsoft document explorer 2008??? cant find any deep information in google, please help.
1
10,946,009
06/08/2012 09:11:22
1,288,694
03/23/2012 16:26:19
3
1
Update BGStatModel Gaussian mixture model Emgu cv
I use Gaussian mixture model GMM to have a subtraction background and forground, i used BGStatModel<Bgr> bgModel1; but i haven't good result and the forground is almost black even if i have a move, i don't know if i miss something in my code: { //Gaussian mixture model BGStatModel<Bgr> bgModel1; MCvGaussBGStatModelParams param = new MCvGaussBGStatModelParams(); public backgroundSubtraction() { InitializeComponent(); run(); } void run() { capture = new Capture(); detector = new FGDetector<Bgr>(FORGROUND_DETECTOR_TYPE.FGD); tracker = new BlobTrackerAuto<Bgr>(); param.win_size = 2; param.n_gauss = 3; param.bg_threshold = 0.7; //make difference between background and foreground param.std_threshold = 15; param.minArea = 15; param.weight_init = 0.05; param.variance_init = 30; // create image "frame", then capture first frame from camera and save it in the "Frame" Image<Bgr, Byte> Frame = capture.QueryFrame(); bgModel1 = new BGStatModel<Bgr>(Frame, ref param); imageBoxSource.Image = Frame; Application.Idle += processFrame; } private void processFrame(object sender, EventArgs e) { Image<Bgr, Byte> imageFrame = capture.QueryFrame(); if (imageFrame != null) { //GMM imageFrame.SmoothGaussian(3); bgModel1.Update(imageFrame, -1); imageBoxSource.Image = imageFrame; imageBoxBackground.Image = bgModel1.BackgroundMask; imageBoxForeground.Image = bgModel1.ForgroundMask; } } } to update, the model in open cv (c++), they give as parameters the currentFrame and the initial model; cvUpdateBGStatModel(videoFrame,bgModel);, but in emguCV it has as parameter Update(Image<TColor, Byte> image, double learningRate). As result, in the background image, i have just black image, and in the foreground when i move something it shows some little white but it's not good as using blobTracker. Any help please? Thanks.
c#-4.0
emgucv
gaussian
null
null
null
open
Update BGStatModel Gaussian mixture model Emgu cv === I use Gaussian mixture model GMM to have a subtraction background and forground, i used BGStatModel<Bgr> bgModel1; but i haven't good result and the forground is almost black even if i have a move, i don't know if i miss something in my code: { //Gaussian mixture model BGStatModel<Bgr> bgModel1; MCvGaussBGStatModelParams param = new MCvGaussBGStatModelParams(); public backgroundSubtraction() { InitializeComponent(); run(); } void run() { capture = new Capture(); detector = new FGDetector<Bgr>(FORGROUND_DETECTOR_TYPE.FGD); tracker = new BlobTrackerAuto<Bgr>(); param.win_size = 2; param.n_gauss = 3; param.bg_threshold = 0.7; //make difference between background and foreground param.std_threshold = 15; param.minArea = 15; param.weight_init = 0.05; param.variance_init = 30; // create image "frame", then capture first frame from camera and save it in the "Frame" Image<Bgr, Byte> Frame = capture.QueryFrame(); bgModel1 = new BGStatModel<Bgr>(Frame, ref param); imageBoxSource.Image = Frame; Application.Idle += processFrame; } private void processFrame(object sender, EventArgs e) { Image<Bgr, Byte> imageFrame = capture.QueryFrame(); if (imageFrame != null) { //GMM imageFrame.SmoothGaussian(3); bgModel1.Update(imageFrame, -1); imageBoxSource.Image = imageFrame; imageBoxBackground.Image = bgModel1.BackgroundMask; imageBoxForeground.Image = bgModel1.ForgroundMask; } } } to update, the model in open cv (c++), they give as parameters the currentFrame and the initial model; cvUpdateBGStatModel(videoFrame,bgModel);, but in emguCV it has as parameter Update(Image<TColor, Byte> image, double learningRate). As result, in the background image, i have just black image, and in the foreground when i move something it shows some little white but it's not good as using blobTracker. Any help please? Thanks.
0
360,654
12/11/2008 19:53:05
35,165
11/06/2008 16:38:33
96
6
How to set columns widths in a GridView control to the widest necessary width
I have a gridview control that can get loaded with multiple pages worth of data. When I switch pages, the columns widths will change to accommodate the largest value in the column for *that page*. If possible, I would like to set the widths of each column to the widest necessary width for the entire dataset.
asp.net
gridview
null
null
null
null
open
How to set columns widths in a GridView control to the widest necessary width === I have a gridview control that can get loaded with multiple pages worth of data. When I switch pages, the columns widths will change to accommodate the largest value in the column for *that page*. If possible, I would like to set the widths of each column to the widest necessary width for the entire dataset.
0
9,447,629
02/25/2012 20:09:37
611,180
02/10/2011 10:24:37
1
0
MongoKit vs MongoEngine vs Flask-MongoAlchemy for Flask
Anyone has experiences about MongoKit, MongoEngine or Flask-MongoAlchemy for Flask?, Wich one do you prefeer? Positive / negative experiences?. Too much options for a Flask-Newbie. Thank you in advance.
python
mongodb
sqlalchemy
flask
null
02/27/2012 16:23:20
not constructive
MongoKit vs MongoEngine vs Flask-MongoAlchemy for Flask === Anyone has experiences about MongoKit, MongoEngine or Flask-MongoAlchemy for Flask?, Wich one do you prefeer? Positive / negative experiences?. Too much options for a Flask-Newbie. Thank you in advance.
4
9,774,845
03/19/2012 17:24:36
1,279,153
03/19/2012 17:20:12
1
0
event.keycode support (or similar) for Internet Explorer Mobile
I'm trying to restrict entering certain characters in a web application meant for use on the web browser that comes with windows mobile 6.0 I tried using event.keycode but it does not seem to be supported (or probably the key codes are different)? If event.keycode is not supported in this version of mobileIE, how else can I restrict the end user from entering these characters into my input boxes? thakns
javascript
javascript-events
windows-mobile
windows-mobile-6
pocket-ie
null
open
event.keycode support (or similar) for Internet Explorer Mobile === I'm trying to restrict entering certain characters in a web application meant for use on the web browser that comes with windows mobile 6.0 I tried using event.keycode but it does not seem to be supported (or probably the key codes are different)? If event.keycode is not supported in this version of mobileIE, how else can I restrict the end user from entering these characters into my input boxes? thakns
0
9,388,872
02/22/2012 03:55:30
437,247
09/01/2010 18:28:24
616
5
What exactly does a pthread mutex lock out?
I'm assuming this has been asked on here, but I can't find this particular question. Does it just lock the part of the code in between the lock and unlock, or does it lock global variables? Like for this code pthread_mutex_lock(&mtx); bitmap[index] = 1; pthread_mutex_unlock(&mtx); the mutex just locks that line of code? Is there a way to lock specific variables without just locking the part of code that uses them?
pthreads
mutex
parallel-processing
null
null
null
open
What exactly does a pthread mutex lock out? === I'm assuming this has been asked on here, but I can't find this particular question. Does it just lock the part of the code in between the lock and unlock, or does it lock global variables? Like for this code pthread_mutex_lock(&mtx); bitmap[index] = 1; pthread_mutex_unlock(&mtx); the mutex just locks that line of code? Is there a way to lock specific variables without just locking the part of code that uses them?
0
7,955,627
10/31/2011 15:12:26
419,660
07/16/2010 13:02:28
41
2
SOAP request with header data
I'm trying to connect to a WCF service from PHP using the SoapClient class. I can successfully connect and traverse the API using WCFStorm however cannot seem to construct the header data correctly in order to authenticate from SoapClient. A working WCF request would be as follows: <MyMethod> <OutgoingHeaders attr0="MsgHeaderArray" isNull="false"> <MsgHeaderArray0> <Name>ApiKey</Name> <Namespace>http://www.service.com/namespace</Namespace> <ItemType>System.String</ItemType> <Value>ABC123</Value> <Direction>Outgoing</Direction> </MsgHeaderArray0> </OutgoingHeaders> <MethodParameters> <colour>Red</colour> <size>Large</size> </MethodParameters> </MyMethod> The code I'm using to connect to the api and call the method is: $params = array( 'colour' => 'Red', 'size' => 'Large' ); $service = new SoapClient('http://www.service.com/service.svc?wsdl'); $header = new SoapHeader('http://www.service.com/namespace', 'ApiKey', 'ABC123', FALSE); $service->__setSoapHeaders(array($header)); $service->MyMethod($params); However I'm getting an access denied error, I'm guessing because SoapHeader isn't corrently formatted? SoapFault: Access is denied. in SoapClient->__call() Thank you for any help you can provide.
php
wcf
soap
null
null
null
open
SOAP request with header data === I'm trying to connect to a WCF service from PHP using the SoapClient class. I can successfully connect and traverse the API using WCFStorm however cannot seem to construct the header data correctly in order to authenticate from SoapClient. A working WCF request would be as follows: <MyMethod> <OutgoingHeaders attr0="MsgHeaderArray" isNull="false"> <MsgHeaderArray0> <Name>ApiKey</Name> <Namespace>http://www.service.com/namespace</Namespace> <ItemType>System.String</ItemType> <Value>ABC123</Value> <Direction>Outgoing</Direction> </MsgHeaderArray0> </OutgoingHeaders> <MethodParameters> <colour>Red</colour> <size>Large</size> </MethodParameters> </MyMethod> The code I'm using to connect to the api and call the method is: $params = array( 'colour' => 'Red', 'size' => 'Large' ); $service = new SoapClient('http://www.service.com/service.svc?wsdl'); $header = new SoapHeader('http://www.service.com/namespace', 'ApiKey', 'ABC123', FALSE); $service->__setSoapHeaders(array($header)); $service->MyMethod($params); However I'm getting an access denied error, I'm guessing because SoapHeader isn't corrently formatted? SoapFault: Access is denied. in SoapClient->__call() Thank you for any help you can provide.
0
7,209,159
08/26/2011 18:40:38
437,095
09/01/2010 15:23:52
778
31
How to access C$ share in a network?
Considering I have admin access to a machine, can I remotely access the default C$ share in Windows XP and Windows 7?
windows
networking
share
access
smb
08/26/2011 19:06:14
off topic
How to access C$ share in a network? === Considering I have admin access to a machine, can I remotely access the default C$ share in Windows XP and Windows 7?
2
10,224,474
04/19/2012 08:39:08
842,291
07/13/2011 08:37:47
121
3
STS or InteliJ IDEA for Grails?
I now there are few questions like this already outhere, but I'm wondering what is the situation now? And some predictions for the foreseeable future. I've been playing with Grails for some time now using STS but its time for some serious work so I'm wondering witch is better IDE for Grails and Groovy: STS or IDEA? I haven't used IDEA yet but I've used STS and it's probably the slowest peace of software I've ever used. And also I've had some strange problems with Grails in STS. What are your advices/experience?
grails
ide
intellij-idea
sts-springsourcetoolsuite
null
04/21/2012 09:58:36
not constructive
STS or InteliJ IDEA for Grails? === I now there are few questions like this already outhere, but I'm wondering what is the situation now? And some predictions for the foreseeable future. I've been playing with Grails for some time now using STS but its time for some serious work so I'm wondering witch is better IDE for Grails and Groovy: STS or IDEA? I haven't used IDEA yet but I've used STS and it's probably the slowest peace of software I've ever used. And also I've had some strange problems with Grails in STS. What are your advices/experience?
4
11,502,323
07/16/2012 10:17:41
1,528,573
07/16/2012 10:14:32
1
0
Software deployment issues
I have been developing software basically a window based software.I want to provide my users with online database access.I want to know what are the ways to achieve this???..I have read about Windows Azure it allows Database to be integrated but not sure about it as I have never tried it...
c#
wpf
null
null
null
07/16/2012 20:01:57
not a real question
Software deployment issues === I have been developing software basically a window based software.I want to provide my users with online database access.I want to know what are the ways to achieve this???..I have read about Windows Azure it allows Database to be integrated but not sure about it as I have never tried it...
1
1,330,449
08/25/2009 19:33:11
132,061
07/02/2009 03:19:21
55
1
How do I pass form elements to a javascript validation function?
I have a form that lists users, and for each user there is a drop down menu (2 choices: waiting, finished) and a comments textbox. The drop down menus are each labeled "status-userid" and the comments textbox is labeled "comments-userid" ... so for user 92, the fields in his row are labeled status-92 and comments-92. I need to validate the form in the following way: If the value of the status is "finished", I have to make sure that the user entered comments to correspond with that specific drop down menu. So far, I have:<br /> /* code */ function validate_form () { valid = true; /*here's where i need to loop through all form elements */ if ( document.demerits.status-92.value == "finished" && document.demerits.comments-92.value == "") { alert ( "Comments are required!" ); valid = false; } return valid; } How do I loop through all of the status-userid elements in the form array?! Or is there another way to do this? Thanks for your help!
javascript
forms
form-validation
input-validation
null
null
open
How do I pass form elements to a javascript validation function? === I have a form that lists users, and for each user there is a drop down menu (2 choices: waiting, finished) and a comments textbox. The drop down menus are each labeled "status-userid" and the comments textbox is labeled "comments-userid" ... so for user 92, the fields in his row are labeled status-92 and comments-92. I need to validate the form in the following way: If the value of the status is "finished", I have to make sure that the user entered comments to correspond with that specific drop down menu. So far, I have:<br /> /* code */ function validate_form () { valid = true; /*here's where i need to loop through all form elements */ if ( document.demerits.status-92.value == "finished" && document.demerits.comments-92.value == "") { alert ( "Comments are required!" ); valid = false; } return valid; } How do I loop through all of the status-userid elements in the form array?! Or is there another way to do this? Thanks for your help!
0
5,552,476
04/05/2011 13:17:58
552,422
12/23/2010 13:47:10
178
9
Leaner controller
Hy guys. I am new on MVC and I have a "fat" controllers and I don't know how to fit it. This is one controller where I create a new repository and then a ViewModel gets the repo values + the isReaded property public ActionResult Index() { try { NHibernateHelper helper = new NHibernateHelper(); UnitOfWork unitOfWork = new UnitOfWork( helper.SessionFactory ); Repository<Order> orderRepo = new Repository<Order>( unitOfWork.Session ); IEnumerable<Order> orders = orderRepo.All(); var viewModel = orders.Select(order=> new OrderViewModel { Order = order, isReaded = order.Interactions.Any( x => x.Readed == true ), } ); return View( viewModel ); } catch { return RedirectToAction( "foo"); } } Can someone give me a tip to fit it? Tks!
asp.net-mvc
null
null
null
null
null
open
Leaner controller === Hy guys. I am new on MVC and I have a "fat" controllers and I don't know how to fit it. This is one controller where I create a new repository and then a ViewModel gets the repo values + the isReaded property public ActionResult Index() { try { NHibernateHelper helper = new NHibernateHelper(); UnitOfWork unitOfWork = new UnitOfWork( helper.SessionFactory ); Repository<Order> orderRepo = new Repository<Order>( unitOfWork.Session ); IEnumerable<Order> orders = orderRepo.All(); var viewModel = orders.Select(order=> new OrderViewModel { Order = order, isReaded = order.Interactions.Any( x => x.Readed == true ), } ); return View( viewModel ); } catch { return RedirectToAction( "foo"); } } Can someone give me a tip to fit it? Tks!
0
11,656,487
07/25/2012 18:44:44
92,297
04/17/2009 19:06:23
814
40
Is there something like an equivalent of a "Go get Flash" link for HTML5?
I'm building a website that requires HTML5 features in order to run. If the features are not present in the browser we display a message to the user that they need to upgrade their browser in order to fully view the content. What I would like to do is provide a link to a site with some information on what HTML5 is and what browsers support it etc. We'd prefer not have to build out our HTML5 information pages and just link to something "official" instead. Similar to the "Go get Flash" link (to http://get.adobe.com/flashplayer/) that is usually used to direct the user to Adobe if Flash isn't present. Does such a site exist?
html5
null
null
null
null
07/26/2012 07:36:11
off topic
Is there something like an equivalent of a "Go get Flash" link for HTML5? === I'm building a website that requires HTML5 features in order to run. If the features are not present in the browser we display a message to the user that they need to upgrade their browser in order to fully view the content. What I would like to do is provide a link to a site with some information on what HTML5 is and what browsers support it etc. We'd prefer not have to build out our HTML5 information pages and just link to something "official" instead. Similar to the "Go get Flash" link (to http://get.adobe.com/flashplayer/) that is usually used to direct the user to Adobe if Flash isn't present. Does such a site exist?
2
10,049,264
04/06/2012 21:07:17
1,318,253
04/06/2012 21:05:18
1
0
Creating a sorted Singly Linked List in C (Insert function)
Here is my insert function [1] http://pastebin.com/1gyYGsp0 Here is the struct header [2] http://pastebin.com/PnTQUaRJ Any help would be appreciated on where my code is going wrong. Segmentation fault.
c
null
null
null
null
04/17/2012 11:54:50
not a real question
Creating a sorted Singly Linked List in C (Insert function) === Here is my insert function [1] http://pastebin.com/1gyYGsp0 Here is the struct header [2] http://pastebin.com/PnTQUaRJ Any help would be appreciated on where my code is going wrong. Segmentation fault.
1
8,209,175
11/21/2011 08:41:04
956,457
09/21/2011 08:17:07
46
0
JTemplate Error
I want to use JTemplate on my php page. My template: <script type="text/html" id="TemplateResultsTable"> {#template MAIN} <table cellpadding="10" cellspacing="0"> <tr> <th>Seller</th> <th>Bid Amount</th> <th>Date</th> </tr> {#foreach $T.d as CD} {#include ROW root=$T.CD} {#/for} </table> {#/template MAIN} {#template ROW} <tr> <td>{$T.Bidder}</td> <td>{$T.Bid}</td> <td>{$T.BidDate}</td> </tr> {#/template ROW} </script> My ajax call: <script type="text/javascript"> $.noConflict(); jQuery(document).ready(function($) { $('#ctl0_Main_BidHistoryPortlet_ctl0').click(function(){ $.ajax ({ type: 'POST', url: '/index.php/page,Service', data: 'action=TestFunction&AuctionId='+$('#ctl0_Main_BidHistoryPortlet_AuctionId').val(), success: function(msg) { ApplyTemplate(msg); } }); }); function ApplyTemplate(msg) { $('#Container').setTemplate($("#TemplateResultsTable").html()); $('#Container').processTemplate(msg); } }); </script> Json data that come from Service.php is correct. But I get following error: "cannot read property 'length' of undefined" What am I doing wrong?
jquery
json
jtemplate
null
null
null
open
JTemplate Error === I want to use JTemplate on my php page. My template: <script type="text/html" id="TemplateResultsTable"> {#template MAIN} <table cellpadding="10" cellspacing="0"> <tr> <th>Seller</th> <th>Bid Amount</th> <th>Date</th> </tr> {#foreach $T.d as CD} {#include ROW root=$T.CD} {#/for} </table> {#/template MAIN} {#template ROW} <tr> <td>{$T.Bidder}</td> <td>{$T.Bid}</td> <td>{$T.BidDate}</td> </tr> {#/template ROW} </script> My ajax call: <script type="text/javascript"> $.noConflict(); jQuery(document).ready(function($) { $('#ctl0_Main_BidHistoryPortlet_ctl0').click(function(){ $.ajax ({ type: 'POST', url: '/index.php/page,Service', data: 'action=TestFunction&AuctionId='+$('#ctl0_Main_BidHistoryPortlet_AuctionId').val(), success: function(msg) { ApplyTemplate(msg); } }); }); function ApplyTemplate(msg) { $('#Container').setTemplate($("#TemplateResultsTable").html()); $('#Container').processTemplate(msg); } }); </script> Json data that come from Service.php is correct. But I get following error: "cannot read property 'length' of undefined" What am I doing wrong?
0
3,583,589
08/27/2010 11:14:30
291,120
03/11/2010 02:40:46
115
4
special methods and tricks in ASP.NET MVC?
Please tell me you favorite trick and tips to me. I want to collect so much knowledge as i can. And i think its the best way to hear it from experts and amateur developers. Thanks you all and take care, Ragims
c#
asp.net
mvc
tips-and-tricks
shared-secret
08/27/2010 14:30:27
not a real question
special methods and tricks in ASP.NET MVC? === Please tell me you favorite trick and tips to me. I want to collect so much knowledge as i can. And i think its the best way to hear it from experts and amateur developers. Thanks you all and take care, Ragims
1
3,535,180
08/20/2010 22:00:08
36,545
11/11/2008 12:34:10
1,096
21
Header redirect, sessions lost, but only after about 5 minutes
function redirect($url){ header("HTTP/1.1 303 See Other"); header("Location: $url"); exit(); } I have the function called when certain input buttons are clicked. The session is set on every page, and it IS passed if the the button is clicked within 5 minutes. But the session is lost after about 5 minutes if the button is clicked. If I refresh the page (not redirect) the session is not lost, so I'm pretty sure it's not a timeout issue. What could be causing this?
php
redirect
header
session
null
null
open
Header redirect, sessions lost, but only after about 5 minutes === function redirect($url){ header("HTTP/1.1 303 See Other"); header("Location: $url"); exit(); } I have the function called when certain input buttons are clicked. The session is set on every page, and it IS passed if the the button is clicked within 5 minutes. But the session is lost after about 5 minutes if the button is clicked. If I refresh the page (not redirect) the session is not lost, so I'm pretty sure it's not a timeout issue. What could be causing this?
0
464,547
01/21/2009 09:17:50
45,603
08/25/2008 09:52:34
1,039
46
Returning Rows from a .NET Web Service
I am using a .NET web service as an interface to a database. What is the best way to return rows from this web service? I vaguely remember that .NET 2.0 had issues with returning DataTable objects. Do those issues still exist?
web-services
.net
datatable
null
null
null
open
Returning Rows from a .NET Web Service === I am using a .NET web service as an interface to a database. What is the best way to return rows from this web service? I vaguely remember that .NET 2.0 had issues with returning DataTable objects. Do those issues still exist?
0
6,040,420
05/18/2011 05:52:08
734,187
05/02/2011 09:06:40
5
0
IPHONE URL LODING IN TABLEVIEW DOUBTS
MY REQURNMENT IS ,i have a main url,it contains multiple urls,i have to display multiple url in a tableview,with the main contents in it including a image ,,like facebook status button,if we entered a link in the status textfiled it displays main content of that url .like that ...plese help
iphone
null
null
null
null
05/20/2011 02:06:30
not a real question
IPHONE URL LODING IN TABLEVIEW DOUBTS === MY REQURNMENT IS ,i have a main url,it contains multiple urls,i have to display multiple url in a tableview,with the main contents in it including a image ,,like facebook status button,if we entered a link in the status textfiled it displays main content of that url .like that ...plese help
1
4,357,806
12/05/2010 07:23:58
238,947
12/26/2009 20:35:59
127
3
Register a COM dll in the GAC with WiX
Greetings all, I'm working on a WiX installation script for my program. I need to install a C# dll to the GAC and then register it. So, I mark the file with `Assembly=".net"` so that WiX GACs it for me, and then I have a deferred custom action, set to run before `InstallFinalize`, which calls `Assembly.Load` to load the assembly from the GAC and then `RegistrationServices.RegisterAssembly` to register it. Should be perfect, except for one problem: Apparently the dll isn't actually written to the GAC until the commit phase, so when my custom action runs, `Assembly.Load` throws because it can't find the file. Where is it? Is it at all accessible before the commit phase? Or is there a better way to do this entirely? Seems like such a trivial thing... Please do not suggest using `heat.exe`; I'd really like to avoid it. My program has a `ComRegisterFunction` that would like to execute on the user's computer if at all possible.
c#
wix
gac
custom-action
regasm
null
open
Register a COM dll in the GAC with WiX === Greetings all, I'm working on a WiX installation script for my program. I need to install a C# dll to the GAC and then register it. So, I mark the file with `Assembly=".net"` so that WiX GACs it for me, and then I have a deferred custom action, set to run before `InstallFinalize`, which calls `Assembly.Load` to load the assembly from the GAC and then `RegistrationServices.RegisterAssembly` to register it. Should be perfect, except for one problem: Apparently the dll isn't actually written to the GAC until the commit phase, so when my custom action runs, `Assembly.Load` throws because it can't find the file. Where is it? Is it at all accessible before the commit phase? Or is there a better way to do this entirely? Seems like such a trivial thing... Please do not suggest using `heat.exe`; I'd really like to avoid it. My program has a `ComRegisterFunction` that would like to execute on the user's computer if at all possible.
0
3,491,081
08/16/2010 06:37:12
421,431
08/16/2010 06:37:12
1
0
Connection Reset by peer: mod_fcgid:
When I try to run a program in PHP using domPHP API to create PDF files in runtime - with Godaddy server, I am getting the message - Connection Reset by peer: mod_fcgid the same work in our local server as well as in Dreamhost and Host gator. Godaddy support insists that this is a coding error and not server issue. Can any one help me? thank You Sathish
php
apache
mod-fcgid
null
null
null
open
Connection Reset by peer: mod_fcgid: === When I try to run a program in PHP using domPHP API to create PDF files in runtime - with Godaddy server, I am getting the message - Connection Reset by peer: mod_fcgid the same work in our local server as well as in Dreamhost and Host gator. Godaddy support insists that this is a coding error and not server issue. Can any one help me? thank You Sathish
0
1,338,671
08/27/2009 03:13:29
123,170
06/15/2009 15:12:41
78
1
Custom size EditField
I am trying to put together a dialog that should look like this: Fill in the below fields<br /> _______________ likes ____________________ where the "_" lines are the EditFields. I am sticking all the fields in a HorizontalFieldManager, which I add to the dialog. Unfortunately, the first EditField consumes all the space on the first line. I have tried to override the getPreferredWidth() method of the EditField by creating my own class extending BasicEditField, but have had no success. Surely there must be a simple way to force a certain size for an edit field. What am I missing?
blackberry
java
null
null
null
null
open
Custom size EditField === I am trying to put together a dialog that should look like this: Fill in the below fields<br /> _______________ likes ____________________ where the "_" lines are the EditFields. I am sticking all the fields in a HorizontalFieldManager, which I add to the dialog. Unfortunately, the first EditField consumes all the space on the first line. I have tried to override the getPreferredWidth() method of the EditField by creating my own class extending BasicEditField, but have had no success. Surely there must be a simple way to force a certain size for an edit field. What am I missing?
0
6,678,693
07/13/2011 12:15:56
625,454
02/20/2011 17:45:27
137
0
how to check the speed of processor in windows xp
when i right click on my computer ,in properties it shows Intel(R) Pentium(R) M processor 2.26GHz and also 279MHZ .so there are two speeds listed . but when i see using directx it shows only Intel(R) Pentium(R) M processor 2.26GHz when i see using msinfo32 it shows 798MHZ . in device manager it shows 780MHZ .so how these speeds are displayed . In CPU-Z it is showing: Name:Intel Pentinum M 780 Specification:Intel(R) Pentium(R) M processor 2.26GHz core Speed:798 MHZ and another important thing is that when i view the system information on right clicking my computer it shows Intel(R) Pentium(R) M processor 2.26GHz,how this speed getting displayed ,is this the speed provided by manufacturer .and how the another speed 279MHZ is displaying. Does windows displays the incorrect speed .because it is displaying the speeds are does not match .
windows-xp
null
null
null
null
07/13/2011 13:58:41
off topic
how to check the speed of processor in windows xp === when i right click on my computer ,in properties it shows Intel(R) Pentium(R) M processor 2.26GHz and also 279MHZ .so there are two speeds listed . but when i see using directx it shows only Intel(R) Pentium(R) M processor 2.26GHz when i see using msinfo32 it shows 798MHZ . in device manager it shows 780MHZ .so how these speeds are displayed . In CPU-Z it is showing: Name:Intel Pentinum M 780 Specification:Intel(R) Pentium(R) M processor 2.26GHz core Speed:798 MHZ and another important thing is that when i view the system information on right clicking my computer it shows Intel(R) Pentium(R) M processor 2.26GHz,how this speed getting displayed ,is this the speed provided by manufacturer .and how the another speed 279MHZ is displaying. Does windows displays the incorrect speed .because it is displaying the speeds are does not match .
2
5,871,183
05/03/2011 14:37:20
461,834
09/29/2010 14:20:34
219
10
Which implementation of SQL is most standard?
I was reading up on SQL Server's implementation of MERGE, and it got me thinking, how do different SQL implementations (Oracal, Microsoft, MySql, etc.) compare when it comes to standards-compliance? Which is most/least standards-compliant?
sql
null
null
null
null
05/03/2011 14:45:34
not constructive
Which implementation of SQL is most standard? === I was reading up on SQL Server's implementation of MERGE, and it got me thinking, how do different SQL implementations (Oracal, Microsoft, MySql, etc.) compare when it comes to standards-compliance? Which is most/least standards-compliant?
4
8,184,294
11/18/2011 14:51:45
987,777
10/10/2011 13:28:25
761
100
List of the most used programming languages, and uses
I would like a list, not just of popular programming languages that people use (I could have just typed that in on google) but something more like a list of what purposes the languages serve, this is an example: _________________________ - C++ Regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features. C++ is one of the most popular programming languages with **application domains including systems software (such as Microsoft Windows), application software, device drivers, embedded software, high-performance server and client applications, and entertainment software such as video games.** - Java Java allows people a large amount of interactivity online. It is used for **online games, messaging programs, online calculators, converters**, and much more. Social networking sites also rely heavily on the Java programming language. - Objective c A programming language that is mostly used in the development of **iphone applications**... _________________________ This is just a bad example of what I'm looking for, all of the examples I used are definitions of wikipedia and other websites. I want opinions from people who use them alot, people who understand the language and can give me an easy to understand "Uses and perks". Also I was not too sure which tags to use, so if anyone could edit this to have the appropriate tags, it would be greatly appreciated.
design
language
language-design
uses
null
11/18/2011 17:15:54
not constructive
List of the most used programming languages, and uses === I would like a list, not just of popular programming languages that people use (I could have just typed that in on google) but something more like a list of what purposes the languages serve, this is an example: _________________________ - C++ Regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features. C++ is one of the most popular programming languages with **application domains including systems software (such as Microsoft Windows), application software, device drivers, embedded software, high-performance server and client applications, and entertainment software such as video games.** - Java Java allows people a large amount of interactivity online. It is used for **online games, messaging programs, online calculators, converters**, and much more. Social networking sites also rely heavily on the Java programming language. - Objective c A programming language that is mostly used in the development of **iphone applications**... _________________________ This is just a bad example of what I'm looking for, all of the examples I used are definitions of wikipedia and other websites. I want opinions from people who use them alot, people who understand the language and can give me an easy to understand "Uses and perks". Also I was not too sure which tags to use, so if anyone could edit this to have the appropriate tags, it would be greatly appreciated.
4
6,784,487
07/22/2011 00:38:42
751,468
05/12/2011 22:17:43
317
4
[PHP] Cacheing Web applications
Which PHP cache should I use? How do I implement the cache? And what is it good for? I was thinking of using it for a chat application that i wrote in PHP. Would this be a good use for it or is it too dynamic?
php
null
null
null
null
null
open
[PHP] Cacheing Web applications === Which PHP cache should I use? How do I implement the cache? And what is it good for? I was thinking of using it for a chat application that i wrote in PHP. Would this be a good use for it or is it too dynamic?
0
8,377,696
12/04/2011 18:49:01
62,018
02/03/2009 16:34:48
129
6
Unable to access intranet page on Android Browser while Firefox Mobile and Opera Mobile can
I am trying to access a local webserver hosted in my laptop (http://192.168.43.79:8080). I can't access it using the Default Android Browser. However when I try to use Firefox Mobile or Opera Mobile from the same device, I can access it. Is there some settings I have to set with the the Android Browser?
android
null
null
null
null
12/04/2011 20:57:16
off topic
Unable to access intranet page on Android Browser while Firefox Mobile and Opera Mobile can === I am trying to access a local webserver hosted in my laptop (http://192.168.43.79:8080). I can't access it using the Default Android Browser. However when I try to use Firefox Mobile or Opera Mobile from the same device, I can access it. Is there some settings I have to set with the the Android Browser?
2
10,092,789
04/10/2012 16:36:03
1,101,108
12/16/2011 02:01:32
89
2
jQuery Mobile Detect Home Screen Bookmark
I know there's no way to add a home screen bookmark automatically within a mobile web app, however, is there a way to DETECT if one has been created?
jquery-mobile
null
null
null
null
null
open
jQuery Mobile Detect Home Screen Bookmark === I know there's no way to add a home screen bookmark automatically within a mobile web app, however, is there a way to DETECT if one has been created?
0
6,235,576
06/04/2011 08:05:53
757,491
05/17/2011 13:58:05
8
0
Entity Framework Connection Error "Cannot open database "DB" requested by the login. The login failed"...
I am using Entity Framework in .NET MVC 3.0 and use Code First method. And I used a .MDF file for database and also use "DropCreateDatabaseIfModelChanges" to generate database automatically after every change. My application works correct, but when I open database from Server Explorer in VS, then my application gives an error: > Cannot open database "DB" requested > by the login. The login failed. Login > failed for user 'Mahdi-PC\Mahdi Could you help me?!
asp.net-mvc
entity-framework
null
null
null
null
open
Entity Framework Connection Error "Cannot open database "DB" requested by the login. The login failed"... === I am using Entity Framework in .NET MVC 3.0 and use Code First method. And I used a .MDF file for database and also use "DropCreateDatabaseIfModelChanges" to generate database automatically after every change. My application works correct, but when I open database from Server Explorer in VS, then my application gives an error: > Cannot open database "DB" requested > by the login. The login failed. Login > failed for user 'Mahdi-PC\Mahdi Could you help me?!
0
2,163,137
01/29/2010 15:57:39
122,528
06/13/2009 18:06:38
282
1
Sql Query With GroupBys - Impossible Query
I have the following: Name Age When Paul 21 01-Jan-10 Paul 54 01-Jan-11 Paul 65 01-Jan-12 I want to pull out all names and that age wherer the date is >= 01-Jan-11 I ve tried SELECT NAME, AGE, MIN(When) FROM ATABLE WHERE When >= '01-Jan-11' GROUP BY NAME, AGE That did not work
sql
c#
null
null
null
null
open
Sql Query With GroupBys - Impossible Query === I have the following: Name Age When Paul 21 01-Jan-10 Paul 54 01-Jan-11 Paul 65 01-Jan-12 I want to pull out all names and that age wherer the date is >= 01-Jan-11 I ve tried SELECT NAME, AGE, MIN(When) FROM ATABLE WHERE When >= '01-Jan-11' GROUP BY NAME, AGE That did not work
0
8,088,310
11/11/2011 00:34:07
1,005,083
10/20/2011 11:27:48
5
0
Website displays correctly in chrome and FF but not IE
Can anyone tell me what the mains things to look for when your website displays correctly in FF and Chrome but not in IE. It seems my css styling isn't get implemented, if you look at my site below(ignore the design); http://acews.x10.mx/index.php
css
internet-explorer
firefox
google-chrome
null
11/11/2011 07:39:15
too localized
Website displays correctly in chrome and FF but not IE === Can anyone tell me what the mains things to look for when your website displays correctly in FF and Chrome but not in IE. It seems my css styling isn't get implemented, if you look at my site below(ignore the design); http://acews.x10.mx/index.php
3
8,461,936
12/11/2011 04:19:41
774,820
05/29/2011 02:28:16
6
0
reception of radio waves with an android phone
Good evening everybody, I would like to develop an application under android, which can receive frequencies from a radio stations. My idea is to scan the radio frequencies between two values. ie, "scan" between a minimum frequency and maximum frequency. eg: a button starts the scan from (87.5 MHz - 108 MHz) => (87.5 MHz <= f = <108 MHz). But so far I do not know where to start! I have lots of questions in my head. - How do we know that such an android terminal has a radio receiver? Ie is there a function or activity system can help us to detect its presence? - What I need for this type of development?
android
radio
receiver
null
null
12/12/2011 03:50:21
not a real question
reception of radio waves with an android phone === Good evening everybody, I would like to develop an application under android, which can receive frequencies from a radio stations. My idea is to scan the radio frequencies between two values. ie, "scan" between a minimum frequency and maximum frequency. eg: a button starts the scan from (87.5 MHz - 108 MHz) => (87.5 MHz <= f = <108 MHz). But so far I do not know where to start! I have lots of questions in my head. - How do we know that such an android terminal has a radio receiver? Ie is there a function or activity system can help us to detect its presence? - What I need for this type of development?
1
9,983,572
04/02/2012 20:46:16
1,255,109
03/07/2012 15:51:02
13
2
Task Exceptions C#
i'm working in a c# windows application with vs2010 and a local database.In one of my forms, I'm using a bindingNavigator and i use the code below in order to move to the next record. **The problem is that i don't know how to catch any exceptions this way**.The exceptions should occur when this.clientBindingSource.MoveNext(); is called. Can anyone help? var task1 = Task.Factory.StartNew(() => this.clientBindingSource.MoveNext()); task1.ContinueWith(delegate { CheckForChanges(); }) .ContinueWith((prevTask) => { CheckStatusCheckboxes(); }, new CancellationToken(), TaskContinuationOptions.None,TaskScheduler.FromCurrentSynchronizationContext());
c#
visual-studio-2010
exception
exception-handling
task-parallel-library
04/02/2012 20:50:54
too localized
Task Exceptions C# === i'm working in a c# windows application with vs2010 and a local database.In one of my forms, I'm using a bindingNavigator and i use the code below in order to move to the next record. **The problem is that i don't know how to catch any exceptions this way**.The exceptions should occur when this.clientBindingSource.MoveNext(); is called. Can anyone help? var task1 = Task.Factory.StartNew(() => this.clientBindingSource.MoveNext()); task1.ContinueWith(delegate { CheckForChanges(); }) .ContinueWith((prevTask) => { CheckStatusCheckboxes(); }, new CancellationToken(), TaskContinuationOptions.None,TaskScheduler.FromCurrentSynchronizationContext());
3
5,335,154
03/17/2011 05:16:06
663,723
03/17/2011 05:16:06
1
0
please correct my C programming cos I do not know its problem to reach desired answer.
Who can help me to correct this C programming?plz plz? I want to develope a program to process allowances claimed by staff up to 50 persons. Write a C program to assist me to achieve the following tasks: (a) Declare a structure named staff to store the following information as members: id (integer), name (string) gender („m‟ or „f‟) (char) allowance (float) (b) Assume that variable of structure type staff is S. (c) Identify and displays:  total no of male staff and female staff.  total no of staff with allowance more than RM150.0. #include <stdio.h> #include <string.h> int main(); struct staff{ int id; float allowance; char name[50]; char gender; }; main(){ struct staff s[50]; int i, male=0, female=0, total=0; for(i=0;i<50;i++){ printf ("Enter gender:"); scanf ("%c",&s[i].gender); if(s[i].gender=='m') male=male+1; else if(s[i].gender=='f') female=female+1; } printf ("total no: %d",male+female); for(i=0;i<50;i++){ printf ("Enter allowance:"); scanf ("%.2f",&s[i].allowance); if(s[i].allowance>150) total=total+1; else printf("Enter allowance:"); } } Additional Details this is just one of the 30 questions ofmy assignment in uni? i already wrote the C program but I do not know why it doesn't work correctly... can anybody help me...
c
null
null
null
null
03/17/2011 05:31:25
not a real question
please correct my C programming cos I do not know its problem to reach desired answer. === Who can help me to correct this C programming?plz plz? I want to develope a program to process allowances claimed by staff up to 50 persons. Write a C program to assist me to achieve the following tasks: (a) Declare a structure named staff to store the following information as members: id (integer), name (string) gender („m‟ or „f‟) (char) allowance (float) (b) Assume that variable of structure type staff is S. (c) Identify and displays:  total no of male staff and female staff.  total no of staff with allowance more than RM150.0. #include <stdio.h> #include <string.h> int main(); struct staff{ int id; float allowance; char name[50]; char gender; }; main(){ struct staff s[50]; int i, male=0, female=0, total=0; for(i=0;i<50;i++){ printf ("Enter gender:"); scanf ("%c",&s[i].gender); if(s[i].gender=='m') male=male+1; else if(s[i].gender=='f') female=female+1; } printf ("total no: %d",male+female); for(i=0;i<50;i++){ printf ("Enter allowance:"); scanf ("%.2f",&s[i].allowance); if(s[i].allowance>150) total=total+1; else printf("Enter allowance:"); } } Additional Details this is just one of the 30 questions ofmy assignment in uni? i already wrote the C program but I do not know why it doesn't work correctly... can anybody help me...
1
8,300,207
11/28/2011 18:03:30
956,052
09/21/2011 03:33:38
3
1
3 tiers architecture with web service
Currently I am having a 3 tier web architecture. I know I can build a web client which can detect if it is running on a mobile browser, but I want to build a separate client for e.g. android phone, which will communicate through web service. With this approach, I want to reuse my business code in the business layer but I'm not sure if I should do that or just build a web service which access directly to my DAL, then process the business and return result to my android client?
web-services
design
web
3-tier
null
07/24/2012 00:49:55
not a real question
3 tiers architecture with web service === Currently I am having a 3 tier web architecture. I know I can build a web client which can detect if it is running on a mobile browser, but I want to build a separate client for e.g. android phone, which will communicate through web service. With this approach, I want to reuse my business code in the business layer but I'm not sure if I should do that or just build a web service which access directly to my DAL, then process the business and return result to my android client?
1
10,291,424
04/24/2012 03:39:03
1,352,749
04/24/2012 03:29:25
1
0
Android Developer Sample Code Not Importing Correctly
I have been working with the Android SDK in the Eclipse IDE and have run into a problem with the sample codes provided with the Android SDK. I am trying to get the Notepad sample code (specifically the NoteEditor) to work and every single import in every class does not work and says that it cannot be resolved to a type. If I scroll down and import the android.jar file then all of the imports work but the variable R does not. I cannot find where R is used and don't know exactly what it is. Does anyone know if I am missing something like a library or why I would need to import android.jar every time. I would expect these sample projects to work right out of the box so I figured it is something I am doing wrong. Thanks!
java
android
sample
importerror
null
null
open
Android Developer Sample Code Not Importing Correctly === I have been working with the Android SDK in the Eclipse IDE and have run into a problem with the sample codes provided with the Android SDK. I am trying to get the Notepad sample code (specifically the NoteEditor) to work and every single import in every class does not work and says that it cannot be resolved to a type. If I scroll down and import the android.jar file then all of the imports work but the variable R does not. I cannot find where R is used and don't know exactly what it is. Does anyone know if I am missing something like a library or why I would need to import android.jar every time. I would expect these sample projects to work right out of the box so I figured it is something I am doing wrong. Thanks!
0
6,279,089
06/08/2011 13:01:09
245,376
01/07/2010 09:00:22
325
2
Running a console command which is stored in `std::wstring`
I have a console command, something like: std::wstring ConsoleCommand; ConsoleCommand = L"c:\\somepath\\anotherpath\\program.exe -opt1 /opt2 --opt3"; I want to execute this command. How do I do it? (It may be a Win32 API function, or a standard C/C++ library.)
c++
unicode
command-line
console
wstring
null
open
Running a console command which is stored in `std::wstring` === I have a console command, something like: std::wstring ConsoleCommand; ConsoleCommand = L"c:\\somepath\\anotherpath\\program.exe -opt1 /opt2 --opt3"; I want to execute this command. How do I do it? (It may be a Win32 API function, or a standard C/C++ library.)
0
9,775,960
03/19/2012 18:43:25
963,156
09/25/2011 00:20:37
99
0
How to handle multiple dropboxes of the same name?
I am trying to have a series of dropboxes in my code, the number of dropboxes will be decided in a loop. Each dropbox reflects a different day, and each option in a dropbox a different time. Only one of these times should be selectable by the user so that it can be passed on. So my HTML will look as follows : <form id="form" name="form" method="post" action="confirmation.cshtml"> <select name="start_to_end_time" class="start_to_end_time"> <option value="1">1</option> <option value="2">2</option> </select> <select name="start_to_end_time" class="start_to_end_time"> <option value="3">3</option> <option value="4">4</option> </select> <button type="submit">Submit</button> </form> With a changeable number of <select> tags. What is my best way to handle and validate this? I have tried doing so using JavaScript, and disabling all other days when one day is selected, this has resulted in errors however. Can anyone give me some help with this please?
c#
javascript
jquery
html
validation
null
open
How to handle multiple dropboxes of the same name? === I am trying to have a series of dropboxes in my code, the number of dropboxes will be decided in a loop. Each dropbox reflects a different day, and each option in a dropbox a different time. Only one of these times should be selectable by the user so that it can be passed on. So my HTML will look as follows : <form id="form" name="form" method="post" action="confirmation.cshtml"> <select name="start_to_end_time" class="start_to_end_time"> <option value="1">1</option> <option value="2">2</option> </select> <select name="start_to_end_time" class="start_to_end_time"> <option value="3">3</option> <option value="4">4</option> </select> <button type="submit">Submit</button> </form> With a changeable number of <select> tags. What is my best way to handle and validate this? I have tried doing so using JavaScript, and disabling all other days when one day is selected, this has resulted in errors however. Can anyone give me some help with this please?
0
10,964,068
06/09/2012 19:47:02
1,234,374
02/26/2012 21:03:32
21
1
PHP cURL redirect to location is not working correctly
I'm trying to send some values to a remote URL using curl. but the remote site redirects to another page which is causing me troubles. for example, i send values from www.mywebsite.com to url www.domain.com/index.php, index.php redirects to fetch.php file, but the thing is it opens like this www.mywebsite.com/fetch.php which gives me 404 not found error because this file is on remote site not mine. how can i fix this this is the code that i'm using $postfields = "link=xxxxxx"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'domain.com/index.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); curl_setopt($ch, CURLOPT_COOKIEJAR, 'rap.txt'); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1'); $content = curl_exec($ch); curl_close($ch);
php
curl
null
null
null
null
open
PHP cURL redirect to location is not working correctly === I'm trying to send some values to a remote URL using curl. but the remote site redirects to another page which is causing me troubles. for example, i send values from www.mywebsite.com to url www.domain.com/index.php, index.php redirects to fetch.php file, but the thing is it opens like this www.mywebsite.com/fetch.php which gives me 404 not found error because this file is on remote site not mine. how can i fix this this is the code that i'm using $postfields = "link=xxxxxx"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'domain.com/index.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); curl_setopt($ch, CURLOPT_COOKIEJAR, 'rap.txt'); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1'); $content = curl_exec($ch); curl_close($ch);
0
403,560
12/31/2008 17:30:33
48,523
12/23/2008 00:36:38
8
0
How do regular expressions work in selenium?
I want to store part of an id, and throw out the rest. For example, I have an html element with an id of 'element-12345'. I want to throw out 'element-' and keep '12345'. How can I accomplish this?
regex
selenium
selenium-ide
selenium-rc
null
null
open
How do regular expressions work in selenium? === I want to store part of an id, and throw out the rest. For example, I have an html element with an id of 'element-12345'. I want to throw out 'element-' and keep '12345'. How can I accomplish this?
0
10,217,441
04/18/2012 20:28:31
1,218,405
02/18/2012 17:53:27
1
2
disable wordpress post type
I am using **WP 3.3.1** need to disable post type selections (gallery, link) for users in wordpress
wordpress
wordpress-plugin
null
null
null
04/20/2012 00:58:45
not a real question
disable wordpress post type === I am using **WP 3.3.1** need to disable post type selections (gallery, link) for users in wordpress
1
5,100,459
02/24/2011 04:45:59
178,371
09/24/2009 10:42:49
19
0
drop down menus
please suggest drop down menus
javascript
css
null
null
null
02/24/2011 05:06:09
not a real question
drop down menus === please suggest drop down menus
1
4,281,969
11/26/2010 01:27:46
520,790
11/26/2010 01:27:46
1
0
I need a script for a class GUI
For ROBLOX, I need a GUI that appears when you spawn. It needs: 6 slots. After you click the one you want, it gives you these weapons and teleports you to a tele pad. I also need help with a VIP class. So here's what I need included with the script. 1) What goes inside of what. 2) I need to know where to put my weapons for that class. 3) 2 Teleport Pads that you go to after choosing class. 4) I need a specialized rank, that you need a T-Shirt to use. I need to know where to put that t-shirts ID/URL. 5) I would like the starter GUI to take up all of the screen <---> thata way, and most going up and down. Thank ya'll I hope you can help me!
roblox
null
null
null
null
08/31/2011 02:37:03
not constructive
I need a script for a class GUI === For ROBLOX, I need a GUI that appears when you spawn. It needs: 6 slots. After you click the one you want, it gives you these weapons and teleports you to a tele pad. I also need help with a VIP class. So here's what I need included with the script. 1) What goes inside of what. 2) I need to know where to put my weapons for that class. 3) 2 Teleport Pads that you go to after choosing class. 4) I need a specialized rank, that you need a T-Shirt to use. I need to know where to put that t-shirts ID/URL. 5) I would like the starter GUI to take up all of the screen <---> thata way, and most going up and down. Thank ya'll I hope you can help me!
4
9,289,264
02/15/2012 07:08:49
903,648
08/20/2011 10:44:15
11
0
SSL connection doesnot work in a class library application
I have a Class library application in which I'm trying to use SSL connection. but when i tried to get Authenticate As a Client to server i got the following error message: ssl.AuthenticateAsClient("TargetHost"); "Unable to find an entry point named 'EnumerateSecurityPackagesW' in DLL 'security.dll'." i have done this scenario in windows application and it works fine. have any body experience about this?
c#
.net
sockets
ssl
class-library
null
open
SSL connection doesnot work in a class library application === I have a Class library application in which I'm trying to use SSL connection. but when i tried to get Authenticate As a Client to server i got the following error message: ssl.AuthenticateAsClient("TargetHost"); "Unable to find an entry point named 'EnumerateSecurityPackagesW' in DLL 'security.dll'." i have done this scenario in windows application and it works fine. have any body experience about this?
0
9,686,217
03/13/2012 14:38:02
369,765
02/22/2010 12:49:04
484
12
Post JSON object.. Differentiate NULL from Undefined - WCF Service .Net
I need to be able to tell the different between a javascript object that has a property which is "UNDEFINED" And set to "NULL" *REASON* I have a collection of Employees. Each have a number of properties such as Name, Email, Status, Role etc. We have build a UI which lets the user select a number of Employees and bulk update properties for all the selected employees. The UI has many form elements (mostly drop down lists) which are enabled by checkbox beside them. But checking (and there for enabling the dropdownlist) the option. The user is saying they want to update this property for all the selected employees. So when we post this back to our server. We create a javascript object but only sets the options we want to change. In the WCF service we have (in .Net) it will get this object with each property set to "Nothing" unless the user had selected it. This way we can tell which fields to update in the database. The Issue is with any fields that we effectively want to set to null! We have a integer field that can be one "NULL" or can be a INT. (as it doesn't have to be set) Problem is that if I ensure that when the user decides to *unset* that field the property in the javascript object is set to "NULL" it gets converted to "NOTHING" in asp.net. which is the same as if it was undefined... Only other object was Get each Employee Object. Update it in the Javascript and the post it back. But this would be alot of data to post back to the server. Instead of effectively one Employee Object posted back with a list of employee Ids. Anyone have any possible solutions for this?
javascript
ajax
vb.net
json
wcf
null
open
Post JSON object.. Differentiate NULL from Undefined - WCF Service .Net === I need to be able to tell the different between a javascript object that has a property which is "UNDEFINED" And set to "NULL" *REASON* I have a collection of Employees. Each have a number of properties such as Name, Email, Status, Role etc. We have build a UI which lets the user select a number of Employees and bulk update properties for all the selected employees. The UI has many form elements (mostly drop down lists) which are enabled by checkbox beside them. But checking (and there for enabling the dropdownlist) the option. The user is saying they want to update this property for all the selected employees. So when we post this back to our server. We create a javascript object but only sets the options we want to change. In the WCF service we have (in .Net) it will get this object with each property set to "Nothing" unless the user had selected it. This way we can tell which fields to update in the database. The Issue is with any fields that we effectively want to set to null! We have a integer field that can be one "NULL" or can be a INT. (as it doesn't have to be set) Problem is that if I ensure that when the user decides to *unset* that field the property in the javascript object is set to "NULL" it gets converted to "NOTHING" in asp.net. which is the same as if it was undefined... Only other object was Get each Employee Object. Update it in the Javascript and the post it back. But this would be alot of data to post back to the server. Instead of effectively one Employee Object posted back with a list of employee Ids. Anyone have any possible solutions for this?
0
7,729,743
10/11/2011 17:04:47
468,455
10/06/2010 20:39:42
448
9
Cocoa/Objective-C - How do I step through an array?
Not sure if I am wording this correctly but what I need to do is iterate through an array sequentially but by 2 or 3 or 4 indices. So you can iterate through an array like this for(arrayObject in NSArray) { //do something amazing with arrayObject } which will iterate sequentially through each indexed object, [NSArray objectAtIndex: 0], [NSArray objectAtIndex: 1], etc. so what if I just want object 0, 4, 8, 12, etc. Thanks
objective-c
arrays
cocoa
iterate
null
null
open
Cocoa/Objective-C - How do I step through an array? === Not sure if I am wording this correctly but what I need to do is iterate through an array sequentially but by 2 or 3 or 4 indices. So you can iterate through an array like this for(arrayObject in NSArray) { //do something amazing with arrayObject } which will iterate sequentially through each indexed object, [NSArray objectAtIndex: 0], [NSArray objectAtIndex: 1], etc. so what if I just want object 0, 4, 8, 12, etc. Thanks
0
7,462,846
09/18/2011 16:37:07
14,148
09/16/2008 22:11:40
29,870
1,184
Can I install my own software on a Nook Color?
I'm wondering about buying a Nook Color, but I don't want it unless I can write and install my own apps for it. I don't qualify for the Nook Color development program; I just want to noodle around. Do I have to root it and install another version of Android first?
android
nook
null
null
null
09/19/2011 03:01:29
off topic
Can I install my own software on a Nook Color? === I'm wondering about buying a Nook Color, but I don't want it unless I can write and install my own apps for it. I don't qualify for the Nook Color development program; I just want to noodle around. Do I have to root it and install another version of Android first?
2
10,811,782
05/30/2012 07:26:43
1,425,408
05/30/2012 07:20:43
1
0
How to get your app's price drop be detected by the apps tracker as a promotion
We tried yesterday to set a new price for app as a promotion, we set a up a new tier for a couple of days. As a result in iTunes Connect, we get: Old Tier -> Existing - 30/05/2012 New Tier -> 30/05/2012 - 02/06/2012 Old Tier -> 02/06/2012 - None But our app price drop is not detected by the different website which tracks app price modification. (which is one of the point to a price promotion) Any ideas ?
ios
app-store
itunesconnect
null
null
05/30/2012 08:34:36
off topic
How to get your app's price drop be detected by the apps tracker as a promotion === We tried yesterday to set a new price for app as a promotion, we set a up a new tier for a couple of days. As a result in iTunes Connect, we get: Old Tier -> Existing - 30/05/2012 New Tier -> 30/05/2012 - 02/06/2012 Old Tier -> 02/06/2012 - None But our app price drop is not detected by the different website which tracks app price modification. (which is one of the point to a price promotion) Any ideas ?
2
2,915,813
05/26/2010 18:51:20
351,259
05/26/2010 18:51:20
1
0
computer translation
what's the correct way to say that something is fixed only via clicking one button, only once. the variants are as follows: at 1 click of a button with 1 click of a button in 1 click of a button via 1 click of a button p.s. i'm not a native speaker of Enlish so it's quite a challenge)
translation
null
null
null
null
05/26/2010 18:59:02
off topic
computer translation === what's the correct way to say that something is fixed only via clicking one button, only once. the variants are as follows: at 1 click of a button with 1 click of a button in 1 click of a button via 1 click of a button p.s. i'm not a native speaker of Enlish so it's quite a challenge)
2
6,533,172
06/30/2011 10:08:30
529,892
12/03/2010 21:20:05
1,110
124
Average CPU usage not fully utilized
We have created a multi-threaded application which process/parse big files (few hundred MB's) simultaneously. Application runs perfectly. But my client is disappointed the way cores of machine being used. He tried to watch the performance monitor and came to us with report. His point is if application is multi-threaded why CPU average utilization is below 25%. According to him, if nothing is running on system and file processing is taking time, CPU utilization should be more than 80-90%. I am not sure what answer or technical outcome will satisfy him. Please suggest.
windows-server-2008
cpu-usage
null
null
null
06/30/2011 17:40:29
too localized
Average CPU usage not fully utilized === We have created a multi-threaded application which process/parse big files (few hundred MB's) simultaneously. Application runs perfectly. But my client is disappointed the way cores of machine being used. He tried to watch the performance monitor and came to us with report. His point is if application is multi-threaded why CPU average utilization is below 25%. According to him, if nothing is running on system and file processing is taking time, CPU utilization should be more than 80-90%. I am not sure what answer or technical outcome will satisfy him. Please suggest.
3
10,130,593
04/12/2012 19:40:54
1,152,980
01/17/2012 01:13:04
48
1
What is the easiest way to select a series of DIVs and arrange them side-by-side with padding?
I want to select a group of divs and invoke a piece of code that would arrange them in a horizontal or vertical order. I don't want to do this manually with individual CSS blocks. I am using JQeury and it seems like this might be built in somewhere as a plug in or something but I can't find it.
javascript
jquery
div
null
null
04/14/2012 13:07:03
not a real question
What is the easiest way to select a series of DIVs and arrange them side-by-side with padding? === I want to select a group of divs and invoke a piece of code that would arrange them in a horizontal or vertical order. I don't want to do this manually with individual CSS blocks. I am using JQeury and it seems like this might be built in somewhere as a plug in or something but I can't find it.
1
6,538,678
06/30/2011 17:26:04
116,710
06/03/2009 16:59:14
408
18
MDP JMS Transaction rolls back then reprocesses message in an endless loop
If I enable transaction management on my DefaultMessageListenerContainer by specifying `sessionTransacted=true` or `transactionManager=jmsTransactionManager`, whenever an exception occurs in the MDP, the transaction is rolled back and the message is placed back on the queue. That then causes the message to be processed again, the transaction to roll back again over and over again so that it creates an endless loop. I guess my question is ... what am I missing here? Why would you want the message to go back on the queue if it just means it will be processed over and over again? <!-- jms connection factory --> <bean name="jmsConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="java:ConnectionFactory" /> </bean> <!-- jms transaction manager --> <bean id="jmsTransactionManager" class="org.springframework.jms.connection.JmsTransactionManager"> <property name="connectionFactory" ref="jmsConnectionFactory" /> </bean> <!-- Destination for Inbound_Email_Q --> <bean name="inboundEmailDestination" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="queue/inbound_Email_Queue" /> </bean> <!-- JmsTemplate for Inbound_Email_Q --> <bean name="jmsInboundEmailTemplate" class="org.springframework.jms.core.JmsTemplate"> <property name="connectionFactory" ref="jmsConnectionFactory" /> <property name="defaultDestination" ref="inboundEmailDestination" /> <property name="messageConverter" ref="xmlMessageConverter" /> </bean> <!-- jms asynchronous listener --> <bean id="emailMessageServiceMdp" class="org.aarp.wso.core.jms.EmailMessageServiceMdp" /> <bean class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <property name="connectionFactory" ref="jmsConnectionFactory"/> <!-- <property name="transactionManager" ref="jmsTransactionManager" /> --> <!-- <property name="sessionTransacted" value="true"/> --> <property name="destination" ref="inboundEmailDestination"/> <property name="messageListener" ref="messageListener"/> </bean> <!-- jms message listener adapter --> <bean id="messageListener" class="org.springframework.jms.listener.adapter.MessageListenerAdapter"> <constructor-arg> <bean class="org.aarp.wso.core.jms.EmailMessageServiceMdp"/> </constructor-arg> <property name="messageConverter" ref="xmlMessageConverter"/> </bean> And here is my MDP: public class EmailMessageServiceMdp implements MessageDelegate { public void handleMessage(Object object) { EmailMessageRequestVO requestVO = (EmailMessageRequestVO) object; try { //Service call that throw exception } catch (Exception e) { throw new ApplicationException(e); } } }
java
spring
jms
null
null
null
open
MDP JMS Transaction rolls back then reprocesses message in an endless loop === If I enable transaction management on my DefaultMessageListenerContainer by specifying `sessionTransacted=true` or `transactionManager=jmsTransactionManager`, whenever an exception occurs in the MDP, the transaction is rolled back and the message is placed back on the queue. That then causes the message to be processed again, the transaction to roll back again over and over again so that it creates an endless loop. I guess my question is ... what am I missing here? Why would you want the message to go back on the queue if it just means it will be processed over and over again? <!-- jms connection factory --> <bean name="jmsConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="java:ConnectionFactory" /> </bean> <!-- jms transaction manager --> <bean id="jmsTransactionManager" class="org.springframework.jms.connection.JmsTransactionManager"> <property name="connectionFactory" ref="jmsConnectionFactory" /> </bean> <!-- Destination for Inbound_Email_Q --> <bean name="inboundEmailDestination" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="queue/inbound_Email_Queue" /> </bean> <!-- JmsTemplate for Inbound_Email_Q --> <bean name="jmsInboundEmailTemplate" class="org.springframework.jms.core.JmsTemplate"> <property name="connectionFactory" ref="jmsConnectionFactory" /> <property name="defaultDestination" ref="inboundEmailDestination" /> <property name="messageConverter" ref="xmlMessageConverter" /> </bean> <!-- jms asynchronous listener --> <bean id="emailMessageServiceMdp" class="org.aarp.wso.core.jms.EmailMessageServiceMdp" /> <bean class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <property name="connectionFactory" ref="jmsConnectionFactory"/> <!-- <property name="transactionManager" ref="jmsTransactionManager" /> --> <!-- <property name="sessionTransacted" value="true"/> --> <property name="destination" ref="inboundEmailDestination"/> <property name="messageListener" ref="messageListener"/> </bean> <!-- jms message listener adapter --> <bean id="messageListener" class="org.springframework.jms.listener.adapter.MessageListenerAdapter"> <constructor-arg> <bean class="org.aarp.wso.core.jms.EmailMessageServiceMdp"/> </constructor-arg> <property name="messageConverter" ref="xmlMessageConverter"/> </bean> And here is my MDP: public class EmailMessageServiceMdp implements MessageDelegate { public void handleMessage(Object object) { EmailMessageRequestVO requestVO = (EmailMessageRequestVO) object; try { //Service call that throw exception } catch (Exception e) { throw new ApplicationException(e); } } }
0
11,082,004
06/18/2012 11:37:08
1,436,642
06/05/2012 06:15:20
36
0
how to show the data from one screen to the tabhost on android/eclipse
Can any one tell me how to convey the data from one screen to the tabhost on android/eclipse. Thanks a lot!..
java
android
eclipse
android-tabhost
null
06/19/2012 11:47:56
not a real question
how to show the data from one screen to the tabhost on android/eclipse === Can any one tell me how to convey the data from one screen to the tabhost on android/eclipse. Thanks a lot!..
1
2,337,142
02/25/2010 19:53:37
31,897
10/27/2008 21:28:51
13
16
Does ANSI C support ‘templates?’
I’m taking a C++ class, and my teacher mentioned in passing that the `typename` keyword existed in C++ (as opposed to using the `class` keyword in a template declaration), for backwards compatibility with “C templates.” This blew my mind. I’ve *never* seen or heard tell of anything like C++’s templates (except, perhaps, the preprocessor… and that’s not really the same thing at all) in ANSI C. So, did I miss something *huge* somewhere, or is this a really esoteric extension by `gcc` or something, or is my teacher way off-base?
c
c++
templates
ansi-c
standards
null
open
Does ANSI C support ‘templates?’ === I’m taking a C++ class, and my teacher mentioned in passing that the `typename` keyword existed in C++ (as opposed to using the `class` keyword in a template declaration), for backwards compatibility with “C templates.” This blew my mind. I’ve *never* seen or heard tell of anything like C++’s templates (except, perhaps, the preprocessor… and that’s not really the same thing at all) in ANSI C. So, did I miss something *huge* somewhere, or is this a really esoteric extension by `gcc` or something, or is my teacher way off-base?
0
3,423,193
08/06/2010 11:11:15
412,947
08/06/2010 11:11:15
1
0
Why NoSQL say traditional RDBMS is not good at scalable
I've read some article say that RDBMS such as MySQL is not good at scalable,but NoSQL such as MongoDB can shard well. **I want to know which feature that RDBMS provided make itself can not shard well.**
nosql
rdbms
sharding
scalable
null
06/02/2012 17:00:22
not constructive
Why NoSQL say traditional RDBMS is not good at scalable === I've read some article say that RDBMS such as MySQL is not good at scalable,but NoSQL such as MongoDB can shard well. **I want to know which feature that RDBMS provided make itself can not shard well.**
4
11,365,725
07/06/2012 15:58:31
1,326,247
04/11/2012 09:49:37
29
1
iterating over dictionary
ihave probleme with Dictionary(buzzCompaignsPerUserIntersets) , i have dictionary (key = Interest and value = ICollection<BuzzCompaign>), i want to remove from value of each key , compaign wich verify condition here is the code who i used : foreach(var dic_compaign in buzzCompaignsPerUserIntersets) { var listCompaign = buzzCompaignsPerUserIntersets[dic_compaign.Key]; for (int i = 0; i < listCompaign.Count(); i++) { if (listCompaign.ElementAt(i).MayaMembership.MayaProfile.MayaProfileId == profile_id) buzzCompaignsPerUserIntersets[dic_compaign.Key].Remove(listCompaign.ElementAt(i)); } } with this code i have strange result because i iterate over a dictionary wich i remove element from them , have you any suggestion
c#-4.0
dictionary
null
null
null
null
open
iterating over dictionary === ihave probleme with Dictionary(buzzCompaignsPerUserIntersets) , i have dictionary (key = Interest and value = ICollection<BuzzCompaign>), i want to remove from value of each key , compaign wich verify condition here is the code who i used : foreach(var dic_compaign in buzzCompaignsPerUserIntersets) { var listCompaign = buzzCompaignsPerUserIntersets[dic_compaign.Key]; for (int i = 0; i < listCompaign.Count(); i++) { if (listCompaign.ElementAt(i).MayaMembership.MayaProfile.MayaProfileId == profile_id) buzzCompaignsPerUserIntersets[dic_compaign.Key].Remove(listCompaign.ElementAt(i)); } } with this code i have strange result because i iterate over a dictionary wich i remove element from them , have you any suggestion
0
10,884,651
06/04/2012 16:24:11
20,358
09/22/2008 10:58:53
1,510
22
Linq: adding conditions to the where clause conditionally
I have a query like this (from u in DataContext.Users where u.Division == strUserDiv && u.Age > 18 && u.Height > strHeightinFeet select new DTO_UserMaster { Prop1 = u.Name, }).ToList(); I want to add the various conditions like age, height based on whether those conditions were provided to the method running this query. All conditions will include user Division. If age was supplied I want to add that to the query. Similary, if height was provided I want to add that as well. If this were to be done using sql queries I would have used string builder to have them appended to the main strSQL query. But here in Linq I can only think of using an IF condition where I will write the same query thrice, with each IF block having an additional condition. Is there a better way to do this? Thanks for your time..
linq
entity-framework
linq-to-sql
null
null
null
open
Linq: adding conditions to the where clause conditionally === I have a query like this (from u in DataContext.Users where u.Division == strUserDiv && u.Age > 18 && u.Height > strHeightinFeet select new DTO_UserMaster { Prop1 = u.Name, }).ToList(); I want to add the various conditions like age, height based on whether those conditions were provided to the method running this query. All conditions will include user Division. If age was supplied I want to add that to the query. Similary, if height was provided I want to add that as well. If this were to be done using sql queries I would have used string builder to have them appended to the main strSQL query. But here in Linq I can only think of using an IF condition where I will write the same query thrice, with each IF block having an additional condition. Is there a better way to do this? Thanks for your time..
0
11,713,278
07/29/2012 21:52:38
1,476,992
06/23/2012 15:26:36
1
0
nav menu not functioning correctly
Ok, I'm working on this website (its my first one), and I am looking for some insight on making my nav menu work better. When you go to the "projects" page, the about button all of a sudden looks like it has too much spacing to the right. Also, when you go to the "Contact" page, the menu is totally messed up. I thought about just adding the home button to the main page navigation so all the menus would be exactly the same and maybe it would work right, but there HAS to be a better solution. Also, the website looks really flat. I'd be open to suggestions on giving it some depth, as well as any other criticism you may have. (bear in mind I've only been doing this for a couple months). here's the web address: http://s423839726.onlinehome.us/index2.html here's my HTML: <ul class="transparent" id="navcontainer" > <li class="topnavleft floatleft"><a href="index2.html">Home</a></li> <li class="topnav floatleft"><a href="About.html">About</a></li> <li class="topnavright floatleft"><a href="Projects.html">Projects</a></li> </ul> </div><!--end header--> and my CSS: #navcontainer { margin-top: 0px; padding: 0; height: 55px; width: 232px; float: right; overflow:visible; } .topnav { width: 45px; border-right: 1px solid white; margin-right: 10px; padding-right: 22px; margin-left: 10px; margin-top: 16px; } .topnavleft { width: 45px; border-right: 1px solid white; border-left: 1px solid white; margin-left: 7px; padding-left: 10px; padding-right: 6px; margin-top: 16px; } .topnavright { width: 45px; border-right: 1px solid white; margin-right: 7px; padding-right: 20px; padding-left: 1px; margin-top: 16px; } thanks in advance for your assistance!
html
css
div
menu
navigation
null
open
nav menu not functioning correctly === Ok, I'm working on this website (its my first one), and I am looking for some insight on making my nav menu work better. When you go to the "projects" page, the about button all of a sudden looks like it has too much spacing to the right. Also, when you go to the "Contact" page, the menu is totally messed up. I thought about just adding the home button to the main page navigation so all the menus would be exactly the same and maybe it would work right, but there HAS to be a better solution. Also, the website looks really flat. I'd be open to suggestions on giving it some depth, as well as any other criticism you may have. (bear in mind I've only been doing this for a couple months). here's the web address: http://s423839726.onlinehome.us/index2.html here's my HTML: <ul class="transparent" id="navcontainer" > <li class="topnavleft floatleft"><a href="index2.html">Home</a></li> <li class="topnav floatleft"><a href="About.html">About</a></li> <li class="topnavright floatleft"><a href="Projects.html">Projects</a></li> </ul> </div><!--end header--> and my CSS: #navcontainer { margin-top: 0px; padding: 0; height: 55px; width: 232px; float: right; overflow:visible; } .topnav { width: 45px; border-right: 1px solid white; margin-right: 10px; padding-right: 22px; margin-left: 10px; margin-top: 16px; } .topnavleft { width: 45px; border-right: 1px solid white; border-left: 1px solid white; margin-left: 7px; padding-left: 10px; padding-right: 6px; margin-top: 16px; } .topnavright { width: 45px; border-right: 1px solid white; margin-right: 7px; padding-right: 20px; padding-left: 1px; margin-top: 16px; } thanks in advance for your assistance!
0
9,626,575
03/08/2012 23:15:43
1,258,174
03/08/2012 23:07:46
1
0
Dual-SIM Change Default SIM card
what functions do I need to change default SIM-card for a dual-sim phone?
android
sim-card
dual
null
null
null
open
Dual-SIM Change Default SIM card === what functions do I need to change default SIM-card for a dual-sim phone?
0
6,431,755
06/21/2011 20:45:31
809,223
06/21/2011 20:34:40
1
0
Javascript function does not work in Chrome in separate file
Noob here, I have a really basic function that when included directly on the page it works in FF, IE, Chrome. But when I put it in an external file it still works in IE and FF but not in Chrome. function charCount(inputBox, charRemain){ cc = inputBox.value.length; ccMax = inputBox.maxLength; document.getElementById(charRemain).value = ccMax - cc; }
javascript
function
google-chrome
null
null
01/14/2012 17:50:52
too localized
Javascript function does not work in Chrome in separate file === Noob here, I have a really basic function that when included directly on the page it works in FF, IE, Chrome. But when I put it in an external file it still works in IE and FF but not in Chrome. function charCount(inputBox, charRemain){ cc = inputBox.value.length; ccMax = inputBox.maxLength; document.getElementById(charRemain).value = ccMax - cc; }
3
10,683,526
05/21/2012 10:26:17
743,887
05/08/2011 12:59:34
15
0
Extend msbuild dbbuild target
How can I extend database build target from Microsoft.Data.Schema.Common.targets? I need to do exactly the same like in this thread but for databases: http://stackoverflow.com/questions/10555649/msbuild-corecompile-depends-on-targets Is there any property like "TargetsTriggeredByCompilation"?
msbuild
cruisecontrol.net
null
null
null
null
open
Extend msbuild dbbuild target === How can I extend database build target from Microsoft.Data.Schema.Common.targets? I need to do exactly the same like in this thread but for databases: http://stackoverflow.com/questions/10555649/msbuild-corecompile-depends-on-targets Is there any property like "TargetsTriggeredByCompilation"?
0
6,133,201
05/26/2011 02:53:46
368,034
06/16/2010 08:24:37
49
6
PHP function to get data from web service
Im not getting the data correctly. this just gave me nothing!? function getUser() { $json = file_get_contents('http://onleague.stormrise.pt:8031/OnLeagueRest/resources/onleague/Social/WallEntries?id_user=a7664093-502e-4d2b-bf30-25a2b26d6021&count=3'); $data = json_decode($json, TRUE); $user = array(); foreach($data['data']['item'] as $item) { $user[] = $item; } foreach($user as $v) { echo $v['userID']." ".$v['userName'].'<br />'; } } getUser();
php
web-services
json
null
null
05/26/2011 07:09:43
not a real question
PHP function to get data from web service === Im not getting the data correctly. this just gave me nothing!? function getUser() { $json = file_get_contents('http://onleague.stormrise.pt:8031/OnLeagueRest/resources/onleague/Social/WallEntries?id_user=a7664093-502e-4d2b-bf30-25a2b26d6021&count=3'); $data = json_decode($json, TRUE); $user = array(); foreach($data['data']['item'] as $item) { $user[] = $item; } foreach($user as $v) { echo $v['userID']." ".$v['userName'].'<br />'; } } getUser();
1
2,221,716
02/08/2010 13:06:11
268,648
02/08/2010 12:40:44
1
0
Android: How to consume xml from webservice using authentication?
I am trying to call a restful webservice (that needs to require authentication) from my android app. I am doing this successfully already with a url that does not require authentication, but am not sure of the correct approach to use if I want to set up a url that does require authentication. I am currently consuming xml using a Sax Parser and calling url.openStream() like this: ` URL url = new URL('MyUnAuthenticatedURL'); SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); final QuestionHandler myQuestionHandler = new QuestionHandler(); xr.setContentHandler(myQuestionHandler); xr.parse(new InputSource(url.openStream())); handler.post(new Runnable() { public void run() { recentQuestions = myQuestionHandler.getResultList(); loadQuestions = false; fillData(); } }); ` I read that I should use org.apache.http.impl.client.DefaultHttpClient in order to take advantage of HTTP Basic Authentication using default session cookies, but I don't understand how this should be done in conjunction with the the Sax Parser. The main goal here is that I want to call a url that requires an authenticated username, and have that url return XML if the username is authenticated with a password. Can someone point me in the right direction? Thanks!
android
rest
restful-authentication
web-services
null
null
open
Android: How to consume xml from webservice using authentication? === I am trying to call a restful webservice (that needs to require authentication) from my android app. I am doing this successfully already with a url that does not require authentication, but am not sure of the correct approach to use if I want to set up a url that does require authentication. I am currently consuming xml using a Sax Parser and calling url.openStream() like this: ` URL url = new URL('MyUnAuthenticatedURL'); SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); final QuestionHandler myQuestionHandler = new QuestionHandler(); xr.setContentHandler(myQuestionHandler); xr.parse(new InputSource(url.openStream())); handler.post(new Runnable() { public void run() { recentQuestions = myQuestionHandler.getResultList(); loadQuestions = false; fillData(); } }); ` I read that I should use org.apache.http.impl.client.DefaultHttpClient in order to take advantage of HTTP Basic Authentication using default session cookies, but I don't understand how this should be done in conjunction with the the Sax Parser. The main goal here is that I want to call a url that requires an authenticated username, and have that url return XML if the username is authenticated with a password. Can someone point me in the right direction? Thanks!
0
7,275,519
09/01/2011 19:32:29
214,547
11/19/2009 12:11:37
451
10
How to install the Eclipse plugin for Symfony 2?
I want to install the Eclipse plugin for Symfony 2. But I'm stuck at the start. I'm following the guide at http://pulse00.github.com/Symfony-2-Eclipse-Plugin/. > Prerequisites > > At the current stage the Symfony Eclipse Plugin requires a nightly > build of the PHP Development Tools (PDT), as there have been some > changes to the way extenders can hook into PDT. This nightly build can > be downloaded as a build artifact from the eclipse continuous > integration site. You'll need to download a file called > pdt-Update-N[TIMESTAMP]>.zip by clicking the latest build in the build > history -> Build artifacts -> build/N[TIMESTAMP] . So, I visited the "eclipse continuous integration site" at https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/ but I couldnt find the file they said: pdt-Update-N[TIMESTAMP]. I just can't find it there. I tried downloading some other files but don't know what to do with them.
eclipse
plugins
symfony
null
null
null
open
How to install the Eclipse plugin for Symfony 2? === I want to install the Eclipse plugin for Symfony 2. But I'm stuck at the start. I'm following the guide at http://pulse00.github.com/Symfony-2-Eclipse-Plugin/. > Prerequisites > > At the current stage the Symfony Eclipse Plugin requires a nightly > build of the PHP Development Tools (PDT), as there have been some > changes to the way extenders can hook into PDT. This nightly build can > be downloaded as a build artifact from the eclipse continuous > integration site. You'll need to download a file called > pdt-Update-N[TIMESTAMP]>.zip by clicking the latest build in the build > history -> Build artifacts -> build/N[TIMESTAMP] . So, I visited the "eclipse continuous integration site" at https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/ but I couldnt find the file they said: pdt-Update-N[TIMESTAMP]. I just can't find it there. I tried downloading some other files but don't know what to do with them.
0
6,039,522
05/18/2011 03:25:02
371,588
06/20/2010 16:08:42
577
4
Given the X and Y velocity of an object, how can the angle be computed?
For a particle moving about in the Cartesian coordinate system (neglecting z), how can the angle of travel be computed given the velocity of X and Y? Before anyone says this isn't programming related, I am programming this right now, however I don't know vector math. Thanks for looking. Ex. x-velocity = 5.0 and y-velocity = -1.5, then angle = ???
math
vector
null
null
null
05/18/2011 03:31:06
off topic
Given the X and Y velocity of an object, how can the angle be computed? === For a particle moving about in the Cartesian coordinate system (neglecting z), how can the angle of travel be computed given the velocity of X and Y? Before anyone says this isn't programming related, I am programming this right now, however I don't know vector math. Thanks for looking. Ex. x-velocity = 5.0 and y-velocity = -1.5, then angle = ???
2
11,624,363
07/24/2012 04:52:39
744,041
05/08/2011 16:45:45
16
3
Internet connectivity for videos -- does it work for ANYONE, AT ALL, in the U.S.?
[this question is for US residents] At home I have DSL. At my favorite pub they use ComCast. At work, well, it's a University, so we have a HUGE, FAT pipe to the internet. *BUT!* I have NEVER, in ANY of these environments, even ONCE, been able to watch a streaming video from beginning to end. I'm not talking about a feature-length film. I'm talking about **30 SECONDS** here. I don't do big TV shows or movies over the 'net; how could it possibly work? ... even at the University, it takes 10 MINUTES to download a 30-second clip. \* \* \* ABSOLUTELY UNUSABLE * * * ... is it just me? ... OR, do I need to move to South Korea to find a connection that just, plain, actually, works? ... is the US a THIRD-WORLD nation in these terms?
internet
null
null
null
null
07/24/2012 11:43:44
off topic
Internet connectivity for videos -- does it work for ANYONE, AT ALL, in the U.S.? === [this question is for US residents] At home I have DSL. At my favorite pub they use ComCast. At work, well, it's a University, so we have a HUGE, FAT pipe to the internet. *BUT!* I have NEVER, in ANY of these environments, even ONCE, been able to watch a streaming video from beginning to end. I'm not talking about a feature-length film. I'm talking about **30 SECONDS** here. I don't do big TV shows or movies over the 'net; how could it possibly work? ... even at the University, it takes 10 MINUTES to download a 30-second clip. \* \* \* ABSOLUTELY UNUSABLE * * * ... is it just me? ... OR, do I need to move to South Korea to find a connection that just, plain, actually, works? ... is the US a THIRD-WORLD nation in these terms?
2
11,555,351
07/19/2012 06:49:21
1,053,278
11/18/2011 06:57:38
3
0
How to convert xhtml files into epub format using java
Please help me in converting the Xhtml files to epub format completely using java. Thanks in advance, Varsha.
xhtml
epub
null
null
null
07/20/2012 13:06:14
not a real question
How to convert xhtml files into epub format using java === Please help me in converting the Xhtml files to epub format completely using java. Thanks in advance, Varsha.
1
5,846,149
05/01/2011 03:04:25
339,518
05/12/2010 16:20:26
111
3
AES_256 same value to encrypt, different encryption results
I am just starting to work with native encryption in SQL Server, and I have observed something I am hoping someone here can shed some light on. I'm using AES_256 encryption, and in reviewing the encrypted result, I have noticed that the same value in different rows will have a different encrypted result. Here is a sample where I have encrypted an nvarchar(50) with a value of xxx and I get the follow encrypted result: xxx 0x008C6C289DE9BE42AA47EC9F2022DCC401000000657FCB75FD4C63F63249A0BCA716CB384E79B84E3D862EC41C6A4A491C64658A xxx 0x008C6C289DE9BE42AA47EC9F2022DCC4010000004BE3C369FFD523110CAA3A957FC4A7820F779ADB8882A0A33A53DF480FE797A8 xxx 0x008C6C289DE9BE42AA47EC9F2022DCC40100000002288512DFB126BC6E17320217629365478B48691E62863B9A08E3772EFA7486 xxx 0x008C6C289DE9BE42AA47EC9F2022DCC40100000076223FB6D568E210D6D07AA9BFEDB991D46EF64187F2A31AEF96A5F61FE722A3 xxx 0x008C6C289DE9BE42AA47EC9F2022DCC401000000E90AFB7EBA5B445CCAD9E6CC94966DC66B86557F2CD5E3E1FB68F308FA5F2952 I've been searching around but have not found an answer yet. Anybody know why this occurs? Thanks.
sql-server-2008
encryption
encryption-symmetric
aes
null
null
open
AES_256 same value to encrypt, different encryption results === I am just starting to work with native encryption in SQL Server, and I have observed something I am hoping someone here can shed some light on. I'm using AES_256 encryption, and in reviewing the encrypted result, I have noticed that the same value in different rows will have a different encrypted result. Here is a sample where I have encrypted an nvarchar(50) with a value of xxx and I get the follow encrypted result: xxx 0x008C6C289DE9BE42AA47EC9F2022DCC401000000657FCB75FD4C63F63249A0BCA716CB384E79B84E3D862EC41C6A4A491C64658A xxx 0x008C6C289DE9BE42AA47EC9F2022DCC4010000004BE3C369FFD523110CAA3A957FC4A7820F779ADB8882A0A33A53DF480FE797A8 xxx 0x008C6C289DE9BE42AA47EC9F2022DCC40100000002288512DFB126BC6E17320217629365478B48691E62863B9A08E3772EFA7486 xxx 0x008C6C289DE9BE42AA47EC9F2022DCC40100000076223FB6D568E210D6D07AA9BFEDB991D46EF64187F2A31AEF96A5F61FE722A3 xxx 0x008C6C289DE9BE42AA47EC9F2022DCC401000000E90AFB7EBA5B445CCAD9E6CC94966DC66B86557F2CD5E3E1FB68F308FA5F2952 I've been searching around but have not found an answer yet. Anybody know why this occurs? Thanks.
0
8,872,581
01/15/2012 19:19:56
441,786
09/07/2010 19:52:15
23
2
Difference in C++ & Java/C# object creation
What is the difference between **C++ object declaration** (or way of creating objects) 1. Box Mybox=Box(); //explicit 2. Box Mybox; //implicit 3. Foo *ptr=new Foo(); //object pointer **AND** **Java/C# object declaration** - Box Mybox=new Box(); I understand that 'new' means it dynamically allocates memory to the object. But how is it done in C++? Why do we need to allocate memory dynamically in Java/C#? Probably its related to allocating on stack/heap and other things as well. **P.S:** Please explain the internal workings of it.
java
c++
c#-4.0
null
null
01/15/2012 19:46:27
not constructive
Difference in C++ & Java/C# object creation === What is the difference between **C++ object declaration** (or way of creating objects) 1. Box Mybox=Box(); //explicit 2. Box Mybox; //implicit 3. Foo *ptr=new Foo(); //object pointer **AND** **Java/C# object declaration** - Box Mybox=new Box(); I understand that 'new' means it dynamically allocates memory to the object. But how is it done in C++? Why do we need to allocate memory dynamically in Java/C#? Probably its related to allocating on stack/heap and other things as well. **P.S:** Please explain the internal workings of it.
4
6,644,803
07/11/2011 00:58:33
838,081
07/11/2011 00:58:33
1
0
Anyother way to clone a linux OS faster than using "dd"?
I have to clone a linux drive installed in a 30gig partition. Most of the space is unused(not much user data), even though the partition is big. "dd" command takes quite a bit of time to capture and restore the whole 30Gig. Is there a faster way?Like **"dd" the first 512b, (bootloader) ..Then tgz the entire file system..** If i follow this , am i missing something, that i would be getting through "dd"?
cloning
null
null
null
null
07/11/2011 01:32:43
off topic
Anyother way to clone a linux OS faster than using "dd"? === I have to clone a linux drive installed in a 30gig partition. Most of the space is unused(not much user data), even though the partition is big. "dd" command takes quite a bit of time to capture and restore the whole 30Gig. Is there a faster way?Like **"dd" the first 512b, (bootloader) ..Then tgz the entire file system..** If i follow this , am i missing something, that i would be getting through "dd"?
2
8,918,912
01/18/2012 23:12:44
474,980
10/13/2010 19:50:20
349
6
Why are my social media icons huge?
I tried to add some social media icons to my header just now and they are about 10 times larger than they should be. I've gone through the css and used firebug and I can't find what is doing this. I would like them to be their regular size and sit on the top right of the header. Thanks in advance!! Here's what it looks like ( http://www.bolistylus.com ): ![enter image description here][1] [1]: http://i.stack.imgur.com/7GSFx.png Here's the style.css: a { color: #254655; } ul, ol { margin: 0 0 0 5.5em; } #page { margin: 0 auto; } body{ background: #f3f3f3; border-top: none; border-top: 10px solid #666666; } #page { margin: 0em auto; width: 1000px; } .singular.page .hentry { padding: 0.5em 0 0; } #branding{ background: #f3f3f3; color: #000000; border-top: none; position: relative; z-index: 2; } #site-title { /*margin-right: 270px;*/ padding: 0.66em 0 0 0; } #site-title a { color: #111111; font-size: 60px; font-weight: bold; line-height: 36px; text-decoration: none; } #branding h1, header#branding a{ text-align: left; margin-right: 0; } #branding span{ text-align: center; } #branding img { height: auto; margin-bottom: -.66em; width: 30%; } #branding .widget{ position: absolute; top: 2em; right: 7.6%; } #respond{ background: #E7DFD6; } .welcome{ margin: 15px 60px; background: #f3f3f3; border: 1px solid #f6ff96; padding: 15px; text-align: center; } /* =Menu -------------------------------------------------------------- */ /*.header_nav ul{ margin: 0; padding: 0; text-align: center; width: 400px; } */ #branding img .sm-img { height: auto; margin-bottom: -.66em; width: 100%; } .header_nav { background: #f3f3f3 } .header_nav .head-nav { border-bottom: 1px solid #cfcec9; border-top: 1px solid #cfcec9; margin-top: 30px; padding-top: 5px; padding-bottom: 5px; text-align: right } .header_nav ul li{ display: inline; } .header_nav ul li a{ padding: 10.5px 21px; color: #000000; } .header_nav ul li a:hover, .menu ul li .current{ color: #a8cb17; text-decoration: none; } #access { background: #f3f3f3; /* Show a solid color for older browsers */ } #access ul { font-size: 13px; list-style: none; margin: 0 0 0 -0.8125em; padding-left: 0; } #access li { float: center; position: relative; display: inline; } #access a { } #access ul ul { } #access ul ul ul { } #access ul ul a { } #access a:focus { } #access li:hover > a, #access a:focus { } #access ul li:hover > ul { } #access .current_page_item > a, #access .current_page_ancestor > a { font-weight: bold; }
html
css
null
null
null
null
open
Why are my social media icons huge? === I tried to add some social media icons to my header just now and they are about 10 times larger than they should be. I've gone through the css and used firebug and I can't find what is doing this. I would like them to be their regular size and sit on the top right of the header. Thanks in advance!! Here's what it looks like ( http://www.bolistylus.com ): ![enter image description here][1] [1]: http://i.stack.imgur.com/7GSFx.png Here's the style.css: a { color: #254655; } ul, ol { margin: 0 0 0 5.5em; } #page { margin: 0 auto; } body{ background: #f3f3f3; border-top: none; border-top: 10px solid #666666; } #page { margin: 0em auto; width: 1000px; } .singular.page .hentry { padding: 0.5em 0 0; } #branding{ background: #f3f3f3; color: #000000; border-top: none; position: relative; z-index: 2; } #site-title { /*margin-right: 270px;*/ padding: 0.66em 0 0 0; } #site-title a { color: #111111; font-size: 60px; font-weight: bold; line-height: 36px; text-decoration: none; } #branding h1, header#branding a{ text-align: left; margin-right: 0; } #branding span{ text-align: center; } #branding img { height: auto; margin-bottom: -.66em; width: 30%; } #branding .widget{ position: absolute; top: 2em; right: 7.6%; } #respond{ background: #E7DFD6; } .welcome{ margin: 15px 60px; background: #f3f3f3; border: 1px solid #f6ff96; padding: 15px; text-align: center; } /* =Menu -------------------------------------------------------------- */ /*.header_nav ul{ margin: 0; padding: 0; text-align: center; width: 400px; } */ #branding img .sm-img { height: auto; margin-bottom: -.66em; width: 100%; } .header_nav { background: #f3f3f3 } .header_nav .head-nav { border-bottom: 1px solid #cfcec9; border-top: 1px solid #cfcec9; margin-top: 30px; padding-top: 5px; padding-bottom: 5px; text-align: right } .header_nav ul li{ display: inline; } .header_nav ul li a{ padding: 10.5px 21px; color: #000000; } .header_nav ul li a:hover, .menu ul li .current{ color: #a8cb17; text-decoration: none; } #access { background: #f3f3f3; /* Show a solid color for older browsers */ } #access ul { font-size: 13px; list-style: none; margin: 0 0 0 -0.8125em; padding-left: 0; } #access li { float: center; position: relative; display: inline; } #access a { } #access ul ul { } #access ul ul ul { } #access ul ul a { } #access a:focus { } #access li:hover > a, #access a:focus { } #access ul li:hover > ul { } #access .current_page_item > a, #access .current_page_ancestor > a { font-weight: bold; }
0
9,828,944
03/22/2012 19:12:44
1,286,776
03/22/2012 19:10:57
1
0
Unable to open 2.0 zip archive
I downloaded play-2.0.zip from the website. When I try to unzip it (using 7-zip), I get an error can open <file> as archive
playframework
null
null
null
null
03/23/2012 05:15:41
off topic
Unable to open 2.0 zip archive === I downloaded play-2.0.zip from the website. When I try to unzip it (using 7-zip), I get an error can open <file> as archive
2
3,843,668
10/01/2010 23:29:47
45,777
12/12/2008 17:11:15
591
20
Project management with Git integration
I've looked around for a project management system, I've tried to use [this one][1] but it lacks some features I want and doesn't really seem to be under any sort of active development. I only need a few features: 1. Basic project/task management 2. Very good git integration (when I pull/push my repo I want the management files to go too) 3. Vim integration (or at least use the editor I have set a la 'export EDITOR=/usr/bin/vim' 4. A note taking system (for meetings ideally) Of all the project management systems I've found, [fossil][2] comes closest to satisfying my needs, but still falls short. [1]: http://github.com/michaeldv/pit [2]: http://www.fossil-scm.org/index.html/doc/tip/www/quickstart.wiki
git
project-management
null
null
null
null
open
Project management with Git integration === I've looked around for a project management system, I've tried to use [this one][1] but it lacks some features I want and doesn't really seem to be under any sort of active development. I only need a few features: 1. Basic project/task management 2. Very good git integration (when I pull/push my repo I want the management files to go too) 3. Vim integration (or at least use the editor I have set a la 'export EDITOR=/usr/bin/vim' 4. A note taking system (for meetings ideally) Of all the project management systems I've found, [fossil][2] comes closest to satisfying my needs, but still falls short. [1]: http://github.com/michaeldv/pit [2]: http://www.fossil-scm.org/index.html/doc/tip/www/quickstart.wiki
0
9,429,639
02/24/2012 11:03:53
1,099,883
12/15/2011 12:55:27
33
2
How to create autocomplete textbox in WPF?
I want to create a textbox that works like ajax auto complete control in wpf and search the data from database not web services Please guide me
asp.net
wpf
null
null
null
06/04/2012 01:59:22
not a real question
How to create autocomplete textbox in WPF? === I want to create a textbox that works like ajax auto complete control in wpf and search the data from database not web services Please guide me
1
4,584,668
01/03/2011 13:07:00
560,679
01/02/2011 23:07:37
6
0
Android - Change View when alertdialog button is clicked
I have a listview with a couple of strings in at the moment. when a user selects one it brings up an alertdialog box which gives the option to book(this is going to be a taxi app) or cancel. What i cant work out is how to get it so that when the user clicks "Book" it takes the information they've selected and loads up a new view with more contact information. My Code is currently this - public class ListTaxi extends ListActivity{ /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String[] taxi = getResources().getStringArray(R.array.taxi_array); setListAdapter(new ArrayAdapter<String>(this, R.layout.listtaxi, taxi)); final ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> a, View v, int position, long id) { AlertDialog.Builder adb=new AlertDialog.Builder(ListTaxi.this); adb.setTitle("Taxi Booking"); adb.setMessage("You have chosen = "+lv.getItemAtPosition(position)); adb.setPositiveButton("Book", null); adb.setNegativeButton("Cancel", null); adb.show(); } }); Any help or pointers with this would be immensely appreciated as its the last bit i need to get working before its almost done. Thanks everyone Oli
android
listview
alertdialog
null
null
null
open
Android - Change View when alertdialog button is clicked === I have a listview with a couple of strings in at the moment. when a user selects one it brings up an alertdialog box which gives the option to book(this is going to be a taxi app) or cancel. What i cant work out is how to get it so that when the user clicks "Book" it takes the information they've selected and loads up a new view with more contact information. My Code is currently this - public class ListTaxi extends ListActivity{ /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String[] taxi = getResources().getStringArray(R.array.taxi_array); setListAdapter(new ArrayAdapter<String>(this, R.layout.listtaxi, taxi)); final ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> a, View v, int position, long id) { AlertDialog.Builder adb=new AlertDialog.Builder(ListTaxi.this); adb.setTitle("Taxi Booking"); adb.setMessage("You have chosen = "+lv.getItemAtPosition(position)); adb.setPositiveButton("Book", null); adb.setNegativeButton("Cancel", null); adb.show(); } }); Any help or pointers with this would be immensely appreciated as its the last bit i need to get working before its almost done. Thanks everyone Oli
0
8,195,085
11/19/2011 15:40:16
1,003,363
10/19/2011 14:30:28
15
0
Android Service and AlertDialog Activity
I'm trying to build a service which runs in the background and pops up an alert dialog even when you are not in the application screen currently. I'm using an alarm manager. My problem is that when my alert dialog activity pops up - it shows the application activity as background. In other words, I don't want the alert dialog to change the current background and after the user is clicking "OK" it will be back to the same state, and not to my application. How can I do that ?
android
android-layout
android-ui
android-alertdialog
null
null
open
Android Service and AlertDialog Activity === I'm trying to build a service which runs in the background and pops up an alert dialog even when you are not in the application screen currently. I'm using an alarm manager. My problem is that when my alert dialog activity pops up - it shows the application activity as background. In other words, I don't want the alert dialog to change the current background and after the user is clicking "OK" it will be back to the same state, and not to my application. How can I do that ?
0
7,241,013
08/30/2011 09:15:21
325,241
04/25/2010 04:06:57
2,451
113
How to write a demo page that will provide the code of itself?
Suppose you've made a demo(a webpage) of your product, you want to make a page to display the demo, and in the bottom of the page, there is a button by click which you can display the source code of the demo above. How to do this job nicely?
javascript
html
self
demo
null
null
open
How to write a demo page that will provide the code of itself? === Suppose you've made a demo(a webpage) of your product, you want to make a page to display the demo, and in the bottom of the page, there is a button by click which you can display the source code of the demo above. How to do this job nicely?
0
11,444,567
07/12/2012 03:18:17
1,402,725
05/18/2012 06:55:36
10
0
Monitor Thread behavior with MAC OS
I want to watch the behavior of the OS on how to assign Thread to core of the CPU. So, could someone offer me some tool in MAC OS? Windows 7 is also fine.
osx
operating-system
multicore
null
null
07/13/2012 12:47:14
not constructive
Monitor Thread behavior with MAC OS === I want to watch the behavior of the OS on how to assign Thread to core of the CPU. So, could someone offer me some tool in MAC OS? Windows 7 is also fine.
4
10,184,801
04/17/2012 03:50:41
1,337,740
04/17/2012 03:40:38
1
0
recursive division method
I need to create a recursive method that will convert the first value (base 10) into a number in the base of the second. This is what I have so far, but for some reason I cannot get the recursive function to work properly. Thank you. package lab06250; import java.util.Scanner; public class Main { public static void main(String[] args) { Number newNumber; newNumber = new Number(); Scanner kbd = new Scanner(System.in); int number; int remainder = 0; int base; System.out.println("Enter number:"); number = kbd.nextInt(); System.out.println("Enter base"); base = kbd.nextInt(); kbd.nextLine(); System.out.println(Division(number, base)); } public static int Division(int n, int b){ int result; if (n == 1) result = 1; else result = Division(b, (n / b)); return n; } }
java
homework
function
methods
recursion
04/17/2012 04:35:43
not a real question
recursive division method === I need to create a recursive method that will convert the first value (base 10) into a number in the base of the second. This is what I have so far, but for some reason I cannot get the recursive function to work properly. Thank you. package lab06250; import java.util.Scanner; public class Main { public static void main(String[] args) { Number newNumber; newNumber = new Number(); Scanner kbd = new Scanner(System.in); int number; int remainder = 0; int base; System.out.println("Enter number:"); number = kbd.nextInt(); System.out.println("Enter base"); base = kbd.nextInt(); kbd.nextLine(); System.out.println(Division(number, base)); } public static int Division(int n, int b){ int result; if (n == 1) result = 1; else result = Division(b, (n / b)); return n; } }
1
6,287,361
06/09/2011 02:12:20
445,338
09/11/2010 23:18:54
113
0
JavaScript web app ideas?
There's this context at school where the best javascript app gets a trip to google offices. Can you give me some ideas on some cool app/game that I could make in javascript?
javascript
project-ideas
null
null
null
06/09/2011 02:34:05
not a real question
JavaScript web app ideas? === There's this context at school where the best javascript app gets a trip to google offices. Can you give me some ideas on some cool app/game that I could make in javascript?
1
11,182,445
06/25/2012 01:05:29
1,091,790
12/11/2011 00:19:56
88
0
Can I use PHP, MySQL, and Javascript to create an instant messaging system on my website?
Can I use only these technologies to create a Facebook-like instant messaging/chat feature for my website, or do I need to invoke other technologies, such as cron? I'm running a Linux server.
php
javascript
mysql
cron
chat
06/25/2012 01:16:30
not a real question
Can I use PHP, MySQL, and Javascript to create an instant messaging system on my website? === Can I use only these technologies to create a Facebook-like instant messaging/chat feature for my website, or do I need to invoke other technologies, such as cron? I'm running a Linux server.
1
3,016,983
06/10/2010 17:43:11
361,646
06/08/2010 17:33:36
1
0
Chaining Named Scopes not working as intended
I have 2 simple named scopes defined as such: class Numbers < ActiveRecord::Base named_scope :even, :conditions => {:title => ['2','4','6']} named_scope :odd, :conditions => {:title => ['1','3','5']} end if I call Numbers.even I get back 2,4,6 which is correct if I call Numbers.odd I get back 1,3,5 which is correct When I chain them together like this: Numbers.even.odd I get back 1,3,5 because that is the last scope I reference. So if I say Numbers.odd.even I would actually get 2,4,6. I would expect to get 1,2,3,4,5,6 when I chain them together. One other approach I tried was this: named_scope :even, :conditions => ["title IN (?)", ['2', '4','6']] named_scope :odd, :conditions => ["title IN (?)", ['1', '3','5']] But I get no results when I chain them together because the query it creates looks like this: SELECT * FROM `numbers` WHERE ((title IN ('1','3','5')) AND (title IN ('2','4',6'))) The 'AND' clause should be changed to OR but I have no idea how to force that. Could this be an issue with ActiveRecord??
ruby-on-rails
activerecord
named-scope
null
null
null
open
Chaining Named Scopes not working as intended === I have 2 simple named scopes defined as such: class Numbers < ActiveRecord::Base named_scope :even, :conditions => {:title => ['2','4','6']} named_scope :odd, :conditions => {:title => ['1','3','5']} end if I call Numbers.even I get back 2,4,6 which is correct if I call Numbers.odd I get back 1,3,5 which is correct When I chain them together like this: Numbers.even.odd I get back 1,3,5 because that is the last scope I reference. So if I say Numbers.odd.even I would actually get 2,4,6. I would expect to get 1,2,3,4,5,6 when I chain them together. One other approach I tried was this: named_scope :even, :conditions => ["title IN (?)", ['2', '4','6']] named_scope :odd, :conditions => ["title IN (?)", ['1', '3','5']] But I get no results when I chain them together because the query it creates looks like this: SELECT * FROM `numbers` WHERE ((title IN ('1','3','5')) AND (title IN ('2','4',6'))) The 'AND' clause should be changed to OR but I have no idea how to force that. Could this be an issue with ActiveRecord??
0
7,293,292
09/03/2011 13:09:53
40,322
11/24/2008 16:54:48
7,184
267
How to stop Server.HtmlEncode to encode UTF8 characters?
How can I stop Server.HtmlEncode to encode UTF8 characters? I set the codepage to UTF8 but didn't help Here is my test case: <%@CODEPAGE=65001%> <% Response.CodePage = 65001 Response.CharSet = "utf-8" %> <%=Server.HtmlEncode("русский stuff <b>bold stuff</b>")%> It should normally output this: русский stuff &lt;b&gt;bold stuff&lt;/b&gt; but the output is: &#1088;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081; stuff &lt;b&gt;bold stuff&lt;/b&gt;
encoding
utf-8
asp-classic
html-encode
null
null
open
How to stop Server.HtmlEncode to encode UTF8 characters? === How can I stop Server.HtmlEncode to encode UTF8 characters? I set the codepage to UTF8 but didn't help Here is my test case: <%@CODEPAGE=65001%> <% Response.CodePage = 65001 Response.CharSet = "utf-8" %> <%=Server.HtmlEncode("русский stuff <b>bold stuff</b>")%> It should normally output this: русский stuff &lt;b&gt;bold stuff&lt;/b&gt; but the output is: &#1088;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081; stuff &lt;b&gt;bold stuff&lt;/b&gt;
0
5,580,551
04/07/2011 11:50:06
696,730
04/07/2011 11:50:06
1
0
Amazon SES Implementation
I am planning to implement Amazon SES for solving my mailer issues. so my plan is to use though PHP SDK API , I install the SDK pakage in my wamp and run (http//localhost/sdk-1.3.0/sdk-1.3.0/_compatibility_test/sdk_compatibility_test.php) also . so what is my next step ? where should i insert my credentials? please help me to solve this issues!! Regards Jithin
tag-cloud
null
null
null
null
null
open
Amazon SES Implementation === I am planning to implement Amazon SES for solving my mailer issues. so my plan is to use though PHP SDK API , I install the SDK pakage in my wamp and run (http//localhost/sdk-1.3.0/sdk-1.3.0/_compatibility_test/sdk_compatibility_test.php) also . so what is my next step ? where should i insert my credentials? please help me to solve this issues!! Regards Jithin
0
10,039,460
04/06/2012 05:21:06
1,114,387
12/24/2011 08:12:18
32
0
Related to usage of dll in java
I have a dll which is developed in 'C'.<br/> I need to use it in my Java program.<br/> My problem is like this:<br/> I need to call a function of dll which has structure variable as one of its parameter from java program.<br/>How to do it?<br/>can i pass object as parameter?
java
dll
function-pointers
null
null
null
open
Related to usage of dll in java === I have a dll which is developed in 'C'.<br/> I need to use it in my Java program.<br/> My problem is like this:<br/> I need to call a function of dll which has structure variable as one of its parameter from java program.<br/>How to do it?<br/>can i pass object as parameter?
0
5,418,524
03/24/2011 11:39:34
674,810
03/24/2011 11:39:34
1
0
How to query on a month for a date with Hibernate criteria
I need to use criteria to query a database. The data I'm searching has a date, say 'startDate' and I have a month say 0 for January, I need to extract all data where startDate has month = 0; in sql I'd use something like 'where month(startDate) = 0' but I don't know how to do this with hibernate criteria and if it's possible at all. Can you help me? Thank you guys. Luca.
hibernate
criteria
null
null
null
null
open
How to query on a month for a date with Hibernate criteria === I need to use criteria to query a database. The data I'm searching has a date, say 'startDate' and I have a month say 0 for January, I need to extract all data where startDate has month = 0; in sql I'd use something like 'where month(startDate) = 0' but I don't know how to do this with hibernate criteria and if it's possible at all. Can you help me? Thank you guys. Luca.
0