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
11,745,334
07/31/2012 17:01:09
1,566,421
07/31/2012 16:53:17
1
0
Can i use delete clause in Case Clause in teradata
I am newbie to teradata I need to delete a row once the case condition is satisfied. Eg: case condtion true delete the selected row.
sql
delete
teradata
null
null
null
open
Can i use delete clause in Case Clause in teradata === I am newbie to teradata I need to delete a row once the case condition is satisfied. Eg: case condtion true delete the selected row.
0
4,081,229
11/02/2010 19:06:08
495,150
11/02/2010 19:06:08
1
0
Problems with adding/removing ContentPanes in AccordionContainer
I'm a complete newbie at Dojo, and Adobe AIR, which is my target. I'm trying to put some panes into an AccordionContainer like so: var mainview = dijit.byId("mainview"); var rand = randomString(); var widg = gtd_create_entry_widget(rand) air.trace(mainview); air.trace(widg); mainview.addChild(widg); "mainview" is my AccordionContainer, and gtd_create_entry_widget() is: function gtd_create_entry_widget(id) { var entry = new dijit.layout.ContentPane(); entry.attr("id",id); entry.attr("title","title "+id); return entry; } The pane shows up in the container, with the correct id and title, and no errors, however, if I try to add another pane, the next one shows up too, but I get the error: <b> TypeError: Result of expression '_7' [undefined] is not an object. </b> I get the same error if I run var mainview = dijit.byId("mainview"); mainview.destroyDescendants(); and also, only one pane is destroyed at a time, and I understand this method should destroy all the children. I can include full project code if required. Thanks a lot Garry
dojo
null
null
null
null
null
open
Problems with adding/removing ContentPanes in AccordionContainer === I'm a complete newbie at Dojo, and Adobe AIR, which is my target. I'm trying to put some panes into an AccordionContainer like so: var mainview = dijit.byId("mainview"); var rand = randomString(); var widg = gtd_create_entry_widget(rand) air.trace(mainview); air.trace(widg); mainview.addChild(widg); "mainview" is my AccordionContainer, and gtd_create_entry_widget() is: function gtd_create_entry_widget(id) { var entry = new dijit.layout.ContentPane(); entry.attr("id",id); entry.attr("title","title "+id); return entry; } The pane shows up in the container, with the correct id and title, and no errors, however, if I try to add another pane, the next one shows up too, but I get the error: <b> TypeError: Result of expression '_7' [undefined] is not an object. </b> I get the same error if I run var mainview = dijit.byId("mainview"); mainview.destroyDescendants(); and also, only one pane is destroyed at a time, and I understand this method should destroy all the children. I can include full project code if required. Thanks a lot Garry
0
10,720,127
05/23/2012 12:41:37
1,151,408
01/16/2012 07:44:25
13
1
Permission for new folders on Mac OS X
when I create a new folder named "child" (for example) like this: parent/child/ the child folder, doesn't have the same permission of the parent! I already changed them, to the parent, using `chmod -R +rw parent` but each new folder created doesn't get the same values!! I want +rw for 'everyone' on that new folder. What should I do? Thanks in advance!!
osx
permissions
null
null
null
05/23/2012 13:38:40
off topic
Permission for new folders on Mac OS X === when I create a new folder named "child" (for example) like this: parent/child/ the child folder, doesn't have the same permission of the parent! I already changed them, to the parent, using `chmod -R +rw parent` but each new folder created doesn't get the same values!! I want +rw for 'everyone' on that new folder. What should I do? Thanks in advance!!
2
10,266,832
04/22/2012 09:35:29
847,717
07/16/2011 11:42:38
147
0
variation in tower of hannoi puzzle
This is a modified version of tower of hanoi problem,it states "A tower has n disks of various sizes ,you have to get them in sorted order.But theonly operation allowed is to pull out a set of disks,reverse the set of disks and put it back" please does anyone know the solution?
c
homework
null
null
null
04/22/2012 19:06:27
not a real question
variation in tower of hannoi puzzle === This is a modified version of tower of hanoi problem,it states "A tower has n disks of various sizes ,you have to get them in sorted order.But theonly operation allowed is to pull out a set of disks,reverse the set of disks and put it back" please does anyone know the solution?
1
9,177,700
02/07/2012 14:08:30
1,177,717
01/30/2012 09:14:11
1
0
How to fix "Client for Microsoft Networks" and "File and Printer Sharing For Microsoft Networks" via command line?
C:\>net view System error 1060 has occurred. The specified service does not exist as an installed service. What service doesn't exist? Does "Client for Microsoft Networks" and "File and Printer For Microsoft Networks" haven't Installed? How can I fix it via command line?
windows
command-line
file-sharing
null
null
02/07/2012 17:18:05
off topic
How to fix "Client for Microsoft Networks" and "File and Printer Sharing For Microsoft Networks" via command line? === C:\>net view System error 1060 has occurred. The specified service does not exist as an installed service. What service doesn't exist? Does "Client for Microsoft Networks" and "File and Printer For Microsoft Networks" haven't Installed? How can I fix it via command line?
2
99,853
09/19/2008 05:21:17
5,794
09/11/2008 11:56:50
3
0
How many of you prefer full screen?
How many of you prefer full screen for your applications? What are the advantages and disadvantages of doing this?
productivity
development-environment
null
null
null
12/14/2011 17:27:27
not constructive
How many of you prefer full screen? === How many of you prefer full screen for your applications? What are the advantages and disadvantages of doing this?
4
9,834,926
03/23/2012 06:19:35
1,287,610
03/23/2012 05:59:34
1
0
How to conviert https://domain.com to https://www.domain.com via apache
I have a single instance of apache running on AIX server, and we have SSL enabled..As of now when user type to https://www.<domain>.com it goes good since we have the cert for www.<domain>.com but when user type URL as https://<domain>.com without www in it it shouts for the Certificate error. Is there any way when user type without www , we can replace the https://<domain>.com to https://www.<domain>.com via apache running on AIX ? Please help... Thanks,
apache
url-rewriting
null
null
null
03/23/2012 20:07:17
off topic
How to conviert https://domain.com to https://www.domain.com via apache === I have a single instance of apache running on AIX server, and we have SSL enabled..As of now when user type to https://www.<domain>.com it goes good since we have the cert for www.<domain>.com but when user type URL as https://<domain>.com without www in it it shouts for the Certificate error. Is there any way when user type without www , we can replace the https://<domain>.com to https://www.<domain>.com via apache running on AIX ? Please help... Thanks,
2
10,952,753
06/08/2012 16:35:05
435,597
08/31/2010 06:11:26
1,610
63
How do I make the home page of the website to come up in the rankings than the internal pages ?
Suppose I have a website, e.g. **`www.example.com`** that comes at **number 6** on the Google search rankings. But the internal pages of the website i.e. **`www.example.com/index.php?a=1&b=2`** or **`www.example.com/index.php`** comes at **number 2** of the rankings. How would I make my prime domain name **www.example.com** to come at the top of the list ? Any guidance would be appreciated.
website
seo
search-engine
web-crawler
null
06/09/2012 04:51:12
off topic
How do I make the home page of the website to come up in the rankings than the internal pages ? === Suppose I have a website, e.g. **`www.example.com`** that comes at **number 6** on the Google search rankings. But the internal pages of the website i.e. **`www.example.com/index.php?a=1&b=2`** or **`www.example.com/index.php`** comes at **number 2** of the rankings. How would I make my prime domain name **www.example.com** to come at the top of the list ? Any guidance would be appreciated.
2
1,283,812
08/16/2009 08:50:56
88,910
04/09/2009 03:58:49
242
3
Senior Design Project?
My group and I are about to start our senior design project in a few weeks. Because we are all on summer vacation, we haven't gotten to sit down together and seriously discuss any ideas, but it also seems to me that no one in the group has a solid idea of what they want to do. Personally, I'm up for any project involving coding because that's what I want to do in the future. Especially since I am applying for software engineering for grad school. Does anybody have any ideas, or projects they previously worked on? Any thoughts are appreciated! Thanks for your help!
projects
college
null
null
null
07/12/2011 18:18:11
not constructive
Senior Design Project? === My group and I are about to start our senior design project in a few weeks. Because we are all on summer vacation, we haven't gotten to sit down together and seriously discuss any ideas, but it also seems to me that no one in the group has a solid idea of what they want to do. Personally, I'm up for any project involving coding because that's what I want to do in the future. Especially since I am applying for software engineering for grad school. Does anybody have any ideas, or projects they previously worked on? Any thoughts are appreciated! Thanks for your help!
4
8,663,284
12/29/2011 02:04:21
635,364
02/26/2011 09:17:17
3
0
newbie) How I can make friend feed?
I think there is two choices. (1) When user writes post, make duplicates as much as number of his followers. Each of duplicates has separate recipient. (2) No duplicates. When you visit feed screen, <pre> new_writers = SELECT id FROM user WHERE recent_posting_time > my_last_visited_time AND id IN (my_friends) new_posts = SELECT * FROM post WHERE writer IN (new_writers) feed = new_post + cached_post </pre> Thank you. I need your lessons.
php
sql
null
null
null
12/29/2011 02:14:59
not a real question
newbie) How I can make friend feed? === I think there is two choices. (1) When user writes post, make duplicates as much as number of his followers. Each of duplicates has separate recipient. (2) No duplicates. When you visit feed screen, <pre> new_writers = SELECT id FROM user WHERE recent_posting_time > my_last_visited_time AND id IN (my_friends) new_posts = SELECT * FROM post WHERE writer IN (new_writers) feed = new_post + cached_post </pre> Thank you. I need your lessons.
1
11,329,921
07/04/2012 13:19:39
974,405
10/01/2011 11:04:00
725
10
java- how to handle error logging in a multi threaded web app
In a web app, I am parsing multiple XML files simultaneously using multi threading. Now, at different stages of the parsing process messages are being sent to the log. I am trying to put correct message into log when an error occurs- but how do I ensure that if one thread fails for some reason, then the entire list of messages for that specific error is sent to log in one single block? i.e. different threads' messages should not be mixed up (as this will make it very difficult for me to understand exactly what the error was and which thread reported the error).
java
multithreading
null
null
null
null
open
java- how to handle error logging in a multi threaded web app === In a web app, I am parsing multiple XML files simultaneously using multi threading. Now, at different stages of the parsing process messages are being sent to the log. I am trying to put correct message into log when an error occurs- but how do I ensure that if one thread fails for some reason, then the entire list of messages for that specific error is sent to log in one single block? i.e. different threads' messages should not be mixed up (as this will make it very difficult for me to understand exactly what the error was and which thread reported the error).
0
6,656,428
07/11/2011 20:54:18
441,889
09/07/2010 22:24:41
151
12
Can I return back to the natural keyboard after getting used to ergonomic keyboards?
I hope I ask this question in a right place. Whatever we're all programmers. I got a new ergonomic keyboard (Microsoft Natural Ergonomic Keyboard 4000) yesterday. It's a bit wired now, but I'm sure it will be normal in the next few days. I'm worry if I can work with natural keyboards after that. Is there anybody who worked with such keyboards. Please help me in this regard. Thanks in advance.
keyboard
hardware
ergonomics
null
null
07/11/2011 21:21:54
off topic
Can I return back to the natural keyboard after getting used to ergonomic keyboards? === I hope I ask this question in a right place. Whatever we're all programmers. I got a new ergonomic keyboard (Microsoft Natural Ergonomic Keyboard 4000) yesterday. It's a bit wired now, but I'm sure it will be normal in the next few days. I'm worry if I can work with natural keyboards after that. Is there anybody who worked with such keyboards. Please help me in this regard. Thanks in advance.
2
11,056,022
06/15/2012 18:10:07
1,130,304
01/04/2012 16:00:39
91
9
What points should I consider for stable windows services?
I'm looking for best practises / articles about long running windows services and error handling / recovery. <br><br> I'd like to ensure that my windows service has a good uptime, I do not need a 99,x % coverage nor clustering. I'd just like to know what basic/technical points I should cover to avoid common mistakes which would crash my service (something like unhandled exceptions..)
c#
.net
wcf
windows-services
null
06/16/2012 01:00:08
not constructive
What points should I consider for stable windows services? === I'm looking for best practises / articles about long running windows services and error handling / recovery. <br><br> I'd like to ensure that my windows service has a good uptime, I do not need a 99,x % coverage nor clustering. I'd just like to know what basic/technical points I should cover to avoid common mistakes which would crash my service (something like unhandled exceptions..)
4
9,555,539
03/04/2012 14:10:50
324,243
04/23/2010 13:49:50
585
14
What technologies should I be using to create high performing scalable web applications?
**A little bit about my current situation:** -I have a decent knowledge of OOP PHP -I have a decent understanding of MySQL and it's my database of choice (mostly because it's all I know) -I have a good understanding of Symfony2 + Doctrine -My current site uses Elastica (PHP library for Elastic Search) ... although I notice the results are returned pretty slow compared to the facebook search. -I use jQuery for front-end dev -I have a solid understanding of html/css -I host my site on amazon EC2 **I have a few specific questions I would like answered** Feel free to add anything else that you feel would help. My main goal is to learn the latest technologies to create high performing enterprise applications. Additionally, I'm curious as to how much of a performance increase I would notice by, say, upgrading my Amazon box. Andddd, for the questions: 1) How does facebook return their search results so fast, and almost instantly while typing? 2) How does facebook achieve their status updates above the chat window. I could easily hack something together that calls a back-end script every 5 seconds or something and updates the UI, but I'm not sure what type of performance issues I would run into or if this is even how facebook does it. 3) How are the facebook status updates aggregated and related to friends only, and/or feed preferences. 3) Is MySQL no longer the database of choice for speed and scalability? 4) What resources and books should I be looking at and reading? I spend each day reading about the stuff I'm already using... but I want to better focus my energy on potentially something more useful. 5) Generally, what 'stack' of technologies, including languages, servers, and databases would be used to create something like facebook (mind you, I have no desire to create a social networking site) 6) Is there much of a performance hit by using a framework like symfony2 as opposed to writing a custom tailored solution? (I know quality of the code obviously matters, but generally speaking) If you don't have an answer to all of these, numbers three, four and five are probably the most important. Thanks in advance. Happy coding.
database
performance
scalability
development
null
null
open
What technologies should I be using to create high performing scalable web applications? === **A little bit about my current situation:** -I have a decent knowledge of OOP PHP -I have a decent understanding of MySQL and it's my database of choice (mostly because it's all I know) -I have a good understanding of Symfony2 + Doctrine -My current site uses Elastica (PHP library for Elastic Search) ... although I notice the results are returned pretty slow compared to the facebook search. -I use jQuery for front-end dev -I have a solid understanding of html/css -I host my site on amazon EC2 **I have a few specific questions I would like answered** Feel free to add anything else that you feel would help. My main goal is to learn the latest technologies to create high performing enterprise applications. Additionally, I'm curious as to how much of a performance increase I would notice by, say, upgrading my Amazon box. Andddd, for the questions: 1) How does facebook return their search results so fast, and almost instantly while typing? 2) How does facebook achieve their status updates above the chat window. I could easily hack something together that calls a back-end script every 5 seconds or something and updates the UI, but I'm not sure what type of performance issues I would run into or if this is even how facebook does it. 3) How are the facebook status updates aggregated and related to friends only, and/or feed preferences. 3) Is MySQL no longer the database of choice for speed and scalability? 4) What resources and books should I be looking at and reading? I spend each day reading about the stuff I'm already using... but I want to better focus my energy on potentially something more useful. 5) Generally, what 'stack' of technologies, including languages, servers, and databases would be used to create something like facebook (mind you, I have no desire to create a social networking site) 6) Is there much of a performance hit by using a framework like symfony2 as opposed to writing a custom tailored solution? (I know quality of the code obviously matters, but generally speaking) If you don't have an answer to all of these, numbers three, four and five are probably the most important. Thanks in advance. Happy coding.
0
6,666,054
07/12/2011 14:43:41
138,078
07/06/2009 09:48:14
660
12
StackoverflowException only in release-mode ?
I installed VS2010 on Windows server 2008 R2 and started a Winforms app that makes an asynchronous WCF call for a rather big object graph (~25 Mb in XML) to services deployed on another machine. When I start in debug-mode in VS2010 (debug->start new instance) it works fine. When I start in release-mode in VS2010 (debug->start new instance) it crashes with a soft stackoverflow exception, I have no callstack but I suspect the deserialisation of underlying XML. Any ideas how this may occur?
winforms
wcf
visual-studio-2010
release-mode
debug-mode
null
open
StackoverflowException only in release-mode ? === I installed VS2010 on Windows server 2008 R2 and started a Winforms app that makes an asynchronous WCF call for a rather big object graph (~25 Mb in XML) to services deployed on another machine. When I start in debug-mode in VS2010 (debug->start new instance) it works fine. When I start in release-mode in VS2010 (debug->start new instance) it crashes with a soft stackoverflow exception, I have no callstack but I suspect the deserialisation of underlying XML. Any ideas how this may occur?
0
7,385,882
09/12/2011 09:38:54
940,246
09/12/2011 09:38:54
1
0
Verify signature using elliptic curve cryptography
I need to verify a signature of a message which contains several values. The only parameters I have are the signature, the public key and the values itself. The algorithm used for creating the signature is eliptic curve cryptography with 192 bit. I allready tried to find code examples on the net but I didn't find anything for this case. Has anybody experiences with this algorithm using java for verification? Could you please provide code or a link to an example? Thank you for your help!
java
security
digital-signature
null
null
null
open
Verify signature using elliptic curve cryptography === I need to verify a signature of a message which contains several values. The only parameters I have are the signature, the public key and the values itself. The algorithm used for creating the signature is eliptic curve cryptography with 192 bit. I allready tried to find code examples on the net but I didn't find anything for this case. Has anybody experiences with this algorithm using java for verification? Could you please provide code or a link to an example? Thank you for your help!
0
11,046,367
06/15/2012 07:28:33
1,386,912
05/10/2012 11:11:52
51
3
Python AMQP Library to put / retrieve messages?
I am searching for an AMQP library for Publishing and Suscribing messages. I am using it with Django but as I've seen celery is used to create tasks. I need only to put messages in a queue because another process will read them, I don't need to create asynchronous tasks. I've been looking to pika, kombu and amqplib. Does celery have a solution to only create messages to the queues? Would you prefer using kombu or pika or amqplib instead? Thanks,
python
amqp
django-celery
pika
kombu
null
open
Python AMQP Library to put / retrieve messages? === I am searching for an AMQP library for Publishing and Suscribing messages. I am using it with Django but as I've seen celery is used to create tasks. I need only to put messages in a queue because another process will read them, I don't need to create asynchronous tasks. I've been looking to pika, kombu and amqplib. Does celery have a solution to only create messages to the queues? Would you prefer using kombu or pika or amqplib instead? Thanks,
0
7,266,608
09/01/2011 06:06:48
307,611
04/02/2010 10:50:38
166
6
How can I get username from email use javascript
email: [email protected] I want get "someone" from the "[email protected]" via javascript How to? Thank you.
javascript
email
null
null
null
null
open
How can I get username from email use javascript === email: [email protected] I want get "someone" from the "[email protected]" via javascript How to? Thank you.
0
7,401,797
09/13/2011 12:23:41
942,518
09/13/2011 12:23:41
1
0
Bar code reader for asp.net 4.0
i am developing a web application in asp.net 4.0 can you pls let me know any barcode reader which reads and saves value in DB it must be paid.
asp.net
null
null
null
null
09/13/2011 12:28:04
not a real question
Bar code reader for asp.net 4.0 === i am developing a web application in asp.net 4.0 can you pls let me know any barcode reader which reads and saves value in DB it must be paid.
1
6,296,594
06/09/2011 17:04:56
235,203
12/19/2009 17:22:52
48
1
jQuery: Is it possible to test for both input type and and attribute in one selector?
I have a list of `input` elements and using one selector I want to find those that 1. are checkboxes 2. have the `value` attribute set Can I do that? I tried: - `$(items).find("input:checkbox[value]")` - `$(items).find("input[value]:checkbox")` But both ignore the `[value]` and only test for `input:checkbox`. Sure, I can use two selectors, but just one would be nicer.
jquery
null
null
null
null
null
open
jQuery: Is it possible to test for both input type and and attribute in one selector? === I have a list of `input` elements and using one selector I want to find those that 1. are checkboxes 2. have the `value` attribute set Can I do that? I tried: - `$(items).find("input:checkbox[value]")` - `$(items).find("input[value]:checkbox")` But both ignore the `[value]` and only test for `input:checkbox`. Sure, I can use two selectors, but just one would be nicer.
0
8,981,544
01/24/2012 03:06:39
733,916
05/02/2011 04:14:53
42
0
Axapta: WinAPI::shellExecute no longer work
Previously, WinAPI::shellExecute() is working on AX 2009, but I do not know why, after updating AX kernel and application to version 5.0.1500.1313, WinAPI::shellExecute() is no longer working, or did someone change settings or what is actually prevent it from working? The symptom is the target EXE actually executed but it is being shutdown again very quick. Could anyone help to analyze this problem and give solution? Thank you
axapta
null
null
null
null
null
open
Axapta: WinAPI::shellExecute no longer work === Previously, WinAPI::shellExecute() is working on AX 2009, but I do not know why, after updating AX kernel and application to version 5.0.1500.1313, WinAPI::shellExecute() is no longer working, or did someone change settings or what is actually prevent it from working? The symptom is the target EXE actually executed but it is being shutdown again very quick. Could anyone help to analyze this problem and give solution? Thank you
0
8,924,800
01/19/2012 10:52:56
1,000,929
10/18/2011 10:43:13
12
0
Internet Explorer css error
Im coding a web page for one of my clients, but as the title says there's an css error in IE... please check out site in ie 6, 7 to see what I mean, as I can not post photos. here is site: http://poetryofthesoul.com.au here is the css: @charset "utf-8"; * { margin:0; } html,body { font-family:Arial, Helvetica, sans-serif; color:#024299; height:99%; } .wrapper { min-height:100%; height:auto !important; width:100%; margin:0 auto -142px; } .footer,.push { height:200px; } .push { padding:20px; } .footer { bottom:0; height:auto; margin-left:auto; margin-right:auto; width:964px; background-color:#024299; } .footer p { size:9px; color:#FFF; text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:9px; padding:2px; } .footer a { cursor:pointer; color:#FFF; text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:9px; padding:2px; } .footer img { border:none; cursor:pointer; } #header { height:200px; margin-left:auto; margin-right:auto; } #header img { height:200px; width:946px; } #nav { width:946px; display:block; margin-left:auto; margin-right:auto; padding-top:10px; padding-bottom:20px; } h1 { font-family:Arial, Helvetica, sans-serif; color:#024299; size:36px; } p { font-family:Arial, Helvetica, sans-serif; color:#024299; size:16px; } #nav li { float:left; border:0; list-style:none; text-decoration:none; display:block; padding-bottom:20px; margin:0; } #nav li:hover { opacity:0.9; filter:alpha(opacity=90); } #nav li a{ border-collapse:collapse; float:left; } .on { opacity:0.7; filter:alpha(opacity=70); } a { cursor:pointer; font-family:Arial, Helvetica, sans-serif; color:#024299; size:16px; font-weight:700; } #content { padding-top:20px; margin-right:auto; margin-left:auto; width:925px; } #content img { float:left; padding:10px 10px 10px 0; } #form { color:#FFF; padding-top:10px; } [1]: http://i.stack.imgur.com/XyzTS.png thanks!
css
internet-explorer
ie6-ie7-bug
null
null
01/20/2012 13:19:13
not a real question
Internet Explorer css error === Im coding a web page for one of my clients, but as the title says there's an css error in IE... please check out site in ie 6, 7 to see what I mean, as I can not post photos. here is site: http://poetryofthesoul.com.au here is the css: @charset "utf-8"; * { margin:0; } html,body { font-family:Arial, Helvetica, sans-serif; color:#024299; height:99%; } .wrapper { min-height:100%; height:auto !important; width:100%; margin:0 auto -142px; } .footer,.push { height:200px; } .push { padding:20px; } .footer { bottom:0; height:auto; margin-left:auto; margin-right:auto; width:964px; background-color:#024299; } .footer p { size:9px; color:#FFF; text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:9px; padding:2px; } .footer a { cursor:pointer; color:#FFF; text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:9px; padding:2px; } .footer img { border:none; cursor:pointer; } #header { height:200px; margin-left:auto; margin-right:auto; } #header img { height:200px; width:946px; } #nav { width:946px; display:block; margin-left:auto; margin-right:auto; padding-top:10px; padding-bottom:20px; } h1 { font-family:Arial, Helvetica, sans-serif; color:#024299; size:36px; } p { font-family:Arial, Helvetica, sans-serif; color:#024299; size:16px; } #nav li { float:left; border:0; list-style:none; text-decoration:none; display:block; padding-bottom:20px; margin:0; } #nav li:hover { opacity:0.9; filter:alpha(opacity=90); } #nav li a{ border-collapse:collapse; float:left; } .on { opacity:0.7; filter:alpha(opacity=70); } a { cursor:pointer; font-family:Arial, Helvetica, sans-serif; color:#024299; size:16px; font-weight:700; } #content { padding-top:20px; margin-right:auto; margin-left:auto; width:925px; } #content img { float:left; padding:10px 10px 10px 0; } #form { color:#FFF; padding-top:10px; } [1]: http://i.stack.imgur.com/XyzTS.png thanks!
1
5,838,970
04/30/2011 02:03:25
407,756
08/01/2010 03:18:00
650
6
How do RSS readers work?
I am working on building a web app that brings in RSS feeds, reads them and displays them. I cannot seem to figure out how this would exactly work. I am using PHP as the backend. I am planning to store the feed items in a database. Any advice? Any books that would help with that?
php
mysql
rss
rss-reader
null
04/30/2011 05:50:00
not a real question
How do RSS readers work? === I am working on building a web app that brings in RSS feeds, reads them and displays them. I cannot seem to figure out how this would exactly work. I am using PHP as the backend. I am planning to store the feed items in a database. Any advice? Any books that would help with that?
1
7,856,278
10/21/2011 23:15:45
740,445
05/05/2011 17:26:41
42
1
coding for quiz site
i'm trying to recreate the quiz format of this site, [quizsite][1] The part i'm struggling with is the auto check of the answer and sending of the box that contains the answer green when the answer is correct. Can anyone shed any light on the code needed for the auto checking part of this site. Many thanks Connor [1]: http://quizible.com/quiz/guess-the-logo/20155
php
mysql
null
null
null
10/22/2011 14:34:57
not a real question
coding for quiz site === i'm trying to recreate the quiz format of this site, [quizsite][1] The part i'm struggling with is the auto check of the answer and sending of the box that contains the answer green when the answer is correct. Can anyone shed any light on the code needed for the auto checking part of this site. Many thanks Connor [1]: http://quizible.com/quiz/guess-the-logo/20155
1
301,713
11/19/2008 12:13:10
8,479
09/15/2008 16:07:11
455
18
how do i create a strong named interop dll for shdocvw.dll
I have a Browser Helper Object project in c# that (obviously) references shdocvw.dll. I think I want to create a strongly named interop dll for shdocvw.dll. How do I do this - I've seen a bunch of suggestions out there with aximp.exe and tlimp but I'm not clear how they fit together.
c#
bho
internet-explorer
strongname
interop
null
open
how do i create a strong named interop dll for shdocvw.dll === I have a Browser Helper Object project in c# that (obviously) references shdocvw.dll. I think I want to create a strongly named interop dll for shdocvw.dll. How do I do this - I've seen a bunch of suggestions out there with aximp.exe and tlimp but I'm not clear how they fit together.
0
5,424,634
03/24/2011 19:45:19
234,224
12/17/2009 23:35:01
398
30
How Do I Export Part of a mySQL Table as XML in phpMyAdmin
I've got a mySQL database and I want to export part of the db (not the whole thing) as XML. In phpMyAdmin, how do I export XML from a table where "series=10", for example? If I click the export tab, and the choose XML as the export option, then the whole table will be exported as XML. I only want part of the database exported as XML. Any suggestions on how to do this? Thank you. -Laxmidi
mysql
xml
phpmyadmin
null
null
null
open
How Do I Export Part of a mySQL Table as XML in phpMyAdmin === I've got a mySQL database and I want to export part of the db (not the whole thing) as XML. In phpMyAdmin, how do I export XML from a table where "series=10", for example? If I click the export tab, and the choose XML as the export option, then the whole table will be exported as XML. I only want part of the database exported as XML. Any suggestions on how to do this? Thank you. -Laxmidi
0
9,227,747
02/10/2012 12:26:05
1,122,645
12/30/2011 08:54:47
627
40
In-place transposition of a matrix
Is it possible to transpose a `(m,n)` matrix in-place, giving that the matrix is represented as a single array of size `m*n` ? The usual algorithm transpose(Matrix mat,int rows, int cols ){ //construction step Matrix tmat; for(int i=0;i<rows;i++){ for(int j=0;j<cols;j++){ tmat[j][i] = mat[i][j]; } } } doesn't apply to a single array unless the matrix is a square matrix. If none, what is the minimum amount of additional memory needed??
algorithm
matrix
null
null
null
null
open
In-place transposition of a matrix === Is it possible to transpose a `(m,n)` matrix in-place, giving that the matrix is represented as a single array of size `m*n` ? The usual algorithm transpose(Matrix mat,int rows, int cols ){ //construction step Matrix tmat; for(int i=0;i<rows;i++){ for(int j=0;j<cols;j++){ tmat[j][i] = mat[i][j]; } } } doesn't apply to a single array unless the matrix is a square matrix. If none, what is the minimum amount of additional memory needed??
0
3,747,851
09/19/2010 23:09:25
451,875
09/19/2010 11:22:18
11
1
Can I retrive physical/unmanaged information of .Net (C#) managed object
I am learning .NET/C# and because I almost always want to find out how managed object represent in real memory, I am wondering if there is any programmatic method to get these information, including object memory address, size in byte, memory layout and so on? I know that .NET discourage it and hide information as internal implementation detail. But I am really curious about it for debugging and learning purpose.
c#
.net
null
null
null
null
open
Can I retrive physical/unmanaged information of .Net (C#) managed object === I am learning .NET/C# and because I almost always want to find out how managed object represent in real memory, I am wondering if there is any programmatic method to get these information, including object memory address, size in byte, memory layout and so on? I know that .NET discourage it and hide information as internal implementation detail. But I am really curious about it for debugging and learning purpose.
0
8,341,151
12/01/2011 12:10:40
1,045,570
11/14/2011 12:22:19
21
0
if my first query returns null value then my second query has to run even the second query is null then my default value as to shown
In a procedure if my first query returns null value or returns no records then my second query has to run even the second query returns null value or returns no records then a default value has to return. how to make this procedure? should i use if else statement or exception handler?
stored-procedures
plsql
oracle10g
plsqldeveloper
null
null
open
if my first query returns null value then my second query has to run even the second query is null then my default value as to shown === In a procedure if my first query returns null value or returns no records then my second query has to run even the second query returns null value or returns no records then a default value has to return. how to make this procedure? should i use if else statement or exception handler?
0
9,263,413
02/13/2012 15:46:34
657,518
03/13/2011 13:36:08
174
4
erlang string list concatenation
I have the following property list PropList = [{numbers, ["22", "10"]}, {etc, "22"}]. I wish to get out the list `["22", "10"]` like this: proplists:get_value(numbers, PropList). The problem is that I get the two strings inside the list concatenated, ie `"2210"`. I tried using `propertylists:lookup/2` to get the whole numbers tuple and pattern match to extract the list. But I still end up getting `"2210"`. I'm guessing it's because of the way erlang stores strings in memory.. Can someone help me here?
list
functional-programming
erlang
property-list
null
02/16/2012 23:19:42
too localized
erlang string list concatenation === I have the following property list PropList = [{numbers, ["22", "10"]}, {etc, "22"}]. I wish to get out the list `["22", "10"]` like this: proplists:get_value(numbers, PropList). The problem is that I get the two strings inside the list concatenated, ie `"2210"`. I tried using `propertylists:lookup/2` to get the whole numbers tuple and pattern match to extract the list. But I still end up getting `"2210"`. I'm guessing it's because of the way erlang stores strings in memory.. Can someone help me here?
3
9,660,241
03/12/2012 00:11:57
1,171,898
01/26/2012 18:04:49
122
2
Pure C vs. Objective-C (lite)?
After many years in high-level languages, I'm currently looking into C, and I actually really like it, and plan to use it a lot from now on. (No, I don't mind the memory management =) ) But of course, coming from another world, you miss some features, one being classes and inheritances. So today, I've took a look at what Objective-C is. I don't care about Apple at all, and mainly code for Windows (, although I like the idea of my code being able to run "anywhere"). Further, I wouldn't use the GNUstep stuff, etc. My question is... should I even consider using Objective-C? It's not adding much, basically only something that resembles classes, but from my point of view it's better than nothing, giving a little bit more comfort. Would there be any disadvantages? Anything to keep in mind?
objective-c
c
null
null
null
03/12/2012 00:20:41
not constructive
Pure C vs. Objective-C (lite)? === After many years in high-level languages, I'm currently looking into C, and I actually really like it, and plan to use it a lot from now on. (No, I don't mind the memory management =) ) But of course, coming from another world, you miss some features, one being classes and inheritances. So today, I've took a look at what Objective-C is. I don't care about Apple at all, and mainly code for Windows (, although I like the idea of my code being able to run "anywhere"). Further, I wouldn't use the GNUstep stuff, etc. My question is... should I even consider using Objective-C? It's not adding much, basically only something that resembles classes, but from my point of view it's better than nothing, giving a little bit more comfort. Would there be any disadvantages? Anything to keep in mind?
4
3,624,070
09/02/2010 05:30:19
422,327
08/17/2010 00:51:02
1
0
Bind value of dynamic jquery select list on post
Am new to this and just trying to submit dynamically populated select list on POST in MVC. Have read this [post][1] but don't quite understand the details of the solution, or simply can't get it to work. Here's my code: $(document).ready(function () { $("#SpecificID").hide(); $("#ObjectKindID").change(function () { $.getJSON("/Client/GetSpecificClientDDL", { objID: $(this).val(), ajax: 'true' }, function (data) { fillSelect($("#SpecificID"), data); }); $("#SpecificID").show(); }); }); function fillSelect(selectList, data) { selectList.html(''); $.each(data, function (index, optionData) { selectList.append($('<option></option>').val(optionData.Value).html(optionData.Text)); }); } $(document).submit(function() { $("#SpecificID").find('option').attr('value', true); }); Any help greatly appreciated - I expect (and hope) it is something stupidly simple... Cheers. Tim. [1]: http://stackoverflow.com/questions/2535088/jquery-dynamic-select-doesnt-submit-values
jquery
asp.net-mvc
null
null
null
null
open
Bind value of dynamic jquery select list on post === Am new to this and just trying to submit dynamically populated select list on POST in MVC. Have read this [post][1] but don't quite understand the details of the solution, or simply can't get it to work. Here's my code: $(document).ready(function () { $("#SpecificID").hide(); $("#ObjectKindID").change(function () { $.getJSON("/Client/GetSpecificClientDDL", { objID: $(this).val(), ajax: 'true' }, function (data) { fillSelect($("#SpecificID"), data); }); $("#SpecificID").show(); }); }); function fillSelect(selectList, data) { selectList.html(''); $.each(data, function (index, optionData) { selectList.append($('<option></option>').val(optionData.Value).html(optionData.Text)); }); } $(document).submit(function() { $("#SpecificID").find('option').attr('value', true); }); Any help greatly appreciated - I expect (and hope) it is something stupidly simple... Cheers. Tim. [1]: http://stackoverflow.com/questions/2535088/jquery-dynamic-select-doesnt-submit-values
0
9,008,654
01/25/2012 19:07:31
1,169,885
01/25/2012 18:57:18
1
0
New to Android programming need some help please
Hello I am new to Android programming and I am a bit rusty with Java too since I haven't done it in a while. I am trying to use an example that I found online and when I try to run it with the emulator it said that my program has stopped and I have no idea why. All that I modified was the main Java file, could someone please help me? and if possible point me in a good direction that explains Android programming, thank you in advance. The code that I have is: package com.kikurself.lvlup.scotttest; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class ScottTestActivity extends ListActivity { /** Called when the activity is first created. */ public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main);String[] values = new String[] { "Android", "iPhone", "Windows Mobile", "Blackberry", "WebOS", "Ubuntu", "Windows7", "Max OS X", "Linux", "OS/2" }; ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, values); setListAdapter(adapter); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { String item = (String) getListAdapter().getItem(position); Toast.makeText(this, item + " selected", Toast.LENGTH_LONG).show(); } }
java
android
listview
ice-cream-sandwich
null
01/25/2012 19:23:25
too localized
New to Android programming need some help please === Hello I am new to Android programming and I am a bit rusty with Java too since I haven't done it in a while. I am trying to use an example that I found online and when I try to run it with the emulator it said that my program has stopped and I have no idea why. All that I modified was the main Java file, could someone please help me? and if possible point me in a good direction that explains Android programming, thank you in advance. The code that I have is: package com.kikurself.lvlup.scotttest; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class ScottTestActivity extends ListActivity { /** Called when the activity is first created. */ public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main);String[] values = new String[] { "Android", "iPhone", "Windows Mobile", "Blackberry", "WebOS", "Ubuntu", "Windows7", "Max OS X", "Linux", "OS/2" }; ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, values); setListAdapter(adapter); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { String item = (String) getListAdapter().getItem(position); Toast.makeText(this, item + " selected", Toast.LENGTH_LONG).show(); } }
3
3,970,429
10/19/2010 16:20:41
480,716
10/19/2010 16:17:30
1
0
How to make security on wpf software?
How do I have a research implement on wpf software?
wpf
security
null
null
null
10/20/2010 05:57:22
not a real question
How to make security on wpf software? === How do I have a research implement on wpf software?
1
5,126,274
02/26/2011 10:11:14
635,249
02/26/2011 05:55:36
1
0
functional requirement specification for the following abstract
can any one give me the functional requirements documentation for the reservation tracking system ,it is going to be implemented in asp.net and the details are as follows, 1)The main theme of this application is gathering reservations from different clients and updated in particular intervals of time to the Fitzserver then these reservations will be send to the particular driver. 2) Then driver information is retrieved through mobile application using webservice and updated in the Fitzserver. 3) The information of driver from Fitzserver is send to the client as link to email.
documentation
null
null
null
null
09/08/2011 19:29:23
not a real question
functional requirement specification for the following abstract === can any one give me the functional requirements documentation for the reservation tracking system ,it is going to be implemented in asp.net and the details are as follows, 1)The main theme of this application is gathering reservations from different clients and updated in particular intervals of time to the Fitzserver then these reservations will be send to the particular driver. 2) Then driver information is retrieved through mobile application using webservice and updated in the Fitzserver. 3) The information of driver from Fitzserver is send to the client as link to email.
1
8,454,999
12/10/2011 06:57:18
999,040
10/17/2011 11:17:43
168
7
Any good tutorials about 2d drawing and painting?
I'm trying to code raster graphics editor, but I can't find any good tutorials about 2d drawing in the Internet. All that I found is [Lode's Computer Graphics Tutorial][1] [1]: http://lodev.org/cgtutor/ "Lode's Computer Graphics Tutorial" It shows how to implement pencil, brush, flood fill, etc. But that's not enough. I find myself trying to re-invent the wheel, you know. :) I'm pretty sure there're a lot of algorithms, but I can't find them. Where can I find them? Language is not very important(but I'm writing on C++ with Qt), just need to know basics.
c++
qt
graphics
image-processing
drawing
12/10/2011 16:49:36
not constructive
Any good tutorials about 2d drawing and painting? === I'm trying to code raster graphics editor, but I can't find any good tutorials about 2d drawing in the Internet. All that I found is [Lode's Computer Graphics Tutorial][1] [1]: http://lodev.org/cgtutor/ "Lode's Computer Graphics Tutorial" It shows how to implement pencil, brush, flood fill, etc. But that's not enough. I find myself trying to re-invent the wheel, you know. :) I'm pretty sure there're a lot of algorithms, but I can't find them. Where can I find them? Language is not very important(but I'm writing on C++ with Qt), just need to know basics.
4
5,056,670
02/20/2011 11:17:26
382,838
07/03/2010 20:47:52
280
6
Async http json post helper in c#
Im trying to make a helper-class for posting json-data to a service-method and then returning the resulting json-data. The existing WebClient-class doesnt let me specify the correct json content-type needed for my service so I guess I have to make my own version? I want to be able to abort the request and it should handle exceptions. This is what I have come up with for now: public static HttpWebRequest PostJsonAsync(Uri url, byte[] data, Action<byte[]> onComplete, Action<Exception> onError) { try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = "POST"; request.ContentType = "application/json; charset=utf-8"; request.ContentLength = data.Length; request.BeginGetRequestStream((IAsyncResult res) => { try { using (Stream postStream = request.EndGetRequestStream(res)) postStream.Write(data, 0, data.Length); request.BeginGetResponse((IAsyncResult res2) => { try { using (HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(res2)) { using (Stream streamResponse = response.GetResponseStream()) { MemoryStream ms = new MemoryStream(); streamResponse.CopyTo(ms); onComplete(ms.ToArray()); } } } catch (Exception error) { onError(error); } }, null); } catch (Exception error) { onError(error); } }, null); return request; } catch (Exception error) { onError(error); return null; } } I am returning the HttpWebRequest so I can run Abort on it. But how do I know it was Abort that caused the request to fail? Any other suggestions for improvements?
c#
json
http
post
asynchronous
02/20/2011 11:42:25
not a real question
Async http json post helper in c# === Im trying to make a helper-class for posting json-data to a service-method and then returning the resulting json-data. The existing WebClient-class doesnt let me specify the correct json content-type needed for my service so I guess I have to make my own version? I want to be able to abort the request and it should handle exceptions. This is what I have come up with for now: public static HttpWebRequest PostJsonAsync(Uri url, byte[] data, Action<byte[]> onComplete, Action<Exception> onError) { try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = "POST"; request.ContentType = "application/json; charset=utf-8"; request.ContentLength = data.Length; request.BeginGetRequestStream((IAsyncResult res) => { try { using (Stream postStream = request.EndGetRequestStream(res)) postStream.Write(data, 0, data.Length); request.BeginGetResponse((IAsyncResult res2) => { try { using (HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(res2)) { using (Stream streamResponse = response.GetResponseStream()) { MemoryStream ms = new MemoryStream(); streamResponse.CopyTo(ms); onComplete(ms.ToArray()); } } } catch (Exception error) { onError(error); } }, null); } catch (Exception error) { onError(error); } }, null); return request; } catch (Exception error) { onError(error); return null; } } I am returning the HttpWebRequest so I can run Abort on it. But how do I know it was Abort that caused the request to fail? Any other suggestions for improvements?
1
226,485
10/22/2008 16:05:59
3,886
08/31/2008 16:55:28
600
42
What is the best "turnkey" stemming algorithm?
I need a good stemming algorithm for a project I'm working on. It was suggested that I look at the Porter Stemmer. When I checked out the page on the Porter stemmer I found that it is deprecated now in favor of the "Snowball" stemmer. I need a good stemmer, but I can't really spend significant time implementing (or optimizing) my own. What is the best "off the shelf", freely available stemmer? Are there any non-free stemmers available for a reasonable price? Or, is the Snowball stemmer my best bet?
stemming
comparison
null
null
null
09/15/2011 13:14:10
not constructive
What is the best "turnkey" stemming algorithm? === I need a good stemming algorithm for a project I'm working on. It was suggested that I look at the Porter Stemmer. When I checked out the page on the Porter stemmer I found that it is deprecated now in favor of the "Snowball" stemmer. I need a good stemmer, but I can't really spend significant time implementing (or optimizing) my own. What is the best "off the shelf", freely available stemmer? Are there any non-free stemmers available for a reasonable price? Or, is the Snowball stemmer my best bet?
4
11,363,659
07/06/2012 13:58:21
1,252,702
03/06/2012 16:17:51
32
0
Why does "true" == true show false in JavaScript?
[MDC describes the `==` operator as follows][1]: > If the two operands are not of the same type, JavaScript converts the operands then applies strict comparison. If either operand is a number or a boolean, the operands are converted to numbers if possible; else if either operand is a string, the other operand is converted to a string if possible. With this in mind, I would evaluate `"true" == true` as follows: 1. Are they of the same type? **No** 2. Is either operand a number or boolean? **Yes** 3. Can we convert both to a number? **No** (`isNaN(Number("true")) // true`) 4. Is either operand a string? **Yes** 5. Can we convert the other operand to a string? **Yes** (`String(true) === "true" // true`) I've ended up with the strings `"true"` and `"true"`, which should evaluate to `true`, but JavaScript shows false. What have I missed? [1]: https://developer.mozilla.org/en/JavaScript/Reference/Operators/Comparison_Operators
javascript
string
equals
null
null
null
open
Why does "true" == true show false in JavaScript? === [MDC describes the `==` operator as follows][1]: > If the two operands are not of the same type, JavaScript converts the operands then applies strict comparison. If either operand is a number or a boolean, the operands are converted to numbers if possible; else if either operand is a string, the other operand is converted to a string if possible. With this in mind, I would evaluate `"true" == true` as follows: 1. Are they of the same type? **No** 2. Is either operand a number or boolean? **Yes** 3. Can we convert both to a number? **No** (`isNaN(Number("true")) // true`) 4. Is either operand a string? **Yes** 5. Can we convert the other operand to a string? **Yes** (`String(true) === "true" // true`) I've ended up with the strings `"true"` and `"true"`, which should evaluate to `true`, but JavaScript shows false. What have I missed? [1]: https://developer.mozilla.org/en/JavaScript/Reference/Operators/Comparison_Operators
0
8,266,653
11/25/2011 08:56:09
987,934
10/10/2011 15:04:41
11
1
Variable Sizes Array in CUDA
Is there any way to declare an array such as: `int arraySize = 10`; `int array[arraySize];` inside a CUDA kernel/function? I read in another post that I could declare the size of the shared memory in the kernel call and then I would be able to do: `int array[];` But I cannot do this. I get a compile error: "incomplete type is not allowed". On a side note, I've also read that printf() can be called from within a thread and this also throws an error: "Cannot call host function from inside device/global function". Is there anything I can do to make a variable sized array or equivalent inside CUDA? I am at compute capability 1.1, does this have anything to do with it? Can I get around the variable size array declarations from within a thread by defining a `typedef struct` which has a size variable I can set? Solutions for compute capabilities besides 1.1 are welcome. This is for a class team project and if there is at least some way to do it I can at least present that information.
cuda
null
null
null
null
null
open
Variable Sizes Array in CUDA === Is there any way to declare an array such as: `int arraySize = 10`; `int array[arraySize];` inside a CUDA kernel/function? I read in another post that I could declare the size of the shared memory in the kernel call and then I would be able to do: `int array[];` But I cannot do this. I get a compile error: "incomplete type is not allowed". On a side note, I've also read that printf() can be called from within a thread and this also throws an error: "Cannot call host function from inside device/global function". Is there anything I can do to make a variable sized array or equivalent inside CUDA? I am at compute capability 1.1, does this have anything to do with it? Can I get around the variable size array declarations from within a thread by defining a `typedef struct` which has a size variable I can set? Solutions for compute capabilities besides 1.1 are welcome. This is for a class team project and if there is at least some way to do it I can at least present that information.
0
8,054,058
11/08/2011 16:50:13
684,101
03/20/2011 19:39:26
41
1
C++ promotes a separation between class definitions and class implementations but not JAVA
I have a homework and I need to evaluate which approach is better according to GRASP. I found this link that answers part of my questioning: http://stackoverflow.com/questions/333889/in-c-why-have-header-files-and-cpp-files However, what I want to know is how much c++ way of working is better for extensibility and for code reuse than JAVA because everything is defined in a conjoint file ? Thanks for the help !
java
c++
grasp
null
null
11/08/2011 16:53:02
not constructive
C++ promotes a separation between class definitions and class implementations but not JAVA === I have a homework and I need to evaluate which approach is better according to GRASP. I found this link that answers part of my questioning: http://stackoverflow.com/questions/333889/in-c-why-have-header-files-and-cpp-files However, what I want to know is how much c++ way of working is better for extensibility and for code reuse than JAVA because everything is defined in a conjoint file ? Thanks for the help !
4
5,398,609
03/22/2011 22:24:28
672,053
03/22/2011 21:51:29
1
0
How to update a phone and address in a user data base
My problem is, how can I update a phone number or address from a previous one in a user database? So I would start with a phone number and address already, but I need to implement a "Update Address" and "Update Number" How would I do this?
homework
visual-c++
programming-languages
null
null
null
open
How to update a phone and address in a user data base === My problem is, how can I update a phone number or address from a previous one in a user database? So I would start with a phone number and address already, but I need to implement a "Update Address" and "Update Number" How would I do this?
0
10,509,731
05/09/2012 04:12:52
1,177,921
01/30/2012 11:19:02
16
0
Uncaught TypeError: Cannot call method 'request' of undefined in sencha touch2 external webservice
Hi i am new to sencha touch2. i have to consume external web service. i have written code as below in console it is giving error like this **Uncaught TypeError: Cannot call method 'request' of undefined**. what is the problem, please provide the solution. Thank you Ext.util.JSONP.request({ url: 'http://localhost/SLS.BRND.Services/Service1.asmx/Helloworld', params: { method: 'Helloworld', format: 'json', callback: 'callback' }, success: function (response) { alert('Working!') console.log(response); }, failure: function (response) { alert('Not working!') console.log(response); } });
web-services
sencha-touch
null
null
null
null
open
Uncaught TypeError: Cannot call method 'request' of undefined in sencha touch2 external webservice === Hi i am new to sencha touch2. i have to consume external web service. i have written code as below in console it is giving error like this **Uncaught TypeError: Cannot call method 'request' of undefined**. what is the problem, please provide the solution. Thank you Ext.util.JSONP.request({ url: 'http://localhost/SLS.BRND.Services/Service1.asmx/Helloworld', params: { method: 'Helloworld', format: 'json', callback: 'callback' }, success: function (response) { alert('Working!') console.log(response); }, failure: function (response) { alert('Not working!') console.log(response); } });
0
9,494,943
02/29/2012 07:10:20
1,034,359
12/20/2009 11:44:03
90
6
How can I to improve this chart?
I need to improve this chart that shows the profit of one year. I don't know how to improve it. Four columns corresponds to one month. At the end of the year it is so confusing. Any suggestion? This is the chart ![enter image description here][1] This is the google chart url http://chart.apis.google.com/chart?cht=bvg&chtt=Profit%20for%20the%202012&chts=4d89f9,18&chs=800x300&chd=t:93.90|50.00|43.9|-9.22&chdl=Net%20Incomes|Incomes|Costs|VAT&chdlp=b&chxt=x&chxl=0:|February&chco=4d89f9,FFAD99,00FF00,FF6666&chds=-9.22,93.90&chm=N**%E2%82%AC,000000,2,,10|N**%E2%82%AC,000000,-1,,10|N**%E2%82%AC,000000,0,,10|N**%E2%82%AC,000000,1,,10&chma=5&chbh=a [1]: http://i.stack.imgur.com/6OeXY.png Regards
google
charts
null
null
null
03/21/2012 03:11:28
off topic
How can I to improve this chart? === I need to improve this chart that shows the profit of one year. I don't know how to improve it. Four columns corresponds to one month. At the end of the year it is so confusing. Any suggestion? This is the chart ![enter image description here][1] This is the google chart url http://chart.apis.google.com/chart?cht=bvg&chtt=Profit%20for%20the%202012&chts=4d89f9,18&chs=800x300&chd=t:93.90|50.00|43.9|-9.22&chdl=Net%20Incomes|Incomes|Costs|VAT&chdlp=b&chxt=x&chxl=0:|February&chco=4d89f9,FFAD99,00FF00,FF6666&chds=-9.22,93.90&chm=N**%E2%82%AC,000000,2,,10|N**%E2%82%AC,000000,-1,,10|N**%E2%82%AC,000000,0,,10|N**%E2%82%AC,000000,1,,10&chma=5&chbh=a [1]: http://i.stack.imgur.com/6OeXY.png Regards
2
3,853,146
10/04/2010 05:53:30
117,519
06/04/2009 17:36:13
35
5
How to represent time base progress bar for file upload
I am working on file upload using JavaScript+ php (basically I have used the plupload and modified it according to my need).since plupload providing the progress bar.but I need a time based progress bar,where we can see the time remaining according to one's bandwidth and all. so I am looking for the solution for it. 1- How to implement it in general. 2- Whats the formula to calculate it. Thanks.
php
javascript
null
null
null
null
open
How to represent time base progress bar for file upload === I am working on file upload using JavaScript+ php (basically I have used the plupload and modified it according to my need).since plupload providing the progress bar.but I need a time based progress bar,where we can see the time remaining according to one's bandwidth and all. so I am looking for the solution for it. 1- How to implement it in general. 2- Whats the formula to calculate it. Thanks.
0
9,614,819
03/08/2012 08:37:13
84,325
03/29/2009 18:16:33
1,403
6
About the diagrams in software development life-cycle
1. why we need diagrams(UML,ER) in software development life-cycle? 2. what the benefit? 2. Is there any alternative mothod ?
database-design
uml
software-engineering
er
null
03/08/2012 16:15:42
not constructive
About the diagrams in software development life-cycle === 1. why we need diagrams(UML,ER) in software development life-cycle? 2. what the benefit? 2. Is there any alternative mothod ?
4
10,363,657
04/28/2012 12:53:27
1,344,637
04/19/2012 17:13:39
57
6
How to extract something from text?
I have a script providing information for some ip address. I want to extract the country from the text. in the following text country line is `"Country: US"` I want to display : `US` only The text is: [Querying whois.arin.net] [whois.arin.net] # # Query terms are ambiguous. The query is assumed to be: # "n 173.194.74.100" # # Use "?" to get help. # # # The following results may also be obtained via: # http://whois.arin.net/rest/nets;q=173.194.74.100?showDetails=true&showARIN=false&ext=netref2 # NetRange: 173.194.0.0 - 173.194.255.255 CIDR: 173.194.0.0/16 OriginAS: AS15169 NetName: GOOGLE NetHandle: NET-173-194-0-0-1 Parent: NET-173-0-0-0-0 NetType: Direct Allocation RegDate: 2009-08-17 Updated: 2012-02-24 Ref: http://whois.arin.net/rest/net/NET-173-194-0-0-1 OrgName: Google Inc. OrgId: GOGL Address: 1600 Amphitheatre Parkway City: Mountain View StateProv: CA PostalCode: 94043 Country: US RegDate: 2000-03-30 Updated: 2011-09-24 Ref: http://whois.arin.net/rest/org/GOGL OrgTechHandle: ZG39-ARIN OrgTechName: Google Inc OrgTechPhone: +1-650-253-0000 OrgTechEmail: [email protected] OrgTechRef: http://whois.arin.net/rest/poc/ZG39-ARIN OrgAbuseHandle: ZG39-ARIN OrgAbuseName: Google Inc OrgAbusePhone: +1-650-253-0000 OrgAbuseEmail: [email protected] OrgAbuseRef: http://whois.arin.net/rest/poc/ZG39-ARIN # # ARIN WHOIS data and services are subject to the Terms of Use # available at: https://www.arin.net/whois_tou.html #
php
regex
preg-match
null
null
null
open
How to extract something from text? === I have a script providing information for some ip address. I want to extract the country from the text. in the following text country line is `"Country: US"` I want to display : `US` only The text is: [Querying whois.arin.net] [whois.arin.net] # # Query terms are ambiguous. The query is assumed to be: # "n 173.194.74.100" # # Use "?" to get help. # # # The following results may also be obtained via: # http://whois.arin.net/rest/nets;q=173.194.74.100?showDetails=true&showARIN=false&ext=netref2 # NetRange: 173.194.0.0 - 173.194.255.255 CIDR: 173.194.0.0/16 OriginAS: AS15169 NetName: GOOGLE NetHandle: NET-173-194-0-0-1 Parent: NET-173-0-0-0-0 NetType: Direct Allocation RegDate: 2009-08-17 Updated: 2012-02-24 Ref: http://whois.arin.net/rest/net/NET-173-194-0-0-1 OrgName: Google Inc. OrgId: GOGL Address: 1600 Amphitheatre Parkway City: Mountain View StateProv: CA PostalCode: 94043 Country: US RegDate: 2000-03-30 Updated: 2011-09-24 Ref: http://whois.arin.net/rest/org/GOGL OrgTechHandle: ZG39-ARIN OrgTechName: Google Inc OrgTechPhone: +1-650-253-0000 OrgTechEmail: [email protected] OrgTechRef: http://whois.arin.net/rest/poc/ZG39-ARIN OrgAbuseHandle: ZG39-ARIN OrgAbuseName: Google Inc OrgAbusePhone: +1-650-253-0000 OrgAbuseEmail: [email protected] OrgAbuseRef: http://whois.arin.net/rest/poc/ZG39-ARIN # # ARIN WHOIS data and services are subject to the Terms of Use # available at: https://www.arin.net/whois_tou.html #
0
4,807,685
01/26/2011 17:22:53
176,841
09/21/2009 22:46:27
415
21
What techniques are available to do P2P in the browser?
What options does a web developer currently have for implementing client-side peer-to-peer systems in the web browser? Some hypothetical examples might be a file-sharing service that bypasses the web-server after clients find eachother, or a chat service. <h3>What I know about:</h3> - the site chatroulette uses some flash technology as discussed [here][1]. - And I am also aware of [Opera Unity][2] which extends the browser model to encompass both a client and a server, as well as this firefox [plugin][3] which works similarly - I also just came across [this blog post][4] related to the Joose js framework, but am not yet sure if it is relevant here. - Support for this *kind of thing* seems like it might or might not be supported by websockets in HTML5 and has been discussed [here][5] and [here][6] and [here][7]. [1]: http://stackoverflow.com/questions/2643291/architecture-of-chatroulette [2]: http://www.opera.com/press/releases/2009/06/16/ [3]: https://addons.mozilla.org/en-US/firefox/addon/pow-plain-old-webserver/ [4]: http://www.nonblocking.io/2008/12/universalcomet-making-every-client.html [5]: http://stackoverflow.com/questions/2628565/html5-vs-flash-full-comparison-chart-anywhere [6]: http://stackoverflow.com/questions/1032006/will-html5-allow-web-apps-to-make-peer-to-peer-http-connections [7]: http://stackoverflow.com/questions/4118272/do-websockets-allow-for-p2p-browser-to-browser-communication
javascript
web-development
flash
html5
p2p
05/31/2012 21:27:12
not constructive
What techniques are available to do P2P in the browser? === What options does a web developer currently have for implementing client-side peer-to-peer systems in the web browser? Some hypothetical examples might be a file-sharing service that bypasses the web-server after clients find eachother, or a chat service. <h3>What I know about:</h3> - the site chatroulette uses some flash technology as discussed [here][1]. - And I am also aware of [Opera Unity][2] which extends the browser model to encompass both a client and a server, as well as this firefox [plugin][3] which works similarly - I also just came across [this blog post][4] related to the Joose js framework, but am not yet sure if it is relevant here. - Support for this *kind of thing* seems like it might or might not be supported by websockets in HTML5 and has been discussed [here][5] and [here][6] and [here][7]. [1]: http://stackoverflow.com/questions/2643291/architecture-of-chatroulette [2]: http://www.opera.com/press/releases/2009/06/16/ [3]: https://addons.mozilla.org/en-US/firefox/addon/pow-plain-old-webserver/ [4]: http://www.nonblocking.io/2008/12/universalcomet-making-every-client.html [5]: http://stackoverflow.com/questions/2628565/html5-vs-flash-full-comparison-chart-anywhere [6]: http://stackoverflow.com/questions/1032006/will-html5-allow-web-apps-to-make-peer-to-peer-http-connections [7]: http://stackoverflow.com/questions/4118272/do-websockets-allow-for-p2p-browser-to-browser-communication
4
7,764,269
10/14/2011 07:16:23
980,159
10/05/2011 10:22:20
3
0
PHP get user information
I made a website with a login script. Now there is some guy that makes false logins all the time. For example usernames like 'lfdjgh' and email addresses like [email protected]. I want to find out where this person is located etc. Is there a way to find some detailed information about that user? Computer-name, Ip address, location, etc? Thanks
php
user
information
null
null
null
open
PHP get user information === I made a website with a login script. Now there is some guy that makes false logins all the time. For example usernames like 'lfdjgh' and email addresses like [email protected]. I want to find out where this person is located etc. Is there a way to find some detailed information about that user? Computer-name, Ip address, location, etc? Thanks
0
2,762,531
05/04/2010 02:56:01
189,478
10/13/2009 23:08:43
332
5
C# Reflection and Getting Properties
I have the following dummy class structure and I am trying to find out how to get the properties from each instance of the class People in PeopleList. I know how to get the properties from a single instance of People but can't for the life of me figure out how to get it from PeopleList. I am sure this is really straightforward but can someone point me in the right direction? public class Example { public class People { private string _name; public string Name { get { return _name; } set { _name = value; } } private int _age; public int Age { get { return _age; } set { _age = value; } } public People() { } public People(string name, int age) { this._name = name; this._age = age; } } public class PeopleList : List<People> { public static void DoStuff() { PeopleList newList = new PeopleList(); // Do some stuff newList.Add(new People("Tim", 35)); } } }
c#
reflection
properties
null
null
null
open
C# Reflection and Getting Properties === I have the following dummy class structure and I am trying to find out how to get the properties from each instance of the class People in PeopleList. I know how to get the properties from a single instance of People but can't for the life of me figure out how to get it from PeopleList. I am sure this is really straightforward but can someone point me in the right direction? public class Example { public class People { private string _name; public string Name { get { return _name; } set { _name = value; } } private int _age; public int Age { get { return _age; } set { _age = value; } } public People() { } public People(string name, int age) { this._name = name; this._age = age; } } public class PeopleList : List<People> { public static void DoStuff() { PeopleList newList = new PeopleList(); // Do some stuff newList.Add(new People("Tim", 35)); } } }
0
10,027,832
04/05/2012 11:36:10
274,789
02/16/2010 22:23:29
319
9
is there any obvious general way to comunicate between various programming languages/platforms?
I'm just finishing a relatively big project in scala and will start another related one soon. I haven't chosen the language yet and would like my decision to be based more on features of the language or available libraries than interoperability concerns. And this is the reason to ask this. My requirements are simple: - interoperability between various programming languages/platforms (probable ones are JVM, Haskell, Python, C/C++) - easy to program - performant without much concern for optimization on my part (this may exclude using files)
python
haskell
interop
jvm
communication
04/05/2012 13:27:03
not a real question
is there any obvious general way to comunicate between various programming languages/platforms? === I'm just finishing a relatively big project in scala and will start another related one soon. I haven't chosen the language yet and would like my decision to be based more on features of the language or available libraries than interoperability concerns. And this is the reason to ask this. My requirements are simple: - interoperability between various programming languages/platforms (probable ones are JVM, Haskell, Python, C/C++) - easy to program - performant without much concern for optimization on my part (this may exclude using files)
1
3,145,396
06/29/2010 23:03:29
248,185
01/11/2010 16:01:18
43
1
Programmatically save as PowerPoint 2007 (pptx), from PowerPoint 2003
I need to be able to save Presentations (programatically) in PowerPoint 2003 as OpenXML (".pptx"). I installed the Microsoft Office Compatibility Pack. This indeed allows me to perform "Save as PowerPoint 2007 Presentation" from PowerPoint 2003. How can I do this programmatically? (e.g. VBA) I tried Presentation.SaveAs with FileFormat ranging from 0-50000 and none of these experiments produced a ".pptx" file. Any ideas? (PS - I am aware that this question was already asked by several people on the web, but no solutions were offered.) Thanks, Arie
vba
save
powerpoint
powerpoint-vba
saveas
null
open
Programmatically save as PowerPoint 2007 (pptx), from PowerPoint 2003 === I need to be able to save Presentations (programatically) in PowerPoint 2003 as OpenXML (".pptx"). I installed the Microsoft Office Compatibility Pack. This indeed allows me to perform "Save as PowerPoint 2007 Presentation" from PowerPoint 2003. How can I do this programmatically? (e.g. VBA) I tried Presentation.SaveAs with FileFormat ranging from 0-50000 and none of these experiments produced a ".pptx" file. Any ideas? (PS - I am aware that this question was already asked by several people on the web, but no solutions were offered.) Thanks, Arie
0
502,250
02/02/2009 05:16:27
3,820
08/31/2008 02:26:19
1,607
97
Bind to a method in WPF?
How do you bind to an objects method in this scenario in WPF? public class RootObject { public string Name { get; } public ObservableCollection<ChildObject> GetChildren() {...} } public class ChildObject { public string Name { get; } } <TreeView ItemsSource="some list of RootObjects"> <TreeView.Resources> <HierarchicalDataTemplate DataType="{x:Type data:RootObject}" ItemsSource="???" > <TextBlock Text="{Binding Path=Name}" /> </HierarchicalDataTemplate> <HierarchicalDataTemplate DataType="{x:Type data:ChildObject}"> <TextBlock Text="{Binding Path=Name}" /> </HierarchicalDataTemplate> </TreeView.Resources> </TreeView> Here I want to bind to the GetChildren method on each RootObject of the tree.
wpf
data-binding
xaml
null
null
null
open
Bind to a method in WPF? === How do you bind to an objects method in this scenario in WPF? public class RootObject { public string Name { get; } public ObservableCollection<ChildObject> GetChildren() {...} } public class ChildObject { public string Name { get; } } <TreeView ItemsSource="some list of RootObjects"> <TreeView.Resources> <HierarchicalDataTemplate DataType="{x:Type data:RootObject}" ItemsSource="???" > <TextBlock Text="{Binding Path=Name}" /> </HierarchicalDataTemplate> <HierarchicalDataTemplate DataType="{x:Type data:ChildObject}"> <TextBlock Text="{Binding Path=Name}" /> </HierarchicalDataTemplate> </TreeView.Resources> </TreeView> Here I want to bind to the GetChildren method on each RootObject of the tree.
0
7,274,853
09/01/2011 18:35:01
953,058
08/07/2010 17:06:19
118
1
Fading Background Images
I'm using a simple script to change the background image of my website every X seconds. What I'd like to do is incorperate some sort of fade animation or a transition from one image to the next. Whats the best way to achieve this. I'm not very good with Javascript so PLEASE, bear with me. :) <script type="text/javascript"> var images = ['bg1.png', 'bg2.png', 'bg3.png']; var curImage = 0; function switchImage() { curImage = (curImage + 1) % images.length document.body.style.backgroundImage = 'url(images/' + images[curImage] + ')' } window.setInterval(switchImage, 5000); </script>
javascript
null
null
null
null
null
open
Fading Background Images === I'm using a simple script to change the background image of my website every X seconds. What I'd like to do is incorperate some sort of fade animation or a transition from one image to the next. Whats the best way to achieve this. I'm not very good with Javascript so PLEASE, bear with me. :) <script type="text/javascript"> var images = ['bg1.png', 'bg2.png', 'bg3.png']; var curImage = 0; function switchImage() { curImage = (curImage + 1) % images.length document.body.style.backgroundImage = 'url(images/' + images[curImage] + ')' } window.setInterval(switchImage, 5000); </script>
0
10,849,187
06/01/2012 11:13:07
1,430,527
06/01/2012 11:01:56
1
0
NHibernate 2nd level cache using with eagerly fetching details
For my purpose, like this schema BLOG Id Name POSTS Id BlogId Name We 're using "NHibernate.Caches.MemCache.MemCacheProvider" And my query is session.QueryOver<Blog>().Fetch(q => q.Posts).Eager.Cacheable().CacheMode(CacheMode.Normal) At first query NHibernate gets from DB and fetching details (in here "Posts") I see on "NHibernateUtil.IsInitialized" like NHibernateUtil.IsInitialized(blogs.First().Posts) So its not lazy loading. But second time query is executing cached query using for fetched query its joining Posts again. As we know after loaded "Id" s of the Blogs its getting every single "Blog" from 2nd level cache. Here is ok for me too. But the problem is for every blog, the Posts which belongs to single Blog is not initialized. Its not getting from 2nd level cache. So its loading lazy... There is Cache.ReadWrite() for Blog & Post, Thanks for helps...
nhibernate
memcached
fetch
null
null
null
open
NHibernate 2nd level cache using with eagerly fetching details === For my purpose, like this schema BLOG Id Name POSTS Id BlogId Name We 're using "NHibernate.Caches.MemCache.MemCacheProvider" And my query is session.QueryOver<Blog>().Fetch(q => q.Posts).Eager.Cacheable().CacheMode(CacheMode.Normal) At first query NHibernate gets from DB and fetching details (in here "Posts") I see on "NHibernateUtil.IsInitialized" like NHibernateUtil.IsInitialized(blogs.First().Posts) So its not lazy loading. But second time query is executing cached query using for fetched query its joining Posts again. As we know after loaded "Id" s of the Blogs its getting every single "Blog" from 2nd level cache. Here is ok for me too. But the problem is for every blog, the Posts which belongs to single Blog is not initialized. Its not getting from 2nd level cache. So its loading lazy... There is Cache.ReadWrite() for Blog & Post, Thanks for helps...
0
9,595,672
03/07/2012 04:05:15
1,253,773
03/07/2012 04:00:28
1
0
Draw Something app won't load Facebook
I installed the Android Draw Something App on my Acer Tablet but it wouldn't let me log in with Facebook so I could play with my friends. I can log in via gmail fine but when I try to log in with Facebook it goes to the blue screen that says 'creating account' with the little circle loading logo and that's as far as it gets. It just stays like that forever. I've uninstalled it and re-installed it about 6 times and still the same thing. I've looked on the net and it seems heaps of people are having this problem but there seems to be no answer to it. Can you help?
application
null
null
null
null
05/29/2012 16:29:34
off topic
Draw Something app won't load Facebook === I installed the Android Draw Something App on my Acer Tablet but it wouldn't let me log in with Facebook so I could play with my friends. I can log in via gmail fine but when I try to log in with Facebook it goes to the blue screen that says 'creating account' with the little circle loading logo and that's as far as it gets. It just stays like that forever. I've uninstalled it and re-installed it about 6 times and still the same thing. I've looked on the net and it seems heaps of people are having this problem but there seems to be no answer to it. Can you help?
2
7,115,982
08/19/2011 01:16:59
482,473
10/21/2010 02:30:33
168
0
Unable to export private and public keys under Mac
I have a public and private key in one machine, I tried to export them under the name of key.cer, I mean what other option is there besides .certificate extension. Now I moved that key.cer which supposedly contain the private and public keys to another machine. but no luck, the two keys did not show up in the keychain of the new machine.
iphone
null
null
null
null
null
open
Unable to export private and public keys under Mac === I have a public and private key in one machine, I tried to export them under the name of key.cer, I mean what other option is there besides .certificate extension. Now I moved that key.cer which supposedly contain the private and public keys to another machine. but no luck, the two keys did not show up in the keychain of the new machine.
0
3,120,597
06/25/2010 18:45:04
305,463
03/30/2010 20:15:40
1
0
Joining ACM and IEEE
I am a software developer in France and I've realized that I am more interested in research and advanced topics more than just programming. So I decided to go back to the university next year for graduate studies and I would like to join ACM, IEEE and IEEE computer society to start preparing from now. However I still have some questions : 1) Will I have to send documents to prove that I meet the membership requirements? 2) There are many options when subscribing (access to libraries, ...), which ones should I subscribe to? (This is not really the reason for which I am joining them, but once I have the two emails, this becomes an issu :) ) Any other remarks are welcome.
ieee
acm
null
null
null
06/27/2010 04:00:51
off topic
Joining ACM and IEEE === I am a software developer in France and I've realized that I am more interested in research and advanced topics more than just programming. So I decided to go back to the university next year for graduate studies and I would like to join ACM, IEEE and IEEE computer society to start preparing from now. However I still have some questions : 1) Will I have to send documents to prove that I meet the membership requirements? 2) There are many options when subscribing (access to libraries, ...), which ones should I subscribe to? (This is not really the reason for which I am joining them, but once I have the two emails, this becomes an issu :) ) Any other remarks are welcome.
2
4,227,574
11/19/2010 17:15:45
241,654
12/31/2009 17:56:43
190
2
Any rich text editor that edits html "As It Is" ?
I'm having a hard time finding a good WYSIWYG editor, tried CKeditor & TinyMCE and found out that they strip out a lot of tags and headers and they ruin the page. Any recommendations of professional editors? i want it to leave the page as it is but only change the areas that people "touched". Thanks
javascript
html
wysiwyg
null
null
null
open
Any rich text editor that edits html "As It Is" ? === I'm having a hard time finding a good WYSIWYG editor, tried CKeditor & TinyMCE and found out that they strip out a lot of tags and headers and they ruin the page. Any recommendations of professional editors? i want it to leave the page as it is but only change the areas that people "touched". Thanks
0
10,048,818
04/06/2012 20:21:40
1,163,197
01/22/2012 06:48:48
9
0
CSS "Suggestions search box" out of position
I'll try my best to describe the problem and have a live example. I have created a search feature for a site and in addition I made a "suggestions box" that drops down based on what they are typing. (Like Google does!) So my issue is, the box floats out of position depending on the window size. How do I fix it to the bottom of the search field? Live example found here: [http://swissinstruments.com/searchresults.php][1] (see top search field, type "a" or "c" to get some suggestions coming down. Now for some code of what I am using: The Suggestions Box STYLE .suggestion_list { z-index:500; background: white; border: 1px solid #80B6E1; padding: 4px; float:none; margin-top:5px; width:191px; position:fixed; } .suggestion_list ul { padding: 0; margin: 0; list-style-type: none; } .suggestion_list a { text-decoration: none; color: navy; } .suggestion_list .selected { background: navy; color: white; } .suggestion_list .selected a { color: white; } #autosuggest { display: none; } The SEARCH BOX Style #search-form { float:right; padding:9px 0 0 0;} #search-form fieldset { border:none; border:1px solid #0f58a2; border-top:none; background:#126dbe; padding:0 12px 10px 13px; float:right } #search-form input.text { width:190px; border:1px solid #d0e0e6; margin-right:3px; padding:2px 2px 3px 7px;} #search-form input.submit { background:#007cff; width:59px; text-align:center; height:23px; line-height:23px; color:#fff; font-size:.77em; text-transform:uppercase; border:none; cursor:pointer;} Finally the Javascrip part that is used to position the div. I have set the x to -164 since it seems to work for the resolution used by most users. But as soon as I shrink or stretch it the box is out of position. /******************************************************** Position the dropdown div below the input text field. ********************************************************/ this.positionDiv = function() { var el = this.elem; var x = -164; var y = el.offsetHeight; //Walk up the DOM and add up all of the offset positions. while (el.offsetParent && el.tagName.toUpperCase() != 'BODY') { x += el.offsetLeft; y += el.offsetTop; el = el.offsetParent; } x += el.offsetLeft; y += el.offsetTop; this.div.style.left = x + 'px'; this.div.style.top = y + 'px'; }; Is there any way to use percentages rather than px? I can't thank you guys enough for the help. Thanks, Robb [1]: http://swissinstruments.com/searchresults.php
javascript
html
css
null
null
null
open
CSS "Suggestions search box" out of position === I'll try my best to describe the problem and have a live example. I have created a search feature for a site and in addition I made a "suggestions box" that drops down based on what they are typing. (Like Google does!) So my issue is, the box floats out of position depending on the window size. How do I fix it to the bottom of the search field? Live example found here: [http://swissinstruments.com/searchresults.php][1] (see top search field, type "a" or "c" to get some suggestions coming down. Now for some code of what I am using: The Suggestions Box STYLE .suggestion_list { z-index:500; background: white; border: 1px solid #80B6E1; padding: 4px; float:none; margin-top:5px; width:191px; position:fixed; } .suggestion_list ul { padding: 0; margin: 0; list-style-type: none; } .suggestion_list a { text-decoration: none; color: navy; } .suggestion_list .selected { background: navy; color: white; } .suggestion_list .selected a { color: white; } #autosuggest { display: none; } The SEARCH BOX Style #search-form { float:right; padding:9px 0 0 0;} #search-form fieldset { border:none; border:1px solid #0f58a2; border-top:none; background:#126dbe; padding:0 12px 10px 13px; float:right } #search-form input.text { width:190px; border:1px solid #d0e0e6; margin-right:3px; padding:2px 2px 3px 7px;} #search-form input.submit { background:#007cff; width:59px; text-align:center; height:23px; line-height:23px; color:#fff; font-size:.77em; text-transform:uppercase; border:none; cursor:pointer;} Finally the Javascrip part that is used to position the div. I have set the x to -164 since it seems to work for the resolution used by most users. But as soon as I shrink or stretch it the box is out of position. /******************************************************** Position the dropdown div below the input text field. ********************************************************/ this.positionDiv = function() { var el = this.elem; var x = -164; var y = el.offsetHeight; //Walk up the DOM and add up all of the offset positions. while (el.offsetParent && el.tagName.toUpperCase() != 'BODY') { x += el.offsetLeft; y += el.offsetTop; el = el.offsetParent; } x += el.offsetLeft; y += el.offsetTop; this.div.style.left = x + 'px'; this.div.style.top = y + 'px'; }; Is there any way to use percentages rather than px? I can't thank you guys enough for the help. Thanks, Robb [1]: http://swissinstruments.com/searchresults.php
0
11,424,670
07/11/2012 02:20:38
1,516,434
07/11/2012 02:15:46
1
0
i need biuld a function to convert netmask to bitmask in php
write a function “netmask2bitmask” in PHP 5.3 or higher that will convert the string representation of an IPv4 or IPv6 netmask to the number of bits in the mask. This function should validate its input, throw an exception on any errors, and should be written using only built in PHP functions, no third party libraries. Example: print netmask2bitmask('255.255.0.0') . “\n”; print netmask2bitmask('ffff:ffff:ffff:ffc0:0:0:0:0') . “\n”; Outputs: 16 58
php
ipv6
ipv4
bitmask
netmask
07/11/2012 03:05:27
not a real question
i need biuld a function to convert netmask to bitmask in php === write a function “netmask2bitmask” in PHP 5.3 or higher that will convert the string representation of an IPv4 or IPv6 netmask to the number of bits in the mask. This function should validate its input, throw an exception on any errors, and should be written using only built in PHP functions, no third party libraries. Example: print netmask2bitmask('255.255.0.0') . “\n”; print netmask2bitmask('ffff:ffff:ffff:ffc0:0:0:0:0') . “\n”; Outputs: 16 58
1
4,030,780
10/27/2010 07:13:58
483,144
10/21/2010 14:34:54
65
0
Is it possible to use Google Analytics to track singer user account on website?
Hey, I've got a website that needs user logged in before they can use, I want to track the behavior of each single user. Is it possible to do? Any advices? Thanks very much!
google
google-analytics
null
null
null
null
open
Is it possible to use Google Analytics to track singer user account on website? === Hey, I've got a website that needs user logged in before they can use, I want to track the behavior of each single user. Is it possible to do? Any advices? Thanks very much!
0
8,048,956
11/08/2011 10:25:51
997,459
10/16/2011 02:43:24
46
0
How to read ms access database file backwards
I wanted to know is their anyway to read the ms access database backwards. There would be great appreciation if someone could try to help me. Thanks In Advance.
c#
winforms
ms-access
null
null
11/09/2011 01:12:17
not a real question
How to read ms access database file backwards === I wanted to know is their anyway to read the ms access database backwards. There would be great appreciation if someone could try to help me. Thanks In Advance.
1
11,522,461
07/17/2012 12:30:00
1,530,020
07/16/2012 20:39:16
1
0
How should we call the image represented to Web page?
When you are writing a message which include link, or just push "Like" button, we see the image which represented to the Web page. What should we call that kind of images? Wordpress uses "Eye-catch image", but this name looks like not so popular.
facebook
image
wordpress
like
null
07/17/2012 17:38:16
off topic
How should we call the image represented to Web page? === When you are writing a message which include link, or just push "Like" button, we see the image which represented to the Web page. What should we call that kind of images? Wordpress uses "Eye-catch image", but this name looks like not so popular.
2
6,222,521
06/03/2011 02:55:33
761,180
05/19/2011 13:41:21
264
16
Haskell do syntax and I/O
I was playing around with a simple program in Haskell: hello :: String -> String hello s = "Hello, " ++ (trim s) ++ "!\n" trim :: String -> String trim [] = [] trim s = head $ words s main :: IO() main = do putStr "\nPlease enter your name: " name <- getLine hstring <- return $ hello name putStr hstring This is the output I am expecting: Please enter your name: John Doe Hello, John! This works as expected when I load the program into ghci. However when I compile the program using ghc -o hello.exe hello.hs it starts, waits for input, and then prints both prompts at the same time: John Doe Please enter your name: Hello, John! Why is the behavior different between the interactive environment and compiler, and how can I make the compiler do what I want? Thanks in advance for the help!
haskell
ghc
ghci
null
null
null
open
Haskell do syntax and I/O === I was playing around with a simple program in Haskell: hello :: String -> String hello s = "Hello, " ++ (trim s) ++ "!\n" trim :: String -> String trim [] = [] trim s = head $ words s main :: IO() main = do putStr "\nPlease enter your name: " name <- getLine hstring <- return $ hello name putStr hstring This is the output I am expecting: Please enter your name: John Doe Hello, John! This works as expected when I load the program into ghci. However when I compile the program using ghc -o hello.exe hello.hs it starts, waits for input, and then prints both prompts at the same time: John Doe Please enter your name: Hello, John! Why is the behavior different between the interactive environment and compiler, and how can I make the compiler do what I want? Thanks in advance for the help!
0
5,730,756
04/20/2011 13:02:32
855,788
09/08/2010 06:08:28
45
1
Limit the characters of td tag in html table.
I am using asp.net mvc for my application. I use html table to list all the Roles from Roles table. I have a html table which shows details of roles. The table has RoleDescription which can grow to many characters. I need to limit the characters shown in the td to 25 characters for the RoleDesscription in the tds of the html table. How can i achieve this?
jquery
asp.net-mvc
null
null
null
null
open
Limit the characters of td tag in html table. === I am using asp.net mvc for my application. I use html table to list all the Roles from Roles table. I have a html table which shows details of roles. The table has RoleDescription which can grow to many characters. I need to limit the characters shown in the td to 25 characters for the RoleDesscription in the tds of the html table. How can i achieve this?
0
11,573,725
07/20/2012 06:07:17
1,387,727
05/10/2012 16:53:45
47
2
jstl <c:if> tags not working in jsp file, getting error in tomcat 7
I have problem using jstl tag < c:if> in jsp file. basically I should make this as 2 questions although they are related. The first question: -------------- In my WEB-INF/lib, i put a jstl 1.2.jar In my jsp file, I put this <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>. In my jsp file, I use the < c:if> to do something. if the condition is true, it will shows some special message Basically the contents inside < c:if> is not working, because the message is not shown even the condition is true. But if I changed to use the older namespace, <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>. others are not changed, then the if tag is working, because the message inside the if tag is shown. My first question is why I have to use /jstl instead of /jsp/jstl in namespace. I am using jstl1.2.jar. so I should use the newer uri for 1.2. however, older uri works but not newer uir. this is my first question. The second question: ------------ I ignore the first question I have, and just use /jstl as my namespace. When I deploy my web app into tomcat 7.X, it shows exceptions as the following: > org.apache.jasper.JasperException: /login.jsp (line: 35, column: 10) > According to TLD or attribute directive in tag file, attribute test > does not accept any expressions > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42) If I change the namespace from <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%> to <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>, it can deploy in tomcat but the functionality inside of < c:if> tag is not useful. So I am very confused what is wrong with these. By the way, I am using servlet 2.5, jsp 2.0, jstl 1.2. Thanks Best Regards
java
jsp
tomcat
jstl
tomcat7
null
open
jstl <c:if> tags not working in jsp file, getting error in tomcat 7 === I have problem using jstl tag < c:if> in jsp file. basically I should make this as 2 questions although they are related. The first question: -------------- In my WEB-INF/lib, i put a jstl 1.2.jar In my jsp file, I put this <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>. In my jsp file, I use the < c:if> to do something. if the condition is true, it will shows some special message Basically the contents inside < c:if> is not working, because the message is not shown even the condition is true. But if I changed to use the older namespace, <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>. others are not changed, then the if tag is working, because the message inside the if tag is shown. My first question is why I have to use /jstl instead of /jsp/jstl in namespace. I am using jstl1.2.jar. so I should use the newer uri for 1.2. however, older uri works but not newer uir. this is my first question. The second question: ------------ I ignore the first question I have, and just use /jstl as my namespace. When I deploy my web app into tomcat 7.X, it shows exceptions as the following: > org.apache.jasper.JasperException: /login.jsp (line: 35, column: 10) > According to TLD or attribute directive in tag file, attribute test > does not accept any expressions > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42) If I change the namespace from <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%> to <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>, it can deploy in tomcat but the functionality inside of < c:if> tag is not useful. So I am very confused what is wrong with these. By the way, I am using servlet 2.5, jsp 2.0, jstl 1.2. Thanks Best Regards
0
11,335,378
07/04/2012 20:56:54
1,486,293
06/27/2012 16:15:20
4
0
Segmentatio fault when passing std::vector by reference
I prepared some code to show the problem: http://ideone.com/0mgtc I get seg fault for line 12, h.push_back (0); Without that line I don't get seg fault. Basically what I need is to create std::vector in one function and pass it by reference to another function that will modify it. Thanks
c++
null
null
null
null
07/05/2012 01:39:02
not a real question
Segmentatio fault when passing std::vector by reference === I prepared some code to show the problem: http://ideone.com/0mgtc I get seg fault for line 12, h.push_back (0); Without that line I don't get seg fault. Basically what I need is to create std::vector in one function and pass it by reference to another function that will modify it. Thanks
1
4,803,819
01/26/2011 11:05:20
397,524
05/24/2010 12:13:39
639
18
How to solve this puzzle using C#?
There are ten questions on a piece of paper. Your task is to fill in each blank with a non-zero integer less than 10 such that there is no contradiction. You can reuse any digit. The question is as follows: - Digit 0 appears ____ times on this paper. - Digit 1 appears ____ times on this paper. - Digit 2 appears ____ times on this paper. - Digit 3 appears ____ times on this paper. - Digit 4 appears ____ times on this paper. - Digit 5 appears ____ times on this paper. - Digit 6 appears ____ times on this paper. - Digit 7 appears ____ times on this paper. - Digit 8 appears ____ times on this paper. - Digit 9 appears ____ times on this paper. How to solve it?
c#
null
null
null
null
01/26/2011 11:46:45
off topic
How to solve this puzzle using C#? === There are ten questions on a piece of paper. Your task is to fill in each blank with a non-zero integer less than 10 such that there is no contradiction. You can reuse any digit. The question is as follows: - Digit 0 appears ____ times on this paper. - Digit 1 appears ____ times on this paper. - Digit 2 appears ____ times on this paper. - Digit 3 appears ____ times on this paper. - Digit 4 appears ____ times on this paper. - Digit 5 appears ____ times on this paper. - Digit 6 appears ____ times on this paper. - Digit 7 appears ____ times on this paper. - Digit 8 appears ____ times on this paper. - Digit 9 appears ____ times on this paper. How to solve it?
2
4,558,629
12/29/2010 23:01:26
128,967
06/25/2009 17:20:14
407
15
mod_rewrite not behaving nicely
I have a simple project in which I'm attempting to do some rewriting of URLs to point to a couple PHP scripts. My current path on the server is /project/engine, and I've dropped an .htaccess file in that directory to perform my rewriting: RewriteEngine On RewriteRule ^(get|post)/(\w+)$ $1.$2.php It's a pretty simple rewrite. I'm basically looking to rewrite a URL like this: `/project/engine/get/class` to this: `/project/engine/get.class.php`. Can anyone spot the error here? If I try accessing the URL in a web browser, I get a 404 and the following error in Apache error log: [Wed Dec 29 14:57:17 2010] [error] [client 127.0.0.1] Negotiation: discovered file(s) matching request: /var/www/project/engine/get (None could be negotiated). My apache configuration file looks like the following: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost>
apache
mod-rewrite
null
null
null
null
open
mod_rewrite not behaving nicely === I have a simple project in which I'm attempting to do some rewriting of URLs to point to a couple PHP scripts. My current path on the server is /project/engine, and I've dropped an .htaccess file in that directory to perform my rewriting: RewriteEngine On RewriteRule ^(get|post)/(\w+)$ $1.$2.php It's a pretty simple rewrite. I'm basically looking to rewrite a URL like this: `/project/engine/get/class` to this: `/project/engine/get.class.php`. Can anyone spot the error here? If I try accessing the URL in a web browser, I get a 404 and the following error in Apache error log: [Wed Dec 29 14:57:17 2010] [error] [client 127.0.0.1] Negotiation: discovered file(s) matching request: /var/www/project/engine/get (None could be negotiated). My apache configuration file looks like the following: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost>
0
9,084,354
01/31/2012 17:46:23
1,066,432
11/26/2011 01:23:28
87
3
how to center things with css
i am trying to center these buttons, but most stuff online doesnot work. <center> does not work and text-align:center does not work. the buttons should show up in the exact same way, except centered in the middle. if you try this, it will not work. there must be a problem in it, i guess. thx <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>website</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { }); </script> <style type="text/css"> .button0 { position:fixed; left:88px; top:58px; font-family:MS Shell Dlg 2; font-size:8px; font-weight:NORMAL; } .button1 { position:fixed; left:6px; top:191px; font-family:MS Shell Dlg 2; font-size:8px; font-weight:NORMAL; text-align: center; margin-left:auto; margin-right:auto; } .button2 { position:fixed; left:358px; top:216px; font-family:MS Shell Dlg 2; font-size:8px; font-weight:NORMAL; } </style> <body> <center> <div class="button0"><input type="button" style="width: 268px;height: 145px;" value="Button"/></div> <div class="button1"><input type="button" style="width: 40px;height: 88px;" value="Button"/></div> <div class="button2"><input type="button" style="width: 76px;height: 73px;" value="Button"/></div> </center> </body> </html>
html
css
null
null
null
null
open
how to center things with css === i am trying to center these buttons, but most stuff online doesnot work. <center> does not work and text-align:center does not work. the buttons should show up in the exact same way, except centered in the middle. if you try this, it will not work. there must be a problem in it, i guess. thx <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>website</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { }); </script> <style type="text/css"> .button0 { position:fixed; left:88px; top:58px; font-family:MS Shell Dlg 2; font-size:8px; font-weight:NORMAL; } .button1 { position:fixed; left:6px; top:191px; font-family:MS Shell Dlg 2; font-size:8px; font-weight:NORMAL; text-align: center; margin-left:auto; margin-right:auto; } .button2 { position:fixed; left:358px; top:216px; font-family:MS Shell Dlg 2; font-size:8px; font-weight:NORMAL; } </style> <body> <center> <div class="button0"><input type="button" style="width: 268px;height: 145px;" value="Button"/></div> <div class="button1"><input type="button" style="width: 40px;height: 88px;" value="Button"/></div> <div class="button2"><input type="button" style="width: 76px;height: 73px;" value="Button"/></div> </center> </body> </html>
0
9,652,779
03/11/2012 05:48:28
1,238,193
02/28/2012 15:19:18
26
0
Differences between Java and Delphi .NET
I was forced to learn Delphi .NET language even though it is kinda dead now. But I only has some experience on Java so I was wondering what is the difference between them actually? I tried searching it on the Internet but Delphi .NET (Not normal Delphi) results were kinda rare. Therefore I was looking for help here. For instance, is both language object oriented or interpreted? A more detailed explanation on their difference (on important aspects) would be helpful.
java
delphi
difference
delphi.net
null
03/11/2012 08:45:37
not a real question
Differences between Java and Delphi .NET === I was forced to learn Delphi .NET language even though it is kinda dead now. But I only has some experience on Java so I was wondering what is the difference between them actually? I tried searching it on the Internet but Delphi .NET (Not normal Delphi) results were kinda rare. Therefore I was looking for help here. For instance, is both language object oriented or interpreted? A more detailed explanation on their difference (on important aspects) would be helpful.
1
11,729,897
07/30/2012 21:27:59
1,483,598
06/26/2012 18:00:17
1
0
*** caught segfault *** address (nil), cause 'memory not mapped' Traceback:
I've an R script which works with smaller sample files, but if I give a large file it ends up giving this error. The other functions work fine, it is only the plots that are using QRQC that are causing the error. Can someone help me fix this? *** caught segfault *** address (nil), cause 'memory not mapped' Traceback: 1: .Call("summarize_file", filename, as.integer(max.length), as.integer(qtype), as.logical(hash), as.numeric(hash.prop), as.logical(kmer), as.integer(k), as.logical(verbose)) 2: readSeqFile(fn, quality = qual, hash = FALSE, max.length = maxlength) 3: doplot_qrqc(y[i, 1], encoding, 200, 400)
r
null
null
null
null
07/31/2012 08:03:32
not a real question
*** caught segfault *** address (nil), cause 'memory not mapped' Traceback: === I've an R script which works with smaller sample files, but if I give a large file it ends up giving this error. The other functions work fine, it is only the plots that are using QRQC that are causing the error. Can someone help me fix this? *** caught segfault *** address (nil), cause 'memory not mapped' Traceback: 1: .Call("summarize_file", filename, as.integer(max.length), as.integer(qtype), as.logical(hash), as.numeric(hash.prop), as.logical(kmer), as.integer(k), as.logical(verbose)) 2: readSeqFile(fn, quality = qual, hash = FALSE, max.length = maxlength) 3: doplot_qrqc(y[i, 1], encoding, 200, 400)
1
6,962,062
08/05/2011 20:11:34
861,923
07/25/2011 15:55:48
37
1
Do any of the PSD to HTML sites work?
Hi I am skeptical about uploading my .PSD files to one of these websites that claim to convert .PSD to .HTML for you easily. How do these work? Do they generate ALL of the necessary CSS?
html
psd
null
null
null
08/05/2011 22:06:12
off topic
Do any of the PSD to HTML sites work? === Hi I am skeptical about uploading my .PSD files to one of these websites that claim to convert .PSD to .HTML for you easily. How do these work? Do they generate ALL of the necessary CSS?
2
9,129,318
02/03/2012 13:22:35
504,612
11/11/2010 14:22:11
533
14
Drupal link append re-direct ulr
I am using the following code to create a link to the create user page: > l('create new user', 'admin/people/create'); It works perfectly but **is there a way to include a destination with the function so when the submit button is clicked it returns my user to the page of origin?** I am attempting to accomplish it with the following code: > $link = l('create new user', > 'admin/people/create&destination=group/node/5/admin/people/add-user'); but when I click my link get sent to **admin/people** which means the first part of the process has already failed
redirect
module
hyperlink
drupal-7
null
null
open
Drupal link append re-direct ulr === I am using the following code to create a link to the create user page: > l('create new user', 'admin/people/create'); It works perfectly but **is there a way to include a destination with the function so when the submit button is clicked it returns my user to the page of origin?** I am attempting to accomplish it with the following code: > $link = l('create new user', > 'admin/people/create&destination=group/node/5/admin/people/add-user'); but when I click my link get sent to **admin/people** which means the first part of the process has already failed
0
11,570,198
07/19/2012 22:23:00
624,630
02/19/2011 19:01:24
188
12
Error with struktex in MikTex making a Case
i'm writting a document with tex using Live Tex (Ubuntu), i already installed struktex, it works fine with "if" and "assing", but when i try to make a Case statement throw an error. This is the code: \documentclass[a4paper,11pt,spanish]{book} \usepackage{babel} \usepackage[latin1]{inputenc} \usepackage[margin=0.75in]{geometry} \usepackage{courier} \usepackage{xcolor} \usepackage{listings} \usepackage{struktex} \begin{document} \begin{struktogramm}(95,30) \case[10]{4}{3}{Signum(x)}{-1} \assign{\(a \gets - \frac{1}{x}\)} \switch{0} \assign{Output: Division by 0} \switch{1} \assign{\(a \gets \frac{1}{x}\)} \caseend \end{struktogramm} \end{document} And the errors: ./TestCase.tex:23:Argument of \language@active@arg~ has an extra } \switch{0} ./TestCase.tex:23:Paragraph ended before \language@active@arg~ was complete \switch{0} ./TestCase.tex:25:Argument of \language@active@arg~ has an extra } \switch{1} ./TestCase.tex:25:Paragraph ended before \language@active@arg~ was complete \switch{1} Any help, will be good. Thanks.
latex
document
tex
null
null
07/20/2012 15:45:10
off topic
Error with struktex in MikTex making a Case === i'm writting a document with tex using Live Tex (Ubuntu), i already installed struktex, it works fine with "if" and "assing", but when i try to make a Case statement throw an error. This is the code: \documentclass[a4paper,11pt,spanish]{book} \usepackage{babel} \usepackage[latin1]{inputenc} \usepackage[margin=0.75in]{geometry} \usepackage{courier} \usepackage{xcolor} \usepackage{listings} \usepackage{struktex} \begin{document} \begin{struktogramm}(95,30) \case[10]{4}{3}{Signum(x)}{-1} \assign{\(a \gets - \frac{1}{x}\)} \switch{0} \assign{Output: Division by 0} \switch{1} \assign{\(a \gets \frac{1}{x}\)} \caseend \end{struktogramm} \end{document} And the errors: ./TestCase.tex:23:Argument of \language@active@arg~ has an extra } \switch{0} ./TestCase.tex:23:Paragraph ended before \language@active@arg~ was complete \switch{0} ./TestCase.tex:25:Argument of \language@active@arg~ has an extra } \switch{1} ./TestCase.tex:25:Paragraph ended before \language@active@arg~ was complete \switch{1} Any help, will be good. Thanks.
2
10,421,746
05/02/2012 21:06:39
736,748
05/03/2011 18:53:33
73
4
Ajax load content by class (or li)
I'm trying to write an ajax slider of sorts. Of course being new to this I find myself lost in the sea of unhelpful google-ing. What's supposed to happen is that when you click next (or previous) I want to load in the next (or previous) list item and remove the original item from the DOM. As my code stands now I can get the "starting" list item to show up but then nothing happens when I click next (or previous). Also the way I have it set up now is that it loads all the content in the containing div at the same time instead of fetching the specific list item which I don't/haven't figured out how to do which is where you come in. Important Main Page HTML <div id="navButtons"> <div style="float:left" id="prevBtn">PREV</div> <div style="float:right" id="nextBtn">NEXT</div> </div> <div id="contentBox" style="clear:both;margin:0 auto"> </div> External HTML (to be loaded via ajax) <div id="contentBox" style="clear:both;margin:0 auto"> <ul> <li class="loadContent">CONTENT 1</li> <li class="loadContent">CONTENT 2</li> <li class="loadContent">CONTENT 3</li> <li id="start" class="loadContent">CONTENT 4</li> <li class="loadContent">CONTENT 5</li> <li class="loadContent">CONTENT 6</li> <li class="loadContent">CONTENT 7</li> <li class="loadContent">CONTENT 8</li> <li class="loadContent">CONTENT 9</li> </ul> </div> CSS #prevBtn, #nextBtn{cursor:pointer} .loadContent { width:100px; height:40px; ; float:left; border:2px blue solid; padding:2px;display:none } ul, li{list-style-type:none} #start{display:block} jQuery (which I placed right after #contentBox) var $curr = $("#start"); $("#contentBox").load("testContent.aspx #contentBox"); $("#prevBtn").click(function () { $curr = $curr.prev('li'); $('li').css("display", "none"); $curr.css("display", "block"); }); $('#nextBtn').click(function () { $curr = $curr.next('li'); $('li').css("display", "none"); $curr.css("display", "block"); }); [JSFiddle if it's helpful...][1] **Bonus Question**: How can I get the old content to slide left off the screen and the new content to slide left onto the "stage"? [1]: http://jsfiddle.net/comatoseduck/bjVnr/
jquery
ajax
null
null
null
null
open
Ajax load content by class (or li) === I'm trying to write an ajax slider of sorts. Of course being new to this I find myself lost in the sea of unhelpful google-ing. What's supposed to happen is that when you click next (or previous) I want to load in the next (or previous) list item and remove the original item from the DOM. As my code stands now I can get the "starting" list item to show up but then nothing happens when I click next (or previous). Also the way I have it set up now is that it loads all the content in the containing div at the same time instead of fetching the specific list item which I don't/haven't figured out how to do which is where you come in. Important Main Page HTML <div id="navButtons"> <div style="float:left" id="prevBtn">PREV</div> <div style="float:right" id="nextBtn">NEXT</div> </div> <div id="contentBox" style="clear:both;margin:0 auto"> </div> External HTML (to be loaded via ajax) <div id="contentBox" style="clear:both;margin:0 auto"> <ul> <li class="loadContent">CONTENT 1</li> <li class="loadContent">CONTENT 2</li> <li class="loadContent">CONTENT 3</li> <li id="start" class="loadContent">CONTENT 4</li> <li class="loadContent">CONTENT 5</li> <li class="loadContent">CONTENT 6</li> <li class="loadContent">CONTENT 7</li> <li class="loadContent">CONTENT 8</li> <li class="loadContent">CONTENT 9</li> </ul> </div> CSS #prevBtn, #nextBtn{cursor:pointer} .loadContent { width:100px; height:40px; ; float:left; border:2px blue solid; padding:2px;display:none } ul, li{list-style-type:none} #start{display:block} jQuery (which I placed right after #contentBox) var $curr = $("#start"); $("#contentBox").load("testContent.aspx #contentBox"); $("#prevBtn").click(function () { $curr = $curr.prev('li'); $('li').css("display", "none"); $curr.css("display", "block"); }); $('#nextBtn').click(function () { $curr = $curr.next('li'); $('li').css("display", "none"); $curr.css("display", "block"); }); [JSFiddle if it's helpful...][1] **Bonus Question**: How can I get the old content to slide left off the screen and the new content to slide left onto the "stage"? [1]: http://jsfiddle.net/comatoseduck/bjVnr/
0
7,180,348
08/24/2011 18:22:39
617,696
02/15/2011 11:55:11
1,029
33
mcts mvc question
You are developing an ASP.NET MVC 2 Web application. The application contains a controller named `HomeController`, which has an action named Index. The application also contains a separate area named Blog. A view within the Blog area must contain an `ActionLink` that will link to the Index action of the `HomeController`. You need to ensure that the `ActionLink` in the Blog area links to the Index action of the `HomeController`. Which `ActionLink` should you use? A. `Html.ActionLink("Home", "Index", "Home")` B. `Html.ActionLink("Home", "Index", "Home", new {area = ""}, null)` C. `Html.ActionLink("Home", "Index", "Home", new {area = "Blog"}, null)` D. `Html.ActionLink("Home", "Index", "Home", new {area = "Home"}, null)`
asp.net-mvc
null
null
null
null
08/24/2011 23:03:42
too localized
mcts mvc question === You are developing an ASP.NET MVC 2 Web application. The application contains a controller named `HomeController`, which has an action named Index. The application also contains a separate area named Blog. A view within the Blog area must contain an `ActionLink` that will link to the Index action of the `HomeController`. You need to ensure that the `ActionLink` in the Blog area links to the Index action of the `HomeController`. Which `ActionLink` should you use? A. `Html.ActionLink("Home", "Index", "Home")` B. `Html.ActionLink("Home", "Index", "Home", new {area = ""}, null)` C. `Html.ActionLink("Home", "Index", "Home", new {area = "Blog"}, null)` D. `Html.ActionLink("Home", "Index", "Home", new {area = "Home"}, null)`
3
892,713
05/21/2009 12:35:57
2,147
08/20/2008 15:14:13
13,491
490
How is working in the healthcare industry?
I'm considering a job that will have me working in the healthcare industry working on an information system for insurance companies. Just out of curiosity, what is working in the healthcare industry like for a programmer? Any particular quirks? Are there any upsides or downsides you don't have in other programming fields?
healthcare
career-development
null
null
null
05/21/2009 16:21:33
off topic
How is working in the healthcare industry? === I'm considering a job that will have me working in the healthcare industry working on an information system for insurance companies. Just out of curiosity, what is working in the healthcare industry like for a programmer? Any particular quirks? Are there any upsides or downsides you don't have in other programming fields?
2
3,082,527
06/21/2010 06:30:18
92,462
04/18/2009 08:21:08
665
50
Automating table normalization
I have a table with this structure (simplified): artID: 1 artName: TNT ArtBrand: ACME ... And I want to normalize it making a separate table for the brand (it will have additional data about every brand) So I want to end up with this article table: artID: 1 artName: TNT brandID: 1 ... brand table brandID: 1 brandName: ACME brandInfo: xyz .... This table have way too many brands to do this manually. Any easy way to automate this? I'm using MySQL
mysql
database
automation
normalization
null
null
open
Automating table normalization === I have a table with this structure (simplified): artID: 1 artName: TNT ArtBrand: ACME ... And I want to normalize it making a separate table for the brand (it will have additional data about every brand) So I want to end up with this article table: artID: 1 artName: TNT brandID: 1 ... brand table brandID: 1 brandName: ACME brandInfo: xyz .... This table have way too many brands to do this manually. Any easy way to automate this? I'm using MySQL
0
4,169,952
11/12/2010 23:28:43
505,196
11/11/2010 23:54:46
1
0
Learning .NET; sponsoring a mindset I don't agree with?
I've been programming a lot in standard C for about a two years now. I do not regard myself as an experienced programmer but I can work my way around the basic stuff. Since earlier this year I also started programming in C# to try and expand my programming knowledge but I came to a dilemma. I plan to do a lot of programming through my life, and object oriented languages definitely have major benefits so its critical that I choose one to begin. Thing is, although I regard C# as very easy to develop, I feel as though as I am sponsoring a mindset I don't agree with. In terms of programming languages, frameworks or libraries, do you ever feel like you should go with something more free and portable? I strongly believe in open source, free distributing of content and a basically an internet where freedom exists so I am really curious about what your opinions are on the matter. Basically, should I learn something "more open" instead?
.net
open-source
ethics
null
null
11/12/2010 23:41:17
off topic
Learning .NET; sponsoring a mindset I don't agree with? === I've been programming a lot in standard C for about a two years now. I do not regard myself as an experienced programmer but I can work my way around the basic stuff. Since earlier this year I also started programming in C# to try and expand my programming knowledge but I came to a dilemma. I plan to do a lot of programming through my life, and object oriented languages definitely have major benefits so its critical that I choose one to begin. Thing is, although I regard C# as very easy to develop, I feel as though as I am sponsoring a mindset I don't agree with. In terms of programming languages, frameworks or libraries, do you ever feel like you should go with something more free and portable? I strongly believe in open source, free distributing of content and a basically an internet where freedom exists so I am really curious about what your opinions are on the matter. Basically, should I learn something "more open" instead?
2
10,385,288
04/30/2012 14:20:59
849,001
07/17/2011 19:47:10
6
0
JSON and PHP for an API
I'm looking to create an api for communication between two php websites. All it needs is for the second website to send a flag back to the first if a user is present on both. I've been looking at using JSON to send the information. Such as creating a php array with values then using json_encode and echoing that value. Some code for api.php: <?php if(isset($_GET['method']) && !empty($_GET['method'])){ if(function_exists($_GET['method'])){ $_GET['method'](); } } function getAllUsers(){ $arr = array(); $arr[] = "foo"; $arr[] = "bar"; $arr[] = "baz"; $arr = json_encode($arr); echo $arr; } ?> Some code to call it from the other website: <?php $jsonurl = "http://www.example.com/api.php"; $json = file_get_contents($jsonurl,0,null,null); $json_output = json_decode($json); echo $json_output; ?> Any examples or hints would be very useful. The echo on the code ive posted won't work. Im unsure how to handle the JSON data. Cheers
php
json
null
null
null
04/30/2012 14:26:06
not a real question
JSON and PHP for an API === I'm looking to create an api for communication between two php websites. All it needs is for the second website to send a flag back to the first if a user is present on both. I've been looking at using JSON to send the information. Such as creating a php array with values then using json_encode and echoing that value. Some code for api.php: <?php if(isset($_GET['method']) && !empty($_GET['method'])){ if(function_exists($_GET['method'])){ $_GET['method'](); } } function getAllUsers(){ $arr = array(); $arr[] = "foo"; $arr[] = "bar"; $arr[] = "baz"; $arr = json_encode($arr); echo $arr; } ?> Some code to call it from the other website: <?php $jsonurl = "http://www.example.com/api.php"; $json = file_get_contents($jsonurl,0,null,null); $json_output = json_decode($json); echo $json_output; ?> Any examples or hints would be very useful. The echo on the code ive posted won't work. Im unsure how to handle the JSON data. Cheers
1
11,532,468
07/17/2012 23:50:35
770,358
05/25/2011 21:22:55
185
4
Comodo HackerGuardian
Can anyone please explain to me what is HackerGuardian? Why do I need it? Someone has done a site a long time ago, now the customer came to me saying they received an email from Comodo Group to say their HacketrGuardian PCI Scanning account will expire in 15 days. I checked the customer's site, it has one section to enter your credit card details which is protected by Instant SSL by Comodo. I logged in hackerguardian.com, it says the hackerguardian account has expired 6 months ago and there is no report/history. I did some research but still am confused by this hackerguardian, can someone please help me to understand/learn this further. 1) What is hackerguardian? 2) What kind of website needs it? 3) How to renew it? 4) How to implement it to the site? Thanks very much.
security
web-security
credit-card
hack
null
07/20/2012 03:21:27
off topic
Comodo HackerGuardian === Can anyone please explain to me what is HackerGuardian? Why do I need it? Someone has done a site a long time ago, now the customer came to me saying they received an email from Comodo Group to say their HacketrGuardian PCI Scanning account will expire in 15 days. I checked the customer's site, it has one section to enter your credit card details which is protected by Instant SSL by Comodo. I logged in hackerguardian.com, it says the hackerguardian account has expired 6 months ago and there is no report/history. I did some research but still am confused by this hackerguardian, can someone please help me to understand/learn this further. 1) What is hackerguardian? 2) What kind of website needs it? 3) How to renew it? 4) How to implement it to the site? Thanks very much.
2
11,114,550
06/20/2012 07:12:05
1,468,311
06/20/2012 06:30:37
1
0
How to get better at solving Dynamic programming problems
I recently came across this question: "You are given a boolean expression consisting of a string of the symbols 'true', 'false', 'and', 'or', and 'xor'. Count the number of ways to parenthesize the expression such that it will evaluate to true. For example, there is only 1 way to parenthesize 'true and false xor true' such that it evaluates to true." I knew it is a dynamic programming problem so i tried to come up with a solution on my own which is as follows. Suppose we have a expression as A.B.C.....D where '.' represents any of the operations and, or, xor and the capital letters represent true or false. Lets say the number of ways for this expression of K to produce a true is N. when a new boolean value E is added to this expression there are 2 ways to parenthesize this new expression 1.((A.B.C.....D).E) ie. with all possible parenthesizations of A.B.C.....D we add E at the end. 2.(A.B.C.(D.E)) ie. evaluate D.E first and then find the number of ways this expression of size K can produce true. suppose T[K] is the number of ways the expression with size K produces true then T[k]=val1+val2+val3 where val1,val2,val3 are calculated as follows. 1)when E is grouped with D. i)It does not change the value of D ii)it inverses the value of D in the first case val1=T[K]. In the second case re-evaluate dp[K] with value of D reversed and that is val1. 2)when E is grouped with the whole expression. i) if true.E = true then val2 = N ii) if true.E = false then val2 = 0 iii) if false.E=true then val3=( 2^(K-2) - N ) = M ie. number of ways the expression with size K produces a false [ 2^(K-2) is the number of ways to parenthesize an expression of size K ]. iv) if false.E=false then val3 = 0 This is the basic idea i had in mind but when i checked for its solution http://people.csail.mit.edu/bdean/6.046/dp/dp_9.swf the approach there was completely different. Can someone tell me what am I doing wrong and how can i get better at solving DP so that I can come up with solutions like the one given above myself. Thanks in advance.
dynamic-programming
null
null
null
null
06/20/2012 11:32:08
off topic
How to get better at solving Dynamic programming problems === I recently came across this question: "You are given a boolean expression consisting of a string of the symbols 'true', 'false', 'and', 'or', and 'xor'. Count the number of ways to parenthesize the expression such that it will evaluate to true. For example, there is only 1 way to parenthesize 'true and false xor true' such that it evaluates to true." I knew it is a dynamic programming problem so i tried to come up with a solution on my own which is as follows. Suppose we have a expression as A.B.C.....D where '.' represents any of the operations and, or, xor and the capital letters represent true or false. Lets say the number of ways for this expression of K to produce a true is N. when a new boolean value E is added to this expression there are 2 ways to parenthesize this new expression 1.((A.B.C.....D).E) ie. with all possible parenthesizations of A.B.C.....D we add E at the end. 2.(A.B.C.(D.E)) ie. evaluate D.E first and then find the number of ways this expression of size K can produce true. suppose T[K] is the number of ways the expression with size K produces true then T[k]=val1+val2+val3 where val1,val2,val3 are calculated as follows. 1)when E is grouped with D. i)It does not change the value of D ii)it inverses the value of D in the first case val1=T[K]. In the second case re-evaluate dp[K] with value of D reversed and that is val1. 2)when E is grouped with the whole expression. i) if true.E = true then val2 = N ii) if true.E = false then val2 = 0 iii) if false.E=true then val3=( 2^(K-2) - N ) = M ie. number of ways the expression with size K produces a false [ 2^(K-2) is the number of ways to parenthesize an expression of size K ]. iv) if false.E=false then val3 = 0 This is the basic idea i had in mind but when i checked for its solution http://people.csail.mit.edu/bdean/6.046/dp/dp_9.swf the approach there was completely different. Can someone tell me what am I doing wrong and how can i get better at solving DP so that I can come up with solutions like the one given above myself. Thanks in advance.
2
4,220,884
11/18/2010 23:49:14
444,035
09/10/2010 05:34:05
11
0
How do you go about hiring programmers online?
How do you hire part time programmers from home? I want to develop an android application with some other programmers but I don't know how to it would work to hire them online. Here are some concerns - How do you pay them. Is the standard payment an online money transfer or something? - How do you sign a contract/agreement if you live far apart? - Are there things I should look out for? Note: I would do some sort of interview but since I will be using android for the first time I would also like some tips on evaluating a programmer.
android
howto
payment
null
null
11/18/2010 23:52:36
off topic
How do you go about hiring programmers online? === How do you hire part time programmers from home? I want to develop an android application with some other programmers but I don't know how to it would work to hire them online. Here are some concerns - How do you pay them. Is the standard payment an online money transfer or something? - How do you sign a contract/agreement if you live far apart? - Are there things I should look out for? Note: I would do some sort of interview but since I will be using android for the first time I would also like some tips on evaluating a programmer.
2
6,041,037
05/18/2011 07:03:43
493,423
05/27/2010 10:18:49
266
42
Android market application device's country issue
My application is released for US and brazil, I use my gmail account for downloading which is india based. I have release my application on android market, **i can see the application through browser, but not from mobile.** When i try to download an application from browser, it gives me **"This item cannot be installed on your device's country android"** Does it mean, application released for specific country, only those can see app and download? others cannot see application on android market?
android
android-market
null
null
null
11/28/2011 16:37:52
off topic
Android market application device's country issue === My application is released for US and brazil, I use my gmail account for downloading which is india based. I have release my application on android market, **i can see the application through browser, but not from mobile.** When i try to download an application from browser, it gives me **"This item cannot be installed on your device's country android"** Does it mean, application released for specific country, only those can see app and download? others cannot see application on android market?
2
2,174,863
02/01/2010 05:37:47
263,260
02/01/2010 05:37:47
1
0
Insert array in ONE field in mysql , php
I want to insert an array in ONE field in mysql database using PHP .. this is work fine : HTML : anotherField :<input type="text" name="anotherField" /> fax :<input type="text" name="f[]" /> email :<input type="text" name="f[]" /> phone :<input type="text" name="f[]" /> PHP (I use CodeIgniter frame) : <?php function addCustomRow($tableName) { $arr = $this->input->post('f'); $field = implode("|", $arr); $data = array( 'anotherField' => $this->input->post('anotherField'), 'field' => $field ); $this->db->insert($tableName, $data); } ?> and I get data in mysql like this fax|email|phone **BUT ..** My question is .. I want many arrays in the same field .. Like this : fax|email|phont :br: fax|email|phone :br: fax|email|phone .. I tried some thing like this : Html : Frist array : fax :<input type="text" class="inp" name="f[0][0]" /> email :<input type="text" class="inp" name="f[0][1]" /> phone :<input type="text" class="inp" name="f[0][2]" /> Second array : fax :<input type="text" class="inp" name="f[1][0]" /> email :<input type="text" class="inp" name="f[1][1]" /> phone :<input type="text" class="inp" name="f[1][2]" /> PHP : <?php function addCustomRow($tableName) { $arr = $this->input->post('f[]'); $field = implode(":br:", $arr); $data = array( 'anotherField' => $this->input->post('anotherField'), 'field' => $field ); $this->db->insert($tableName, $data); } ?> but it says Wrong [ Severity: Notice Message: Array to string conversion ] and I get data in mysql like this array :br: array any help ? thanks in advance ..
arrays
php
null
null
null
null
open
Insert array in ONE field in mysql , php === I want to insert an array in ONE field in mysql database using PHP .. this is work fine : HTML : anotherField :<input type="text" name="anotherField" /> fax :<input type="text" name="f[]" /> email :<input type="text" name="f[]" /> phone :<input type="text" name="f[]" /> PHP (I use CodeIgniter frame) : <?php function addCustomRow($tableName) { $arr = $this->input->post('f'); $field = implode("|", $arr); $data = array( 'anotherField' => $this->input->post('anotherField'), 'field' => $field ); $this->db->insert($tableName, $data); } ?> and I get data in mysql like this fax|email|phone **BUT ..** My question is .. I want many arrays in the same field .. Like this : fax|email|phont :br: fax|email|phone :br: fax|email|phone .. I tried some thing like this : Html : Frist array : fax :<input type="text" class="inp" name="f[0][0]" /> email :<input type="text" class="inp" name="f[0][1]" /> phone :<input type="text" class="inp" name="f[0][2]" /> Second array : fax :<input type="text" class="inp" name="f[1][0]" /> email :<input type="text" class="inp" name="f[1][1]" /> phone :<input type="text" class="inp" name="f[1][2]" /> PHP : <?php function addCustomRow($tableName) { $arr = $this->input->post('f[]'); $field = implode(":br:", $arr); $data = array( 'anotherField' => $this->input->post('anotherField'), 'field' => $field ); $this->db->insert($tableName, $data); } ?> but it says Wrong [ Severity: Notice Message: Array to string conversion ] and I get data in mysql like this array :br: array any help ? thanks in advance ..
0
11,290,121
07/02/2012 08:26:39
1,346,227
04/20/2012 09:58:43
3
0
Fail to ping github.com with proxy
Thanks for reading my problem and it seems simple but really troubling me. Here is it: I set a proxy for my git but I can not ping github.com by using it in my Git Bash. (error: time out) In the meantime, I can approach github.com by chrome which is also using the same proxy. It is rediculous. Any comment will be appreciated. Thanks again!
github
ping
null
null
null
07/02/2012 19:48:49
off topic
Fail to ping github.com with proxy === Thanks for reading my problem and it seems simple but really troubling me. Here is it: I set a proxy for my git but I can not ping github.com by using it in my Git Bash. (error: time out) In the meantime, I can approach github.com by chrome which is also using the same proxy. It is rediculous. Any comment will be appreciated. Thanks again!
2
5,638,665
04/12/2011 16:36:22
681,266
03/29/2011 02:46:13
21
2
Change your From Email in Gmail
I recieve Forwarded emails from an email like this: [email protected] to my Gmail account, when I respond to these emails I want it to look like it came from [email protected] instead of my Gmail account. Is this possible?
gmail
null
null
null
null
04/12/2011 16:41:43
off topic
Change your From Email in Gmail === I recieve Forwarded emails from an email like this: [email protected] to my Gmail account, when I respond to these emails I want it to look like it came from [email protected] instead of my Gmail account. Is this possible?
2
9,749,499
03/17/2012 11:08:07
310,291
03/02/2010 15:22:39
3,712
21
Include a javascript library for calculation
I want to do something very simple in javascript. I have a main.js file which needs to call a calculation method in math.js. If I include in index.html these two files with script tag, first math.js and then main.js, am I garanteed that math.js will have finished loaded before I can use it in main.js ? If not, would I need to do some overkilled hack like I read here http://stackoverflow.com/questions/950087/include-javascript-file-inside-javascript-file or even worse because I can't even see in that link how dependency is actually taken into account.
javascript
javascript-library
null
null
null
null
open
Include a javascript library for calculation === I want to do something very simple in javascript. I have a main.js file which needs to call a calculation method in math.js. If I include in index.html these two files with script tag, first math.js and then main.js, am I garanteed that math.js will have finished loaded before I can use it in main.js ? If not, would I need to do some overkilled hack like I read here http://stackoverflow.com/questions/950087/include-javascript-file-inside-javascript-file or even worse because I can't even see in that link how dependency is actually taken into account.
0
6,766,236
07/20/2011 17:53:37
596,979
01/31/2011 14:34:08
59
1
What version of BlackBerry OS can I target with WebWorks SDK 2.0
It looks like I can't install WebWorks SDK 2.1 in Eclipse without having to build everything manually...screw that. I need to build my app for BB SDK 6, but I keep getting build errors on 6.0 API calls. I've set my default JRE to BB 6, but I seem to be getting facet errors. The WebWorks Static Web Module doesn't want to play nice with everything else. I'm I hosed on developing for BB6 or am I doing something wrong?! Thanks in advance! P.S. I really hope things get cleaned up when RIM moves to QNX as their operating system. BB is a nightmare to develop on compared to WinMO and that's SAD!
blackberry-eclipse-plugin
blackberry-webworks
null
null
null
null
open
What version of BlackBerry OS can I target with WebWorks SDK 2.0 === It looks like I can't install WebWorks SDK 2.1 in Eclipse without having to build everything manually...screw that. I need to build my app for BB SDK 6, but I keep getting build errors on 6.0 API calls. I've set my default JRE to BB 6, but I seem to be getting facet errors. The WebWorks Static Web Module doesn't want to play nice with everything else. I'm I hosed on developing for BB6 or am I doing something wrong?! Thanks in advance! P.S. I really hope things get cleaned up when RIM moves to QNX as their operating system. BB is a nightmare to develop on compared to WinMO and that's SAD!
0
7,006,553
08/10/2011 06:07:27
859,274
07/23/2011 12:08:05
1
0
How to avoid $wpdb in wordpress theme files
I am getting response in wordpress themes file for the $wpdp. But i want response is empty for theme files alone. How to set this.
wordpress
null
null
null
null
08/10/2011 13:35:22
not a real question
How to avoid $wpdb in wordpress theme files === I am getting response in wordpress themes file for the $wpdp. But i want response is empty for theme files alone. How to set this.
1
9,100,209
02/01/2012 17:17:42
1,118,013
12/27/2011 17:07:57
15
0
How can I get Appearance properties vlaues of my custom web part in sharepoint 2010
I am developing a web part, I created a custome properties and controls. but I need to read the width value in the Appearance group of the web part. how I can access to these values in codebehind ?
c#
sharepoint
webparts
null
null
null
open
How can I get Appearance properties vlaues of my custom web part in sharepoint 2010 === I am developing a web part, I created a custome properties and controls. but I need to read the width value in the Appearance group of the web part. how I can access to these values in codebehind ?
0
8,888,892
01/17/2012 02:15:52
433,924
08/28/2010 20:35:35
1
0
Where can I find the command history for sqlite3?
I lost a couple of changes I made to a database and I'm hoping I can recreate the changes by looking at the command history. I can't seem to find where the command history is stored.
sqlite
null
null
null
null
01/18/2012 03:07:20
off topic
Where can I find the command history for sqlite3? === I lost a couple of changes I made to a database and I'm hoping I can recreate the changes by looking at the command history. I can't seem to find where the command history is stored.
2
10,263,675
04/21/2012 22:42:18
754,119
02/08/2011 23:58:43
1,355
117
General security issue about passing parameters to flex application
First of all - my English is bad so I hope you'll understand my problem :) I'm new to the concept of developing web application with flex and I need your advice on how to keep it secure and what will be the best way to do it. I'm using red5 recorder ([http://www.red5-recorder.com/][1]) To enable users to record a short video about themselves. My application will save a **single video**, and only for **registered users** - The user can overwrite previews recorded video (If that exists). **My issue** - I will pass a variable to the swf object in the html (generated with php), with encrypt value of the current logged-in user ID (stored in the session). The application use the ID to create the video file and associate it with the current user (video_**10**.flv, video_**193**.flv, ...). It is a simple and basic validation but I don't know what are the possible risks. Are there any other ways to implement and verify the current logged-in user with flex like Ajax request to the server? [1]: http://www.red5-recorder.com/
php
html
validation
flex3
red5
null
open
General security issue about passing parameters to flex application === First of all - my English is bad so I hope you'll understand my problem :) I'm new to the concept of developing web application with flex and I need your advice on how to keep it secure and what will be the best way to do it. I'm using red5 recorder ([http://www.red5-recorder.com/][1]) To enable users to record a short video about themselves. My application will save a **single video**, and only for **registered users** - The user can overwrite previews recorded video (If that exists). **My issue** - I will pass a variable to the swf object in the html (generated with php), with encrypt value of the current logged-in user ID (stored in the session). The application use the ID to create the video file and associate it with the current user (video_**10**.flv, video_**193**.flv, ...). It is a simple and basic validation but I don't know what are the possible risks. Are there any other ways to implement and verify the current logged-in user with flex like Ajax request to the server? [1]: http://www.red5-recorder.com/
0
2,091,805
01/19/2010 07:27:18
142,314
07/21/2009 20:32:07
21
5
glPushName() and GL_TRIANGLE_STRIP
I am trying to implement selecting a node in a terrain (represented by triangle strips). However I cannot use glPushName() between glBegin/glEnd, so I can only save the whole strip in a name buffer. Any other ideas how could I select a specific node/triangle with the mouse? I know that by creating GL_TRIANGLE objects instead of the triangle strip would solve my problem, but wouldn't that be much much slower? Thanks in advance
graphics
opengl
null
null
null
null
open
glPushName() and GL_TRIANGLE_STRIP === I am trying to implement selecting a node in a terrain (represented by triangle strips). However I cannot use glPushName() between glBegin/glEnd, so I can only save the whole strip in a name buffer. Any other ideas how could I select a specific node/triangle with the mouse? I know that by creating GL_TRIANGLE objects instead of the triangle strip would solve my problem, but wouldn't that be much much slower? Thanks in advance
0
9,741,207
03/16/2012 16:44:49
745,719
05/09/2011 19:30:27
374
18
What's wrong with this C# struct?
Note: My question has several parts to it. I'd appreciate it if you would please answer each of the questions, instead of simply telling me what to do to get this to compile. :) I'm not by any means good with C#. In fact, the reason why I don't know much about it is my class is focused on making efficient Algorithms and not really on teaching us .NET. Nevertheless all of our programs must be written in .NET and it hasn't been a problem until just now. I have the following code, but it won't compile and I don't really understand why. I have a gut feeling that this should be rewritten altogether, but before I do that, I want to know WHY this isn't allowed. The point of the struct is to create a linked list like structure so I can add another node to the end of the "list" and then traverse and recall the nodes in reverse order private struct BackPointer { public BackPointer previous; public string a; public string b; public BackPointer(BackPointer p, string aa, string bb) { previous = p; a = aa; b = bb; } } then later in my code I have something to the effect of BackPointer pointer = new BackPointer(); pointer = new BackPointer(pointer, somestring_a, somestring_b); The compile error I'm getting is `Struct member 'MyClass.BackPointer.previous' of type 'MyClass.BackPointer' causes a cycle in the struct layout` This seems to be an obvious error. It doesn't like the fact that I am passing in the struct in the constructor of the same struct. But **why** is that not allowed? I would imagine this code would just create a new node in the list and return this node with a pointer back to the previous node, but apparently that's not what would happen. So what would actually happen then? Lastly what is the recommended way to resolve this? I was thinking to just tell it to be unmanaged just handle my pointers manually, but I only really know how to do that in C++. I don't really know what could go wrong in C#
c#
struct
cycle
null
null
null
open
What's wrong with this C# struct? === Note: My question has several parts to it. I'd appreciate it if you would please answer each of the questions, instead of simply telling me what to do to get this to compile. :) I'm not by any means good with C#. In fact, the reason why I don't know much about it is my class is focused on making efficient Algorithms and not really on teaching us .NET. Nevertheless all of our programs must be written in .NET and it hasn't been a problem until just now. I have the following code, but it won't compile and I don't really understand why. I have a gut feeling that this should be rewritten altogether, but before I do that, I want to know WHY this isn't allowed. The point of the struct is to create a linked list like structure so I can add another node to the end of the "list" and then traverse and recall the nodes in reverse order private struct BackPointer { public BackPointer previous; public string a; public string b; public BackPointer(BackPointer p, string aa, string bb) { previous = p; a = aa; b = bb; } } then later in my code I have something to the effect of BackPointer pointer = new BackPointer(); pointer = new BackPointer(pointer, somestring_a, somestring_b); The compile error I'm getting is `Struct member 'MyClass.BackPointer.previous' of type 'MyClass.BackPointer' causes a cycle in the struct layout` This seems to be an obvious error. It doesn't like the fact that I am passing in the struct in the constructor of the same struct. But **why** is that not allowed? I would imagine this code would just create a new node in the list and return this node with a pointer back to the previous node, but apparently that's not what would happen. So what would actually happen then? Lastly what is the recommended way to resolve this? I was thinking to just tell it to be unmanaged just handle my pointers manually, but I only really know how to do that in C++. I don't really know what could go wrong in C#
0
3,541,710
08/22/2010 13:52:48
451,387
08/22/2010 13:43:26
1
0
Facial Expression recognition
I want to do project on Facial Expression Recognition.It will be to detect the expressions of a person using neural networks e.g happy,sad etc.Is it possible in java??
java
null
null
null
null
08/22/2010 14:46:58
not a real question
Facial Expression recognition === I want to do project on Facial Expression Recognition.It will be to detect the expressions of a person using neural networks e.g happy,sad etc.Is it possible in java??
1
10,609,499
05/15/2012 22:07:12
892,029
08/12/2011 15:08:13
2,781
23
Doclets vs DocLava
My *understanding* is: * The Java Doclet API is just an API (composed of interfaces) rooted at `com.sun.javadoc` * When Javadoc runs it looks for a Doclet API impl to bind to at runtime * If no such impl exists then it uses some default (hence you can generate Javadocs without having to specify your own CSS files, etc.) * Google's DocLava is one such Doclet API impl If this is true, then how does one specify a different Doclet impl (such as DocLava) over the default? If I'm way off base, then how does the Javadoc tool, the Doclet API and DocLava all relate to one another? Thanks in advance!
java
javadoc
doclet
null
null
05/17/2012 16:32:38
not a real question
Doclets vs DocLava === My *understanding* is: * The Java Doclet API is just an API (composed of interfaces) rooted at `com.sun.javadoc` * When Javadoc runs it looks for a Doclet API impl to bind to at runtime * If no such impl exists then it uses some default (hence you can generate Javadocs without having to specify your own CSS files, etc.) * Google's DocLava is one such Doclet API impl If this is true, then how does one specify a different Doclet impl (such as DocLava) over the default? If I'm way off base, then how does the Javadoc tool, the Doclet API and DocLava all relate to one another? Thanks in advance!
1
4,249,020
11/22/2010 18:44:36
459,037
09/27/2010 00:41:05
20
2
Javascript - dynamically change absolute positioning
I have an HTML page that has a div that is position absolutely. I'm trying to write some Javascript that would dynamically move the div down whenever some data before it is generated. I've been playing with the .css jquery function but it does not appear to be working. Any ideas on how this can be accomplished?
javascript
html
null
null
null
02/08/2012 15:48:32
too localized
Javascript - dynamically change absolute positioning === I have an HTML page that has a div that is position absolutely. I'm trying to write some Javascript that would dynamically move the div down whenever some data before it is generated. I've been playing with the .css jquery function but it does not appear to be working. Any ideas on how this can be accomplished?
3