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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,861,022 | 07/28/2011 14:53:09 | 129,782 | 06/27/2009 09:15:30 | 821 | 38 | Render view from code in /lib | Let's pretend we have a Rails project with a class named `Foo` residing in the `lib` directory.
We want to generate some HTML based on its attributes.
Now, creating a big string by concatenating HTML fragments appropriately doesn't feel right in the least bit.
My question is: is there a blessed way to do it? | ruby-on-rails-3 | null | null | null | null | null | open | Render view from code in /lib
===
Let's pretend we have a Rails project with a class named `Foo` residing in the `lib` directory.
We want to generate some HTML based on its attributes.
Now, creating a big string by concatenating HTML fragments appropriately doesn't feel right in the least bit.
My question is:... | 0 |
8,591,941 | 12/21/2011 15:07:34 | 474,270 | 10/13/2010 09:19:50 | 736 | 59 | Rhomobile: Custom URL Schemes | I'm writing a Rhomobile application targeted at iPhone and Android.<br/>
I need to create a custom url scheme, so that i can create urls that look like `test://some-params` that will launch my program and will pass it the params.
As far as I understand this is done in build.yml through the BundleURLScheme parameter... | ruby | rhomobile | rhodes | null | null | null | open | Rhomobile: Custom URL Schemes
===
I'm writing a Rhomobile application targeted at iPhone and Android.<br/>
I need to create a custom url scheme, so that i can create urls that look like `test://some-params` that will launch my program and will pass it the params.
As far as I understand this is done in build.yml th... | 0 |
8,583,946 | 12/21/2011 01:00:40 | 313,247 | 04/09/2010 23:47:02 | 116 | 3 | Is it possible to change Xcode's default location for iOS .xcarchive bundles? | Xcode creates its .xcarchive bundles here: `"~/Library/Developer/Xcode/Archives/ProjName MM-DD-YY h.mm AM.xcarchive"`
This is fine for an individual developer, but it's not so cool for an automated build in a controlled workspace, one that has to copy every production build's xcarchive(s) to a posting location.
... | xcode4 | build | xcodebuild | null | null | null | open | Is it possible to change Xcode's default location for iOS .xcarchive bundles?
===
Xcode creates its .xcarchive bundles here: `"~/Library/Developer/Xcode/Archives/ProjName MM-DD-YY h.mm AM.xcarchive"`
This is fine for an individual developer, but it's not so cool for an automated build in a controlled workspace, on... | 0 |
4,418,622 | 12/11/2010 19:50:12 | 383,609 | 07/05/2010 11:20:27 | 1,069 | 54 | How much jQuery can the average computer handle without lagging? | I ask this because I have a jQuery JavaScript file that's getting a tad long now. Also, what's the longest piece of jQuery anyone has ever seen/written?
Thanks,
James | jquery | performance | null | null | null | 12/12/2010 12:31:28 | not a real question | How much jQuery can the average computer handle without lagging?
===
I ask this because I have a jQuery JavaScript file that's getting a tad long now. Also, what's the longest piece of jQuery anyone has ever seen/written?
Thanks,
James | 1 |
9,378,491 | 02/21/2012 13:32:08 | 250,560 | 01/14/2010 08:42:59 | 75 | 6 | Experience with hazelcast | I am thinking about using Hazelcast in my project. I read different reviews about it. Some people complain about its bug. Other say it's a very cool solution. I want to use it for the following:
- Locking service on top of NoSQL store
- Memory caching
- Session caching
Is it stable enough for these use cases... | hazelcast | null | null | null | null | 03/12/2012 14:39:09 | not constructive | Experience with hazelcast
===
I am thinking about using Hazelcast in my project. I read different reviews about it. Some people complain about its bug. Other say it's a very cool solution. I want to use it for the following:
- Locking service on top of NoSQL store
- Memory caching
- Session caching
Is it st... | 4 |
3,483,785 | 08/14/2010 14:37:35 | 359,889 | 06/06/2010 20:44:49 | 1 | 0 | OpenID Consumer: HTTPS + no-encryption association request? | I'm implementing an OpenID consumer.
I'm wondering if it's safe to not use a Diffie-Hellman association request if the endpoint is accessed via HTTPS? I thought I'd read somewhere that it was redundant and that made sense to me, but would prefer to make sure. | openid | null | null | null | null | null | open | OpenID Consumer: HTTPS + no-encryption association request?
===
I'm implementing an OpenID consumer.
I'm wondering if it's safe to not use a Diffie-Hellman association request if the endpoint is accessed via HTTPS? I thought I'd read somewhere that it was redundant and that made sense to me, but would prefer to mak... | 0 |
5,445,638 | 03/26/2011 22:09:42 | 620,154 | 02/16/2011 18:09:58 | 73 | 0 | Tutorial for Topdown 3D | Well, i'm looking for a good guide to program Topdown 3D in C++. Where i can find a good one?
Thanks. | c++ | 3d | topdown | null | null | null | open | Tutorial for Topdown 3D
===
Well, i'm looking for a good guide to program Topdown 3D in C++. Where i can find a good one?
Thanks. | 0 |
6,133,289 | 05/26/2011 03:11:27 | 770,625 | 05/26/2011 03:11:27 | 1 | 0 | I can't find the wrong code on line 23 | I can't find the wrong code on line 23.
<html>
<head><title>cw5</title></head>
<body>
<form method=post>
Please enter 2 numbers: <br>
The first number: <input type="text" name="num1"><br>
The second number: <input type="text" name="num2"><br>
<input type="submit" value="Submit... | random | find | null | null | null | 06/20/2012 12:55:19 | too localized | I can't find the wrong code on line 23
===
I can't find the wrong code on line 23.
<html>
<head><title>cw5</title></head>
<body>
<form method=post>
Please enter 2 numbers: <br>
The first number: <input type="text" name="num1"><br>
The second number: <input type="text" name="num2">... | 3 |
7,632,568 | 10/03/2011 08:18:10 | 872,721 | 08/01/2011 11:52:52 | 1 | 1 | How to display korean text on Textview? | I want to display the Korean text on my TextView,and it should display in the proper korean language , but its displaying like some junk chars. Any one know how to achieve this ?
Thanks in advance.
| android | korean | null | null | null | 05/04/2012 15:29:32 | not a real question | How to display korean text on Textview?
===
I want to display the Korean text on my TextView,and it should display in the proper korean language , but its displaying like some junk chars. Any one know how to achieve this ?
Thanks in advance.
| 1 |
50,389 | 09/08/2008 18:39:35 | 2,577 | 08/23/2008 03:18:09 | 89 | 6 | Does having a registry full of old stuff slow down Windows? | I know this isn't strictly speaking a programming question but something I always hear from pseudo-techies is that having a lot of entries in your registry slows down your Windows-based PC. I think this notion comes from people who are trying to troubleshoot their PC and why it's running so slow and they open up the re... | windows | registry | null | null | null | 05/03/2011 15:52:33 | off topic | Does having a registry full of old stuff slow down Windows?
===
I know this isn't strictly speaking a programming question but something I always hear from pseudo-techies is that having a lot of entries in your registry slows down your Windows-based PC. I think this notion comes from people who are trying to troublesh... | 2 |
10,441,158 | 05/04/2012 00:25:47 | 1,305,111 | 03/31/2012 13:53:57 | 88 | 4 | Oracle Accidental Deletion | I deleted many table's records accidentally on Oracle 10g, and I have no backup, noarchivelog mode, not open flashback.
Is it possible to restore data? If yes, how shall I do? | oracle | restore | null | null | null | null | open | Oracle Accidental Deletion
===
I deleted many table's records accidentally on Oracle 10g, and I have no backup, noarchivelog mode, not open flashback.
Is it possible to restore data? If yes, how shall I do? | 0 |
2,186,458 | 02/02/2010 18:09:45 | 100,516 | 05/03/2009 22:15:07 | 1,489 | 101 | What is a good name for class which creates factories? (FooFactoryFactory sounds silly imo) | I don't remember exactly is it a common pattern but I have a class (Factory Method pattern) which has method for creating other classes (Abstract Factory pattern) depending on enum parameter:
public class FooFactoryFactory {
public FooFactory createFactory (FooFactoryType type) {
switch (type... | java | oop | design-patterns | naming-conventions | null | null | open | What is a good name for class which creates factories? (FooFactoryFactory sounds silly imo)
===
I don't remember exactly is it a common pattern but I have a class (Factory Method pattern) which has method for creating other classes (Abstract Factory pattern) depending on enum parameter:
public class FooFactory... | 0 |
6,840,146 | 07/27/2011 06:19:20 | 147,775 | 07/30/2009 12:21:38 | 773 | 149 | Reading too many record using wcf | best way to manages user request for reading too many record from a table in database by using a WCF service call
i meant what is performance tips what is the bestway? | c# | wcf-performance | null | null | null | 07/27/2011 11:05:30 | not a real question | Reading too many record using wcf
===
best way to manages user request for reading too many record from a table in database by using a WCF service call
i meant what is performance tips what is the bestway? | 1 |
7,301,707 | 09/04/2011 19:45:11 | 177,242 | 09/22/2009 15:24:56 | 871 | 60 | software license agreement - builder tools or templates | I asked my business lawyer if he could build a software license agreement for a new product my company is releasing, and he said yes he can but he didnt have a good template to start from, and thus would run up a tab on it... and recommended I find a good template or competitors agreement to build one from. I've looked... | licensing | software-distribution | software-lifecycle | null | null | 09/04/2011 20:13:16 | off topic | software license agreement - builder tools or templates
===
I asked my business lawyer if he could build a software license agreement for a new product my company is releasing, and he said yes he can but he didnt have a good template to start from, and thus would run up a tab on it... and recommended I find a good tem... | 2 |
5,294,116 | 03/14/2011 02:22:32 | 658,140 | 03/14/2011 02:22:32 | 1 | 0 | Protecting Software from Pirates | After reading numerous threads on Stack Overflow about how to protect software, I realized you can't. Thankfully my software is targetted at hosting businesses (not a lot of them at that) and a handful of consumers. I don't think the software will be popular enough that anyone is going to crack it, but I would like to ... | c# | .net | license-key | piracy-prevention | piracy-protection | null | open | Protecting Software from Pirates
===
After reading numerous threads on Stack Overflow about how to protect software, I realized you can't. Thankfully my software is targetted at hosting businesses (not a lot of them at that) and a handful of consumers. I don't think the software will be popular enough that anyone is g... | 0 |
7,027,740 | 08/11/2011 14:33:27 | 115,102 | 05/31/2009 13:26:36 | 843 | 33 | Makefile and symbolic links | I'm experiencing a strange problem with a makefile. I simply want to set a symbolic link in the makefile but get an error message on one machine (Linux 2.6.18-238.12.1.el5)
make: execvp: ln: Too many levels of symbolic links
It works perfectly fine on my MacBook. It also works fine if I execute the same comma... | linux | makefile | ln | null | null | null | open | Makefile and symbolic links
===
I'm experiencing a strange problem with a makefile. I simply want to set a symbolic link in the makefile but get an error message on one machine (Linux 2.6.18-238.12.1.el5)
make: execvp: ln: Too many levels of symbolic links
It works perfectly fine on my MacBook. It also works... | 0 |
4,637,213 | 01/09/2011 01:37:49 | 499,927 | 11/07/2010 16:14:24 | 16 | 1 | Displaying and interacting with HTML within Java | I have a problem which I am currently trying to wrap my head around, and any advice or nods in a good direction would be greatly appreciated.
1. I want to display a Google Map within my Java Swing project, (the map will be a URL specified within an HTML document I think).
2. I also want to be able to communicate ... | java | javascript | html | google | maps | null | open | Displaying and interacting with HTML within Java
===
I have a problem which I am currently trying to wrap my head around, and any advice or nods in a good direction would be greatly appreciated.
1. I want to display a Google Map within my Java Swing project, (the map will be a URL specified within an HTML document ... | 0 |
9,399,999 | 02/22/2012 17:35:19 | 924,991 | 09/02/2011 09:35:41 | 15 | 0 | SSIS fail package on failure | I'm new to SSIS. I m trying to load data from excel to sql server. Each sheet in excel should go into separate table in sql server so I created a sequence container and inside that I have placed data flow tasks. Each data flow task contains logic to move data from one excel sheet to table in sql server. So problem is i... | ssis | null | null | null | null | null | open | SSIS fail package on failure
===
I'm new to SSIS. I m trying to load data from excel to sql server. Each sheet in excel should go into separate table in sql server so I created a sequence container and inside that I have placed data flow tasks. Each data flow task contains logic to move data from one excel sheet to ta... | 0 |
11,450,669 | 07/12/2012 11:17:03 | 1,520,553 | 07/12/2012 10:58:59 | 1 | 0 | Problems with displaying a php-site locally with WAMPP-package. Site works fine on remote server. | My first ever post on stackoverflow.com! A great site, and I hope my post will contribute to the benefit of others.
**The situation:**
I have been entrusted to renovate a *really* small, existing, php-driven web site.
So, I started to set up my environment:
- Dreamweaver was installed.
- I FTP'd the file... | php | xampp | dreamweaver | htdocs | null | null | open | Problems with displaying a php-site locally with WAMPP-package. Site works fine on remote server.
===
My first ever post on stackoverflow.com! A great site, and I hope my post will contribute to the benefit of others.
**The situation:**
I have been entrusted to renovate a *really* small, existing, php-driven web s... | 0 |
7,503,253 | 09/21/2011 16:27:02 | 957,421 | 09/21/2011 16:27:02 | 1 | 0 | US national debt clock | I repair computers. I've never done any programing, but I've been asked by a customer to set up a computer in his store that does nothing but display the US national debt clock in real time. I found the clock in an SWF format. It says it will allow one to change the text at the top and bottom, which I'd like to do for ... | swf | null | null | null | null | 09/21/2011 16:51:09 | too localized | US national debt clock
===
I repair computers. I've never done any programing, but I've been asked by a customer to set up a computer in his store that does nothing but display the US national debt clock in real time. I found the clock in an SWF format. It says it will allow one to change the text at the top and botto... | 3 |
11,369,756 | 07/06/2012 21:17:18 | 1,495,071 | 07/02/2012 03:42:39 | 6 | 0 | Chronometer with Runnable doesn't work | Hello I create a chronometer for my Game. The problem is that I created in 2 classes. And this doesn´t work. I have an Exepction.
public class Crono1 extends Activity implements Callback{
public TextView txtTiempo;
public boolean detenido;
public boolean pausado;
private Handler handler;
... | android | homework | null | null | null | null | open | Chronometer with Runnable doesn't work
===
Hello I create a chronometer for my Game. The problem is that I created in 2 classes. And this doesn´t work. I have an Exepction.
public class Crono1 extends Activity implements Callback{
public TextView txtTiempo;
public boolean detenido;
public boolean... | 0 |
11,096,315 | 06/19/2012 07:29:12 | 1,407,596 | 05/21/2012 10:03:46 | 1 | 0 | How Can I import Video From iPod library | I want to import video from ipod libary into my application so that i can make some manipulation on it but i am not getting any help.please reply
thanks...
| iphone | objective-c | ios | null | null | 06/20/2012 22:12:26 | not a real question | How Can I import Video From iPod library
===
I want to import video from ipod libary into my application so that i can make some manipulation on it but i am not getting any help.please reply
thanks...
| 1 |
10,239,368 | 04/20/2012 02:16:28 | 823,955 | 06/30/2011 22:46:37 | 172 | 2 | Can heap allocated object be move on the stack? | Question
========
Can we use move semantics to move a heap allocated object on the stack?
Example
-------
#include <boost/asio.hpp>
class connection
{
public:
connection(boost::asio::ip::tcp::socket&& socket);
void start();
private:
boost::asio::ip::tcp::s... | memory-management | c++11 | boost-asio | move-semantics | null | null | open | Can heap allocated object be move on the stack?
===
Question
========
Can we use move semantics to move a heap allocated object on the stack?
Example
-------
#include <boost/asio.hpp>
class connection
{
public:
connection(boost::asio::ip::tcp::socket&& socket);
void star... | 0 |
10,411,859 | 05/02/2012 10:24:54 | 1,088,754 | 12/08/2011 23:15:08 | 48 | 0 | linear genetic programming contants | What are the advantages and disadvantages to explicitly defining constants within the memory register, as opposed to initially seeding individuals with constants and mutating them through genetic operators ? | artificial-intelligence | machine-learning | genetic-algorithm | genetic-programming | null | null | open | linear genetic programming contants
===
What are the advantages and disadvantages to explicitly defining constants within the memory register, as opposed to initially seeding individuals with constants and mutating them through genetic operators ? | 0 |
5,006,652 | 02/15/2011 16:48:42 | 503,973 | 11/11/2010 01:21:12 | 46 | 0 | Get Caller ID from C# app | I need to get the caller ID when I get a call. I have a standard dialup modem.
I tried to listen the serial port continuously by sending AT commands but it hangs after few seconds.
Thanks | c# | c++ | serial-port | caller | null | null | open | Get Caller ID from C# app
===
I need to get the caller ID when I get a call. I have a standard dialup modem.
I tried to listen the serial port continuously by sending AT commands but it hangs after few seconds.
Thanks | 0 |
9,984,846 | 04/02/2012 22:43:20 | 807,400 | 06/20/2011 21:03:30 | 864 | 20 | how to create plist file in xcode 4.3.2 | I am trying to create my own plist file to be used in my application, I am using apple [documents][1] as refrence for doing this.
However, I have read that if you create your own plist you need to place it in the resource folder in your applications build. The issue with that is that I have no resources folder in my... | iphone | ios | plist | null | null | null | open | how to create plist file in xcode 4.3.2
===
I am trying to create my own plist file to be used in my application, I am using apple [documents][1] as refrence for doing this.
However, I have read that if you create your own plist you need to place it in the resource folder in your applications build. The issue with ... | 0 |
8,392,456 | 12/05/2011 21:57:48 | 1,082,419 | 12/05/2011 21:54:51 | 1 | 0 | javascript runtime on Opensuse | I installed ruby on rails with the terminal of opensuse but I have a problem when I try to open the rails server. The terminal said : "Could not find a JavaScript runtime", but it's running on Fedora, why not on OpenSuse? Could somebody help me?
Thanks in advance, | opensuse | null | null | null | null | null | open | javascript runtime on Opensuse
===
I installed ruby on rails with the terminal of opensuse but I have a problem when I try to open the rails server. The terminal said : "Could not find a JavaScript runtime", but it's running on Fedora, why not on OpenSuse? Could somebody help me?
Thanks in advance, | 0 |
7,083,538 | 08/16/2011 18:59:01 | 623,990 | 02/19/2011 01:32:39 | 566 | 5 | Spawning a JOptionPane in a full screen application shows the taskbar | I have a full screen (100%, even covers taskbars) application which sometimes asks for a password using a JOptionPane with a PasswordBox. My problem is that when the popup appears, you can see the system's taskbar at the bottom. It kind of looks like this:
---- popup
------------ taskbar
------... | java | swing | gui | awt | joptionpane | null | open | Spawning a JOptionPane in a full screen application shows the taskbar
===
I have a full screen (100%, even covers taskbars) application which sometimes asks for a password using a JOptionPane with a PasswordBox. My problem is that when the popup appears, you can see the system's taskbar at the bottom. It kind of looks... | 0 |
8,815,143 | 01/11/2012 06:37:26 | 617,447 | 02/15/2011 08:52:32 | 100 | 3 | Problems with dropdown using css and jquery | i am trying to create a drop down menu using jquery and css.
jsfiddle link is here: http://jsfiddle.net/v6TvC/
but this doesnt seem to work well.
can anyone point what am i missing? | javascript | jquery | html | css | null | null | open | Problems with dropdown using css and jquery
===
i am trying to create a drop down menu using jquery and css.
jsfiddle link is here: http://jsfiddle.net/v6TvC/
but this doesnt seem to work well.
can anyone point what am i missing? | 0 |
1,427,479 | 09/15/2009 14:18:36 | 173,748 | 09/15/2009 14:07:33 | 1 | 0 | Managing object instances | I want to be able to create and unknown number of objects. I'm not sure if there is a better way to manage and reference them.
Lets use a standard OOP example... say every time a user enters a name for a pet in a text field and clicks a button a new pet object is created via the petFactory function.
functio... | oop | null | null | null | null | null | open | Managing object instances
===
I want to be able to create and unknown number of objects. I'm not sure if there is a better way to manage and reference them.
Lets use a standard OOP example... say every time a user enters a name for a pet in a text field and clicks a button a new pet object is created via the petFac... | 0 |
10,603,980 | 05/15/2012 15:27:14 | 229,581 | 12/09/2009 21:41:13 | 499 | 9 | Securing an API for use with Javascript widget | I'm writing a javascript plugin which will be installed by bloggers/website owners. It will communicate with my remote API.
I'm wondering how to secure the API to ensure that only domains owned by users that have registered an account with the service can access resources from the API. I've read up on OAuth2 and un... | javascript | api | oauth | null | null | null | open | Securing an API for use with Javascript widget
===
I'm writing a javascript plugin which will be installed by bloggers/website owners. It will communicate with my remote API.
I'm wondering how to secure the API to ensure that only domains owned by users that have registered an account with the service can access r... | 0 |
6,016,713 | 05/16/2011 11:30:32 | 186,942 | 10/09/2009 06:01:36 | 90 | 0 | how to run command at startup in linux? | I want to run some commands at boot time. Can anyone tell me how can I run those commands at startup time? Please help me. Thanks in advance. | linux | null | null | null | null | 05/16/2011 11:38:07 | off topic | how to run command at startup in linux?
===
I want to run some commands at boot time. Can anyone tell me how can I run those commands at startup time? Please help me. Thanks in advance. | 2 |
10,220,253 | 04/19/2012 01:01:46 | 770,494 | 09/16/2010 22:20:01 | 624 | 11 | Is it possible to make IEnumerable<char> implement IComparable? | As titled.
We all know if we want a class to be comparable and use in sorting i.e DataGrid, we will implement IComparable.
But for IEnumerable<char> how can I do that?
I have a collection of a IEnumerable<char>, we want to compare each IEnumerable<char> to each other and do a sorting.
So say a collection ... | c# | ienumerable | icomparable | null | null | null | open | Is it possible to make IEnumerable<char> implement IComparable?
===
As titled.
We all know if we want a class to be comparable and use in sorting i.e DataGrid, we will implement IComparable.
But for IEnumerable<char> how can I do that?
I have a collection of a IEnumerable<char>, we want to compare each IEnu... | 0 |
1,928,883 | 12/18/2009 15:30:33 | 202,895 | 11/04/2009 19:45:30 | 281 | 3 | MySQL how to set a column to reference columns from another table | I want to define the value of columnA in tableA to have the count of all rows in tableB where tableB.columnB
I have two tables:
articles table
columns: articleId,numComments
comments table
columns: articleId,content
I want numComments column in table "articles" to contain a count of all rows... | mysql | null | null | null | null | null | open | MySQL how to set a column to reference columns from another table
===
I want to define the value of columnA in tableA to have the count of all rows in tableB where tableB.columnB
I have two tables:
articles table
columns: articleId,numComments
comments table
columns: articleId,content
I wan... | 0 |
8,594,185 | 12/21/2011 17:55:42 | 1,050,258 | 11/16/2011 17:58:25 | 6 | 0 | what's wrong with this prime generator? | i am a newbie to C++. i just can't figure out what is going wrong with this code.
the code goes here:
http://codepad.org/LrTQSn2j
The output for a=11 is like
2 is a prime number.
3 is a ...
5 is a ...
5 ...
5 ...
7 ...
7 ...
7 ...
7 ...
7 ...
... | c++ | visual-c++ | null | null | null | 12/21/2011 17:58:54 | too localized | what's wrong with this prime generator?
===
i am a newbie to C++. i just can't figure out what is going wrong with this code.
the code goes here:
http://codepad.org/LrTQSn2j
The output for a=11 is like
2 is a prime number.
3 is a ...
5 is a ...
5 ...
5 ...
7 ...
... | 3 |
3,208,007 | 07/08/2010 21:04:58 | 311,130 | 04/07/2010 15:18:03 | 45 | 2 | Named groups C# | I'm trying to use named group to parse a string.
An example is:
exitcode: 0; session id is RDP-Tcp#2
and my try is:
("(exitCode)+(\s)*:(\s)*(?<exitCode>[^;]+)(\s)*;(\s)*(session id is)(\s)*(?<sessionID>[^;]*)(\s)*");
Where do I syntacticaly wrong?
Thanks | c# | null | null | null | null | 07/09/2010 10:44:58 | not a real question | Named groups C#
===
I'm trying to use named group to parse a string.
An example is:
exitcode: 0; session id is RDP-Tcp#2
and my try is:
("(exitCode)+(\s)*:(\s)*(?<exitCode>[^;]+)(\s)*;(\s)*(session id is)(\s)*(?<sessionID>[^;]*)(\s)*");
Where do I syntacticaly wrong?
Thanks | 1 |
8,716,257 | 01/03/2012 17:33:28 | 786,419 | 06/06/2011 19:16:13 | 41 | 4 | Excel Event Listener in C++ | I would appreciate greatly if some one will provide a code snippet showing how to write the MS Excel (2007/2010) event listener in C++. So the task for C++ application is to catch Excel events and handle them somehow.
Thanks. | c++ | excel | events | listener | null | 01/04/2012 08:18:11 | not a real question | Excel Event Listener in C++
===
I would appreciate greatly if some one will provide a code snippet showing how to write the MS Excel (2007/2010) event listener in C++. So the task for C++ application is to catch Excel events and handle them somehow.
Thanks. | 1 |
11,186,561 | 06/25/2012 09:22:55 | 1,020,596 | 10/30/2011 11:20:28 | 83 | 0 | Visual Studio 2010 extremely slow build | My visual studio builds extremely slow. My friend have same project but he do not have such problem. What can be the problem. | visual-studio-2010 | debugging | build | null | null | 06/26/2012 10:57:34 | not a real question | Visual Studio 2010 extremely slow build
===
My visual studio builds extremely slow. My friend have same project but he do not have such problem. What can be the problem. | 1 |
6,713,067 | 07/15/2011 20:59:53 | 410,946 | 08/04/2010 15:14:26 | 769 | 44 | MarshallingView in Spring MVC 3 | I'm getting this error when I use MarshallingView to marshal my list (java.util.List) of FileManagement objects. This doesn't happen if I just add only one object to the model. So it's working with an object but not with the collection (List).
**Exception**:
javax.servlet.ServletException: Model object [[com.... | java | spring-mvc | jaxb | null | null | null | open | MarshallingView in Spring MVC 3
===
I'm getting this error when I use MarshallingView to marshal my list (java.util.List) of FileManagement objects. This doesn't happen if I just add only one object to the model. So it's working with an object but not with the collection (List).
**Exception**:
javax.servlet.... | 0 |
9,749,244 | 03/17/2012 10:31:27 | 1,275,616 | 03/17/2012 10:28:27 | 1 | 0 | how can i Generates and returns a random integer between lower (inclusive) and upper (exclusive) |
public static int randInt (int lower, int upper)
Generates and returns a random integer between lower (inclusive) and upper (exclusive) | java | null | null | null | null | 03/17/2012 13:02:50 | not a real question | how can i Generates and returns a random integer between lower (inclusive) and upper (exclusive)
===
public static int randInt (int lower, int upper)
Generates and returns a random integer between lower (inclusive) and upper (exclusive) | 1 |
4,146,856 | 11/10/2010 16:53:50 | 184,175 | 10/05/2009 06:21:49 | 116 | 4 | How to stop update value of slider while dragging it? | I've slider that its value is bind to some property, and the property updates it all the time.
While dragging the [thumb on] slider I want to stop this update value of slider from binding,
until user finish it's dragging.
Is there any property on Slider to do that, or I need to write code for that?
Thanks in ad... | wpf | slider | null | null | null | null | open | How to stop update value of slider while dragging it?
===
I've slider that its value is bind to some property, and the property updates it all the time.
While dragging the [thumb on] slider I want to stop this update value of slider from binding,
until user finish it's dragging.
Is there any property on Slider to... | 0 |
5,619,934 | 04/11/2011 10:23:25 | 701,945 | 04/11/2011 10:09:08 | 1 | 0 | django forms.ModelForm validation problem | I have a model with some fields.
I have a model form that represents a portion of the above model. I have to do some custom validation. Some fields depend on others. Password and password confirm fields must be the same for example. Its tied to a back end system.
I must check the login name ( ensure its not in... | django | validation | django-forms | null | null | null | open | django forms.ModelForm validation problem
===
I have a model with some fields.
I have a model form that represents a portion of the above model. I have to do some custom validation. Some fields depend on others. Password and password confirm fields must be the same for example. Its tied to a back end system.
... | 0 |
3,807,766 | 09/27/2010 20:52:06 | 347,849 | 05/22/2010 15:00:03 | 347 | 28 | SQL Query Assistance | This is not a homework question, just something at work that's bugging me.
I'm trying to write a query against these tables below. The two tables, history and code are joined to the historyassignment table by the historyid and codeid columns.
Table: HistoryAssignment
| AssignmentID | HistoryID | CodeID |
... | sql | sql-server-2005 | stored-procedures | null | null | null | open | SQL Query Assistance
===
This is not a homework question, just something at work that's bugging me.
I'm trying to write a query against these tables below. The two tables, history and code are joined to the historyassignment table by the historyid and codeid columns.
Table: HistoryAssignment
| Assignment... | 0 |
676,797 | 03/24/2009 10:22:53 | 77,095 | 03/12/2009 08:29:50 | 23 | 1 | Memory Management | We have an application which imports objects from an XML . The XML is around 15 GB . The application invariably starts running out of memory . We tried to free memory in between operations but this has lead to degrading performance . i.e it takes more time to complete the import operation . THe CPU utilization reaches ... | memory | null | null | null | null | null | open | Memory Management
===
We have an application which imports objects from an XML . The XML is around 15 GB . The application invariably starts running out of memory . We tried to free memory in between operations but this has lead to degrading performance . i.e it takes more time to complete the import operation . THe C... | 0 |
10,263,503 | 04/21/2012 22:18:00 | 1,320,753 | 04/08/2012 20:23:53 | 10 | 0 | How to make a top alert? as in this site | I'm wondering how do I add an "alert" as in this site on top of the website that can be closed with an "x" here is an example : http://habbox.com/ or as in this site. | javascript | jquery | css | xhtml | alert | 04/22/2012 08:50:36 | too localized | How to make a top alert? as in this site
===
I'm wondering how do I add an "alert" as in this site on top of the website that can be closed with an "x" here is an example : http://habbox.com/ or as in this site. | 3 |
4,306,590 | 11/29/2010 18:01:29 | 62,449 | 02/04/2009 14:39:02 | 441 | 8 | mySQL: is it possible to make this query any faster? | I have a table "test" containing millions of entries. Each row contains a floating point "feature" and a "count" how often this feature is present in item "id". The primary key for this table is the combination of "id" and "feature", i.e. every item may have multiple features. There are usually a couple of hundred to a... | sql | mysql | query | optimization | query-optimization | null | open | mySQL: is it possible to make this query any faster?
===
I have a table "test" containing millions of entries. Each row contains a floating point "feature" and a "count" how often this feature is present in item "id". The primary key for this table is the combination of "id" and "feature", i.e. every item may have mul... | 0 |
9,794,642 | 03/20/2012 20:44:58 | 1,272,799 | 03/15/2012 22:38:58 | 13 | 2 | AND (&&?) PHP Connector | if(mysql_query("SELECT rank FROM `users` WHERE id = '" . $SESSION['user']['id'] . "'") > 3 AND < 8);
Parse error: syntax error, unexpected '<' in test.php on line 2
What am I doing wrong? | php | null | null | null | null | 03/25/2012 16:34:44 | too localized | AND (&&?) PHP Connector
===
if(mysql_query("SELECT rank FROM `users` WHERE id = '" . $SESSION['user']['id'] . "'") > 3 AND < 8);
Parse error: syntax error, unexpected '<' in test.php on line 2
What am I doing wrong? | 3 |
7,372,470 | 09/10/2011 14:44:41 | 1,163,722 | 09/05/2011 20:39:54 | 6 | 4 | DetailViewController Dumb Question | I'm working on an iPhone app that has a `UITableView` with multiple entries and when you click on each, it takes you to the same view using a navigation controller. This is good, I want the same view every time, except for one of my entries I want to hide a text label. I have succeeded in doing this, except I did it ... | iphone | objective-c | null | null | null | 09/17/2011 11:52:57 | too localized | DetailViewController Dumb Question
===
I'm working on an iPhone app that has a `UITableView` with multiple entries and when you click on each, it takes you to the same view using a navigation controller. This is good, I want the same view every time, except for one of my entries I want to hide a text label. I have s... | 3 |
4,784,776 | 01/24/2011 17:04:23 | 587,838 | 01/24/2011 17:04:23 | 1 | 0 | about php developers ? | how much an experienced php developer get the salary ? | php | null | null | null | null | 01/24/2011 17:06:40 | off topic | about php developers ?
===
how much an experienced php developer get the salary ? | 2 |
2,998,828 | 06/08/2010 15:34:16 | 361,533 | 06/08/2010 15:34:15 | 1 | 0 | [php] Stop While true loop with a specific or any key pressed in a php script | I want to stop a while true loop when a specific or any key is pressed.
I know I can ctrl-c the script but I am locking tables in my MySql database, and I doesn't want to unlock them in the beginning of the script because i want to be able to run multiple instance of the script.
Thank you for any insight | php | loops | null | null | null | null | open | [php] Stop While true loop with a specific or any key pressed in a php script
===
I want to stop a while true loop when a specific or any key is pressed.
I know I can ctrl-c the script but I am locking tables in my MySql database, and I doesn't want to unlock them in the beginning of the script because i want to be... | 0 |
6,870,642 | 07/29/2011 08:40:03 | 658,500 | 03/14/2011 09:24:59 | 76 | 1 | jquery fire event on value change | Hi all i am look for way to fire and event event time the values changes.
So i have got a live clock running in a div called.
<span id="LiveClockIE">The time is: 9:37:24 AM</span>
What i want to do is fire a event everytime the clock changes ie every sec??
tried
$("#LiveClockIE").val().... | jquery | live | null | null | null | null | open | jquery fire event on value change
===
Hi all i am look for way to fire and event event time the values changes.
So i have got a live clock running in a div called.
<span id="LiveClockIE">The time is: 9:37:24 AM</span>
What i want to do is fire a event everytime the clock changes ie every sec??
tried
... | 0 |
9,169,103 | 02/06/2012 23:53:55 | 593,382 | 01/28/2011 06:30:53 | 2,683 | 204 | building apr-util 64 bit Mac OS X builds 32-bit version | I am currently building a 32/64 bit version of apr by configuring and building twice and combining the output with lipo, (apr-1.4.5)
I am trying to accomplish the same thing with the 64-bit version with apr-util-1.4.1, but all of my output seems to be i386 32bit,
I am trying to configure and build with the following ... | make | x86-64 | configure | apr | apr-util | null | open | building apr-util 64 bit Mac OS X builds 32-bit version
===
I am currently building a 32/64 bit version of apr by configuring and building twice and combining the output with lipo, (apr-1.4.5)
I am trying to accomplish the same thing with the 64-bit version with apr-util-1.4.1, but all of my output seems to be i386 3... | 0 |
5,917,689 | 05/06/2011 22:29:58 | 19,875 | 09/21/2008 07:46:57 | 2,465 | 89 | How to programatically pause an activity? | How can I programmatically pause an activity? I have a TabHost that is creating an activity through an Intent:
Intent intent; // Reusable Intent for each tab
// Create an Intent to launch an Activity for the tab (to be reused)
intent = new Intent().setClass(this, ARActivity.class);
... | java | android | activity | android-intent | android-tabhost | null | open | How to programatically pause an activity?
===
How can I programmatically pause an activity? I have a TabHost that is creating an activity through an Intent:
Intent intent; // Reusable Intent for each tab
// Create an Intent to launch an Activity for the tab (to be reused)
intent = new... | 0 |
10,334,439 | 04/26/2012 13:27:05 | 1,358,633 | 04/26/2012 12:10:22 | 1 | 0 | JQuery 'Object' is undefined when reference Jquery twice | I have a asp.net page, in its header section I have the following:
<script type="text/javascript" src="scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.19.custom.min.js"></script>
And I also have:
<div id="dialog" title="Dialog Title">
<iframe src="frameDemo.... | jquery | iframe | null | null | null | null | open | JQuery 'Object' is undefined when reference Jquery twice
===
I have a asp.net page, in its header section I have the following:
<script type="text/javascript" src="scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.19.custom.min.js"></script>
And I also have:
<di... | 0 |
11,101,280 | 06/19/2012 12:48:35 | 776,087 | 05/30/2011 10:13:07 | 11 | 2 | Intercepting all custom classes in Grails | I would like to monitor which of MY classes were accessed during Grails app execution. For this purpose I’m thinking of adding logging into ‘before method invocation’ joint to all custom classes and then inspecting log files.
What is the slickest way of adding such intercepting logic without modifying existing classes... | grails | groovy | metaprogramming | aop | null | null | open | Intercepting all custom classes in Grails
===
I would like to monitor which of MY classes were accessed during Grails app execution. For this purpose I’m thinking of adding logging into ‘before method invocation’ joint to all custom classes and then inspecting log files.
What is the slickest way of adding such interc... | 0 |
6,774,385 | 07/21/2011 10:05:01 | 817,365 | 06/27/2011 12:38:30 | 1 | 0 | How to display comma seperated value from MySQL in a Table using while loop in PHP? | I have a Mysql two tables deptIDlist and Users.
Table 'deptIDlist' is having the fields of ID,userID,DeptIDs with data as, ID->userID->DeptIDs as 1->136->12,53,48,24. 2->153->45,78,53,10. 3->143->53,46,49.Table 'Users' is having the fields of userID,uname with following data as, userID->uname as 153->Steve 136->marc 1... | php | mysql | ajax | null | null | 07/22/2011 04:08:32 | too localized | How to display comma seperated value from MySQL in a Table using while loop in PHP?
===
I have a Mysql two tables deptIDlist and Users.
Table 'deptIDlist' is having the fields of ID,userID,DeptIDs with data as, ID->userID->DeptIDs as 1->136->12,53,48,24. 2->153->45,78,53,10. 3->143->53,46,49.Table 'Users' is having t... | 3 |
9,231,010 | 02/10/2012 16:20:04 | 707,502 | 04/14/2011 07:49:24 | 105 | 9 | Not recieving sales order emails |
I am testing a Magento 1.6.2 installation, by making some test orders.
When the payment has gone through (via PayPal Standard), I get the order email sent to the customer and also the payment confirmation from PayPal, but I am not getting the emails to the store owner via Magento, i.e. the order email with the cus... | magento | null | null | null | null | 02/12/2012 08:10:44 | off topic | Not recieving sales order emails
===
I am testing a Magento 1.6.2 installation, by making some test orders.
When the payment has gone through (via PayPal Standard), I get the order email sent to the customer and also the payment confirmation from PayPal, but I am not getting the emails to the store owner via Mage... | 2 |
5,851,450 | 05/01/2011 21:12:06 | 626,706 | 02/21/2011 13:54:08 | 44 | 1 | Java Programming: Integer value to Hexadecimal | I have an integer and I want to convert it to hex value. I am building a message header with each byte value of this array below indicating a specific information about the message.
I want to represent the length of the message in 2 bytes len1 and len2 below.
How do I do this?
byte[] headerMsg =new byte [... | java | null | null | null | null | null | open | Java Programming: Integer value to Hexadecimal
===
I have an integer and I want to convert it to hex value. I am building a message header with each byte value of this array below indicating a specific information about the message.
I want to represent the length of the message in 2 bytes len1 and len2 below.
Ho... | 0 |
8,484,104 | 12/13/2011 03:50:24 | 838,025 | 07/10/2011 23:11:14 | 18 | 0 | C scanf format string warning | I'm working on Euler #3 (http://projecteuler.net/problem=3). I think I've got the logic right, but I'm getting an error when trying to use scanf (and printf) with a long. I'm current trying to use %li and this is the error I'm getting:
euler3.c: In function ‘main’:
euler3.c:30: warning: format ‘%li’ expects... | c | project-euler | scanf | format-string | null | null | open | C scanf format string warning
===
I'm working on Euler #3 (http://projecteuler.net/problem=3). I think I've got the logic right, but I'm getting an error when trying to use scanf (and printf) with a long. I'm current trying to use %li and this is the error I'm getting:
euler3.c: In function ‘main’:
euler3.... | 0 |
3,252,772 | 07/15/2010 05:46:22 | 385,115 | 07/07/2010 03:20:02 | 1 | 0 | Is there a way to find all elements matching a certain style using the DOM? | I want an array of all elements that have fixed position.
This is what I've got so far (mootools code)
$$('*').filter(function(aEl){ return aEl.getStyle('position')=='fixed' });
Is there a more direct way to do this?
| javascript | dom | mootools | null | null | null | open | Is there a way to find all elements matching a certain style using the DOM?
===
I want an array of all elements that have fixed position.
This is what I've got so far (mootools code)
$$('*').filter(function(aEl){ return aEl.getStyle('position')=='fixed' });
Is there a more direct way to do this?
| 0 |
3,175,029 | 07/04/2010 14:50:00 | 295,275 | 03/17/2010 00:34:01 | 11 | 2 | error when use ant to build android project | jarsigner: Certificate chain not found for: csi.keystore. csi.keystore must ref
erence a valid KeyStore key entry containing a private key and corresponding pub
lic key certificate chain..
who has idea? thanks... | android | ant | null | null | null | null | open | error when use ant to build android project
===
jarsigner: Certificate chain not found for: csi.keystore. csi.keystore must ref
erence a valid KeyStore key entry containing a private key and corresponding pub
lic key certificate chain..
who has idea? thanks... | 0 |
2,034,359 | 01/09/2010 18:15:55 | 247,172 | 01/09/2010 18:15:55 | 1 | 0 | TCP disconnection if no data | I've checked out TCP protocol Wiki, but haven't found, if socket connection will time out if no data is transferred during the long period. I mean.. there will be no physical problems, but two computers will just have no data to send each other for some time. How connection will still exist? Will there be some low-leve... | tcp | networking | disconnect | null | null | null | open | TCP disconnection if no data
===
I've checked out TCP protocol Wiki, but haven't found, if socket connection will time out if no data is transferred during the long period. I mean.. there will be no physical problems, but two computers will just have no data to send each other for some time. How connection will still ... | 0 |
7,117,020 | 08/19/2011 04:41:30 | 881,734 | 08/06/2011 08:26:52 | 1 | 0 | How can i implement listview android | I want to search city name
then show city name and temperture in listview automatic
how can i implement?
bt = (Button)findViewById(R.id.button1);
bt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated m... | java | android | button | weather-api | null | 08/19/2011 06:24:32 | not a real question | How can i implement listview android
===
I want to search city name
then show city name and temperture in listview automatic
how can i implement?
bt = (Button)findViewById(R.id.button1);
bt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(V... | 1 |
5,388,276 | 03/22/2011 07:57:36 | 428,142 | 08/23/2010 07:33:15 | 98 | 2 | Outbound Clicks Not Being Tracked By Google Analytics | I am trying to track the number of outbound clicks by Google Analytic on an advertisement banner on my website.
The way this works is, if you are logged in, you see no banner. If you are not logged in, you see the banner. I have successfully done this on my wordpress site using the following code:
<?php
... | php | wordpress | google-analytics | onclick | analytics | null | open | Outbound Clicks Not Being Tracked By Google Analytics
===
I am trying to track the number of outbound clicks by Google Analytic on an advertisement banner on my website.
The way this works is, if you are logged in, you see no banner. If you are not logged in, you see the banner. I have successfully done this on my ... | 0 |
10,989,434 | 06/12/2012 01:14:49 | 795,803 | 06/13/2011 11:02:19 | 52 | 0 | C and C++ for Linux and Windows | As I write Java application, I no need to worry much on the execution in Linux and Windows environment. For the C and C++, is there any tools or techniques that I can apply? | c++ | c | windows | linux | null | 06/12/2012 01:27:41 | not constructive | C and C++ for Linux and Windows
===
As I write Java application, I no need to worry much on the execution in Linux and Windows environment. For the C and C++, is there any tools or techniques that I can apply? | 4 |
944,441 | 06/03/2009 12:27:09 | 17,540 | 09/18/2008 11:07:12 | 550 | 15 | Advice for C#/Web developer looking to progress to C++/Software developement | I have been developing web applications in C# now for ~5 years, and since I started I’ve always wanted to learn c++ and work in a more software orientated role (as opposed to web orientated).
I am getting to the point where I feel very comfortable in C# and my learning curve is starting to plateau a little as I star... | c# | c++ | career-development | null | null | 02/05/2012 07:29:00 | not constructive | Advice for C#/Web developer looking to progress to C++/Software developement
===
I have been developing web applications in C# now for ~5 years, and since I started I’ve always wanted to learn c++ and work in a more software orientated role (as opposed to web orientated).
I am getting to the point where I feel very... | 4 |
11,126,207 | 06/20/2012 18:50:17 | 1,340,097 | 04/18/2012 01:21:12 | 1 | 0 | Zooming bar-graph with d3.js | I am trying to create a bar graph with a time scale where its possible to zoom into any time period. I was able to create the zooming functionality for my x-axis(time scale) however my data (in this case <rects>) doesn't zoom along with my axis.
var y = d3.scale.linear().domain([0, max_val]).range([grap... | d3.js | bar-chart | zooming | null | null | null | open | Zooming bar-graph with d3.js
===
I am trying to create a bar graph with a time scale where its possible to zoom into any time period. I was able to create the zooming functionality for my x-axis(time scale) however my data (in this case <rects>) doesn't zoom along with my axis.
var y = d3.scale.linear(... | 0 |
6,672,007 | 07/12/2011 22:32:48 | 473,040 | 10/12/2010 07:34:59 | 19 | 0 | how to acces hash with string key ? | I'm fooling around with Ruby and basically I have
@trans = { :links => {
:quick_notes => "aaaaaaa"
}
}
I want to call something like
def t
#...something
end
t('links.quick_notes')
to access
trans[:links][:quick_notes]
I'm basically tryin... | ruby | null | null | null | null | null | open | how to acces hash with string key ?
===
I'm fooling around with Ruby and basically I have
@trans = { :links => {
:quick_notes => "aaaaaaa"
}
}
I want to call something like
def t
#...something
end
t('links.quick_notes')
to access
trans[:links][:qu... | 0 |
6,066,647 | 05/20/2011 01:40:15 | 217,588 | 11/24/2009 06:26:59 | 2,614 | 139 | PHP autloading failing in __sleep() magic method | I'm having issues with autoloading classes in PHP's magic `__sleep()` method. Autoloading doesn't take place, so the class cannot be found. In an attempt to debug this I tried calling `spl_autoload_functions()` which then causes PHP to segfault...
The example code below demonstrates the problem. Using an instance... | php | segmentation-fault | autoload | magic-methods | null | null | open | PHP autloading failing in __sleep() magic method
===
I'm having issues with autoloading classes in PHP's magic `__sleep()` method. Autoloading doesn't take place, so the class cannot be found. In an attempt to debug this I tried calling `spl_autoload_functions()` which then causes PHP to segfault...
The example c... | 0 |
8,740,688 | 01/05/2012 10:08:37 | 106,261 | 05/13/2009 12:31:38 | 3,866 | 256 | hibernate session scope | @Override
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public Integer createUsers(final Collection<MyUser> myUsers) {
final Session session = sessionFactory.getCurrentSession();
for (final MyUser myUser : myUsers) {
/*create auto id from db ... | java | hibernate | spring | null | null | null | open | hibernate session scope
===
@Override
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public Integer createUsers(final Collection<MyUser> myUsers) {
final Session session = sessionFactory.getCurrentSession();
for (final MyUser myUser : myUsers) {
... | 0 |
5,944,472 | 05/10/2011 02:15:55 | 311,465 | 04/07/2010 23:04:30 | 2,128 | 118 | Timeword - compress an array of days and represent it as a set of ranges | I am trying to make a function that will take this input:
`mon,tue,wed,thu,fri,sat`
and spit out this:
`mon-sat`
At the moment, i'm using this.
function dayrange($days){
$days = explode(",", str_replace(" ","",$days));
return reset($days) . "-" . end($days);
}
Okay now for the cur... | php | days | null | null | null | null | open | Timeword - compress an array of days and represent it as a set of ranges
===
I am trying to make a function that will take this input:
`mon,tue,wed,thu,fri,sat`
and spit out this:
`mon-sat`
At the moment, i'm using this.
function dayrange($days){
$days = explode(",", str_replace(" ","",$days));
... | 0 |
9,448,063 | 02/25/2012 21:06:05 | 64,785 | 02/10/2009 21:40:42 | 183 | 3 | Backbone Router not triggering route | I have the following router:
appRouter = Backbone.Router.extend({
routes: {
'': 'inbox',
'inbox': 'inbox',
'discussions_engagement': 'contacts',
},
inbox: function(page) {
console.log('inbox');
var page = page || 1;
engage.app.hydrateIn... | javascript | backbone.js | null | null | null | null | open | Backbone Router not triggering route
===
I have the following router:
appRouter = Backbone.Router.extend({
routes: {
'': 'inbox',
'inbox': 'inbox',
'discussions_engagement': 'contacts',
},
inbox: function(page) {
console.log('inbox');
var page ... | 0 |
4,106,005 | 11/05/2010 12:56:29 | 498,316 | 11/05/2010 12:56:29 | 1 | 0 | How to limit JSP <h:messages> messages | I have the <h:messages> wrapped into my own faces component. Right now we found that when adding several messages the are of the <h:messages> expands moving the actual page components to the very far bottom of the page.
It's not viable to change the 300 pages we have on this system. Tried to find way to limit the he... | jsf | numbers | context | limit | messages | null | open | How to limit JSP <h:messages> messages
===
I have the <h:messages> wrapped into my own faces component. Right now we found that when adding several messages the are of the <h:messages> expands moving the actual page components to the very far bottom of the page.
It's not viable to change the 300 pages we have on th... | 0 |
3,168,916 | 07/02/2010 20:27:11 | 382,376 | 07/02/2010 20:23:47 | 1 | 0 | why the submit always wrong? is there any problem with the code? | import urllib2, cookielib
import ClientForm
from BeautifulSoup import BeautifulSoup
first_name = "Jonas"
last_name = "Carlsson"
url = 'http://www.ratsit.se/BC/Search.aspx'
cookiejar = cookielib.LWPCookieJar()
cookiejar = urllib2.HTTPCookieProcessor(cookiejar)
opener = urllib2.build_opener(cookiejar)
urll... | python | asp.net | clientform | null | null | 07/02/2010 20:41:16 | not a real question | why the submit always wrong? is there any problem with the code?
===
import urllib2, cookielib
import ClientForm
from BeautifulSoup import BeautifulSoup
first_name = "Jonas"
last_name = "Carlsson"
url = 'http://www.ratsit.se/BC/Search.aspx'
cookiejar = cookielib.LWPCookieJar()
cookiejar = urllib2.HTTPCookieP... | 1 |
8,187,658 | 11/18/2011 18:58:28 | 873,448 | 08/01/2011 20:28:28 | 88 | 5 | BlockUI jQuery on Button click | I am trying to get a button click to run the BlockUI jQuery pluggin. I am havign some issues this is my first shot at JQuery I do have the Hello World popup example working so I think I am close but could use somehlep getting the rest worked out.
Here is the code...
script src="../../scripts/jquery-1.2.6.js"... | jquery | null | null | null | null | null | open | BlockUI jQuery on Button click
===
I am trying to get a button click to run the BlockUI jQuery pluggin. I am havign some issues this is my first shot at JQuery I do have the Hello World popup example working so I think I am close but could use somehlep getting the rest worked out.
Here is the code...
script... | 0 |
8,272,364 | 11/25/2011 17:21:15 | 679,096 | 03/27/2011 16:12:42 | 45 | 1 | Would I be able to install PuppyLinux to my usb drive and still use it? | Could I just partition my flash-drive to have space for PuppyLinux and use the rest of it(99% of it) for storage still?
I just need a lightweight linux distro that I could boot into to look out a hard drive.
I have a ~120mb flash drive that I could possibly put it on & a 16gb one too. | linux | usb | bootloader | null | null | 11/26/2011 01:09:41 | off topic | Would I be able to install PuppyLinux to my usb drive and still use it?
===
Could I just partition my flash-drive to have space for PuppyLinux and use the rest of it(99% of it) for storage still?
I just need a lightweight linux distro that I could boot into to look out a hard drive.
I have a ~120mb flash drive t... | 2 |
2,019,552 | 01/07/2010 10:24:45 | 234,435 | 12/18/2009 09:49:38 | 71 | 7 | How to import a variable from different file types | I am trying to obtain a variable from a different file type and import it into a Python script. The file is version.mk, it has a variable called VARIABLE_ID. The import module does not work as normally, is there any way to call variables from other file types?
Thanks for any help
import os
from version... | python | null | null | null | null | null | open | How to import a variable from different file types
===
I am trying to obtain a variable from a different file type and import it into a Python script. The file is version.mk, it has a variable called VARIABLE_ID. The import module does not work as normally, is there any way to call variables from other file types?
... | 0 |
11,537,488 | 07/18/2012 08:44:27 | 1,533,470 | 07/18/2012 03:04:57 | 1 | 0 | compile c project with Cygwin | I build project in android use jni .
when I compile the cpp project got this error.
In file included from E:/android▒▒▒▒▒ռ▒/HomeKeyTestForNDK/jni/trainer.cpp:16:
E:/android▒▒▒▒▒ռ▒/HomeKeyTestForNDK/jni/mmap.h: In function 'int<unnamed>::open__(const char*, int)':
E:/android▒▒▒▒▒ռ▒/HomeKeyTestForNDK/jni/mmap.h:60... | android | c++ | cygwin | null | null | 07/20/2012 00:26:30 | not a real question | compile c project with Cygwin
===
I build project in android use jni .
when I compile the cpp project got this error.
In file included from E:/android▒▒▒▒▒ռ▒/HomeKeyTestForNDK/jni/trainer.cpp:16:
E:/android▒▒▒▒▒ռ▒/HomeKeyTestForNDK/jni/mmap.h: In function 'int<unnamed>::open__(const char*, int)':
E:/android▒▒▒▒... | 1 |
11,611,973 | 07/23/2012 11:51:16 | 1,545,605 | 07/23/2012 10:36:39 | 1 | 0 | Mobile Swipe Gallery in Fullscreen | I have a problem with finding a good swipe gallery for mobile web-apps. I explain myself, I need a swipe gallery which will execute in fullscreen and will let me customize the footer bar to add a link to a corporate page. I already tried Photoswipe, Swipe Js but they don't do what I exactly want !! Thanks for all your... | mobile | gallery | swipe | null | null | 07/23/2012 12:00:26 | off topic | Mobile Swipe Gallery in Fullscreen
===
I have a problem with finding a good swipe gallery for mobile web-apps. I explain myself, I need a swipe gallery which will execute in fullscreen and will let me customize the footer bar to add a link to a corporate page. I already tried Photoswipe, Swipe Js but they don't do wh... | 2 |
8,740,643 | 01/05/2012 10:05:41 | 1,131,815 | 01/05/2012 10:00:29 | 1 | 0 | how to show values on the Column Chart google api | I would like to show values on this example :
http://code.google.com/intl/fr/apis/chart/interactive/docs/gallery/columnchart.html
what i want to have is like this :
<pre> <a href="http://chart.apis.google.com/chart?chs=700x280&cht=bvo&chco=3399FF,CCCCFF&chd=t%3a_,_,_,-2064|3927,6133,8053,2802&chxl=0%3a|2010-44|... | google-charts | null | null | null | null | 01/06/2012 20:08:25 | not a real question | how to show values on the Column Chart google api
===
I would like to show values on this example :
http://code.google.com/intl/fr/apis/chart/interactive/docs/gallery/columnchart.html
what i want to have is like this :
<pre> <a href="http://chart.apis.google.com/chart?chs=700x280&cht=bvo&chco=3399FF,CCCCFF&chd... | 1 |
11,152,481 | 06/22/2012 08:13:57 | 1,278,124 | 03/19/2012 08:19:04 | 28 | 0 | best performance method to LOOP through MYSQL table | I am looking to iterate through a USERS table, and for each user selected based on my where clauses, perform a bunch of mysql queries within the LOOP, including temp table creates, using prepare statements, etc
What is the best way in terms of performance should this be done. Using while, for each, for, repeat ?
... | mysql | null | null | null | null | null | open | best performance method to LOOP through MYSQL table
===
I am looking to iterate through a USERS table, and for each user selected based on my where clauses, perform a bunch of mysql queries within the LOOP, including temp table creates, using prepare statements, etc
What is the best way in terms of performance shou... | 0 |
5,373,052 | 03/21/2011 01:45:04 | 206,698 | 11/09/2009 07:47:11 | 20 | 4 | Elapsed time of SQL | ![enter image description here][1]
[1]: http://i.stack.imgur.com/lWTV1.gif
When I remove 41 and 42 lines, Elapsed time is "00:00:03.13". The "com_site" table aliased as [c] has no index or PK.
Result records count is 5503(20 records before removing.)
Could anyone explain me why this happens?
Thanks... | sql-server | null | null | null | null | null | open | Elapsed time of SQL
===
![enter image description here][1]
[1]: http://i.stack.imgur.com/lWTV1.gif
When I remove 41 and 42 lines, Elapsed time is "00:00:03.13". The "com_site" table aliased as [c] has no index or PK.
Result records count is 5503(20 records before removing.)
Could anyone explain me why this... | 0 |
8,878,081 | 01/16/2012 09:40:42 | 1,151,555 | 01/16/2012 09:28:37 | 1 | 0 | How to create and handle dynamic tables in MVC application with Entity Framework | I have an application using MVC with EF 4.1, and having trouble getting it to handle a dynamic table. Specifically as follows:
I want to manage student data in the dynamic table: student_id, for example: Every time I create a student, it will create a table like student_1, student_2
Anyone can help me handle that... | c# | asp.net-mvc-3 | null | null | null | 03/11/2012 13:51:09 | not a real question | How to create and handle dynamic tables in MVC application with Entity Framework
===
I have an application using MVC with EF 4.1, and having trouble getting it to handle a dynamic table. Specifically as follows:
I want to manage student data in the dynamic table: student_id, for example: Every time I create a stude... | 1 |
10,049,034 | 04/06/2012 20:44:26 | 94,508 | 04/22/2009 17:30:09 | 809 | 11 | What types of XCode provisioning profiles should be created? | After recently joining the Apple Developer Program I am trying to understand the best approach when creating provisioning profiles.
The fundamental aspect that is not clear is the relationship between the AppID in the provisioning profile and the actual application.
For example, I created the profile
MyAp... | xcode | provisioning | provisioning-profile | null | null | null | open | What types of XCode provisioning profiles should be created?
===
After recently joining the Apple Developer Program I am trying to understand the best approach when creating provisioning profiles.
The fundamental aspect that is not clear is the relationship between the AppID in the provisioning profile and the act... | 0 |
4,131,508 | 11/09/2010 07:58:30 | 429,295 | 08/24/2010 08:46:14 | 16 | 1 | how to restart a webview | I want to restart my webview with diffrent url how to do it . pls help me | android | null | null | null | null | 06/29/2012 14:09:00 | not a real question | how to restart a webview
===
I want to restart my webview with diffrent url how to do it . pls help me | 1 |
10,134,459 | 04/13/2012 02:19:07 | 1,213,781 | 02/16/2012 12:13:40 | -1 | 0 | jquery $.get with recaptcha issue | I'm using jQuery $.get to load the page which contains recatpcha code but the problem is that when i load the page itself without jquery it perfectly shows captcha but when i call that page using jQuery $.get it is not displaying captcha.
This is the caller script
$.get($captchaPage, function(html){
$('#... | jquery | get | captcha | null | null | null | open | jquery $.get with recaptcha issue
===
I'm using jQuery $.get to load the page which contains recatpcha code but the problem is that when i load the page itself without jquery it perfectly shows captcha but when i call that page using jQuery $.get it is not displaying captcha.
This is the caller script
$.get(... | 0 |
6,884,912 | 07/30/2011 17:47:51 | 870,788 | 07/30/2011 15:18:50 | 1 | 0 | how is create a unique tracking code | how can create a unique tracking code?<br>
What is your suggestion?<p>
The number of characters not more than 10 and use only of number .<br>
Please call example powerful... | php | jquery | php5 | function | codeigniter | 06/02/2012 20:33:24 | not a real question | how is create a unique tracking code
===
how can create a unique tracking code?<br>
What is your suggestion?<p>
The number of characters not more than 10 and use only of number .<br>
Please call example powerful... | 1 |
4,165,662 | 11/12/2010 14:34:19 | 372,176 | 06/21/2010 12:58:00 | 117 | 3 | Sorting arrays numerically and alphabetically without using StrCmpLogicalW or shlwapi.dll - ASP.NET VB | I created a sorter that StrCmpLogicalW / shlwapi.dll. unfortunately it causes errors on partial trust environments. I am in a really bad need of a solution that does not use 'shlwapi.dll' or StrCmpLogicalW and works in the same fashion.
PLEASE HELPPPPP !
Here's the sorter that causes the error.
Public Clas... | asp.net | vb.net | sorting | null | null | null | open | Sorting arrays numerically and alphabetically without using StrCmpLogicalW or shlwapi.dll - ASP.NET VB
===
I created a sorter that StrCmpLogicalW / shlwapi.dll. unfortunately it causes errors on partial trust environments. I am in a really bad need of a solution that does not use 'shlwapi.dll' or StrCmpLogicalW and wo... | 0 |
11,026,277 | 06/14/2012 03:29:46 | 1,455,205 | 06/14/2012 03:17:38 | 1 | 0 | Keep Nav Bar & Creatives Fixed Horizontal Template | Hello good folks of Stackoverflow,
This is my first question, but i must have 2 dozen bookmarked links from your sit in the last months on various coding problems.
First of all thank you for reading this.
I am using a horizontal template from queness site and have uploaded the bare bones of my modified versio... | div | website | horizontal | fixed | null | 06/14/2012 16:28:30 | not a real question | Keep Nav Bar & Creatives Fixed Horizontal Template
===
Hello good folks of Stackoverflow,
This is my first question, but i must have 2 dozen bookmarked links from your sit in the last months on various coding problems.
First of all thank you for reading this.
I am using a horizontal template from queness sit... | 1 |
690,279 | 03/27/2009 15:43:35 | 71,301 | 02/26/2009 09:21:43 | 38 | 6 | copying a document to another library and incrementing version | I have two document libraries, let's call them libDraft and libProduction.
In libDraft employees create procedures which eventually need to be copied to libProduction. I created a workflow in NINTEX 2007 which copies the document to libProductionand increment the major version (so the old file is saved in version co... | sharepoint | copy | document | workflow | null | null | open | copying a document to another library and incrementing version
===
I have two document libraries, let's call them libDraft and libProduction.
In libDraft employees create procedures which eventually need to be copied to libProduction. I created a workflow in NINTEX 2007 which copies the document to libProductionand... | 0 |
10,268,809 | 04/22/2012 14:32:24 | 1,349,631 | 04/22/2012 14:25:33 | 1 | 0 | How to read or understand a new or unknown asp.net app? ( I am beginner ) | I started working as a trainee in a new team. All of them are busy and cannot help me.
We have an asp.net webapplication app C#, .net4, VS10 and mostly all of the code is not commented.
Besides debugging, how can I see the flow? the big picture? like a diagram of all clases?
I am really lost, I understand some... | c# | asp.net | .net | visual-studio | debugging | 04/23/2012 17:55:10 | not a real question | How to read or understand a new or unknown asp.net app? ( I am beginner )
===
I started working as a trainee in a new team. All of them are busy and cannot help me.
We have an asp.net webapplication app C#, .net4, VS10 and mostly all of the code is not commented.
Besides debugging, how can I see the flow? the bi... | 1 |
11,238,117 | 06/28/2012 04:34:57 | 567,854 | 01/08/2011 07:57:01 | 61 | 5 | I need to know about a similar jQuery Plugin | I need to know if anyone knows any plugins to do the same effect as [http://thecampaignpalace.com/][1]. I need to arrange the elements the way it has done in the above site.
[1]: http://thecampaignpalace.com/ | javascript | jquery | jquery-plugins | null | null | 06/28/2012 09:54:11 | not a real question | I need to know about a similar jQuery Plugin
===
I need to know if anyone knows any plugins to do the same effect as [http://thecampaignpalace.com/][1]. I need to arrange the elements the way it has done in the above site.
[1]: http://thecampaignpalace.com/ | 1 |
8,343,583 | 12/01/2011 15:12:02 | 104,975 | 05/11/2009 19:16:57 | 81 | 8 | GoDaddy Forward both www. and top level to Blogger.com | The following picture shows my current DNS setup:
![DNS Settings @ GoDaddy][1]
[1]: http://i.stack.imgur.com/07VbY.png
Currently this setup is working with blogger.com to forward www.bakerama.com to mybakerama.blogspot.com.
What I am trying to figure out is how to also point bakerama.com to either mybak... | redirect | dns | godaddy | blogger | forward | 12/01/2011 23:37:32 | off topic | GoDaddy Forward both www. and top level to Blogger.com
===
The following picture shows my current DNS setup:
![DNS Settings @ GoDaddy][1]
[1]: http://i.stack.imgur.com/07VbY.png
Currently this setup is working with blogger.com to forward www.bakerama.com to mybakerama.blogspot.com.
What I am trying to ... | 2 |
6,591,309 | 07/06/2011 03:40:45 | 184,509 | 10/05/2009 17:34:57 | 483 | 21 | how to manually authenticate user in asp.net windows authentication | I have an Intranet application with Windows Authentication. Everything works fine. However, for some sensitive operations (it could be approving AP check, or grading a student) I need to get user's id and password. The goal is to prevent somebody walking to unattended terminal, and generally for non-repudiation. Trivia... | asp.net | windows-authentication | null | null | null | null | open | how to manually authenticate user in asp.net windows authentication
===
I have an Intranet application with Windows Authentication. Everything works fine. However, for some sensitive operations (it could be approving AP check, or grading a student) I need to get user's id and password. The goal is to prevent somebody ... | 0 |
7,957,123 | 10/31/2011 17:15:02 | 905,783 | 08/22/2011 11:35:18 | 34 | 3 | Cannot pass/bind command to WPF user control | I'm trying to pass a command to an element in a WPF user control.
<UserControl x:Class="MyApp.MyControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- shortened -->
<Button Command="{Bin... | wpf | binding | command | dependency-properties | wpf-usercontrols | null | open | Cannot pass/bind command to WPF user control
===
I'm trying to pass a command to an element in a WPF user control.
<UserControl x:Class="MyApp.MyControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
... | 0 |
8,927,853 | 01/19/2012 14:35:15 | 1,158,692 | 01/19/2012 14:21:27 | 1 | 0 | Throwing an exception as const& | Take the following code;
void DoThrow( const std::exception& e )
{
throw e;
}
int main( int nArgs, char* args[] )
{
std::exception e;
try
{
DoThrow( e );
}
catch( std::exception& e )
{
// const exception ref is caught
}
... | c++ | exception | const | null | null | null | open | Throwing an exception as const&
===
Take the following code;
void DoThrow( const std::exception& e )
{
throw e;
}
int main( int nArgs, char* args[] )
{
std::exception e;
try
{
DoThrow( e );
}
catch( std::exception& e )
{
// const exce... | 0 |
9,898,882 | 03/27/2012 22:53:59 | 1,118,019 | 12/27/2011 17:12:55 | 72 | 0 | pie chart animation with arbitrary areas (with progress) without flash | I am trying to animate a pie chart
this is not the mouse-over and piece of the pie chart will pop up, so please be patient with what i have say
info:
1. there will only be two categories in the pie chart, right or wrong answers, thus only two colors displayed, very simple.
2. the area of each category (right or w... | javascript | jquery | css | html5 | pie-chart | null | open | pie chart animation with arbitrary areas (with progress) without flash
===
I am trying to animate a pie chart
this is not the mouse-over and piece of the pie chart will pop up, so please be patient with what i have say
info:
1. there will only be two categories in the pie chart, right or wrong answers, thus only ... | 0 |
3,397,843 | 08/03/2010 15:04:24 | 132,047 | 07/02/2009 02:22:16 | 492 | 20 | How to determine lazy-loaded properties at runtime on a linq table? | I am iterating over the properties of various mapped tables in my code and need to know whether or not each property is lazy loaded. I have found that the instance variable used for storage, denoted by the `Storage` attribute on the property, will be of type `System.Data.Linq.Link`.
Is there a way that I can leverag... | linq-to-sql | reflection | lazy-loading | null | null | null | open | How to determine lazy-loaded properties at runtime on a linq table?
===
I am iterating over the properties of various mapped tables in my code and need to know whether or not each property is lazy loaded. I have found that the instance variable used for storage, denoted by the `Storage` attribute on the property, will... | 0 |
7,227,315 | 08/29/2011 07:31:08 | 874,184 | 08/02/2011 08:40:37 | 21 | 1 | How to get screenshot from rtmp stream in flowplayer? | Is there any way to get screenshot from flowplayer while streaming rtmp stream ? | streaming | screenshot | rtmp | flowplayer | null | 08/29/2011 13:08:30 | off topic | How to get screenshot from rtmp stream in flowplayer?
===
Is there any way to get screenshot from flowplayer while streaming rtmp stream ? | 2 |
3,702,746 | 09/13/2010 17:12:15 | 398,431 | 07/21/2010 20:25:29 | 823 | 1 | How to write a true if() | I always write if statements like this:
if (...) {
/* do something */
}
When I create topics on stackoverflow, sometimes people change this code to:
if (...)
{
/* do something */
}
So the first `{` goes to a new line.
**Does it make sense, what's the true way?** | php | if-statement | null | null | null | 09/13/2010 17:23:06 | not constructive | How to write a true if()
===
I always write if statements like this:
if (...) {
/* do something */
}
When I create topics on stackoverflow, sometimes people change this code to:
if (...)
{
/* do something */
}
So the first `{` goes to a new line.
**Does it make s... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.