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
8,119,142
11/14/2011 08:49:45
564,274
01/05/2011 16:57:21
27
0
using cron job + whois + diff for domain name hunting
Can you give me the bash script to periodically check for a domain name availability, and email me the status update, if there's any. What I know is that this can be done using cron job, whois, diff and mail programs. But due to my limited Linux background, I don't know how to manipulate the returned whois data around... Thanks,
cron
whois
domain-name
null
null
11/14/2011 22:07:06
off topic
using cron job + whois + diff for domain name hunting === Can you give me the bash script to periodically check for a domain name availability, and email me the status update, if there's any. What I know is that this can be done using cron job, whois, diff and mail programs. But due to my limited Linux background, I don't know how to manipulate the returned whois data around... Thanks,
2
3,168,362
07/02/2010 18:51:40
279,990
02/24/2010 02:10:40
110
8
Decompiler for APK?
I know it is not right to do this, but is there any APK decoder/decompiler available around?
android
null
null
null
null
05/23/2012 08:45:37
not constructive
Decompiler for APK? === I know it is not right to do this, but is there any APK decoder/decompiler available around?
4
857,814
05/13/2009 13:02:03
2,298
08/21/2008 14:31:48
2,452
81
static class data vs. anonymous namespaces in C++
I occasionally have classes with private static data members. I'm currently debating if I should replace these with static variables in an unnamed namespace in the implementation file. Other that not being able to use these variables in inline methods, are there any other drawbacks? The advantage that I see is that is hides them completely from the users of the class.
c++
design
namespaces
static-members
null
null
open
static class data vs. anonymous namespaces in C++ === I occasionally have classes with private static data members. I'm currently debating if I should replace these with static variables in an unnamed namespace in the implementation file. Other that not being able to use these variables in inline methods, are there any other drawbacks? The advantage that I see is that is hides them completely from the users of the class.
0
5,405,495
03/23/2011 12:51:21
482,138
10/20/2010 18:45:36
707
23
C# Handling Events
When I deal set up events, I usually write as such: data.event += new data.returndataeventhandler(method); And have a method as such: void method(parameter) { dosomething(); } This is when the event returns an object. I have just been reading through somebody elses code and they have used, what seems to be a much cleaner way, as such: data.ReturnData += delegate(DataSet returnedDataSet) { dataset = returnedDataSet; }; Is there any downfall to this way? Thanks.
c#
events
null
null
null
null
open
C# Handling Events === When I deal set up events, I usually write as such: data.event += new data.returndataeventhandler(method); And have a method as such: void method(parameter) { dosomething(); } This is when the event returns an object. I have just been reading through somebody elses code and they have used, what seems to be a much cleaner way, as such: data.ReturnData += delegate(DataSet returnedDataSet) { dataset = returnedDataSet; }; Is there any downfall to this way? Thanks.
0
7,714,063
10/10/2011 14:14:07
987,843
10/10/2011 14:05:19
1
0
Filtering Facebook Graph API Wall Feed (Profile Feed)
I'm using the Facebook Graph API to retrieve items from my wall with a url in the following form: https://graph.facebook.com/mypage/feed?callback=?&limit=50&access_token=xxxxx However, only one third of the items returned in the feed are actually "from me". The rest of them are messages "to me" from various Facebook users and I do not want to display them. I'm currently using JS to filter the items if the "from" json item contains my numeric id. Is there a way to filter this directly at the feed level rather than in my JavaScript app? I was thinking of something like &from=4342xxx but of course it doesn't work as expected. Thanks for your help,
json
facebook
null
null
null
null
open
Filtering Facebook Graph API Wall Feed (Profile Feed) === I'm using the Facebook Graph API to retrieve items from my wall with a url in the following form: https://graph.facebook.com/mypage/feed?callback=?&limit=50&access_token=xxxxx However, only one third of the items returned in the feed are actually "from me". The rest of them are messages "to me" from various Facebook users and I do not want to display them. I'm currently using JS to filter the items if the "from" json item contains my numeric id. Is there a way to filter this directly at the feed level rather than in my JavaScript app? I was thinking of something like &from=4342xxx but of course it doesn't work as expected. Thanks for your help,
0
5,477,265
03/29/2011 18:36:17
295,189
03/16/2010 21:44:33
838
14
conditional css
In my php file if I use some images my next button gets pushed down. I need to then use an if statement in css. how can I do that. thanks
php
css
css-selectors
null
null
03/30/2011 00:13:39
not a real question
conditional css === In my php file if I use some images my next button gets pushed down. I need to then use an if statement in css. how can I do that. thanks
1
8,657,016
12/28/2011 14:17:30
281,014
02/25/2010 08:02:52
1,028
20
Add additional data to Linq to SQL result
I have Linq to SQL query which return one field with Url and I bind it to asp.net combobox. I need to add new virtual record("All Url") to Linq to SQL result before binding the result. How to do that? var results = dataAccess.Statistics. Where(s => s.DateStamp >= minDate && s.DateStamp <= DateTime.UtcNow && s.UserId == userId). GroupBy(s => s.Url). Where(g => g.Count() > 1). OrderBy(g => g.Count()). Select(g => new { Url = dataAccess.getDomain(g.Key) }); ddlDomain.DataSource = results; ddlDomain.DataBind();
linq-to-sql
c#-4.0
null
null
null
null
open
Add additional data to Linq to SQL result === I have Linq to SQL query which return one field with Url and I bind it to asp.net combobox. I need to add new virtual record("All Url") to Linq to SQL result before binding the result. How to do that? var results = dataAccess.Statistics. Where(s => s.DateStamp >= minDate && s.DateStamp <= DateTime.UtcNow && s.UserId == userId). GroupBy(s => s.Url). Where(g => g.Count() > 1). OrderBy(g => g.Count()). Select(g => new { Url = dataAccess.getDomain(g.Key) }); ddlDomain.DataSource = results; ddlDomain.DataBind();
0
2,132,015
01/25/2010 11:56:12
86,193
04/02/2009 13:22:46
25
2
Best way to create a PDF with PHP
I've been reading up on creating a PDF file with PHP and am wondering what the easiest option is. 1) Create a PDF template and then open it and replace placeholder text -- which function do I use to open an existing pdf for editing? 2) Create a PDF template and the place text on it using co-ordinates 3) Create a html document then convert it to PDF using some sort of free tool? 4) Create a PDF from scratch using PHP. // This seams like a time consuming way to do it. Thanks! B
php
pdf
null
null
null
05/06/2012 18:48:48
not constructive
Best way to create a PDF with PHP === I've been reading up on creating a PDF file with PHP and am wondering what the easiest option is. 1) Create a PDF template and then open it and replace placeholder text -- which function do I use to open an existing pdf for editing? 2) Create a PDF template and the place text on it using co-ordinates 3) Create a html document then convert it to PDF using some sort of free tool? 4) Create a PDF from scratch using PHP. // This seams like a time consuming way to do it. Thanks! B
4
9,888,877
03/27/2012 11:40:53
1,262,665
03/11/2012 18:06:52
1
0
Convert From Geopoint To String
i have google Maps and when the user touch any point in the map i will create marker and put it in this touch place and take the whole 'Geopoint' for this marker and it all work fine. this is my code, that pt will take the coordinate. GeoPoint markerGP markerGP = pt; But i want to convert the markerGp to string any one can help me? Thanks in advance
java
android
google-maps
null
null
null
open
Convert From Geopoint To String === i have google Maps and when the user touch any point in the map i will create marker and put it in this touch place and take the whole 'Geopoint' for this marker and it all work fine. this is my code, that pt will take the coordinate. GeoPoint markerGP markerGP = pt; But i want to convert the markerGp to string any one can help me? Thanks in advance
0
6,615,157
07/07/2011 18:10:32
426,493
08/20/2010 15:32:09
638
13
Android: is there any way to iterate a Path object?
Given a `android.graphics.Path`, I would like to be able to retrieve the specific path commands: the quadTo(..), curveTo(...), lineTo(...), etc, that the Path is composed of. Java provides a PathIterator to accomplish this for GeneralPath objects, but I haven't found any equivalent for Android. Am I missing something?
android
null
null
null
null
null
open
Android: is there any way to iterate a Path object? === Given a `android.graphics.Path`, I would like to be able to retrieve the specific path commands: the quadTo(..), curveTo(...), lineTo(...), etc, that the Path is composed of. Java provides a PathIterator to accomplish this for GeneralPath objects, but I haven't found any equivalent for Android. Am I missing something?
0
9,577,523
03/06/2012 03:28:26
221,543
11/30/2009 18:43:33
464
14
HTML Form + PHP, Page Redirect
I have an HTML5 form set up like so: <form id="contact-form" action="php/email.php"> <fieldset> <ul id="form"> <li> <label for="name">Name:</label> <input id="name" name="name" type="text" placeholder="First and Last Name" required /> </li> <li> <label for="email">Email:</label> <input id="email" name="email" type="email" placeholder="Enter email address" /> </li> <li> <label for="message">Message:</label> <textarea id="message" name="message" placeholder="Leave comments here..." required></textarea> </li> </ul> <a id="back" href="index.html"><-- Home</a> <input type="submit" id="submit" value="Submit Form" class="button"/> </fieldset> </form> and a small PHP script that sends me an email. I am wondering how to redirect the user to a Thank You page. Any suggestions? Thanks.
php
forms
html5
null
null
null
open
HTML Form + PHP, Page Redirect === I have an HTML5 form set up like so: <form id="contact-form" action="php/email.php"> <fieldset> <ul id="form"> <li> <label for="name">Name:</label> <input id="name" name="name" type="text" placeholder="First and Last Name" required /> </li> <li> <label for="email">Email:</label> <input id="email" name="email" type="email" placeholder="Enter email address" /> </li> <li> <label for="message">Message:</label> <textarea id="message" name="message" placeholder="Leave comments here..." required></textarea> </li> </ul> <a id="back" href="index.html"><-- Home</a> <input type="submit" id="submit" value="Submit Form" class="button"/> </fieldset> </form> and a small PHP script that sends me an email. I am wondering how to redirect the user to a Thank You page. Any suggestions? Thanks.
0
11,538,813
07/18/2012 09:58:27
1,105,827
12/19/2011 11:58:36
1
0
Ada compiler crashes
I downgraded my gcc version 4.6.3 to 4.3.4 but ada version is not changed gnat-4.6.3 so i got error Ada compiler not installed on this system. How to set my ada to gnat 4.3.4 please guide me. Thank you in advance Regards Raghvendra
ada
null
null
null
null
null
open
Ada compiler crashes === I downgraded my gcc version 4.6.3 to 4.3.4 but ada version is not changed gnat-4.6.3 so i got error Ada compiler not installed on this system. How to set my ada to gnat 4.3.4 please guide me. Thank you in advance Regards Raghvendra
0
10,573,906
05/13/2012 17:51:11
808,713
06/21/2011 15:08:04
127
1
OSX/Linux, slow down the output from terminal
I'm printing to screen a long text file that scrolls very very quickly on my screen, is there a way to slow down the scrolling? In other words is there a system setting that controls the speed at which output is displayed to screen (OSX/Linux).
linux
osx
terminal
null
null
05/14/2012 14:16:46
off topic
OSX/Linux, slow down the output from terminal === I'm printing to screen a long text file that scrolls very very quickly on my screen, is there a way to slow down the scrolling? In other words is there a system setting that controls the speed at which output is displayed to screen (OSX/Linux).
2
9,426,537
02/24/2012 06:43:23
993,437
08/18/2011 14:03:49
594
20
how to call/use the built notification system in the OS(mobile) using android phonegap?
I created notification icon using system notification plugin in android phonegap.But Now I want to call/use the built notification system in the OS(mobile) using android phonegap. please guide me thanks in advance.
android
phonegap
notifications
null
null
null
open
how to call/use the built notification system in the OS(mobile) using android phonegap? === I created notification icon using system notification plugin in android phonegap.But Now I want to call/use the built notification system in the OS(mobile) using android phonegap. please guide me thanks in advance.
0
11,486,523
07/14/2012 18:59:14
523,384
11/29/2010 02:37:30
108
15
div width autoadjust to its content
I have the following code: http://jsfiddle.net/domoindal/fkcQK/ What i need is that the border fit its content in the menu bar, so if there are three tags, the width of such div should fit to the sum of that three tags widths. I do not want the border around the tags get the max width. Latter, what i want to get is creating a shadow around the resulting irregular shape, not a box. Is there any possibility of doing it as i want? Thanks.
css
div
null
null
null
null
open
div width autoadjust to its content === I have the following code: http://jsfiddle.net/domoindal/fkcQK/ What i need is that the border fit its content in the menu bar, so if there are three tags, the width of such div should fit to the sum of that three tags widths. I do not want the border around the tags get the max width. Latter, what i want to get is creating a shadow around the resulting irregular shape, not a box. Is there any possibility of doing it as i want? Thanks.
0
10,783,873
05/28/2012 11:23:25
672,452
03/23/2011 05:47:48
2,845
117
errors in PHP script aren't passed back to CRON
I've some PHP scripts doing some work for me and printing some logging informations. This is the structure of calling: Crontab */3 * * * * sleep 180 && cd /var/www/tasks && ./wrapper.sh start "/usr/bin/php stat-import.php" stat-import >> stat-import.log wrapper.sh #!/bin/bash function start { WRAP_CMD="$1" WRAP_DESC="$2" ARGS=($WRAP_CMD) if [[ ( $WRAP_DESC ) && ( -n $WRAP_DESC ) ]] then OUT_DESC="$WRAP_DESC" else OUT_DESC="$WRAP_CMD" fi PID=`ps axw -o pid,command | grep "$WRAP_CMD" | grep -v grep | grep -v "$0" | awk '{print $1}' | awk '{print $1}'` if [[ ( $PID ) && ( -n $PID ) ]] then echo `date +'%Y-%m-%d %H:%M:%S'`" INFO - $OUT_DESC already running" else echo `date +'%Y-%m-%d %H:%M:%S'`" INFO - $OUT_DESC started" $WRAP_CMD ECODE=$? echo `date +'%Y-%m-%d %H:%M:%S'`" INFO - $OUT_DESC finished" exit $ECODE fi } function stop { [...] } function main { if [[ ( $# < 2 ) || ( $# > 3 ) ]] then echo "Usage: $0 [start|stop] COMMAND [DESCRIPTION]" exit 0 fi if [ $1 == "start" ] then start "$2" "$3" elif [ $1 == "stop" ] then stop "$2" "$3" else echo "Usage: $0 [start|stop] COMMAND [DESCRIPTION]" fi exit 0 } # Script execution: main "$@" stat-import.php <?php die("error message"); // OR exit(127); // OR trigger_error("error_message", E_USER_ERROR); By default only syntax errors in `wrapper.sh` results in a mail by CRON. My user defined errors in `stat-import.php` and also syntax errors in PHP script aren't passed to CRON but go into log file? Huh?
php
bash
error-handling
cron
null
null
open
errors in PHP script aren't passed back to CRON === I've some PHP scripts doing some work for me and printing some logging informations. This is the structure of calling: Crontab */3 * * * * sleep 180 && cd /var/www/tasks && ./wrapper.sh start "/usr/bin/php stat-import.php" stat-import >> stat-import.log wrapper.sh #!/bin/bash function start { WRAP_CMD="$1" WRAP_DESC="$2" ARGS=($WRAP_CMD) if [[ ( $WRAP_DESC ) && ( -n $WRAP_DESC ) ]] then OUT_DESC="$WRAP_DESC" else OUT_DESC="$WRAP_CMD" fi PID=`ps axw -o pid,command | grep "$WRAP_CMD" | grep -v grep | grep -v "$0" | awk '{print $1}' | awk '{print $1}'` if [[ ( $PID ) && ( -n $PID ) ]] then echo `date +'%Y-%m-%d %H:%M:%S'`" INFO - $OUT_DESC already running" else echo `date +'%Y-%m-%d %H:%M:%S'`" INFO - $OUT_DESC started" $WRAP_CMD ECODE=$? echo `date +'%Y-%m-%d %H:%M:%S'`" INFO - $OUT_DESC finished" exit $ECODE fi } function stop { [...] } function main { if [[ ( $# < 2 ) || ( $# > 3 ) ]] then echo "Usage: $0 [start|stop] COMMAND [DESCRIPTION]" exit 0 fi if [ $1 == "start" ] then start "$2" "$3" elif [ $1 == "stop" ] then stop "$2" "$3" else echo "Usage: $0 [start|stop] COMMAND [DESCRIPTION]" fi exit 0 } # Script execution: main "$@" stat-import.php <?php die("error message"); // OR exit(127); // OR trigger_error("error_message", E_USER_ERROR); By default only syntax errors in `wrapper.sh` results in a mail by CRON. My user defined errors in `stat-import.php` and also syntax errors in PHP script aren't passed to CRON but go into log file? Huh?
0
10,320,715
04/25/2012 17:26:59
999,355
10/17/2011 14:28:49
97
8
User registration server-side wizard with Devise authentication
All the authentication plugins I've seen are implementing one-page user registration - user enters all his fields and then they are submitted at once. So the Devise authentication does. Bun now we have requirements to do multi-page registration wizard. Implementing it with JQuery with posting on last wizard's page would be easy if we haven't a requirement that user should be created on the very first page and then, on other pages should provide more and more information with saving after each page submit. How would you suggest to implement this in a project which is using Devise authentication? How does this correspond to user's activation process (I mean sending account confirmation e-mails)?
ruby-on-rails
devise
wizard
user-registration
null
null
open
User registration server-side wizard with Devise authentication === All the authentication plugins I've seen are implementing one-page user registration - user enters all his fields and then they are submitted at once. So the Devise authentication does. Bun now we have requirements to do multi-page registration wizard. Implementing it with JQuery with posting on last wizard's page would be easy if we haven't a requirement that user should be created on the very first page and then, on other pages should provide more and more information with saving after each page submit. How would you suggest to implement this in a project which is using Devise authentication? How does this correspond to user's activation process (I mean sending account confirmation e-mails)?
0
2,475,926
03/19/2010 08:37:41
186,678
10/08/2009 19:47:10
61
4
Ria Services vs WCF Dataservices
My Team are evaluation to a bigger Business portal. (Invoicing, Bookkeeping, Salaries.....) We are all used to work with DDD, O/R mappers with NHibernate as our first choice. We have chosen to work with CompositeWPF to keep modularity between all modules and part system in the business portal. Now we have evaluated Ria Services and are kind of disappointed how it works in a Data Oriented way, Data Oriented can be good in a service oriented scenario, but we feel that we can with an Object Oriented approach to, and we feel that we can get an application with less complexity with the OO approach than the DO approach. For example it doesn't allow Value Objects, Many-to-many relations, everything needs to have keys and so on. We haven't looked at WCF Data Services yet so our question is WCF Data Services our answere? Does it integrate good with Silverlight 4? Can we work with it in a OO manor?
wcf-ria-services
silverlight
wcf-data-services
null
null
null
open
Ria Services vs WCF Dataservices === My Team are evaluation to a bigger Business portal. (Invoicing, Bookkeeping, Salaries.....) We are all used to work with DDD, O/R mappers with NHibernate as our first choice. We have chosen to work with CompositeWPF to keep modularity between all modules and part system in the business portal. Now we have evaluated Ria Services and are kind of disappointed how it works in a Data Oriented way, Data Oriented can be good in a service oriented scenario, but we feel that we can with an Object Oriented approach to, and we feel that we can get an application with less complexity with the OO approach than the DO approach. For example it doesn't allow Value Objects, Many-to-many relations, everything needs to have keys and so on. We haven't looked at WCF Data Services yet so our question is WCF Data Services our answere? Does it integrate good with Silverlight 4? Can we work with it in a OO manor?
0
3,690,915
09/11/2010 12:07:02
444,512
09/10/2010 15:52:24
1
0
To IDE or Not? A beginner developer's dilemma
Basically,me and a friend of mine are just planning to work on a python project which would have GUI interface,and enable file transfer over and remote file listing,we have most of the tools which we are going to use,Glade,python etcetera.. I just want to know if I should use an IDE or not. I've heard only good things heard about anjuta,but not convince of its python support,care to comment? And also is there any other good IDE I should check out? Currently I am just planning on coding as usual in vim.
python
ide
anjuta
null
null
09/11/2010 14:48:00
not constructive
To IDE or Not? A beginner developer's dilemma === Basically,me and a friend of mine are just planning to work on a python project which would have GUI interface,and enable file transfer over and remote file listing,we have most of the tools which we are going to use,Glade,python etcetera.. I just want to know if I should use an IDE or not. I've heard only good things heard about anjuta,but not convince of its python support,care to comment? And also is there any other good IDE I should check out? Currently I am just planning on coding as usual in vim.
4
9,539,196
03/02/2012 19:28:12
353,958
05/30/2010 11:13:28
6
0
Codeigniter passing variable error
I'm using CodeIgniter and having problem to send variable using the **$this->load->view('signup',$data)**. This is some code in my controller. function create_member() { $this->load->library('form_validation'); $this->form_validation->set_rules('username', 'Username', 'trim|required|min_length[4]'); $this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email'); $this->form_validation->set_rules('password', 'Password', 'trim|required|min_length[4]|max_length[32]'); $this->form_validation->set_rules('password1', 'Confirm Password', 'trim|required|matches[password]'); if($this->form_validation->run() == FALSE) { $this->load->view('signup'); }else { $this->load->model('membership'); if($query=$this->membership->check_username() == TRUE) { $data['msg']= "Username exist"; $this->load->view('signup',$data); //problem encounter here. }else { if($query = $this->membership->create_member()) { $data['main_content'] = 'signup_successful'; $this->load->view('include/template', $data); }else { $this->load->view('signup_form'); } } } } And here the error message : **A PHP Error was encountered<br> Severity: Notice<br> Message: Undefined variable: msg<br> Filename: views/signup.php<br> Line Number: 99** <?php echo $msg; ?> // code inside view/signup.php
php
codeigniter
codeigniter-2
null
null
null
open
Codeigniter passing variable error === I'm using CodeIgniter and having problem to send variable using the **$this->load->view('signup',$data)**. This is some code in my controller. function create_member() { $this->load->library('form_validation'); $this->form_validation->set_rules('username', 'Username', 'trim|required|min_length[4]'); $this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email'); $this->form_validation->set_rules('password', 'Password', 'trim|required|min_length[4]|max_length[32]'); $this->form_validation->set_rules('password1', 'Confirm Password', 'trim|required|matches[password]'); if($this->form_validation->run() == FALSE) { $this->load->view('signup'); }else { $this->load->model('membership'); if($query=$this->membership->check_username() == TRUE) { $data['msg']= "Username exist"; $this->load->view('signup',$data); //problem encounter here. }else { if($query = $this->membership->create_member()) { $data['main_content'] = 'signup_successful'; $this->load->view('include/template', $data); }else { $this->load->view('signup_form'); } } } } And here the error message : **A PHP Error was encountered<br> Severity: Notice<br> Message: Undefined variable: msg<br> Filename: views/signup.php<br> Line Number: 99** <?php echo $msg; ?> // code inside view/signup.php
0
8,241,059
11/23/2011 11:02:54
868,862
07/29/2011 06:56:15
18
0
how to do xml parsing if chinese characters present
i have an xml with chinese charactes. <A>增长的身体质量指数 (abc) Name</A> <B>年龄 adress</B> i allocate parser with xmlparser = [[NSXMLParser alloc] initWithContentsOfURL:url; [xmlparser setDelegate:self]; [xmlparser setShouldProcessNamespaces:NO]; [xmlparser setShouldReportNamespacePrefixes:NO]; [xmlparser setShouldResolveExternalEntities:NO]; [xmlparser parse]; here tags are in engilsh ,but some data in it is chinese. with above xmlparser ,out of english characters are not able to parse and apps get crash. is their any way chinese charactes. Thanks
iphone
null
null
null
null
null
open
how to do xml parsing if chinese characters present === i have an xml with chinese charactes. <A>增长的身体质量指数 (abc) Name</A> <B>年龄 adress</B> i allocate parser with xmlparser = [[NSXMLParser alloc] initWithContentsOfURL:url; [xmlparser setDelegate:self]; [xmlparser setShouldProcessNamespaces:NO]; [xmlparser setShouldReportNamespacePrefixes:NO]; [xmlparser setShouldResolveExternalEntities:NO]; [xmlparser parse]; here tags are in engilsh ,but some data in it is chinese. with above xmlparser ,out of english characters are not able to parse and apps get crash. is their any way chinese charactes. Thanks
0
10,628,861
05/17/2012 01:39:08
1,388,456
05/11/2012 02:04:00
13
0
How to reference object variable from within method
I'm still learning to work with objects. I defined vertices() as a method to return the vertices (initialized as vs) in Graph. I know that there is a more concise, elegant way to write vertices() but exactly how is escaping me. Also specifically this relates to exercise 2.5 in Think Complexity: http://greenteapress.com/complexity/html/book003.html#toc12 class Graph(dict): def __init__(self, vs=[], es=[]): for v in vs: self.add_vertex(v) def add_vertex(self, v): """Add a vertex to the graph.""" self[v] = {} def vertices(self): v = [] for i in range(len(self)): v.append(i) return v
python
null
null
null
null
null
open
How to reference object variable from within method === I'm still learning to work with objects. I defined vertices() as a method to return the vertices (initialized as vs) in Graph. I know that there is a more concise, elegant way to write vertices() but exactly how is escaping me. Also specifically this relates to exercise 2.5 in Think Complexity: http://greenteapress.com/complexity/html/book003.html#toc12 class Graph(dict): def __init__(self, vs=[], es=[]): for v in vs: self.add_vertex(v) def add_vertex(self, v): """Add a vertex to the graph.""" self[v] = {} def vertices(self): v = [] for i in range(len(self)): v.append(i) return v
0
3,387,748
08/02/2010 12:28:58
364,712
06/11/2010 16:08:06
43
2
Creating new instance from the List - java
I am trying to write public instance method createParther() that returns an instance of Couple. The method does it's job by following these rules: one dancer in the couple must be from aList and the other bList, one dancer in the couple must be male and the other female. Neither dancer in the couple should be partnered already. If it is not possible to create a couple from amongst the unpartnered dancers, then null should be returned. If an instance of Couple is successfully created, both dancers involved in the couple should have their partnered instance variables set to true. I have attempted to list all the aList and bList to together, but then I didn't know to check the requirements as per above. Can anyone demostrate how this could be acheieved? This is not assignment. Thanks in advance. public class FoxDancing { private List<Couple> coupleList; private List<Dancer> aList; private List<Dancer> bList; public FoxDancing() { couplesList = new ArrayList<Parthers>(); aList = new ArrayList<Dancer>(); bList = new ArrayList<Dancer>(); } public void fieldLists() { this.addX("Simon","AList",'m'); this.addX("Jason","AList",'m'); this.addX("Ian","AList",'m'); this.addX("Susan","BList",'f'); this.addX("Helena","BList",'f'); this.addX("Gina","BList",'f'); } }
java
null
null
null
null
null
open
Creating new instance from the List - java === I am trying to write public instance method createParther() that returns an instance of Couple. The method does it's job by following these rules: one dancer in the couple must be from aList and the other bList, one dancer in the couple must be male and the other female. Neither dancer in the couple should be partnered already. If it is not possible to create a couple from amongst the unpartnered dancers, then null should be returned. If an instance of Couple is successfully created, both dancers involved in the couple should have their partnered instance variables set to true. I have attempted to list all the aList and bList to together, but then I didn't know to check the requirements as per above. Can anyone demostrate how this could be acheieved? This is not assignment. Thanks in advance. public class FoxDancing { private List<Couple> coupleList; private List<Dancer> aList; private List<Dancer> bList; public FoxDancing() { couplesList = new ArrayList<Parthers>(); aList = new ArrayList<Dancer>(); bList = new ArrayList<Dancer>(); } public void fieldLists() { this.addX("Simon","AList",'m'); this.addX("Jason","AList",'m'); this.addX("Ian","AList",'m'); this.addX("Susan","BList",'f'); this.addX("Helena","BList",'f'); this.addX("Gina","BList",'f'); } }
0
4,826,329
01/28/2011 08:42:37
581,242
01/19/2011 10:16:51
5
1
I have written a simple daemon, pls suggest improvements (bash/python-Ubuntu)
I have a bash script that basically starts an audio stream using mplayer: #!/bin/bash # startmusic.sh /usr/bin/mplayer http://www.audiostream.com what I want to make sure is that if mplayer chrashes or ends of any reason, it gets automatically restarted. I therefore have a cron job running every minute which also is a bash script: #!/bin/bash # interval.sh if [ -z "$(pgrep mplayer)" ]; then #restart music ( exec </dev/null exec >/dev/null exec 2>/dev/null umask 0 cd / bash /home/user/startmusic.sh ) & else echo "music already playing, no need to restart startmusic.sh" fi One odd thing that makes this script not very useful is that it seems that mplayer is starting 2 instances, and if the player stops (as it e.g. does when the connection is lost), only 1 mplayer instance quits, still leaving one left. Since my programming skills are quite rudimentary, I would greatly appreciate any (easy-to-implement) solutions. Thanks in advance/J
bash
daemon
mplayer
null
null
null
open
I have written a simple daemon, pls suggest improvements (bash/python-Ubuntu) === I have a bash script that basically starts an audio stream using mplayer: #!/bin/bash # startmusic.sh /usr/bin/mplayer http://www.audiostream.com what I want to make sure is that if mplayer chrashes or ends of any reason, it gets automatically restarted. I therefore have a cron job running every minute which also is a bash script: #!/bin/bash # interval.sh if [ -z "$(pgrep mplayer)" ]; then #restart music ( exec </dev/null exec >/dev/null exec 2>/dev/null umask 0 cd / bash /home/user/startmusic.sh ) & else echo "music already playing, no need to restart startmusic.sh" fi One odd thing that makes this script not very useful is that it seems that mplayer is starting 2 instances, and if the player stops (as it e.g. does when the connection is lost), only 1 mplayer instance quits, still leaving one left. Since my programming skills are quite rudimentary, I would greatly appreciate any (easy-to-implement) solutions. Thanks in advance/J
0
8,274,422
11/25/2011 21:35:04
925,914
09/02/2011 19:44:46
20
1
Android updating text line by line in TextView
I am having a TextView to which I am outputting lines of text in a loop. But when I set the text even by appending to existing text it doesnt show till the loop has ended. Is there a way I can update a text view with text line by line Thanks -Chandu
android
textview
updating
null
null
null
open
Android updating text line by line in TextView === I am having a TextView to which I am outputting lines of text in a loop. But when I set the text even by appending to existing text it doesnt show till the loop has ended. Is there a way I can update a text view with text line by line Thanks -Chandu
0
8,605,322
12/22/2011 14:32:39
1,098,799
12/14/2011 22:22:37
25
1
Speeding up perl DBI fetchrow_hashreff
I have something that looks like this: my $report = new ReportGenerator; #custom object my $dbh = $dbc->prepare('SELECT * FROM some_table WHERE some_condition'); #DBI handle $dbh->execute(); while(my $href = $dbh->fetchrow_hashref){ $report->process_record($href); } $dbh->finish(); print $report->printReport(); My problem is that each iteration of the loop is very slow. The problem is the MySQL. I was wondering if it was possible to put some kind of wrapper in the while loop to make it fetch more than one record at a time, at the same time, fetching all records into memory is not practical either. I am not worried about the efficiency of the code(hashref vs arrayref,etc..). Rather, I am interested in fetching lets say 10000 records at a time. The database has ~5 Million records. I can not change/upgrade the server. Thanks
mysql
sql
database
performance
perl
null
open
Speeding up perl DBI fetchrow_hashreff === I have something that looks like this: my $report = new ReportGenerator; #custom object my $dbh = $dbc->prepare('SELECT * FROM some_table WHERE some_condition'); #DBI handle $dbh->execute(); while(my $href = $dbh->fetchrow_hashref){ $report->process_record($href); } $dbh->finish(); print $report->printReport(); My problem is that each iteration of the loop is very slow. The problem is the MySQL. I was wondering if it was possible to put some kind of wrapper in the while loop to make it fetch more than one record at a time, at the same time, fetching all records into memory is not practical either. I am not worried about the efficiency of the code(hashref vs arrayref,etc..). Rather, I am interested in fetching lets say 10000 records at a time. The database has ~5 Million records. I can not change/upgrade the server. Thanks
0
4,330,682
12/02/2010 00:50:58
525,965
12/01/2010 01:47:27
1
0
Error: Assignment makes pointer from Integer without a cast... in C Prog.
I get this error whenever i run the program " Assignment makes pointer from Integer without a cast". My code is written below.... Please help... Thankx struct student { char studentID[6]; char name[31]; char course [6]; }; struct student *array[MAX]; struct student dummy; int recordCtr=0; int read(){ FILE *stream = NULL; int ctr; char linebuffer[45]; char delims[]=", "; char *number[3]; char *token = NULL; stream = fopen("student.txt", "rt"); if (stream == NULL) stream = fopen("student.txt", "wt"); else { printf("\nReading the student list directory. Wait a moment please..."); while(!feof(stream)){ array[recordCtr]=(struct student*)malloc(sizeof(struct student)); while(!feof(stream)) { fgets(linebuffer, 46, stream); token = strtok(linebuffer, delims); //This is where the error appears ctr=0; while(token != NULL){ strcpy(number[ctr], linebuffer); token = strtok(NULL, delims); //This is where the error appears ctr++; } strcpy(array[recordCtr] -> studentID,number[0]); strcpy(array[recordCtr] -> name,number[1]); strcpy(array[recordCtr] -> course,number[2]); } recordCtr++; } recordCtr--; fclose(stream); }
c
pointers
casting
strtok
null
null
open
Error: Assignment makes pointer from Integer without a cast... in C Prog. === I get this error whenever i run the program " Assignment makes pointer from Integer without a cast". My code is written below.... Please help... Thankx struct student { char studentID[6]; char name[31]; char course [6]; }; struct student *array[MAX]; struct student dummy; int recordCtr=0; int read(){ FILE *stream = NULL; int ctr; char linebuffer[45]; char delims[]=", "; char *number[3]; char *token = NULL; stream = fopen("student.txt", "rt"); if (stream == NULL) stream = fopen("student.txt", "wt"); else { printf("\nReading the student list directory. Wait a moment please..."); while(!feof(stream)){ array[recordCtr]=(struct student*)malloc(sizeof(struct student)); while(!feof(stream)) { fgets(linebuffer, 46, stream); token = strtok(linebuffer, delims); //This is where the error appears ctr=0; while(token != NULL){ strcpy(number[ctr], linebuffer); token = strtok(NULL, delims); //This is where the error appears ctr++; } strcpy(array[recordCtr] -> studentID,number[0]); strcpy(array[recordCtr] -> name,number[1]); strcpy(array[recordCtr] -> course,number[2]); } recordCtr++; } recordCtr--; fclose(stream); }
0
6,627,892
07/08/2011 17:07:01
416,056
08/10/2010 10:50:49
80
8
How can I create two related tables in MySQL and return a result set as JSON using PHP?
I need to create two related tables in MySQL and return a result set as JSON using PHP. Can anyone please provide some code on how this would be done?
php
mysql
json
null
null
07/08/2011 18:38:19
not a real question
How can I create two related tables in MySQL and return a result set as JSON using PHP? === I need to create two related tables in MySQL and return a result set as JSON using PHP. Can anyone please provide some code on how this would be done?
1
8,657,164
12/28/2011 14:32:04
1,051,924
11/17/2011 13:47:37
376
3
bash sort for resolution
i have a list of resolutions (mobile devices, monitors etc...) and i want to sort them by resolution using bash/vim i have (not ordered): 1024 x 480 96 x 120 1024 x 600 100 x 120 800 x 1280 64 x 98 640 x 320 64 x 128 640 x 960 800 x 480 80 x 120 then when i do: cat file | sort -u i get: 100 x 120 1024 x 480 1024 x 600 640 x 320 640 x 960 64 x 128 64 x 98 800 x 1280 800 x 480 80 x 120 96 x 120 why it not sorted like this and how can i do it? 64 x 98 64 x 128 80 x 120 96 x 120 100 x 120 640 x 320 640 x 960 800 x 1280 800 x 480 1024 x 480 1024 x 600
bash
sorting
null
null
null
null
open
bash sort for resolution === i have a list of resolutions (mobile devices, monitors etc...) and i want to sort them by resolution using bash/vim i have (not ordered): 1024 x 480 96 x 120 1024 x 600 100 x 120 800 x 1280 64 x 98 640 x 320 64 x 128 640 x 960 800 x 480 80 x 120 then when i do: cat file | sort -u i get: 100 x 120 1024 x 480 1024 x 600 640 x 320 640 x 960 64 x 128 64 x 98 800 x 1280 800 x 480 80 x 120 96 x 120 why it not sorted like this and how can i do it? 64 x 98 64 x 128 80 x 120 96 x 120 100 x 120 640 x 320 640 x 960 800 x 1280 800 x 480 1024 x 480 1024 x 600
0
8,343,359
12/01/2011 14:58:11
663,593
03/17/2011 02:50:24
42
2
Keep good performance with a MySQL database that gains more users
I have a MySQL relational database stored in a web server. This database works with java web services which store and read data from it. Everything works fine for a system with 4 or 5 concurrent users but I was looking for some advice in case I want this system to be used by 50 people concurrently. So, what would be the best thing to improve performance when a system is going to gain more users, in a database level? Thanks and I'm sorry if my English is not good enough.
mysql
web-services
concurrency
null
null
06/03/2012 19:50:43
off topic
Keep good performance with a MySQL database that gains more users === I have a MySQL relational database stored in a web server. This database works with java web services which store and read data from it. Everything works fine for a system with 4 or 5 concurrent users but I was looking for some advice in case I want this system to be used by 50 people concurrently. So, what would be the best thing to improve performance when a system is going to gain more users, in a database level? Thanks and I'm sorry if my English is not good enough.
2
11,215,790
06/26/2012 20:56:18
947,167
09/15/2011 15:40:21
46
4
VBA Select Case Loop in Text
Trying to loop through a range of cells and assigned a label to them based off of the text value in another cell. So if Cell J2 = "This Text" Then Cell A2 = "This Label" As of now I keep getting a run time error number 424, stating object required Private Function getPhase(ByVal cell As Range) As String Select Case cell.Text Case "Text1" getPhase = "Label1" Case "Text2" getPhase = "Label2" End Select End Function Sub setPhase() Dim cycle As Range Dim phase As Range Set cycle = Range("J2:J10") Set phase = Range("A2:A10") For Each cell In phase.Cells phase.Text = getPhase(cycle) Next cell End Sub
excel
vba
excel-vba
null
null
null
open
VBA Select Case Loop in Text === Trying to loop through a range of cells and assigned a label to them based off of the text value in another cell. So if Cell J2 = "This Text" Then Cell A2 = "This Label" As of now I keep getting a run time error number 424, stating object required Private Function getPhase(ByVal cell As Range) As String Select Case cell.Text Case "Text1" getPhase = "Label1" Case "Text2" getPhase = "Label2" End Select End Function Sub setPhase() Dim cycle As Range Dim phase As Range Set cycle = Range("J2:J10") Set phase = Range("A2:A10") For Each cell In phase.Cells phase.Text = getPhase(cycle) Next cell End Sub
0
3,586,736
08/27/2010 17:32:10
84,685
03/30/2009 15:18:48
216
16
See SQL From EntityFramework with Collection-like Queries
I do not have 'full' the version of MS SQL (SQL Express 2008) so I do not have the profiler tool. I want to see the SQL generated by my Entity Framework code, but all of the examples I find use the var x = from u in table select u; type of syntax; But most of my queries are more like .. var x = context.Users.Single(n => n.Name == "Steven"); type of syntax. What can I do to see the SQL generated, from this manner of coding? Any ideas?
sql
entity-framework-4
null
null
null
null
open
See SQL From EntityFramework with Collection-like Queries === I do not have 'full' the version of MS SQL (SQL Express 2008) so I do not have the profiler tool. I want to see the SQL generated by my Entity Framework code, but all of the examples I find use the var x = from u in table select u; type of syntax; But most of my queries are more like .. var x = context.Users.Single(n => n.Name == "Steven"); type of syntax. What can I do to see the SQL generated, from this manner of coding? Any ideas?
0
5,188,548
03/04/2011 01:05:51
340,381
05/13/2010 14:35:38
425
27
What's the difference? Array[] or List<>?
Actually I'm always using Generic Collections and I frequently use List<>. Some scenarios I think that `new List<string>()` is very ugly and I prefer to use `string[]`, but I don't use it, because as far as I know, Generics has a better performance and therefore I use them. Is string[], int[] or whatever non-generic-array harmful to the application? I just wanna know what's really the difference, impact between arrays and generic collections. **edit:** let's fake a scenario I must call this method, should I use `string[]` or `List<string>`? What's better? static void PrintValues(IEnumerable<string> values) { foreach(var value in values) { Console.WriteLine(value); } } Thanks
c#
arrays
generics
c#-4.0
null
null
open
What's the difference? Array[] or List<>? === Actually I'm always using Generic Collections and I frequently use List<>. Some scenarios I think that `new List<string>()` is very ugly and I prefer to use `string[]`, but I don't use it, because as far as I know, Generics has a better performance and therefore I use them. Is string[], int[] or whatever non-generic-array harmful to the application? I just wanna know what's really the difference, impact between arrays and generic collections. **edit:** let's fake a scenario I must call this method, should I use `string[]` or `List<string>`? What's better? static void PrintValues(IEnumerable<string> values) { foreach(var value in values) { Console.WriteLine(value); } } Thanks
0
4,092,116
11/03/2010 22:09:01
452,065
09/19/2010 18:04:17
6
0
java , c simple performance test
im running a simple loop that prints out the iterator (i) for 1.000.000 times in both java and c. im using netbeans and visual studio respectively. i dont care about precision but at about 40 seconds: netbeans (java) has printed about 500.000 numbers while windows (c) has printed about 75.000 numbers -- why such a big difference? im using a common intel core2duo(2.0 Ghz) pc with windows7
java
c
performance
printing
comparison
11/04/2010 11:36:51
not a real question
java , c simple performance test === im running a simple loop that prints out the iterator (i) for 1.000.000 times in both java and c. im using netbeans and visual studio respectively. i dont care about precision but at about 40 seconds: netbeans (java) has printed about 500.000 numbers while windows (c) has printed about 75.000 numbers -- why such a big difference? im using a common intel core2duo(2.0 Ghz) pc with windows7
1
11,426,950
07/11/2012 06:39:28
1,516,826
07/11/2012 06:29:01
1
0
tomcat log alerts parse - Any SCRIPT or method available, pls let me know
I am new to Stackoverflow. So kindly pardon me if i have not made my homework of searching thoroughly. I have a problem in parsing text from tomcat localhost log and catalina.out file. We all know that we receive SEVERE alerts in either of these files. I want a script or free software which will help me to parse the SEVERE alerts alone and mail to my email. For Example: SEVERE: Error listenerStart 6 Jul, 2012 2:04:40 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/inventory_availability] startup failed due to previous errors 6 Jul, 2012 2:04:40 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [/inventory_availability] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 6 Jul, 2012 2:04:40 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive server.war 6 Jul, 2012 2:04:40 PM org.apache.catalina.loader.WebappClassLoader validateJarFile The script must parse from "SEVERE:...." to the text till next "SEVERE:...." or the end of the file. The script can be in shell or python or ruby. Please help. It is urgent and I am trying to debug this for past a month.:( :( Help me!!!
tomcat6
logparser
null
null
null
07/12/2012 12:19:47
not constructive
tomcat log alerts parse - Any SCRIPT or method available, pls let me know === I am new to Stackoverflow. So kindly pardon me if i have not made my homework of searching thoroughly. I have a problem in parsing text from tomcat localhost log and catalina.out file. We all know that we receive SEVERE alerts in either of these files. I want a script or free software which will help me to parse the SEVERE alerts alone and mail to my email. For Example: SEVERE: Error listenerStart 6 Jul, 2012 2:04:40 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/inventory_availability] startup failed due to previous errors 6 Jul, 2012 2:04:40 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [/inventory_availability] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 6 Jul, 2012 2:04:40 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive server.war 6 Jul, 2012 2:04:40 PM org.apache.catalina.loader.WebappClassLoader validateJarFile The script must parse from "SEVERE:...." to the text till next "SEVERE:...." or the end of the file. The script can be in shell or python or ruby. Please help. It is urgent and I am trying to debug this for past a month.:( :( Help me!!!
4
2,169,755
01/30/2010 22:42:31
105,084
05/12/2009 01:13:48
593
10
In Gtk#, why is my MenuToolItem not displaying its Menu?
I want to add a `MenuToolItem` to my Toolbar. It contains two `RadioMenuItem`s. However, when I click the drop-down arrow, I see this: ![alt text][1] This is my current code: MenuToolButton reviewModeToolButton = new MenuToolButton (Stock.Preferences); toolbar.Add (reviewModeToolButton); Menu reviewModeMenu = new Menu (); reviewModeToolButton.Menu = reviewModeMenu; RadioMenuItem normalMenuItem = new RadioMenuItem ("Normal Mode"); RadioMenuItem cramMenuItem = new RadioMenuItem (normalMenuItem, "Cram Mode"); reviewModeMenu.Add (normalMenuItem); reviewModeMenu.Add (cramMenuItem); What am I doing wrong? [1]: http://i.imgur.com/5zhEO.png
gtk
gtk#
c#
null
null
null
open
In Gtk#, why is my MenuToolItem not displaying its Menu? === I want to add a `MenuToolItem` to my Toolbar. It contains two `RadioMenuItem`s. However, when I click the drop-down arrow, I see this: ![alt text][1] This is my current code: MenuToolButton reviewModeToolButton = new MenuToolButton (Stock.Preferences); toolbar.Add (reviewModeToolButton); Menu reviewModeMenu = new Menu (); reviewModeToolButton.Menu = reviewModeMenu; RadioMenuItem normalMenuItem = new RadioMenuItem ("Normal Mode"); RadioMenuItem cramMenuItem = new RadioMenuItem (normalMenuItem, "Cram Mode"); reviewModeMenu.Add (normalMenuItem); reviewModeMenu.Add (cramMenuItem); What am I doing wrong? [1]: http://i.imgur.com/5zhEO.png
0
6,620,150
07/08/2011 05:01:41
423,325
08/17/2010 21:01:19
320
12
Django vs Grails vs Lift for Comet support?
I am going to be developing a real-time web application that will make heavy use of Ajax and Comet programming techniques. I am wondering which web framework will be best to use for this type of application. I already know Python and Django, I have built a smaller app in Grails, and have experience with Scala but not Lift. Based on this, can anyone advise me on which framework to use and what plugins (if any) are required for Comet integration?
python
django
grails
comet
null
07/08/2011 08:39:05
not constructive
Django vs Grails vs Lift for Comet support? === I am going to be developing a real-time web application that will make heavy use of Ajax and Comet programming techniques. I am wondering which web framework will be best to use for this type of application. I already know Python and Django, I have built a smaller app in Grails, and have experience with Scala but not Lift. Based on this, can anyone advise me on which framework to use and what plugins (if any) are required for Comet integration?
4
11,498,607
07/16/2012 05:37:02
1,526,363
07/15/2012 02:15:36
1
0
Books for web services certification
I am preparing for OCP, Java EE Web Services Developer certification. Is the training material provided by epractize labs a good source of reference for getting certified? Does it cover all the exam topics in detail? Would you recommend purchasing these material? http://www.epractizelabs.com/certification/sun/scdjws-exam-5.html http://www.epractizelabs.com/certification/sun/oce-webservices-exam-6.html
web-services
certification
null
null
null
07/18/2012 21:29:15
not constructive
Books for web services certification === I am preparing for OCP, Java EE Web Services Developer certification. Is the training material provided by epractize labs a good source of reference for getting certified? Does it cover all the exam topics in detail? Would you recommend purchasing these material? http://www.epractizelabs.com/certification/sun/scdjws-exam-5.html http://www.epractizelabs.com/certification/sun/oce-webservices-exam-6.html
4
8,841,501
01/12/2012 20:02:51
1,118,112
12/27/2011 18:37:15
1
0
cakephp Auth json
I would like cakephp to give me the auth error 'You are not authorized to access that location.' in a json format if the request was ajax.
ajax
json
cakephp
authentication
null
01/12/2012 20:24:47
not a real question
cakephp Auth json === I would like cakephp to give me the auth error 'You are not authorized to access that location.' in a json format if the request was ajax.
1
1,085,921
07/06/2009 08:11:23
100,829
05/04/2009 11:49:22
106
3
Probability of observing sequence of 7 of the same (heads or tails) in 100 coin flipping trials?
Inspired by a [Radiolab postcast][1]: what ways are there to compute the probability of observing 7 heads (or 7 tails) in a row when flipping a coin 100 times? [1]: http://blogs.wnyc.org/radiolab/2009/06/15/stochasticity/
statistics
probability
null
null
null
07/06/2009 08:31:37
off topic
Probability of observing sequence of 7 of the same (heads or tails) in 100 coin flipping trials? === Inspired by a [Radiolab postcast][1]: what ways are there to compute the probability of observing 7 heads (or 7 tails) in a row when flipping a coin 100 times? [1]: http://blogs.wnyc.org/radiolab/2009/06/15/stochasticity/
2
8,233,580
11/22/2011 20:44:09
879,420
08/04/2011 20:30:04
13,931
1,293
Preview generated PDF on page
I'm generating a PDF document in code-behind using [Winnovative's HTML to PDF][1] converter, and I would like to preview the document in a container on the page. This is for an intranet application and all of the end users have the latest version of Reader installed, so compatibility is not an issue. The preview should be fully featured too, with the ability to zoom in and out, print, save, email, etc. I've seen quite a few examples searching online, but I would appreciate some suggestions based on actual experience. Ideally, it would be great to find a server control with configurable options that can take care of registering the necessary client scripts. [1]: http://www.winnovative-software.com/html-To-Pdf-Converter.aspx
c#
asp.net
winnovative
document-preview
null
null
open
Preview generated PDF on page === I'm generating a PDF document in code-behind using [Winnovative's HTML to PDF][1] converter, and I would like to preview the document in a container on the page. This is for an intranet application and all of the end users have the latest version of Reader installed, so compatibility is not an issue. The preview should be fully featured too, with the ability to zoom in and out, print, save, email, etc. I've seen quite a few examples searching online, but I would appreciate some suggestions based on actual experience. Ideally, it would be great to find a server control with configurable options that can take care of registering the necessary client scripts. [1]: http://www.winnovative-software.com/html-To-Pdf-Converter.aspx
0
6,871,713
07/29/2011 10:23:32
727,357
04/27/2011 13:29:15
1
2
JavaMail Exception: javax.net.ssl.SSLKeyException: RSA premaster secret error
I get this error when I try to connect through Javamail to an IMAP server using STARTTLS. I thought it might have been the (pointless) US export restrictions on the JCE, so I double checked that I'd replaced them with the unlimited strength files. Same problem. Can't find anything particularly relevant on google or here (in fact the stackoverflow search seems to be throwing server errors today). Anyone else seen this before?
java
ssl
imap
javamail
starttls
null
open
JavaMail Exception: javax.net.ssl.SSLKeyException: RSA premaster secret error === I get this error when I try to connect through Javamail to an IMAP server using STARTTLS. I thought it might have been the (pointless) US export restrictions on the JCE, so I double checked that I'd replaced them with the unlimited strength files. Same problem. Can't find anything particularly relevant on google or here (in fact the stackoverflow search seems to be throwing server errors today). Anyone else seen this before?
0
5,365,898
03/20/2011 00:23:56
648,914
03/07/2011 22:10:35
1
0
iPad app displays Actionsheet with arrow direction down instead up
When displaying an actionSheet at any point in a view it displays an arrow with direction down (below the actionsheet) even though the actionSheet would have enough space in the view to display an "up" arrow. Following code leads on iOS 3.2 to an "up" arrow, on iOS 4.2 and 4.3 to a "down" arrow. I tried different Rects and Views. actionSheetXY = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:NSLocalizedString(@"cancel",nil) destructiveButtonTitle:nil otherButtonTitles:NSLocalizedString(@"test",nil),nil]; actionSheetXY.actionSheetStyle = UIActionSheetStyleDefault; actionSheetXY.delegate = self; [actionSheetXY showFromRect:CGRectMake(100,200,320,320) inView:self.view animated:YES]; Is there a way to get an arrow with direction up?
ipad
uiactionsheet
arrow
null
null
null
open
iPad app displays Actionsheet with arrow direction down instead up === When displaying an actionSheet at any point in a view it displays an arrow with direction down (below the actionsheet) even though the actionSheet would have enough space in the view to display an "up" arrow. Following code leads on iOS 3.2 to an "up" arrow, on iOS 4.2 and 4.3 to a "down" arrow. I tried different Rects and Views. actionSheetXY = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:NSLocalizedString(@"cancel",nil) destructiveButtonTitle:nil otherButtonTitles:NSLocalizedString(@"test",nil),nil]; actionSheetXY.actionSheetStyle = UIActionSheetStyleDefault; actionSheetXY.delegate = self; [actionSheetXY showFromRect:CGRectMake(100,200,320,320) inView:self.view animated:YES]; Is there a way to get an arrow with direction up?
0
4,078,746
11/02/2010 14:39:42
22,996
09/27/2008 15:12:31
2,252
33
recursive query problem
Trying not to select same connection multiple times I have tried to use charindex() = 0 condition the following way: WITH Cluster(calling_party, called_party, link_strength, Path) AS (SELECT calling_party, called_party, link_strength, CONVERT(varchar(max), calling_party + '.' + called_party) AS Path FROM monthly_connections_test WHERE link_strength > 0.1 AND calling_party = 'b' UNION ALL SELECT mc.calling_party, mc.called_party, mc.link_strength, CONVERT(varchar(max), cl.Path + '.' + mc.calling_party + '.' + mc.called_party) AS Path FROM monthly_connections_test mc INNER JOIN Cluster cl ON (mc.called_party = cl.called_party OR mc.called_party = cl.calling_party) AND (CHARINDEX(cl.called_party + '.' + mc.calling_party, Path) = 0 AND CHARINDEX(cl.called_party + '.' + mc.called_party, Path) = 0) WHERE mc.link_strength > 0.1 ) SELECT calling_party, called_party, link_strength, Path FROM Cluster OPTION (maxrecursion 30000) The condition however does not fulfill its purpose as the same rows are selected multiple times. The example query result is the following: b d 0.5000000 b.d b c 0.5000000 b.c b c 0.5000000 b.c.b.c d b 0.4000000 b.c.d.b a d 0.2000000 b.c.d.b.a.d b d 0.5000000 b.c.d.b.b.d d b 0.4000000 b.c.d.b.d.b a d 0.2000000 b.c.d.b.b.d.a.d a d 0.2000000 b.c.d.b.a.d.a.d c a 0.4000000 b.c.d.b.a.d.c.a c a 0.4000000 b.c.d.b.a.d.c.a.c.a b c 0.5000000 b.c.d.b.a.d.c.a.b.c b c 0.5000000 b.c.d.b.a.d.c.a.b.c.b.c a d 0.2000000 b.d.a.d b d 0.5000000 b.d.b.d d b 0.4000000 b.d.d.b a d 0.2000000 b.d.b.d.a.d b d 0.5000000 b.d.a.d.b.d In the above result the same rows (which represent connections) are selected multiple times (e.g. b,d; b,c; a,d...) although from the last column which represents the string already contains the combination of characters and therefore the connection should not be selected: in the first row string b.d is created and in the fourth row the same string is concatenated even though CAHRINDEX('b.d', Path) shouldn't be equal to zero. Does anyone know how to modify the query statement above in order not to select same connections multiple times? Thank you
sql
recursion
null
null
null
null
open
recursive query problem === Trying not to select same connection multiple times I have tried to use charindex() = 0 condition the following way: WITH Cluster(calling_party, called_party, link_strength, Path) AS (SELECT calling_party, called_party, link_strength, CONVERT(varchar(max), calling_party + '.' + called_party) AS Path FROM monthly_connections_test WHERE link_strength > 0.1 AND calling_party = 'b' UNION ALL SELECT mc.calling_party, mc.called_party, mc.link_strength, CONVERT(varchar(max), cl.Path + '.' + mc.calling_party + '.' + mc.called_party) AS Path FROM monthly_connections_test mc INNER JOIN Cluster cl ON (mc.called_party = cl.called_party OR mc.called_party = cl.calling_party) AND (CHARINDEX(cl.called_party + '.' + mc.calling_party, Path) = 0 AND CHARINDEX(cl.called_party + '.' + mc.called_party, Path) = 0) WHERE mc.link_strength > 0.1 ) SELECT calling_party, called_party, link_strength, Path FROM Cluster OPTION (maxrecursion 30000) The condition however does not fulfill its purpose as the same rows are selected multiple times. The example query result is the following: b d 0.5000000 b.d b c 0.5000000 b.c b c 0.5000000 b.c.b.c d b 0.4000000 b.c.d.b a d 0.2000000 b.c.d.b.a.d b d 0.5000000 b.c.d.b.b.d d b 0.4000000 b.c.d.b.d.b a d 0.2000000 b.c.d.b.b.d.a.d a d 0.2000000 b.c.d.b.a.d.a.d c a 0.4000000 b.c.d.b.a.d.c.a c a 0.4000000 b.c.d.b.a.d.c.a.c.a b c 0.5000000 b.c.d.b.a.d.c.a.b.c b c 0.5000000 b.c.d.b.a.d.c.a.b.c.b.c a d 0.2000000 b.d.a.d b d 0.5000000 b.d.b.d d b 0.4000000 b.d.d.b a d 0.2000000 b.d.b.d.a.d b d 0.5000000 b.d.a.d.b.d In the above result the same rows (which represent connections) are selected multiple times (e.g. b,d; b,c; a,d...) although from the last column which represents the string already contains the combination of characters and therefore the connection should not be selected: in the first row string b.d is created and in the fourth row the same string is concatenated even though CAHRINDEX('b.d', Path) shouldn't be equal to zero. Does anyone know how to modify the query statement above in order not to select same connections multiple times? Thank you
0
9,476,028
02/28/2012 03:34:18
720,705
04/22/2011 15:15:48
101
0
iFrames: the good, the bad, and the ugly
iFrames are considered bad practice for web design, but utilized in some web apps. What are the good, bad, terrible uses of iFrames? How does modern javascript, pjax/history.js, backbone/knockout - compare to iFrame based solutions? Specifically, I've seen apps where the menu is the main page and all of the content is fed via different iFrames. What are your opinions on that type of solution?
javascript
iframe
history.js
pjax
null
02/28/2012 03:45:51
not constructive
iFrames: the good, the bad, and the ugly === iFrames are considered bad practice for web design, but utilized in some web apps. What are the good, bad, terrible uses of iFrames? How does modern javascript, pjax/history.js, backbone/knockout - compare to iFrame based solutions? Specifically, I've seen apps where the menu is the main page and all of the content is fed via different iFrames. What are your opinions on that type of solution?
4
9,170,375
02/07/2012 02:51:17
862,176
07/25/2011 18:43:49
16
1
Cannot ping outside Fa4 on cisco 871w Router (SoHo)
After starting fresh after a write erase and a reload on a cisco 871w. I cannot ping outside of the wan (fa4). I gave vlan1 (default) an ip because apparently the built in "4 port switch" is a layer 2 device so you cannot directly add IPs to the ports like on the 2800 series. Fa4 (wan port) is actually a layer3 port so I add the settings(ip, mask, speed, duplex) to fa4. I can ping another device connected to one of the ports and also the vlan from a connected computer. I can ping anything from inside the router other than the vlan. I cannot ping fa4 from a connected computer nor can I ping anything outside the fa4. I would prefer to console in and use the command line interface if possible but i can also use the http interface.
configuration
cli
router
cisco
small-business
null
open
Cannot ping outside Fa4 on cisco 871w Router (SoHo) === After starting fresh after a write erase and a reload on a cisco 871w. I cannot ping outside of the wan (fa4). I gave vlan1 (default) an ip because apparently the built in "4 port switch" is a layer 2 device so you cannot directly add IPs to the ports like on the 2800 series. Fa4 (wan port) is actually a layer3 port so I add the settings(ip, mask, speed, duplex) to fa4. I can ping another device connected to one of the ports and also the vlan from a connected computer. I can ping anything from inside the router other than the vlan. I cannot ping fa4 from a connected computer nor can I ping anything outside the fa4. I would prefer to console in and use the command line interface if possible but i can also use the http interface.
0
8,486,767
12/13/2011 09:19:06
887,120
08/10/2011 03:31:33
1
0
how to bind wcf service (sql db) to controls in wpf
i am getting sql db as service ,i want to bind them to controls in wpf . if there is any db we can just simply drag and drop the tables,save it then we can get datacontext and we can perform operations on it. is there any way to use wcf service in the same way.plz tell me step by step and detailed explanation ,i went thru all the links in net,but not able to understand them.plz help me . i want to bind those tables from the database( given to me as webservice);if the db is not a service we can do it in drag and drop manner and write datacontext code ,can we do it in similar manner for a webservice,i cant get this
wpf
null
null
null
null
12/13/2011 18:34:00
not a real question
how to bind wcf service (sql db) to controls in wpf === i am getting sql db as service ,i want to bind them to controls in wpf . if there is any db we can just simply drag and drop the tables,save it then we can get datacontext and we can perform operations on it. is there any way to use wcf service in the same way.plz tell me step by step and detailed explanation ,i went thru all the links in net,but not able to understand them.plz help me . i want to bind those tables from the database( given to me as webservice);if the db is not a service we can do it in drag and drop manner and write datacontext code ,can we do it in similar manner for a webservice,i cant get this
1
8,334,682
11/30/2011 23:43:42
159,346
08/19/2009 14:46:28
869
32
Why there is lack of momentum in Amazon SimpleDB?
I am working on a project and as I want it to be hassle free so I am considering using Amazon SimpleDB for the sake of simplicity. At least I can cross out DB administration. But why there is so little info about SimpleDB on the net? As if nobody cares about it and I feel like I might be on the wrong track. Is it so unpopular? The other major NoSQL databases have a lot more coverage. What could be the reason? Is it because it is hosted? Does it lack major important features which I don't notice? Is it horrible performance-wise? Is it not durable? Why people are not very interested? Are there better alternatives for hosted NoSQL?
mongodb
nosql
couchdb
redis
amazon-simpledb
12/01/2011 00:46:03
not constructive
Why there is lack of momentum in Amazon SimpleDB? === I am working on a project and as I want it to be hassle free so I am considering using Amazon SimpleDB for the sake of simplicity. At least I can cross out DB administration. But why there is so little info about SimpleDB on the net? As if nobody cares about it and I feel like I might be on the wrong track. Is it so unpopular? The other major NoSQL databases have a lot more coverage. What could be the reason? Is it because it is hosted? Does it lack major important features which I don't notice? Is it horrible performance-wise? Is it not durable? Why people are not very interested? Are there better alternatives for hosted NoSQL?
4
10,454,790
05/04/2012 19:11:33
1,270,733
03/15/2012 05:02:36
4
0
Can I use progress without using thread and async task?
If yes the How we can achieve this please help me. Give me example as well.
android
null
null
null
null
07/25/2012 14:00:18
not constructive
Can I use progress without using thread and async task? === If yes the How we can achieve this please help me. Give me example as well.
4
8,366,133
12/03/2011 06:50:53
155,196
08/12/2009 16:08:13
1,673
39
Android importing Lib project
I am trying to import the library project from https://github.com/JakeWharton/Android-ViewPagerIndicator by doing the following steps ![enter image description here][1] ![enter image description here][2] ![enter image description here][3] **After importing the Project i get the following error.** ---------------------------------------------------------- ![enter image description here][4] ![enter image description here][5] **Not sure how to solve this problem. I am not from a JAVA background so i find it difficult to understand how to resolve this.** [1]: http://i.stack.imgur.com/7FTjN.png [2]: http://i.stack.imgur.com/dBwi4.png [3]: http://i.stack.imgur.com/4DGT1.png [4]: http://i.stack.imgur.com/OGqdO.png [5]: http://i.stack.imgur.com/UTJid.png
android
android-viewpager
android-library
null
null
null
open
Android importing Lib project === I am trying to import the library project from https://github.com/JakeWharton/Android-ViewPagerIndicator by doing the following steps ![enter image description here][1] ![enter image description here][2] ![enter image description here][3] **After importing the Project i get the following error.** ---------------------------------------------------------- ![enter image description here][4] ![enter image description here][5] **Not sure how to solve this problem. I am not from a JAVA background so i find it difficult to understand how to resolve this.** [1]: http://i.stack.imgur.com/7FTjN.png [2]: http://i.stack.imgur.com/dBwi4.png [3]: http://i.stack.imgur.com/4DGT1.png [4]: http://i.stack.imgur.com/OGqdO.png [5]: http://i.stack.imgur.com/UTJid.png
0
9,673,148
03/12/2012 18:59:27
759,766
05/18/2011 18:33:40
35
0
MVC3 Linq Validations and Display
I'm building MVC3 Site, and use LINQ as my Data Access Layer, I don't user model for this classes and I want to add Validation and Display Annotation to this classes. What is the correct way to do it? Thanks
linq
asp.net-mvc-3
model
null
null
null
open
MVC3 Linq Validations and Display === I'm building MVC3 Site, and use LINQ as my Data Access Layer, I don't user model for this classes and I want to add Validation and Display Annotation to this classes. What is the correct way to do it? Thanks
0
4,050,798
10/29/2010 09:56:59
184,367
10/05/2009 12:51:13
1,171
18
GitHub: Is it possible to collaborate with someone on a private gist?
I have a private gist. If I send the URL to a friend he can view it, but cannot edit it, unless he forks it. Is there a way to edit it directly without forking it?
git
github
null
null
null
null
open
GitHub: Is it possible to collaborate with someone on a private gist? === I have a private gist. If I send the URL to a friend he can view it, but cannot edit it, unless he forks it. Is there a way to edit it directly without forking it?
0
8,021,783
11/05/2011 17:09:37
1,019,544
10/29/2011 08:06:45
3
1
Xugglers IContainer can't open AMR515 stream
Hope that someone will help me with problem. I've written network client that reseives streaming audio encoded in AMR515. Client uses own protocol, over UDP, and each datagramm contains 2 chunks of 20 ms audio data. Client receiving this audio data to buffer and writes it to PipedOutputStream, when buffer sufficiently filled with (actually first I write to PipedOutputStream AMR header). StreamWorker (see below) get access to PipedInputStream, creates IContainer and tries to open, but got IO error. When I just writes this bytes to file (with header) and after trying play it with Xuggler, all works fine. In listing I showing only not working part, so some of it skipped (there is lot of code). import com.xuggle.xuggler.IAudioSamples; import com.xuggle.xuggler.ICodec; import com.xuggle.xuggler.IContainer; import com.xuggle.xuggler.IContainerFormat; import com.xuggle.xuggler.IPacket; import com.xuggle.xuggler.IStreamCoder; import java.io.PipedInputStream; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.SourceDataLine; import net.DataConnection; // it's my network worker public class StreamWorker { public StreamWorker() { } public void setDataConnection(DataConnection dc) { this.dataConnection = dc; this.inputStream = dataConnection.getBridgeStream(); } public void convertAndPlay() { IContainer container = IContainer.make(); IContainerFormat containerFormat = IContainerFormat.make(); int sb = container.setInputBufferLength(128); if(sb < 0) System.out.println("Can't set buffer"); if(container.open(inputStream, containerFormat, true, false) < 0) throw new IllegalArgumentException("Can't open stream!"); System.out.println("Stream opened!"); /* * I've never reach there, so other part is skipped * * */ } // a lot of skipped code that never runs private DataConnection dataConnection; private PipedInputStream inputStream; private static SourceDataLine mLine; static byte[] header = { // AMR file header 0x23, 0x21, 0x41, 0x4D, 0x52, 0x0A }; }
java
stream
amr
xuggler
null
null
open
Xugglers IContainer can't open AMR515 stream === Hope that someone will help me with problem. I've written network client that reseives streaming audio encoded in AMR515. Client uses own protocol, over UDP, and each datagramm contains 2 chunks of 20 ms audio data. Client receiving this audio data to buffer and writes it to PipedOutputStream, when buffer sufficiently filled with (actually first I write to PipedOutputStream AMR header). StreamWorker (see below) get access to PipedInputStream, creates IContainer and tries to open, but got IO error. When I just writes this bytes to file (with header) and after trying play it with Xuggler, all works fine. In listing I showing only not working part, so some of it skipped (there is lot of code). import com.xuggle.xuggler.IAudioSamples; import com.xuggle.xuggler.ICodec; import com.xuggle.xuggler.IContainer; import com.xuggle.xuggler.IContainerFormat; import com.xuggle.xuggler.IPacket; import com.xuggle.xuggler.IStreamCoder; import java.io.PipedInputStream; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.SourceDataLine; import net.DataConnection; // it's my network worker public class StreamWorker { public StreamWorker() { } public void setDataConnection(DataConnection dc) { this.dataConnection = dc; this.inputStream = dataConnection.getBridgeStream(); } public void convertAndPlay() { IContainer container = IContainer.make(); IContainerFormat containerFormat = IContainerFormat.make(); int sb = container.setInputBufferLength(128); if(sb < 0) System.out.println("Can't set buffer"); if(container.open(inputStream, containerFormat, true, false) < 0) throw new IllegalArgumentException("Can't open stream!"); System.out.println("Stream opened!"); /* * I've never reach there, so other part is skipped * * */ } // a lot of skipped code that never runs private DataConnection dataConnection; private PipedInputStream inputStream; private static SourceDataLine mLine; static byte[] header = { // AMR file header 0x23, 0x21, 0x41, 0x4D, 0x52, 0x0A }; }
0
3,023,093
06/11/2010 13:25:22
179,855
09/27/2009 21:32:34
976
62
url optimization in rails?
Hello I want to create seo optimize url in rails.Same like done in stackoverflow. Right now this is my url http://localhost:3000/questions/56 I want to make it something like this:- http://localhost:3000/questions/56/this-is-my-optimized-url i am using restful approach. is there any plug-in available for this.
ruby-on-rails
plugins
null
null
null
null
open
url optimization in rails? === Hello I want to create seo optimize url in rails.Same like done in stackoverflow. Right now this is my url http://localhost:3000/questions/56 I want to make it something like this:- http://localhost:3000/questions/56/this-is-my-optimized-url i am using restful approach. is there any plug-in available for this.
0
1,357,731
08/31/2009 14:28:20
136,258
07/10/2009 12:57:44
1,244
62
Visual Studio: Is there a way to collapse all itens of Solution Explorer?
I know that I can use Arrow Keys to collapse itens of solution explorer one by one, but I would like to know if there is a way to collapse all itens with only one operation. I want to know it because, today I have a solution with 6 projects that they have at least **two hundred of files** and, I know, if I try to collapse one-by-one I will have a hard time doing it. ![Tree View - Solution Explorer (Visual Studio)][1] [1]: http://img6.imageshack.us/img6/6889/treeviewvisualstudio.jpg
visual-studio-2008
.net
null
null
null
null
open
Visual Studio: Is there a way to collapse all itens of Solution Explorer? === I know that I can use Arrow Keys to collapse itens of solution explorer one by one, but I would like to know if there is a way to collapse all itens with only one operation. I want to know it because, today I have a solution with 6 projects that they have at least **two hundred of files** and, I know, if I try to collapse one-by-one I will have a hard time doing it. ![Tree View - Solution Explorer (Visual Studio)][1] [1]: http://img6.imageshack.us/img6/6889/treeviewvisualstudio.jpg
0
11,418,365
07/10/2012 17:08:02
1,033,422
11/07/2011 08:39:35
26
5
wso2 identity server - password policies
Does WSO2 identity server support password policies like password ageing? I couldn't see anything relating to these features on the wso2 web site, or the identity server data sheet. If not, is this functionality on the roadmap?
wso2
null
null
null
null
null
open
wso2 identity server - password policies === Does WSO2 identity server support password policies like password ageing? I couldn't see anything relating to these features on the wso2 web site, or the identity server data sheet. If not, is this functionality on the roadmap?
0
4,226,046
11/19/2010 14:41:25
513,582
11/19/2010 14:28:05
1
0
linux shellscripting bourne/bash
Created waste paper basket need to create if statement that allows users to remove files without them disappearing until the dustbin is emptied the script should print filenames one by one and ask user for confirmation that they should b deleted
linux
null
null
null
null
11/19/2010 14:48:09
not a real question
linux shellscripting bourne/bash === Created waste paper basket need to create if statement that allows users to remove files without them disappearing until the dustbin is emptied the script should print filenames one by one and ask user for confirmation that they should b deleted
1
6,023,668
05/16/2011 21:28:24
71,420
02/26/2009 15:11:17
365
22
RTP video stream: is presence of SDP file mandatory ?
I have implemented a raw rtp stream. I want to play it using VLC or Mplayer. But it seems that video players cannot play this stream. For example MPlayer says: Stream not seekable! Stray packet (seq[6]=1013 seq=987, newseq=-26 found at 12) I dont get any idea what I have to do, to make video readable by this videoplayers. Should I add SDP ? Or theese players can play raw rtp stream ? Thanks
video-streaming
rtp
null
null
null
null
open
RTP video stream: is presence of SDP file mandatory ? === I have implemented a raw rtp stream. I want to play it using VLC or Mplayer. But it seems that video players cannot play this stream. For example MPlayer says: Stream not seekable! Stray packet (seq[6]=1013 seq=987, newseq=-26 found at 12) I dont get any idea what I have to do, to make video readable by this videoplayers. Should I add SDP ? Or theese players can play raw rtp stream ? Thanks
0
7,118,202
08/19/2011 07:19:23
196,038
10/25/2009 00:31:17
55
7
Does anyone know what's the future of prototype JS "Dev Core team is missing"
I'm a big fan of prototype js library, I been using over 3 year now. but recently I have seen this library die slowly, and nobody from the dev core team, has answer the several questions from the mail list relate to this issue, I don't have another place to post this question. I'm really glad for the work and effort put it in this framework. But I don't see anybody take action about this problem in the dev core team. Somebody there? I'll be glad to contribute in any action to help prototype!!!
javascript
prototypejs
null
null
null
08/19/2011 17:24:31
off topic
Does anyone know what's the future of prototype JS "Dev Core team is missing" === I'm a big fan of prototype js library, I been using over 3 year now. but recently I have seen this library die slowly, and nobody from the dev core team, has answer the several questions from the mail list relate to this issue, I don't have another place to post this question. I'm really glad for the work and effort put it in this framework. But I don't see anybody take action about this problem in the dev core team. Somebody there? I'll be glad to contribute in any action to help prototype!!!
2
5,227,779
03/08/2011 02:51:20
302,093
03/25/2010 21:11:31
170
13
Adding a custom image to facebook like feature...
Howdy, This may seem like a [duplicate question][1] or it is easily answered [here][2] yet I remain utterly befuddled by how easy of a feature this is to implement and how much trouble I am having adding my image and finding a solution that works. I have been scouring to no avail. The two links provided above show the only two options I have found which are: <meta property="og:image" content="http://www.example.com/styles/images/fb_cl_logo.png"/> and <link rel="canonical" href="http://www.example.com/Blogs_fb_build.php?id=<?php echo $blog; ?>"/> Needless to say this is not working whatsoever! Thanks in advance. [1]: http://stackoverflow.com/questions/2847210/how-does-facebook-detect-images-when-adding-a-link [2]: http://developers.facebook.com/blog/post/407/
php
image
facebook
links
meta
null
open
Adding a custom image to facebook like feature... === Howdy, This may seem like a [duplicate question][1] or it is easily answered [here][2] yet I remain utterly befuddled by how easy of a feature this is to implement and how much trouble I am having adding my image and finding a solution that works. I have been scouring to no avail. The two links provided above show the only two options I have found which are: <meta property="og:image" content="http://www.example.com/styles/images/fb_cl_logo.png"/> and <link rel="canonical" href="http://www.example.com/Blogs_fb_build.php?id=<?php echo $blog; ?>"/> Needless to say this is not working whatsoever! Thanks in advance. [1]: http://stackoverflow.com/questions/2847210/how-does-facebook-detect-images-when-adding-a-link [2]: http://developers.facebook.com/blog/post/407/
0
284,189
11/12/2008 14:55:37
34,537
11/05/2008 03:00:23
57
2
script for actionscript/flash and c++
I havent used flash or action script much. I am planning a small project that i'd like to be online via flash but i'd like to reuse the code in my c/c++ projects Is there a script language i can use? i am thinking lua or python. After googling i found flua which is incomplete and jython. Can i use java in flash? would it be a good idea to use python in java which is ran with flash?
scripting
flash
c++
null
null
null
open
script for actionscript/flash and c++ === I havent used flash or action script much. I am planning a small project that i'd like to be online via flash but i'd like to reuse the code in my c/c++ projects Is there a script language i can use? i am thinking lua or python. After googling i found flua which is incomplete and jython. Can i use java in flash? would it be a good idea to use python in java which is ran with flash?
0
8,091,877
11/11/2011 09:21:06
848,423
07/17/2011 06:05:09
144
0
AI Engine, First Attempt
I notice that StackOverflow tends to collectively close down general questions on how to start learning stuff. OK, so a focussed question here: I've set out to build an AI-engine that learns to play Tetris, i.e. an engine that can improve it's performance, perhaps by adjusting its heuristics, and so forth. Let's say that I've got the GUI out of the way--where would I begin in building the engine? Which resources would I, as a beginner, use to understand the Machine Learning concepts involved in this? I don't have a very deep command of the level of mathematics I've found in some machine learning texts, so you'd have to be gentle with me.
machine-learning
tetris
null
null
null
11/12/2011 02:04:04
off topic
AI Engine, First Attempt === I notice that StackOverflow tends to collectively close down general questions on how to start learning stuff. OK, so a focussed question here: I've set out to build an AI-engine that learns to play Tetris, i.e. an engine that can improve it's performance, perhaps by adjusting its heuristics, and so forth. Let's say that I've got the GUI out of the way--where would I begin in building the engine? Which resources would I, as a beginner, use to understand the Machine Learning concepts involved in this? I don't have a very deep command of the level of mathematics I've found in some machine learning texts, so you'd have to be gentle with me.
2
11,645,614
07/25/2012 08:28:55
1,465,563
06/19/2012 06:33:35
1
0
How to achieve ItemSelection and IsMouseOver effect in ItemsControl WPF?
I am using ItemsControl in my application, applied Itemtemplate and ItemPanelTemplate to it with Scrollviwere style. All is fine. Binding is working pretty fine but here the issue is i want to select an Item in ItemsControl i am not able to do so as we do in Listbox using IsSelected property in triggers. How can i achieve item Selection and IsMouseOver in ItemsControl similar to Listbox, is there any way, as i did not find any resource on net useful enough so thought to ask for some help here. Please help me its very urgent Thanks VJ
wpf
wpf-usercontrols
null
null
null
null
open
How to achieve ItemSelection and IsMouseOver effect in ItemsControl WPF? === I am using ItemsControl in my application, applied Itemtemplate and ItemPanelTemplate to it with Scrollviwere style. All is fine. Binding is working pretty fine but here the issue is i want to select an Item in ItemsControl i am not able to do so as we do in Listbox using IsSelected property in triggers. How can i achieve item Selection and IsMouseOver in ItemsControl similar to Listbox, is there any way, as i did not find any resource on net useful enough so thought to ask for some help here. Please help me its very urgent Thanks VJ
0
4,530,951
12/25/2010 17:17:15
242,079
01/01/2010 22:57:13
322
2
how can I change connectionstring in runtime
how can I change connectionstring in runtime?
c#
null
null
null
null
12/25/2010 17:55:42
not a real question
how can I change connectionstring in runtime === how can I change connectionstring in runtime?
1
11,195,600
06/25/2012 19:00:18
1,479,014
06/25/2012 04:05:49
6
0
Popup navigation on my website?
I was looking at http://www.steveferrisworld.com and was quite interested with how when you click on the links there is a popup page. I was wondering how to implement this and what the necessary code would be. Thank You.
php
javascript
html
css
null
06/26/2012 01:00:33
not a real question
Popup navigation on my website? === I was looking at http://www.steveferrisworld.com and was quite interested with how when you click on the links there is a popup page. I was wondering how to implement this and what the necessary code would be. Thank You.
1
11,488,861
07/15/2012 02:14:20
1,262,000
03/11/2012 08:06:43
36
2
Java Reflection library that has a function to create NewInstance for any Class with any Constructor
I am looking for a library that provides a function like this, [invokeConstructor][1] in Java. [1]: https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Reflector.java#L150
java
oop
generics
reflection
null
07/17/2012 04:35:51
not constructive
Java Reflection library that has a function to create NewInstance for any Class with any Constructor === I am looking for a library that provides a function like this, [invokeConstructor][1] in Java. [1]: https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Reflector.java#L150
4
5,054,075
02/19/2011 22:58:28
624,805
02/19/2011 22:58:28
1
0
WCF unmanaged memory consumption
I have written an in process hosted WCF service. After service startup i analyzed memory consumption of the service with ANTS memory profiler. Here is what profiler reports about memory usage: Gen1: 1.5 MB Gen2: 5.6 MB Large Object Heap: 2.5 MB Unused memory allocated to .NET: 11.8 MB Unmanaged: 86.5 MB The thing that strikes me the most is unmanaged memory consumption. ANTS profiler does not provide any additional details about what is causing this. Anybody has any ideas?
wcf
memory
unmanaged
usage
consumption
null
open
WCF unmanaged memory consumption === I have written an in process hosted WCF service. After service startup i analyzed memory consumption of the service with ANTS memory profiler. Here is what profiler reports about memory usage: Gen1: 1.5 MB Gen2: 5.6 MB Large Object Heap: 2.5 MB Unused memory allocated to .NET: 11.8 MB Unmanaged: 86.5 MB The thing that strikes me the most is unmanaged memory consumption. ANTS profiler does not provide any additional details about what is causing this. Anybody has any ideas?
0
3,276,489
07/18/2010 17:22:32
133,374
07/05/2009 15:29:28
929
33
convert txt file with mixed spaces/tabs to tabs only (where possible)
I have some source code file which has mixed tabs/spaces and I want to convert it to a file where it has automatically replaced all indentation spaces by tabs for a given tab space length (i.e. for example tab = 2 spaces). Any easy solution (with common Unix tools, MacOSX, bash or zsh)? Some sed script or Python command or so? Thanks, Albert
shell
tabs
whitespace
null
null
null
open
convert txt file with mixed spaces/tabs to tabs only (where possible) === I have some source code file which has mixed tabs/spaces and I want to convert it to a file where it has automatically replaced all indentation spaces by tabs for a given tab space length (i.e. for example tab = 2 spaces). Any easy solution (with common Unix tools, MacOSX, bash or zsh)? Some sed script or Python command or so? Thanks, Albert
0
6,404,345
06/19/2011 18:32:39
558,961
12/31/2010 04:53:12
35
1
SQLite Insert NullException?
For some reason my code returns a NullException when trying to insert into a table? I am extremely confused. try{ if(contactsh.selectAll().size() > 0){ for(int i = 0; i < contactsh.selectAll().size() - 1; i++){ names[i] = contactsh.selectAll().get(i); } } else { } } catch(Exception e){ contactsh.insert("Example"); //ERROR IS HERE timeh.insert("20:20"); dateh.insert("06/27/27"); txth.insert("1-555-555-5555"); Log.w("initiate contacts error: ", e.toString()); } Error: 06-19 11:29:55.486: ERROR/AndroidRuntime(9482): Caused by: java.lang.NullPointerException 06-19 11:29:55.486: ERROR/AndroidRuntime(9482): at com.laytproducts.timexter.mainAct.onCreate(mainAct.java:57) 06-19 11:29:55.486: ERROR/AndroidRuntime(9482): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 06-19 11:29:55.486: ERROR/AndroidRuntime(9482): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2701) 06-19 11:29:55.486: ERROR/AndroidRuntime(9482): ... 11 more Here is my insert method in my class for the DatabaseHelper: public long insert(String name){ this.insertStmt.bindString(1, name); return this.insertStmt.executeInsert(); } If you need to see my whole class I will be more than happy to post it here. Thanks in advanced :)
java
android
sql
database
nullpointerexception
null
open
SQLite Insert NullException? === For some reason my code returns a NullException when trying to insert into a table? I am extremely confused. try{ if(contactsh.selectAll().size() > 0){ for(int i = 0; i < contactsh.selectAll().size() - 1; i++){ names[i] = contactsh.selectAll().get(i); } } else { } } catch(Exception e){ contactsh.insert("Example"); //ERROR IS HERE timeh.insert("20:20"); dateh.insert("06/27/27"); txth.insert("1-555-555-5555"); Log.w("initiate contacts error: ", e.toString()); } Error: 06-19 11:29:55.486: ERROR/AndroidRuntime(9482): Caused by: java.lang.NullPointerException 06-19 11:29:55.486: ERROR/AndroidRuntime(9482): at com.laytproducts.timexter.mainAct.onCreate(mainAct.java:57) 06-19 11:29:55.486: ERROR/AndroidRuntime(9482): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 06-19 11:29:55.486: ERROR/AndroidRuntime(9482): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2701) 06-19 11:29:55.486: ERROR/AndroidRuntime(9482): ... 11 more Here is my insert method in my class for the DatabaseHelper: public long insert(String name){ this.insertStmt.bindString(1, name); return this.insertStmt.executeInsert(); } If you need to see my whole class I will be more than happy to post it here. Thanks in advanced :)
0
5,605,853
04/09/2011 15:16:03
693,489
04/05/2011 18:00:41
1
0
What is JNI Graphics or how to use it?
In the NDk of Android there is a library named JNI Graphics. What is that. Can I use that to load Images for OpenGL Es with C / C++?
android
opengl-es
jni
android-ndk
null
null
open
What is JNI Graphics or how to use it? === In the NDk of Android there is a library named JNI Graphics. What is that. Can I use that to load Images for OpenGL Es with C / C++?
0
11,487,202
07/14/2012 20:36:32
494,222
11/02/2010 02:12:24
344
18
Complicated use of VPS to access internal system, using SSH tunnels
I am not exactly sure what the best solution would be for this problem, but I have a VPS with 3 ips. I have a unix system behind a home router with no ports forwarded. I want to be able to access myVPSIP:25566 and get the data on the internal system. myVPS ---> internal system How do I go about doing this, I have tried reverse tunneling. If the minecraft server part causes confusion, here is an alternate example that will accomplish the same task. I have a web server on a computer inside a home network. It cannot get incoming connections, so I purchased a VPS, and it has an IP. I wish to be able to access the web server via the VPS IP. I have tried reverse SSH Tunnel, but am unsure why it does not work. here is the command I used > ssh -f -R 25566:127.0.0.1:25566 root@myvps -N
ssh
vps
minecraft
ssh-tunnel
null
07/16/2012 01:53:27
off topic
Complicated use of VPS to access internal system, using SSH tunnels === I am not exactly sure what the best solution would be for this problem, but I have a VPS with 3 ips. I have a unix system behind a home router with no ports forwarded. I want to be able to access myVPSIP:25566 and get the data on the internal system. myVPS ---> internal system How do I go about doing this, I have tried reverse tunneling. If the minecraft server part causes confusion, here is an alternate example that will accomplish the same task. I have a web server on a computer inside a home network. It cannot get incoming connections, so I purchased a VPS, and it has an IP. I wish to be able to access the web server via the VPS IP. I have tried reverse SSH Tunnel, but am unsure why it does not work. here is the command I used > ssh -f -R 25566:127.0.0.1:25566 root@myvps -N
2
8,114,148
11/13/2011 19:42:39
1,026,738
11/02/2011 23:49:13
18
0
PHP and SQL "Ghosts" in the system
A couple of you have already helped my with my problem with a PHP posting system. Now I have another problem. When I start it up and post on the friend-ed account and then sign into the other account I see this: !["Ghosts"][1] [1]: http://i.stack.imgur.com/IuShq.png I'm not sure how to get rid of this but I have searched all of the code. I can post any of the code on request. I should also mention that I have already emptied my database twice. Thanks!
php
sql
ghost
null
null
11/13/2011 20:18:16
too localized
PHP and SQL "Ghosts" in the system === A couple of you have already helped my with my problem with a PHP posting system. Now I have another problem. When I start it up and post on the friend-ed account and then sign into the other account I see this: !["Ghosts"][1] [1]: http://i.stack.imgur.com/IuShq.png I'm not sure how to get rid of this but I have searched all of the code. I can post any of the code on request. I should also mention that I have already emptied my database twice. Thanks!
3
10,922,960
06/06/2012 22:03:52
1,440,885
06/06/2012 22:01:40
1
0
Successful online order sends reciept to network printer
Is there a script that when someone places a successful online order, it will send a command to a network printer to print of a receipt of the order?
php
javascript
mysql
script
online
06/08/2012 23:03:50
not a real question
Successful online order sends reciept to network printer === Is there a script that when someone places a successful online order, it will send a command to a network printer to print of a receipt of the order?
1
11,568,522
07/19/2012 20:11:15
345,645
05/20/2010 01:39:45
583
9
Javascript String Search Using String As Regex
I don't know about other Javascript engines, but in V8, including Chrome and [Node.js][1], `String.prototype.search` behaves in an unexpected fashion. > "054".search("0.4") 0 // expected -1 > "Sample String 007".search("0.7") 14 // expected -1 > "Sample String 0.7".search("0.7") 14 // expected behavior If this is the expected behavior, why is that the case? And if this is the expected behavior, how do I properly search for a String without regular expressions coming in to play? [1]: http://nodejs.org/
javascript
node.js
google-chrome
v8
chromium
null
open
Javascript String Search Using String As Regex === I don't know about other Javascript engines, but in V8, including Chrome and [Node.js][1], `String.prototype.search` behaves in an unexpected fashion. > "054".search("0.4") 0 // expected -1 > "Sample String 007".search("0.7") 14 // expected -1 > "Sample String 0.7".search("0.7") 14 // expected behavior If this is the expected behavior, why is that the case? And if this is the expected behavior, how do I properly search for a String without regular expressions coming in to play? [1]: http://nodejs.org/
0
11,214,744
06/26/2012 19:36:23
576,262
01/14/2011 21:57:44
102
2
(How c| C)an I use Graphics.CopyFromScreen to enable alpha transparent controls?
I am trying to use (and this may be my problem already) e.Graphics.CopyFromScreen() in the OnPaint() method of my control to prepare a background onto which I can draw the content of the control. The goal is a tool-tip with rounded corners and other specific features to replace the default Windows tool tip. Ideally the tool tip could be antialiased and blended into the backdrop, however at a pinch I could tolerate an aliased boundary. This may also be necessary as the control will often be covering a control with an OpenGL overlay and the whole blending procedure may end up a nightmare. I have created a custom user control, a persistent instance of which belonds to my applications's main form, overriding the OnPaint and OnPaintBackground methods. The application of transparency however is challenging. As I understand, the graphics object passed to the paint method starts with a copy of the current VisibleClipBounds, where generally the first move is to clear the control with a solid colour and start drawing the main features. My first thought was to bypass the fill and start drawing on the captured background. For the first redraw this works fine, but subsequent redraws keep the previous content instead of re-capturing the backdrop. I hoped that CopyFromScreen would specifically eliminate the currently drawing control from its capture so as to start from a clean base but this is not the case, it captures the rectangle of the new location including the image of the previous location if it is in the bounds. Other solutions and permutations thereof such as SetStyle(ControlStyles.SupportsTransparentBackColor, True) Me.BackColor = Color.Transparent e.Graphics.Clear(Color.FromArgb(0,0,0,0)) have to-date yielded no appropriate results. I started with a transparent form using the transparent key colour. This worked with aliasing but using a form as a tool tip seemed excessive and caused annoying artifacts (some of which could be overcome) such as the temporary presence of the taskbar button, focus loss of underlying form with subsequent visual feedback in the host form's title bar colour. The control is much lighter weight but I am struggling to make it work even as well as the form. At this point I simply ask how to achieve the desired result and whether CopyFromScreen is a part of that solution.
vb.net
winforms
transparency
alpha-transparency
null
null
open
(How c| C)an I use Graphics.CopyFromScreen to enable alpha transparent controls? === I am trying to use (and this may be my problem already) e.Graphics.CopyFromScreen() in the OnPaint() method of my control to prepare a background onto which I can draw the content of the control. The goal is a tool-tip with rounded corners and other specific features to replace the default Windows tool tip. Ideally the tool tip could be antialiased and blended into the backdrop, however at a pinch I could tolerate an aliased boundary. This may also be necessary as the control will often be covering a control with an OpenGL overlay and the whole blending procedure may end up a nightmare. I have created a custom user control, a persistent instance of which belonds to my applications's main form, overriding the OnPaint and OnPaintBackground methods. The application of transparency however is challenging. As I understand, the graphics object passed to the paint method starts with a copy of the current VisibleClipBounds, where generally the first move is to clear the control with a solid colour and start drawing the main features. My first thought was to bypass the fill and start drawing on the captured background. For the first redraw this works fine, but subsequent redraws keep the previous content instead of re-capturing the backdrop. I hoped that CopyFromScreen would specifically eliminate the currently drawing control from its capture so as to start from a clean base but this is not the case, it captures the rectangle of the new location including the image of the previous location if it is in the bounds. Other solutions and permutations thereof such as SetStyle(ControlStyles.SupportsTransparentBackColor, True) Me.BackColor = Color.Transparent e.Graphics.Clear(Color.FromArgb(0,0,0,0)) have to-date yielded no appropriate results. I started with a transparent form using the transparent key colour. This worked with aliasing but using a form as a tool tip seemed excessive and caused annoying artifacts (some of which could be overcome) such as the temporary presence of the taskbar button, focus loss of underlying form with subsequent visual feedback in the host form's title bar colour. The control is much lighter weight but I am struggling to make it work even as well as the form. At this point I simply ask how to achieve the desired result and whether CopyFromScreen is a part of that solution.
0
3,566,223
08/25/2010 13:21:00
407,388
07/06/2010 11:56:54
6
0
passing argument 1 of strlen from incompatible pointer type
I am taking values from array and saving it in linked list as follows: where formattedaddress is char array. but it is giving me error "passing argument 1 of strlen from incompatible pointer type". Can anyone help me in this. NSString *formataddr=[RestaurantList objectAtIndex:0]; node1->formattedAddress = (char*)malloc(strlen(formataddr)*sizeof(char)+1);
objective-c
null
null
null
null
null
open
passing argument 1 of strlen from incompatible pointer type === I am taking values from array and saving it in linked list as follows: where formattedaddress is char array. but it is giving me error "passing argument 1 of strlen from incompatible pointer type". Can anyone help me in this. NSString *formataddr=[RestaurantList objectAtIndex:0]; node1->formattedAddress = (char*)malloc(strlen(formataddr)*sizeof(char)+1);
0
4,350,396
12/03/2010 22:23:33
347,421
05/21/2010 19:58:58
171
3
TextBox focus problem in WPF.
I want to have focus in my <code>TextBox</code> after it is double-clicked. I simply try: <code>myTextBox.Focus() </code> The caret appears however it is not blinking, and no one can type in the text box. What is the proper way to set the keyboard input focus on a <code>TextBox</code>? Thanks in advance! Cheers
c#
wpf
textbox
focus
double-click
null
open
TextBox focus problem in WPF. === I want to have focus in my <code>TextBox</code> after it is double-clicked. I simply try: <code>myTextBox.Focus() </code> The caret appears however it is not blinking, and no one can type in the text box. What is the proper way to set the keyboard input focus on a <code>TextBox</code>? Thanks in advance! Cheers
0
2,965,513
06/03/2010 11:36:14
150,225
08/04/2009 09:25:22
391
3
Drupal 6: getting particular fields from Node Reference types...
I'm a drupal newbie... <?php print $node->field_date[0]['view']; ?> I can get the custom created CCK fields' value and display in tpl.php files as above... that's fine. my question is how can I get the Node reference fields' in-fields? for example, I have an event content type, and I have defined Node Reference for Location (title, address, img, etc.). When I write the code below, it displays all location content; <?php print $node->field_location[0]['view']; ?> but I need to get only address field from this location content type. sth like below would be great :D but not working; <?php print $node->field_location[0]['field_address']['view']; ?> so how can get that? appreciate helps so much! thanks a lot!
drupal
drupal-6
field
drupal-theming
null
null
open
Drupal 6: getting particular fields from Node Reference types... === I'm a drupal newbie... <?php print $node->field_date[0]['view']; ?> I can get the custom created CCK fields' value and display in tpl.php files as above... that's fine. my question is how can I get the Node reference fields' in-fields? for example, I have an event content type, and I have defined Node Reference for Location (title, address, img, etc.). When I write the code below, it displays all location content; <?php print $node->field_location[0]['view']; ?> but I need to get only address field from this location content type. sth like below would be great :D but not working; <?php print $node->field_location[0]['field_address']['view']; ?> so how can get that? appreciate helps so much! thanks a lot!
0
11,078,279
06/18/2012 07:07:42
1,462,945
06/18/2012 07:00:43
1
0
Using Curl extension in PHP
I made the following configuration changes to my Wamp downloaded curl library and placed it in the apache folder. edited php.ini file in the bin folder of apache. after doing this i restarted wamp and got the following error **PHP startup: Unable to load dynamic library c:/wamp/bin/php/php5.4.3/ext/php_curl.dll - The application has failed to start because its side by side configuration is incorrect.** Any help will be appreciated.
php
apache
curl
wamp
null
06/18/2012 07:21:29
off topic
Using Curl extension in PHP === I made the following configuration changes to my Wamp downloaded curl library and placed it in the apache folder. edited php.ini file in the bin folder of apache. after doing this i restarted wamp and got the following error **PHP startup: Unable to load dynamic library c:/wamp/bin/php/php5.4.3/ext/php_curl.dll - The application has failed to start because its side by side configuration is incorrect.** Any help will be appreciated.
2
8,714,555
01/03/2012 15:30:30
742,465
05/06/2011 20:58:54
79
1
Hardware idependent deployment of Windows (imaging)
I am looking for solution that will allow me to create an image of an entire operating system (e.g. already installed, with software etc - not something like WIM) and then have the ability to deploy this image on other machines with different hardware, so basically a hardware indepedent imaging software
windows
image
null
null
null
01/03/2012 15:51:09
off topic
Hardware idependent deployment of Windows (imaging) === I am looking for solution that will allow me to create an image of an entire operating system (e.g. already installed, with software etc - not something like WIM) and then have the ability to deploy this image on other machines with different hardware, so basically a hardware indepedent imaging software
2
9,851,522
03/24/2012 11:55:30
1,289,910
03/24/2012 11:49:19
1
0
Need help regarding the concept for creating a site
I am working on a project which is similar to the following site: [http://b2cjewels.com/Design-Own-Ring.aspx][1] [1]: http://b2cjewels.com/Design-Own-Ring.aspx I need to know a way to implement the diamond gallery shown on that page. I am an amateur developer and have very basic knowledge of C# and jquery. Pls provide me with a basic overview of a way to implement it. Thank You.
c#
jquery
gridview
null
null
03/24/2012 14:51:24
not a real question
Need help regarding the concept for creating a site === I am working on a project which is similar to the following site: [http://b2cjewels.com/Design-Own-Ring.aspx][1] [1]: http://b2cjewels.com/Design-Own-Ring.aspx I need to know a way to implement the diamond gallery shown on that page. I am an amateur developer and have very basic knowledge of C# and jquery. Pls provide me with a basic overview of a way to implement it. Thank You.
1
11,566,592
07/19/2012 17:55:29
1,522,436
07/13/2012 02:29:10
1
0
Map and reverse sublists scheme.
I am new to scheme. I wanted to write a function that reverses all the sub-lists in a list (but only the sublists of the top level). I tried to figure out if I could just filter the list and do the reverse before using map by doing: (filter list? reverse '((1 2) 9 (16 5) 64))), but that just reverses to (16 5) (1 2). I am looking for an output like: (2 1) 9 (5 16) 64). I am supposed to use map and reverse, but I just couldn't get there to start with. Any help would be appreciated Thanks!
map
scheme
reverse
null
null
null
open
Map and reverse sublists scheme. === I am new to scheme. I wanted to write a function that reverses all the sub-lists in a list (but only the sublists of the top level). I tried to figure out if I could just filter the list and do the reverse before using map by doing: (filter list? reverse '((1 2) 9 (16 5) 64))), but that just reverses to (16 5) (1 2). I am looking for an output like: (2 1) 9 (5 16) 64). I am supposed to use map and reverse, but I just couldn't get there to start with. Any help would be appreciated Thanks!
0
11,421,840
07/10/2012 20:58:24
1,515,981
07/10/2012 20:42:32
1
0
SSH not working, Connection refused
I'm at a bit of a loss here. I cannot get ssh working on my machine. It's a plain old ubuntu home server. I took it down today to add a few more hard drives to it, now SSH is acting up. I get connection refused. ssh: connect to host localhost port 22: connection refused ssh: connect to host 192.168.0.105 port 22: connection refused Both trying to access it via LAN, and directly on the machine using ssh localhost. I have checked, the localhost loop is fine. I've triple checked, it is the correct IP, because all these things are working; Apache, Samba, FTP, and a few other services i have running. The router configuration i have messed with a bit, but port 22 is forwarded to the right IP. In this case 192.168.0.105. netstat -ln | grep 22 returns: tcp6 0 0 :::22 :::* LISTEN so i assume SSHD is running? I have tried updating (hopefully not) everything, but googling have gotten me nowhere. I have tried uninstalling, and reinstalling both openssh-client and openssh-server from apt-get. I have tried changing the DNS on the router, tried setting sshd_conf to `UseDNS no` I don't know what to do. I am by no means capable in linux, it's just a tool for me, and right now - it's broken. I very much hope you can help me. Thanks in advance, Michael
linux
ubuntu
ssh
port
sshd
07/10/2012 23:48:41
off topic
SSH not working, Connection refused === I'm at a bit of a loss here. I cannot get ssh working on my machine. It's a plain old ubuntu home server. I took it down today to add a few more hard drives to it, now SSH is acting up. I get connection refused. ssh: connect to host localhost port 22: connection refused ssh: connect to host 192.168.0.105 port 22: connection refused Both trying to access it via LAN, and directly on the machine using ssh localhost. I have checked, the localhost loop is fine. I've triple checked, it is the correct IP, because all these things are working; Apache, Samba, FTP, and a few other services i have running. The router configuration i have messed with a bit, but port 22 is forwarded to the right IP. In this case 192.168.0.105. netstat -ln | grep 22 returns: tcp6 0 0 :::22 :::* LISTEN so i assume SSHD is running? I have tried updating (hopefully not) everything, but googling have gotten me nowhere. I have tried uninstalling, and reinstalling both openssh-client and openssh-server from apt-get. I have tried changing the DNS on the router, tried setting sshd_conf to `UseDNS no` I don't know what to do. I am by no means capable in linux, it's just a tool for me, and right now - it's broken. I very much hope you can help me. Thanks in advance, Michael
2
3,477,252
08/13/2010 13:30:05
324,307
04/23/2010 15:04:42
124
11
Best method for checking if IonCube Loader is installed
I'm using the following code: <?php if(extension_loaded("IonCube Loader") { // Yes } else { // No } ?> I'm just concerned that this won't work across every server with IonCube enabled. It seems pretty standard, but I've never needed to check before. Is this the best way to check, or is there a better method I should be using?
php
ioncube
null
null
null
null
open
Best method for checking if IonCube Loader is installed === I'm using the following code: <?php if(extension_loaded("IonCube Loader") { // Yes } else { // No } ?> I'm just concerned that this won't work across every server with IonCube enabled. It seems pretty standard, but I've never needed to check before. Is this the best way to check, or is there a better method I should be using?
0
1,263,544
08/11/2009 23:33:46
140,337
07/17/2009 18:09:26
24
0
Why wont my php file "unlink" the txt file?
I think its my webhost dissallowing the function to execute. My question is why wont the two text files delete??? They are both set to 777, maybe i should change permission settings?? http://informationalinformation.info/fg/cron.php
php
unlink
delete
remove
error
02/18/2012 02:46:58
too localized
Why wont my php file "unlink" the txt file? === I think its my webhost dissallowing the function to execute. My question is why wont the two text files delete??? They are both set to 777, maybe i should change permission settings?? http://informationalinformation.info/fg/cron.php
3
10,519,729
05/09/2012 15:59:04
1,189,101
02/04/2012 08:31:18
87
1
How to convert milliseconds into minutes?
i got one more problem if any one have any solution please help me. Ploblem is like this I want to convert milliseconds into minutes in javascript and then decrement minutes by 60000 milliseconds untill it reaches current time for which i am using this code:- <?php $date2 = date('Y-m-d H:i:s'); $currentdate = strtotime($date2); $targetdate = strtotime('2012-05-09 21:30:00'); ?> <script type=text/javascript> var currentdate = <?php echo $currentdate; ?>; var targetdate = <?php echo $targetdate; ?>; var difference = targetdate - currentdate; var minutes = Math.floor(difference / 60); var i = minutes; var intID; function decrementMin() { if(i==0) { clearInterval(intID); alert('Minute = Congratulation your time begin!'); } if(i>=0){ document.getElementById('minutes').innerHTML = i + "minutes; i--; } } decrementMin(); intID = setInterval('decrementMin()', 60000); </script> The problem is like that their are total 478 seconds and when we convert it into minutes then it become 7.9666 but by using Math.floor() it show's 7 minutes and give alert before .9666 second. If any one have any solution please help me i am waiting for your answer please.
javascript
null
null
null
null
null
open
How to convert milliseconds into minutes? === i got one more problem if any one have any solution please help me. Ploblem is like this I want to convert milliseconds into minutes in javascript and then decrement minutes by 60000 milliseconds untill it reaches current time for which i am using this code:- <?php $date2 = date('Y-m-d H:i:s'); $currentdate = strtotime($date2); $targetdate = strtotime('2012-05-09 21:30:00'); ?> <script type=text/javascript> var currentdate = <?php echo $currentdate; ?>; var targetdate = <?php echo $targetdate; ?>; var difference = targetdate - currentdate; var minutes = Math.floor(difference / 60); var i = minutes; var intID; function decrementMin() { if(i==0) { clearInterval(intID); alert('Minute = Congratulation your time begin!'); } if(i>=0){ document.getElementById('minutes').innerHTML = i + "minutes; i--; } } decrementMin(); intID = setInterval('decrementMin()', 60000); </script> The problem is like that their are total 478 seconds and when we convert it into minutes then it become 7.9666 but by using Math.floor() it show's 7 minutes and give alert before .9666 second. If any one have any solution please help me i am waiting for your answer please.
0
2,852,769
05/17/2010 20:59:15
5,274
09/08/2008 20:14:46
6,217
271
Interview Questions: Is IDisposable hard to understand?
I've been interviewing a lot of .NET programmers lately and I haven't met one that knows what IDisposable is or what it is used for. Is it really unreasonable to expect someone with 4-6 years experience to know that?
.net
interview-questions
null
null
null
11/30/2011 01:59:28
not constructive
Interview Questions: Is IDisposable hard to understand? === I've been interviewing a lot of .NET programmers lately and I haven't met one that knows what IDisposable is or what it is used for. Is it really unreasonable to expect someone with 4-6 years experience to know that?
4
9,805,024
03/21/2012 12:52:34
292,480
03/12/2010 16:26:13
368
3
Session info inside Facebook app page is different than the same page but on my website (hosting the app)
I'm hosting my facebook app on my server ... I want to post a form [that should contain extra (not typed in by user) confidential info to recognize the user when the form is posted) .. I've tried to save that on session inside my facebook app, when the form is submitted to my website (having target="_top") , I try to pull that info registered in the session , but it's a completely different session, even in the same page (the form is submitting to it's original page but on my server). Very confused .. Why they are different ? Can I insert the user access token as a hidden field in the form , and later use it in my server? or it should be kept private ?
facebook
facebook-graph-api
null
null
null
null
open
Session info inside Facebook app page is different than the same page but on my website (hosting the app) === I'm hosting my facebook app on my server ... I want to post a form [that should contain extra (not typed in by user) confidential info to recognize the user when the form is posted) .. I've tried to save that on session inside my facebook app, when the form is submitted to my website (having target="_top") , I try to pull that info registered in the session , but it's a completely different session, even in the same page (the form is submitting to it's original page but on my server). Very confused .. Why they are different ? Can I insert the user access token as a hidden field in the form , and later use it in my server? or it should be kept private ?
0
6,367,681
06/16/2011 05:54:02
56,149
01/17/2009 10:09:52
604
18
Line height problem in multi-language layout with Core Text
The attributed string is very simple, with three short lines of text one of which has two Chinese characters, and only one attribute - 17 point Helvetica font - covering the whole string. It is then layouted with CTFramesetter and resultant frame is drawn with CTFrameDraw. // UIView subclass - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.backgroundColor = [UIColor whiteColor]; CTFontRef font = CTFontCreateWithName(CFSTR("Helvetica"), 17.f, NULL); _text = [[NSAttributedString alloc] initWithString:@"Hello, world!\n你好, world!\nHello, world!" attributes: [NSDictionary dictionaryWithObject:(id)font forKey:(id)kCTFontAttributeName]]; CFRelease(font); _framesetter = CTFramesetterCreateWithAttributedString((CFAttributedStringRef)_text); CGMutablePathRef path = CGPathCreateMutable(); CGPathAddRect(path, NULL, self.bounds); _frame = CTFramesetterCreateFrame(_framesetter, CFRangeMake(0, 0), path, NULL); CGPathRelease(path); } return self; } - (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSaveGState(context); // Flip the coordinate system. CGContextTranslateCTM(context, 0.f, self.bounds.size.height); CGContextScaleCTM(context, 1.f, -1.f); CGContextSetTextMatrix(context, CGAffineTransformIdentity); CTFrameDraw(_frame, context); CGContextRestoreGState(context); } The problem is the line containing Chinese characters occupies larger line height than other lines. ![Screenshot][1] 1. Is it normal? 2. Why? 3. How can I layout multi-language text with homogeneous line height using Core Text? [1]: http://i.stack.imgur.com/DoFKz.png
ios
core-text
null
null
null
null
open
Line height problem in multi-language layout with Core Text === The attributed string is very simple, with three short lines of text one of which has two Chinese characters, and only one attribute - 17 point Helvetica font - covering the whole string. It is then layouted with CTFramesetter and resultant frame is drawn with CTFrameDraw. // UIView subclass - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.backgroundColor = [UIColor whiteColor]; CTFontRef font = CTFontCreateWithName(CFSTR("Helvetica"), 17.f, NULL); _text = [[NSAttributedString alloc] initWithString:@"Hello, world!\n你好, world!\nHello, world!" attributes: [NSDictionary dictionaryWithObject:(id)font forKey:(id)kCTFontAttributeName]]; CFRelease(font); _framesetter = CTFramesetterCreateWithAttributedString((CFAttributedStringRef)_text); CGMutablePathRef path = CGPathCreateMutable(); CGPathAddRect(path, NULL, self.bounds); _frame = CTFramesetterCreateFrame(_framesetter, CFRangeMake(0, 0), path, NULL); CGPathRelease(path); } return self; } - (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSaveGState(context); // Flip the coordinate system. CGContextTranslateCTM(context, 0.f, self.bounds.size.height); CGContextScaleCTM(context, 1.f, -1.f); CGContextSetTextMatrix(context, CGAffineTransformIdentity); CTFrameDraw(_frame, context); CGContextRestoreGState(context); } The problem is the line containing Chinese characters occupies larger line height than other lines. ![Screenshot][1] 1. Is it normal? 2. Why? 3. How can I layout multi-language text with homogeneous line height using Core Text? [1]: http://i.stack.imgur.com/DoFKz.png
0
3,176,324
07/04/2010 21:40:57
383,262
07/04/2010 21:40:57
1
0
how to master c
what should I do to master the c programming language
c
language
programming
master
null
07/04/2010 21:44:20
not a real question
how to master c === what should I do to master the c programming language
1
4,112,314
11/06/2010 07:20:36
322,020
04/21/2010 07:18:43
1,985
82
Which syntax-highlighter with export to HTML to choose?
**Please, don't hurry to close because of duplicate before read this:** I understand, that this question was already asked hundred times before. But this is why I started this post.When I was searching the answer, I had to read **too many Q/A**, which all are different in the form of "where" and "what language" must be highlighted, but all questions are the same in general. **So I suggest to make a big Community Wiki on this subject**. Lets make a list of highlighting tools: one post about one tool (to make possible to bring up/down each tool by voting). I suggest the following format: --- ##Tool/project## http://homepage * *Supported languages*: ... * *Form of use*: open source code / online web service / executable / etc. * *Pluses*: special features, unique advantages, ... * *Minuses*: bugs, problems, ...
html
syntax-highlighting
null
null
null
06/01/2012 11:02:46
not constructive
Which syntax-highlighter with export to HTML to choose? === **Please, don't hurry to close because of duplicate before read this:** I understand, that this question was already asked hundred times before. But this is why I started this post.When I was searching the answer, I had to read **too many Q/A**, which all are different in the form of "where" and "what language" must be highlighted, but all questions are the same in general. **So I suggest to make a big Community Wiki on this subject**. Lets make a list of highlighting tools: one post about one tool (to make possible to bring up/down each tool by voting). I suggest the following format: --- ##Tool/project## http://homepage * *Supported languages*: ... * *Form of use*: open source code / online web service / executable / etc. * *Pluses*: special features, unique advantages, ... * *Minuses*: bugs, problems, ...
4
9,646,990
03/10/2012 13:56:01
1,205,726
02/12/2012 22:07:21
65
0
Programming 'C' Handler Unix Posix signals i dont understand this exercise?
I have this problem! in this exercise: int finish = 0; struct sigaction sa; void handler () {finish = 1;} int main () {/ sigset_t m; sa.sa_handler = handler; sigfillset (& sa.sa_mask); sa.sa_flags = 0; sigaction (SIGALRM, & sa, NULL); switch (fork ()) { case -1: printft ("Error \ n"); break; case 0: kill (getppid (), SIGALRM); exit (0); default: sigfillset (& m); sigdelset (& m, SIGALRM); while (! finish) sigsuspend (& m); X (); } } i dont know how the funcion its work? (signales) and from where i have to start? from the main? and then what?
c
unix
posix
signal-processing
signals
03/10/2012 17:22:38
not a real question
Programming 'C' Handler Unix Posix signals i dont understand this exercise? === I have this problem! in this exercise: int finish = 0; struct sigaction sa; void handler () {finish = 1;} int main () {/ sigset_t m; sa.sa_handler = handler; sigfillset (& sa.sa_mask); sa.sa_flags = 0; sigaction (SIGALRM, & sa, NULL); switch (fork ()) { case -1: printft ("Error \ n"); break; case 0: kill (getppid (), SIGALRM); exit (0); default: sigfillset (& m); sigdelset (& m, SIGALRM); while (! finish) sigsuspend (& m); X (); } } i dont know how the funcion its work? (signales) and from where i have to start? from the main? and then what?
1
8,602,487
12/22/2011 10:23:21
1,111,495
12/22/2011 10:05:19
1
0
Getting after submitting form
hi Please help me on this.. after submitting html form with the help of following database setting to my data base i am setting error Undefined index: month in C:\xampp\htdocs\auto\insert_ac.php on line 14. <?php $host="localhost"; // Host name $username="root"; // Mysql username` $password=""; // Mysql password $db_name="auto"; // Database name $tbl_name="song_request"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // Get values from form $month=mysql_real_escape_string($_POST['month']); $listner_name=mysql_real_escape_string($_POST['listner_name']); $rj_name=mysql_real_escape_string($_POST['rj_name']); $channel=mysql_real_escape_string($_POST['channel']); $year=mysql_real_escape_string($_POST['year']); $country=mysql_real_escape_string($_POST['country']); // Insert data into mysql $sql="INSERT INTO song_request (month, listner_name, rj_name, channel, year, country)VALUES('$month', '$listner_name', '$rj_name', '$channel', '$year', '$country')"; $result=mysql_query($sql) or die ('error Updating database'); // if successfully insert data into database, displays message "Successful". if($result){ echo "Successful"; echo "<BR>"; echo "<a href='index.html'>Back to main page</a>"; } else { echo "ERROR"; } // close connection mysql_close(); ?>
forms
null
null
null
null
null
open
Getting after submitting form === hi Please help me on this.. after submitting html form with the help of following database setting to my data base i am setting error Undefined index: month in C:\xampp\htdocs\auto\insert_ac.php on line 14. <?php $host="localhost"; // Host name $username="root"; // Mysql username` $password=""; // Mysql password $db_name="auto"; // Database name $tbl_name="song_request"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // Get values from form $month=mysql_real_escape_string($_POST['month']); $listner_name=mysql_real_escape_string($_POST['listner_name']); $rj_name=mysql_real_escape_string($_POST['rj_name']); $channel=mysql_real_escape_string($_POST['channel']); $year=mysql_real_escape_string($_POST['year']); $country=mysql_real_escape_string($_POST['country']); // Insert data into mysql $sql="INSERT INTO song_request (month, listner_name, rj_name, channel, year, country)VALUES('$month', '$listner_name', '$rj_name', '$channel', '$year', '$country')"; $result=mysql_query($sql) or die ('error Updating database'); // if successfully insert data into database, displays message "Successful". if($result){ echo "Successful"; echo "<BR>"; echo "<a href='index.html'>Back to main page</a>"; } else { echo "ERROR"; } // close connection mysql_close(); ?>
0
9,267,121
02/13/2012 19:56:49
329,082
04/29/2010 16:08:33
519
31
Java Twitter API
What's the best (simple for user) Java API for Twitter connect. I just want to make some posts from an aplication.
java
api
twitter
twitter-api
null
02/13/2012 20:03:04
not constructive
Java Twitter API === What's the best (simple for user) Java API for Twitter connect. I just want to make some posts from an aplication.
4
10,291,882
04/24/2012 04:49:26
749,872
05/12/2011 04:31:00
46
0
How to deserialize json string in c++ without using any third party library
I am creating a application in vc++ to call webservice in json format,without using json library to serialize /deserialize the string .I am sending the json string by manually constructing it.Can anybody help me how I can deserialize the jason string without using any library in c++ Response { "Result": "1", "gs":"0", "ga":"0", "la":"0", "lb":"0", "lc":"0", "ld":"0", "ex":"0", "gd":"0" }
c++
json
visual-c++
null
null
04/26/2012 07:21:08
not a real question
How to deserialize json string in c++ without using any third party library === I am creating a application in vc++ to call webservice in json format,without using json library to serialize /deserialize the string .I am sending the json string by manually constructing it.Can anybody help me how I can deserialize the jason string without using any library in c++ Response { "Result": "1", "gs":"0", "ga":"0", "la":"0", "lb":"0", "lc":"0", "ld":"0", "ex":"0", "gd":"0" }
1
6,806,157
07/24/2011 10:03:00
847,810
07/16/2011 13:57:43
3
0
must read c++ publications
1. What are the prominent c++ online publications that an aspiring c++ must read? The Wall Street Journal projection from the financial world to the c++ world? I am less interested in blogs, but more solid, heavyweight, reviewed publications. 2. It looks to me that boost and templates are the new black, and there are books of course, however I don't see that many articles going on (see #1 above, maybe that's the reason). 3. What are the prominent c++ mailing lists that the serious c++ programmer must subscribe to.
c++
null
null
null
null
07/24/2011 10:15:03
not constructive
must read c++ publications === 1. What are the prominent c++ online publications that an aspiring c++ must read? The Wall Street Journal projection from the financial world to the c++ world? I am less interested in blogs, but more solid, heavyweight, reviewed publications. 2. It looks to me that boost and templates are the new black, and there are books of course, however I don't see that many articles going on (see #1 above, maybe that's the reason). 3. What are the prominent c++ mailing lists that the serious c++ programmer must subscribe to.
4
7,828,250
10/19/2011 21:14:31
303,681
03/28/2010 17:28:58
120
9
How can I overcome the learning barrier
I know the question sounds so silly and irrelevant but I really need advice and support from the community. I am a Python/Django developer came from a PHP background. I am working in the commercial industry for 4 years but still I feel I don't know anything. And when I see people around me become so strong in Python/django I became so frustrated thinking about my weakness in learning. I am using Python/Django but knows very little. I don't feel confident while writing code, learning new technology. Currently I am contracting, just to try out and finding it so difficult to cope. I might have to find another job, 3rd time this year. I know something in missing in me, which is stopping me to stay in the race, but I don't know what. I will be ever grateful for your advice.
python
django
null
null
null
10/19/2011 21:45:23
off topic
How can I overcome the learning barrier === I know the question sounds so silly and irrelevant but I really need advice and support from the community. I am a Python/Django developer came from a PHP background. I am working in the commercial industry for 4 years but still I feel I don't know anything. And when I see people around me become so strong in Python/django I became so frustrated thinking about my weakness in learning. I am using Python/Django but knows very little. I don't feel confident while writing code, learning new technology. Currently I am contracting, just to try out and finding it so difficult to cope. I might have to find another job, 3rd time this year. I know something in missing in me, which is stopping me to stay in the race, but I don't know what. I will be ever grateful for your advice.
2
9,357,267
02/20/2012 06:55:02
1,220,401
02/20/2012 06:48:15
1
0
i am writing adding two numbers code in eclipe for android .then following error comes in log cat
02-20 12:13:10.868: E/AndroidRuntime(634): FATAL EXCEPTION: main 02-20 12:13:10.868: E/AndroidRuntime(634): java.lang.NumberFormatException: unable to parse '2 ' as integer 02-20 12:13:10.868: E/AndroidRuntime(634): at java.lang.Integer.parse(Integer.java:383) 02-20 12:13:10.868: E/AndroidRuntime(634): at java.lang.Integer.parseInt(Integer.java:372) 02-20 12:13:10.868: E/AndroidRuntime(634): at java.lang.Integer.parseInt(Integer.java:332) 02-20 12:13:10.868: E/AndroidRuntime(634): at com.addingno.AddindnoActivity$clicker.onClick(AddindnoActivity.java:35) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.view.View.performClick(View.java:2485) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.view.View$PerformClick.run(View.java:9080) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.os.Handler.handleCallback(Handler.java:587) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.os.Handler.dispatchMessage(Handler.java:92) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.os.Looper.loop(Looper.java:123) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.app.ActivityThread.main(ActivityThread.java:3683) 02-20 12:13:10.868: E/AndroidRuntime(634): at java.lang.reflect.Method.invokeNative(Native Method) 02-20 12:13:10.868: E/AndroidRuntime(634): at java.lang.reflect.Method.invoke(Method.java:507) 02-20 12:13:10.868: E/AndroidRuntime(634): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 02-20 12:13:10.868: E/AndroidRuntime(634): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 02-20 12:13:10.868: E/AndroidRuntime(634): at dalvik.system.NativeStart.main(Native Method) 02-20 12:18:54.139: I/Process(634): Sending signal. PID: 634 SIG: 9
android-emulator
null
null
null
null
07/01/2012 23:18:38
not a real question
i am writing adding two numbers code in eclipe for android .then following error comes in log cat === 02-20 12:13:10.868: E/AndroidRuntime(634): FATAL EXCEPTION: main 02-20 12:13:10.868: E/AndroidRuntime(634): java.lang.NumberFormatException: unable to parse '2 ' as integer 02-20 12:13:10.868: E/AndroidRuntime(634): at java.lang.Integer.parse(Integer.java:383) 02-20 12:13:10.868: E/AndroidRuntime(634): at java.lang.Integer.parseInt(Integer.java:372) 02-20 12:13:10.868: E/AndroidRuntime(634): at java.lang.Integer.parseInt(Integer.java:332) 02-20 12:13:10.868: E/AndroidRuntime(634): at com.addingno.AddindnoActivity$clicker.onClick(AddindnoActivity.java:35) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.view.View.performClick(View.java:2485) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.view.View$PerformClick.run(View.java:9080) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.os.Handler.handleCallback(Handler.java:587) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.os.Handler.dispatchMessage(Handler.java:92) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.os.Looper.loop(Looper.java:123) 02-20 12:13:10.868: E/AndroidRuntime(634): at android.app.ActivityThread.main(ActivityThread.java:3683) 02-20 12:13:10.868: E/AndroidRuntime(634): at java.lang.reflect.Method.invokeNative(Native Method) 02-20 12:13:10.868: E/AndroidRuntime(634): at java.lang.reflect.Method.invoke(Method.java:507) 02-20 12:13:10.868: E/AndroidRuntime(634): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 02-20 12:13:10.868: E/AndroidRuntime(634): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 02-20 12:13:10.868: E/AndroidRuntime(634): at dalvik.system.NativeStart.main(Native Method) 02-20 12:18:54.139: I/Process(634): Sending signal. PID: 634 SIG: 9
1
8,371,228
12/03/2011 21:35:10
1,079,436
12/03/2011 21:25:24
1
0
PHP included class not updating if modified
I create a simple class from a different file and include it to a page that used to create an object of that class. Everything works fine, the problems occurs is when I update the class, I need to manually access the class from my browser then the page that I create the object will get the latest modified class or it will receive Error. below is the page code I use to create an object of the class <?php function __autoload($class_name) { require '/classes/'.$class_name . '.php'; } $rain = new myClass; echo $rain->TestMethod(12345,123451); ?> If I update my class, and without accessing it manually from my browser I will receive this error from my Apache2. PHP Fatal error: require(): Failed opening required '/classes/myClass.php' (include_path='.:/usr/share/php:/usr/share/pear')
php
oop
class
autoload
null
null
open
PHP included class not updating if modified === I create a simple class from a different file and include it to a page that used to create an object of that class. Everything works fine, the problems occurs is when I update the class, I need to manually access the class from my browser then the page that I create the object will get the latest modified class or it will receive Error. below is the page code I use to create an object of the class <?php function __autoload($class_name) { require '/classes/'.$class_name . '.php'; } $rain = new myClass; echo $rain->TestMethod(12345,123451); ?> If I update my class, and without accessing it manually from my browser I will receive this error from my Apache2. PHP Fatal error: require(): Failed opening required '/classes/myClass.php' (include_path='.:/usr/share/php:/usr/share/pear')
0
10,577,875
05/14/2012 05:27:37
454,378
09/21/2010 19:58:31
196
11
Is Accurev a distributed version control system?
1. Is Accurev a distributed version control system such as Git or a centralized one such as SVN? 2. Does Accurev hold any advantages over Git or SVN? If so what are they?
git
svn
version-control
accurev
null
05/15/2012 12:31:19
not constructive
Is Accurev a distributed version control system? === 1. Is Accurev a distributed version control system such as Git or a centralized one such as SVN? 2. Does Accurev hold any advantages over Git or SVN? If so what are they?
4