PostId int64 13 11.8M | PostCreationDate stringlengths 19 19 | OwnerUserId int64 3 1.57M | OwnerCreationDate stringlengths 10 19 | ReputationAtPostCreation int64 -33 210k | OwnerUndeletedAnswerCountAtPostTime int64 0 5.77k | Title stringlengths 10 250 | BodyMarkdown stringlengths 12 30k | Tag1 stringlengths 1 25 ⌀ | Tag2 stringlengths 1 25 ⌀ | Tag3 stringlengths 1 25 ⌀ | Tag4 stringlengths 1 25 ⌀ | Tag5 stringlengths 1 25 ⌀ | PostClosedDate stringlengths 19 19 ⌀ | OpenStatus stringclasses 5 values | unified_texts stringlengths 47 30.1k | OpenStatus_id int64 0 4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9,694,199 | 03/14/2012 00:19:20 | 1,267,781 | 03/14/2012 00:16:44 | 1 | 0 | How to put bmp file into array c++ c | how can I put the file.bmp to array using standard lib c++ or c whithout windows.h ect | c++ | open | bmp | null | null | 03/14/2012 18:33:06 | not a real question | How to put bmp file into array c++ c
===
how can I put the file.bmp to array using standard lib c++ or c whithout windows.h ect | 1 |
10,850,035 | 06/01/2012 12:12:15 | 1,430,644 | 06/01/2012 12:04:39 | 1 | 0 | Max urls / second in parallel scraper | I have to scrape thousands of different websites, as fast as possible.
On a single node process I was able to fetch 10 urls per second.
Though if I fork the task to 10 worker processes, I can reach 64 reqs/sec.
Why is so?
Why I am limited to 10 reqs/sec on a single process and have to spawn workers to reach 64 reqs/sec?
- I am not reaching max sockets/host (agent.maxSockets) limit: all urls are from unique hosts.
- I am not reaching max file descriptors limit (AFAIK): my ulimit -n is 2560, and lsof shows that my scraper never uses more than 20 file descriptors.
Is there any limit I don't know about? I am on Mac OS-X. | node.js | screen-scraping | web-crawler | null | null | null | open | Max urls / second in parallel scraper
===
I have to scrape thousands of different websites, as fast as possible.
On a single node process I was able to fetch 10 urls per second.
Though if I fork the task to 10 worker processes, I can reach 64 reqs/sec.
Why is so?
Why I am limited to 10 reqs/sec on a single process and have to spawn workers to reach 64 reqs/sec?
- I am not reaching max sockets/host (agent.maxSockets) limit: all urls are from unique hosts.
- I am not reaching max file descriptors limit (AFAIK): my ulimit -n is 2560, and lsof shows that my scraper never uses more than 20 file descriptors.
Is there any limit I don't know about? I am on Mac OS-X. | 0 |
6,329,577 | 06/13/2011 11:05:56 | 759,883 | 05/18/2011 20:00:25 | 12 | 0 | LNK2019 errors - how do I get rid of them? | Working on a qt project using msvc2008 compiler. I copied some functions from an example project that runs just fine in visual studio 2008, but now I'm getting LNK2019 errors. I've looked around, and they seem to caused by the compiler not finding some kinda declaration?
The errors are:
trackerwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short const * __thiscall CPDIdev::GetLastResultStr(void)" (__imp_?GetLastResultStr@CPDIdev@@QAEPBGXZ) referenced in function "private: bool __thiscall trackerWindow::Connect(void)" (?Connect@trackerWindow@@AAE_NXZ)
and
trackerwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CPDIbiterr::Parse(unsigned short *,unsigned long)const " (__imp_?Parse@CPDIbiterr@@QBEXPAGK@Z) referenced in function "private: bool __thiscall trackerWindow::SetupDevice(void)" (?SetupDevice@trackerWindow@@AAE_NXZ)
and
trackerwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CPDIdev::StartPipeExport(unsigned short const *)" (__imp_?StartPipeExport@CPDIdev@@QAEHPBG@Z) referenced in function "private: bool __thiscall trackerWindow::SetupDevice(void)" (?SetupDevice@trackerWindow@@AAE_NXZ)
The CPDIdev class is from a library that the hardware I'm using uses, so i haven't written any of that code, and don't understand any of it.
I've got the following in the .pro file
INCLUDEPATH += D:\Patriot\Inc
LIBS += D:\Patriot\Lib\PDI.lib
and
#include "PDI.h"
in the header file (trackerwindow.h)... not really sure what declaration or include I'm missing...
Any ideas? Many thanks! | c++ | visual-studio-2008 | qt | visual-c++ | linker-error | null | open | LNK2019 errors - how do I get rid of them?
===
Working on a qt project using msvc2008 compiler. I copied some functions from an example project that runs just fine in visual studio 2008, but now I'm getting LNK2019 errors. I've looked around, and they seem to caused by the compiler not finding some kinda declaration?
The errors are:
trackerwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short const * __thiscall CPDIdev::GetLastResultStr(void)" (__imp_?GetLastResultStr@CPDIdev@@QAEPBGXZ) referenced in function "private: bool __thiscall trackerWindow::Connect(void)" (?Connect@trackerWindow@@AAE_NXZ)
and
trackerwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CPDIbiterr::Parse(unsigned short *,unsigned long)const " (__imp_?Parse@CPDIbiterr@@QBEXPAGK@Z) referenced in function "private: bool __thiscall trackerWindow::SetupDevice(void)" (?SetupDevice@trackerWindow@@AAE_NXZ)
and
trackerwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CPDIdev::StartPipeExport(unsigned short const *)" (__imp_?StartPipeExport@CPDIdev@@QAEHPBG@Z) referenced in function "private: bool __thiscall trackerWindow::SetupDevice(void)" (?SetupDevice@trackerWindow@@AAE_NXZ)
The CPDIdev class is from a library that the hardware I'm using uses, so i haven't written any of that code, and don't understand any of it.
I've got the following in the .pro file
INCLUDEPATH += D:\Patriot\Inc
LIBS += D:\Patriot\Lib\PDI.lib
and
#include "PDI.h"
in the header file (trackerwindow.h)... not really sure what declaration or include I'm missing...
Any ideas? Many thanks! | 0 |
7,035,417 | 08/12/2011 03:52:56 | 286,807 | 03/05/2010 03:28:57 | 11 | 0 | WebKit and window.onerror | WebKit has recently closed a 5 year old ticket adding window.onerror master error handler. The unfortunate thing is that they implemented it without the ability to inspect the error and no call stack looping capability (like IE). Although they implemented as per html5 specification, the lack of a stack makes it close to useless for cross browser code.
The question I wanted to ask is what would you prefer if you had to choose between one of the two options:
1) Error with stack parameter
- Error is machine parsable like mozilla
- stack would contain url, function and line number like moz
- Adv: Error inspection, Simple stack parsing, Source files, Line numbers
- Dis: No arguments inspection
2) Call stack that chains back through to top calls
- This is how IE works
- Use arguments.callee.caller to loop up
- Adv: can inspect arguments up the call stack
- Dis: No source file names, No line numbers
Your input is greatly appreciated. I will post results back to WebKit folks to see if they can close the window.onerror for good.
Thanks for your time.
JsD | javascript | error-handling | webkit | null | null | 08/12/2011 08:11:35 | not constructive | WebKit and window.onerror
===
WebKit has recently closed a 5 year old ticket adding window.onerror master error handler. The unfortunate thing is that they implemented it without the ability to inspect the error and no call stack looping capability (like IE). Although they implemented as per html5 specification, the lack of a stack makes it close to useless for cross browser code.
The question I wanted to ask is what would you prefer if you had to choose between one of the two options:
1) Error with stack parameter
- Error is machine parsable like mozilla
- stack would contain url, function and line number like moz
- Adv: Error inspection, Simple stack parsing, Source files, Line numbers
- Dis: No arguments inspection
2) Call stack that chains back through to top calls
- This is how IE works
- Use arguments.callee.caller to loop up
- Adv: can inspect arguments up the call stack
- Dis: No source file names, No line numbers
Your input is greatly appreciated. I will post results back to WebKit folks to see if they can close the window.onerror for good.
Thanks for your time.
JsD | 4 |
7,508,858 | 09/22/2011 02:18:32 | 958,164 | 09/22/2011 02:18:32 | 1 | 0 | WordPress for Programmer | How important is WordPress as a skill for web developers? I'm a beginner and I am planning to create my personal website, which will be the first site I create. Will I be able to showcase my skills with WordPress? or I will have a better chance impressing potential employers by building a web site from scratch? | wordpress | null | null | null | null | 09/22/2011 03:04:50 | not constructive | WordPress for Programmer
===
How important is WordPress as a skill for web developers? I'm a beginner and I am planning to create my personal website, which will be the first site I create. Will I be able to showcase my skills with WordPress? or I will have a better chance impressing potential employers by building a web site from scratch? | 4 |
6,481,633 | 06/26/2011 01:41:43 | 785,259 | 06/06/2011 01:02:00 | 46 | 0 | including glew using only source files? | For reasons outside of my comprehension, glew will simply not work when statically linked. Is there a way to simply just include the glew.h, glxew.h, wglew.h and glew.c source files into my project and use
#include "glew.h"
instead of
#include <glew.h>
whenever i try i get an explosion of warnings: like
warning C4273: '__WGLEW_NV_render_depth_texture' : inconsistent dll linkage | c++ | visual-c++ | opengl | glew | null | null | open | including glew using only source files?
===
For reasons outside of my comprehension, glew will simply not work when statically linked. Is there a way to simply just include the glew.h, glxew.h, wglew.h and glew.c source files into my project and use
#include "glew.h"
instead of
#include <glew.h>
whenever i try i get an explosion of warnings: like
warning C4273: '__WGLEW_NV_render_depth_texture' : inconsistent dll linkage | 0 |
10,714,796 | 05/23/2012 06:46:44 | 1,386,587 | 05/10/2012 08:39:26 | 5 | 0 | Thickbox div content | I am "lighboxing" a div content in thickbox. The problem is, that div has background. I don't know why thickbox is not reading the background css's.
Here's the sample:
<div id="thickboxID">
<div id="header"></div>
<div id="body"></div>
<div id="footer"></div>
</div>
The header has a width of 260px and a background image. But when I use thickbox, the background images are not shown. | jquery | css | thickbox | null | null | 05/24/2012 13:56:18 | too localized | Thickbox div content
===
I am "lighboxing" a div content in thickbox. The problem is, that div has background. I don't know why thickbox is not reading the background css's.
Here's the sample:
<div id="thickboxID">
<div id="header"></div>
<div id="body"></div>
<div id="footer"></div>
</div>
The header has a width of 260px and a background image. But when I use thickbox, the background images are not shown. | 3 |
11,417,230 | 07/10/2012 15:56:20 | 1,345,854 | 04/20/2012 07:01:12 | 3 | 4 | Push an identical array key next to it | The problem is like this...
An existing array:
Array(
[0] => dog
[1] => cat
)
Another array:
Array(
[0] => horse
)
What I want to happen to add it next to 0 key so it became:
Array(
[0] => dog
[1] => horse
[2] => cat
)
How do you do this?
| php | arrays | null | null | null | null | open | Push an identical array key next to it
===
The problem is like this...
An existing array:
Array(
[0] => dog
[1] => cat
)
Another array:
Array(
[0] => horse
)
What I want to happen to add it next to 0 key so it became:
Array(
[0] => dog
[1] => horse
[2] => cat
)
How do you do this?
| 0 |
11,452,806 | 07/12/2012 13:23:26 | 1,508,257 | 07/07/2012 04:43:52 | 9 | 0 | Look like intavl dosent work for a special reason | I work on source of code that aother person wrote it before. in the one of class a variable
that name is $rem
$rem = $abs_day_num - $token;
abs day num and token look like that used from string type i know $_rem is an string or number i want to use int val to do this process
if(intval($rem) !=0 )
{
$new_calls++;
}
but this code it dosent work for me and cant chek correct condition
where is the problem
| php | mysql | null | null | null | 07/12/2012 13:28:49 | not a real question | Look like intavl dosent work for a special reason
===
I work on source of code that aother person wrote it before. in the one of class a variable
that name is $rem
$rem = $abs_day_num - $token;
abs day num and token look like that used from string type i know $_rem is an string or number i want to use int val to do this process
if(intval($rem) !=0 )
{
$new_calls++;
}
but this code it dosent work for me and cant chek correct condition
where is the problem
| 1 |
10,232,597 | 04/19/2012 16:30:53 | 1,344,513 | 04/19/2012 16:09:04 | 1 | 0 | How to solve MixColumns | I can't really understand MixColumns in Advanced Encryption Standard, can anyone help me how to do this?
I found some topic in the internet about MixColumns, but I still have a lot of question to ask.
ex.
|d4| |02 03 01 01| |04|
|bf| . |01 02 03 01| = |66|
|5d| |01 01 02 03| |81|
|30| |03 01 01 02| |e5|
{d4.02} + {bf . 03} + {5d . 01} + {30 . 01}
first we will try to solve {d4.02}...
we will convert d4 it it's binary form where d4 = 1101 0100..
{d4}.{02}
= 1101 0100 << 1 (<< is left shift, 1 is the number of shift done, pad on with 0's)
= 1010 1000 XOR 0001 1011 (because the leftmost is a 1 before shift)
= 1011 0011 (ans)
Calculation:
1010 1000
0001 1011 (XOR)
= 1011 0011
the 1010 1000 where the binary value of d4 will be XOR to 0001 1011, "0001 1011" will be used if the left most bit of the binary value of "d4" is equals to 1(before shift)..
my question is what if the left most part binary value is equals to "0", where will I "XOR" it?
| math | encryption | logic | aes | null | 04/19/2012 21:11:57 | off topic | How to solve MixColumns
===
I can't really understand MixColumns in Advanced Encryption Standard, can anyone help me how to do this?
I found some topic in the internet about MixColumns, but I still have a lot of question to ask.
ex.
|d4| |02 03 01 01| |04|
|bf| . |01 02 03 01| = |66|
|5d| |01 01 02 03| |81|
|30| |03 01 01 02| |e5|
{d4.02} + {bf . 03} + {5d . 01} + {30 . 01}
first we will try to solve {d4.02}...
we will convert d4 it it's binary form where d4 = 1101 0100..
{d4}.{02}
= 1101 0100 << 1 (<< is left shift, 1 is the number of shift done, pad on with 0's)
= 1010 1000 XOR 0001 1011 (because the leftmost is a 1 before shift)
= 1011 0011 (ans)
Calculation:
1010 1000
0001 1011 (XOR)
= 1011 0011
the 1010 1000 where the binary value of d4 will be XOR to 0001 1011, "0001 1011" will be used if the left most bit of the binary value of "d4" is equals to 1(before shift)..
my question is what if the left most part binary value is equals to "0", where will I "XOR" it?
| 2 |
169,070 | 10/03/2008 22:04:01 | 4,766 | 09/05/2008 14:10:42 | 583 | 10 | Python - How do I write a decorator that restores the cwd? | How do I write a decorator that restores the current working directory to what it was before the decorated function was called? In other words, if I use the decorator on a function that does an os.chdir(), the cwd will not be changed after the function is called. | python | decorator | cwd | null | null | null | open | Python - How do I write a decorator that restores the cwd?
===
How do I write a decorator that restores the current working directory to what it was before the decorated function was called? In other words, if I use the decorator on a function that does an os.chdir(), the cwd will not be changed after the function is called. | 0 |
353,071 | 12/09/2008 15:14:25 | 41,091 | 11/26/2008 16:45:32 | 3 | 0 | [AjaxControlToolkit] How do I get the GridView Control to use post backs for paging inside an update panel? | I have a GridView Control that for other functionality has to be inside an update panel. The site is using the Ajax Control Toolkit and the "EnableSortingAndPagingCallbacks" property on the Grid is set to false. However, when I execute a paging call it is still doing it as a callback instead of a postback. How do I fix this and get the paging calls to fire as a postback? | ajaxcontroltoolkit | asp.net | gridview | vb.net | c# | null | open | [AjaxControlToolkit] How do I get the GridView Control to use post backs for paging inside an update panel?
===
I have a GridView Control that for other functionality has to be inside an update panel. The site is using the Ajax Control Toolkit and the "EnableSortingAndPagingCallbacks" property on the Grid is set to false. However, when I execute a paging call it is still doing it as a callback instead of a postback. How do I fix this and get the paging calls to fire as a postback? | 0 |
11,188,084 | 06/25/2012 11:02:59 | 33,417 | 11/02/2008 11:02:11 | 517 | 5 | How can I differentiate the caller of the Prism's events? | I am using Prism's Event Aggregator and I publish an event from my composite control. But if a developer uses two instances of the control on the same form, how can a subscriber differentiate the events? What is the best practice?
Thank you. | wpf | events | prism | eventaggregator | null | null | open | How can I differentiate the caller of the Prism's events?
===
I am using Prism's Event Aggregator and I publish an event from my composite control. But if a developer uses two instances of the control on the same form, how can a subscriber differentiate the events? What is the best practice?
Thank you. | 0 |
1,201,541 | 07/29/2009 16:39:33 | 141,498 | 07/20/2009 16:09:34 | 3 | 0 | Converting MSSQL null date/time fields | Whenever the value is null for this query
SELECT ISNULL(someDateTime,'')
FROM someTable
the result is<br>
<u>someDateTime</u><br>
1900-01-01 00:00:00.000
I want it to be "No", so if I run this:
<br>
SELECT ISNULL(someDateTime,'No')
FROM someTable<br>
then there's this error: Conversion failed when converting datetime from character string.
How to do it? Thanks in advance!
| sql | null | null | null | null | null | open | Converting MSSQL null date/time fields
===
Whenever the value is null for this query
SELECT ISNULL(someDateTime,'')
FROM someTable
the result is<br>
<u>someDateTime</u><br>
1900-01-01 00:00:00.000
I want it to be "No", so if I run this:
<br>
SELECT ISNULL(someDateTime,'No')
FROM someTable<br>
then there's this error: Conversion failed when converting datetime from character string.
How to do it? Thanks in advance!
| 0 |
7,033,271 | 08/11/2011 21:44:21 | 344,347 | 05/18/2010 18:17:44 | 804 | 47 | Problem with GTIFProj4ToLatLong under Windows | I use libgeotiff in my project. I want to convert pixel coordinates to geographic coordinates (latitude and longtitude). But GTIFProj4ToLatLong returns false. Target OS - Windows. I downloaded libraries from <a href="ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/geotiff_win32_devkit.zip">here</a>.
When I compile my project on Ubuntu using libgeotiff-dev from repository, everything works fine with the same code and the same tiff files.
I suppose some .csv or .lla files are missing when program runs on windows. Should I set some environment variables?
Another way I see is to build libgeotiff manually with mingw and msys. Can it help? It's complicated for me.
| c++ | windows | geotiff | null | null | null | open | Problem with GTIFProj4ToLatLong under Windows
===
I use libgeotiff in my project. I want to convert pixel coordinates to geographic coordinates (latitude and longtitude). But GTIFProj4ToLatLong returns false. Target OS - Windows. I downloaded libraries from <a href="ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/geotiff_win32_devkit.zip">here</a>.
When I compile my project on Ubuntu using libgeotiff-dev from repository, everything works fine with the same code and the same tiff files.
I suppose some .csv or .lla files are missing when program runs on windows. Should I set some environment variables?
Another way I see is to build libgeotiff manually with mingw and msys. Can it help? It's complicated for me.
| 0 |
8,250,461 | 11/23/2011 23:24:30 | 673,993 | 10/13/2010 23:01:13 | 103 | 1 | How to replace a char in txt file in Java? | I have a input.txt which contains only one letter "Q" (path C:\work\input.txt).
I need to replace the letter "Q" inside the file to a letter "A":
public class TxtReplace {
File fileName = new File("C:\work\input.txt");
String text = "";
BufferedReader in = new BufferedReader(new InputStreamReader(fileName));
Scanner fileContent = new Scanner(new FileReader(in));
in.close();
while ( fileContent.hasNextLine() ){
text = fileContent.nextLine();
}
text=text.replace("Q", "A");
BufferedWriter out =
new BufferedWriter(new FileWriter("C:\work\output.txt"));
out.write("text");
out.close();
}
But the code doesn't work. What is wrong with my code? | java | null | null | null | null | 03/23/2012 15:38:51 | not a real question | How to replace a char in txt file in Java?
===
I have a input.txt which contains only one letter "Q" (path C:\work\input.txt).
I need to replace the letter "Q" inside the file to a letter "A":
public class TxtReplace {
File fileName = new File("C:\work\input.txt");
String text = "";
BufferedReader in = new BufferedReader(new InputStreamReader(fileName));
Scanner fileContent = new Scanner(new FileReader(in));
in.close();
while ( fileContent.hasNextLine() ){
text = fileContent.nextLine();
}
text=text.replace("Q", "A");
BufferedWriter out =
new BufferedWriter(new FileWriter("C:\work\output.txt"));
out.write("text");
out.close();
}
But the code doesn't work. What is wrong with my code? | 1 |
3,584,820 | 08/27/2010 13:52:05 | 321,731 | 04/20/2010 21:30:46 | 166 | 5 | who still uses CVS and why? | Which projects still use CVS and why (other than "it's too much work" or "we are afraid of change"). That is, I'd like to know if CVS has any pros when compared to the competition.
[Subversion vs CVS][1] had some interesting CVS pros, but I'm more interested on VCS's in general, not just a comparison with SVN.
[1]:http://stackoverflow.com/questions/245290/subversion-vs-cvs | cvs | null | null | null | null | null | open | who still uses CVS and why?
===
Which projects still use CVS and why (other than "it's too much work" or "we are afraid of change"). That is, I'd like to know if CVS has any pros when compared to the competition.
[Subversion vs CVS][1] had some interesting CVS pros, but I'm more interested on VCS's in general, not just a comparison with SVN.
[1]:http://stackoverflow.com/questions/245290/subversion-vs-cvs | 0 |
4,990,031 | 02/14/2011 08:16:59 | 496,837 | 11/04/2010 05:54:00 | 113 | 2 | Please explain these codes | What is this?
toServer = new Socket(args[0], SERVERPORT);
//open socket for writing. But what is after the new key word????
PrintWriter outSocket = new PrintWriter(new OutputStreamWriter(toServer.getOutputStream()),true);
//open socket for reading.
BufferedReader inSocket = new BufferedReader(new InputStreamReader(toServer.getInputStream())); | java | sockets | null | null | null | 05/24/2012 12:19:02 | not a real question | Please explain these codes
===
What is this?
toServer = new Socket(args[0], SERVERPORT);
//open socket for writing. But what is after the new key word????
PrintWriter outSocket = new PrintWriter(new OutputStreamWriter(toServer.getOutputStream()),true);
//open socket for reading.
BufferedReader inSocket = new BufferedReader(new InputStreamReader(toServer.getInputStream())); | 1 |
10,931,173 | 06/07/2012 11:47:37 | 734,028 | 05/02/2011 06:45:50 | 46 | 4 | Need advice on ASP.Net server machine specs | My client is asking to suggest him a entry level type server machine on which the project will be hosted in his office. Our app is not that big I think, there about 30 aspx files, it uses a Microsoft SQL Server 2008 and the database' size is around 10gb that will get more. Can you suggest what server processor should I get. I'm pretty sure of the ram, it should be ~12gb since the users are a lot and some queries can take a lot of server memory sometimes. Oh and there will be other websites running on that server also, of which I dont have any knowledge of, but they'll also involve accessing microsoft SQL Server, so few more databases will also be deployed on that machine. Please refer me links where I just find some servers for the above mentioned software, so I can compile a list and refer to my client. Thanks. | windows-server-2008 | null | null | null | null | 06/13/2012 12:14:06 | off topic | Need advice on ASP.Net server machine specs
===
My client is asking to suggest him a entry level type server machine on which the project will be hosted in his office. Our app is not that big I think, there about 30 aspx files, it uses a Microsoft SQL Server 2008 and the database' size is around 10gb that will get more. Can you suggest what server processor should I get. I'm pretty sure of the ram, it should be ~12gb since the users are a lot and some queries can take a lot of server memory sometimes. Oh and there will be other websites running on that server also, of which I dont have any knowledge of, but they'll also involve accessing microsoft SQL Server, so few more databases will also be deployed on that machine. Please refer me links where I just find some servers for the above mentioned software, so I can compile a list and refer to my client. Thanks. | 2 |
4,570,199 | 12/31/2010 12:51:52 | 439,219 | 09/03/2010 18:16:54 | 92 | 0 | Removing Alpha Channel from Bitmap (RGBA to RGB) | i was wondering if someone has a code to do this or point me in the right direction, i tried elemenating the 4th byte in each 4 bytes of a pixel, but it never worked. i opened the 32bit image in hex editor, it was kinda all the same sequence of bytes. resolution is 66x66 dots per inch
thanks | c | linux | gcc | null | null | null | open | Removing Alpha Channel from Bitmap (RGBA to RGB)
===
i was wondering if someone has a code to do this or point me in the right direction, i tried elemenating the 4th byte in each 4 bytes of a pixel, but it never worked. i opened the 32bit image in hex editor, it was kinda all the same sequence of bytes. resolution is 66x66 dots per inch
thanks | 0 |
6,881,652 | 07/30/2011 06:58:22 | 815,653 | 06/25/2011 20:20:58 | 98 | 2 | Reuse and extend the defined type in Ocaml | In Ocaml, is there a simple construct/style to extend a defined type?
Say, if we have the boolean type
bool2 = True | False
Now we want to extend it for 3-valued logic. In Ocaml, is there more elegant one than redefining bool2 like this:
bool3 = True | False | ThirdOne
| types | ocaml | extend | null | null | null | open | Reuse and extend the defined type in Ocaml
===
In Ocaml, is there a simple construct/style to extend a defined type?
Say, if we have the boolean type
bool2 = True | False
Now we want to extend it for 3-valued logic. In Ocaml, is there more elegant one than redefining bool2 like this:
bool3 = True | False | ThirdOne
| 0 |
9,129,715 | 02/03/2012 13:55:45 | 490,977 | 10/29/2010 06:52:23 | 3 | 0 | Mysql_connect() is outdated? | I'm working in php5. My friend told that mysql_connect() outdated. | php | mysql | null | null | null | 02/05/2012 16:02:12 | not a real question | Mysql_connect() is outdated?
===
I'm working in php5. My friend told that mysql_connect() outdated. | 1 |
6,367,616 | 06/16/2011 05:47:00 | 231,567 | 12/14/2009 19:50:12 | 500 | 22 | Can DTrace of Java be used for Non Unix Like OS such as windows? | Can DTrace feature provided by Java6 be used on Windows? | java | performance | dtrace | null | null | null | open | Can DTrace of Java be used for Non Unix Like OS such as windows?
===
Can DTrace feature provided by Java6 be used on Windows? | 0 |
7,373,187 | 09/10/2011 16:57:33 | 921,793 | 08/31/2011 14:17:54 | 1 | 0 | Can the 'undefined' call in Chrome and Firefox console be removed? | I've been searching thru Stack Overflow, Google and Google Code for two days for an answer and couldn't find an answer to this question. So hear goes...
I've got a JS object similar to this:
var profile1 = {
one: "1",
two: "2"
}
var profile2 = {
one: "3",
two: "4"
}
function runLoop () {
console.log(this.one);
}
profile1.loop = runLoop;
profile2.loop = runLoop;
profile1.loop();
So profile1.loop() will run fine in this case and return a string value of "1". But if I try to run it from the console in either Chrome or FF, "1" will still return but then send out a message of "undefined".
Can this be fixed or am I chasing my tail here? If an answer to this question exists on SO, please post.
thanx in advance,
kaidez | javascript | firefox | google-chrome | console | null | null | open | Can the 'undefined' call in Chrome and Firefox console be removed?
===
I've been searching thru Stack Overflow, Google and Google Code for two days for an answer and couldn't find an answer to this question. So hear goes...
I've got a JS object similar to this:
var profile1 = {
one: "1",
two: "2"
}
var profile2 = {
one: "3",
two: "4"
}
function runLoop () {
console.log(this.one);
}
profile1.loop = runLoop;
profile2.loop = runLoop;
profile1.loop();
So profile1.loop() will run fine in this case and return a string value of "1". But if I try to run it from the console in either Chrome or FF, "1" will still return but then send out a message of "undefined".
Can this be fixed or am I chasing my tail here? If an answer to this question exists on SO, please post.
thanx in advance,
kaidez | 0 |
5,148,900 | 02/28/2011 23:39:20 | 532,487 | 12/06/2010 15:35:22 | 106 | 3 | Should I convert this dropdown selection to radio buttons or make it work with jquery? | I recently managed to get dropdown selection to work by dynamically ouputing some data from php and using jquery to disable certain options in the dropdown depending on the stock quantity for my ecommerce site.
Here is the code: http://jsbin.com/osipe5/2/edit
The issue now is that I want to have the selection displayed as a radio button for now and eventually use css to to style it similar to something like this: http://jsbin.com/uwuje (posted by another SO user)
So my question is: Should I convert the dropdown entirely into a chained radio button selection or do something like this: http://jsfiddle.net/yJTdF/ (posted by another SO user) where radio buttons are generated by jquery and hide the dropdown using css?
I am concerned about usability and cross-browser issues.
Any input is much appreciated.
Thanks! | jquery | html | null | null | null | null | open | Should I convert this dropdown selection to radio buttons or make it work with jquery?
===
I recently managed to get dropdown selection to work by dynamically ouputing some data from php and using jquery to disable certain options in the dropdown depending on the stock quantity for my ecommerce site.
Here is the code: http://jsbin.com/osipe5/2/edit
The issue now is that I want to have the selection displayed as a radio button for now and eventually use css to to style it similar to something like this: http://jsbin.com/uwuje (posted by another SO user)
So my question is: Should I convert the dropdown entirely into a chained radio button selection or do something like this: http://jsfiddle.net/yJTdF/ (posted by another SO user) where radio buttons are generated by jquery and hide the dropdown using css?
I am concerned about usability and cross-browser issues.
Any input is much appreciated.
Thanks! | 0 |
3,085,834 | 06/21/2010 15:08:18 | 125,380 | 06/18/2009 20:38:16 | 1,819 | 36 | What are your LS_COLORS? | After installing a full version of Cygwin, I open up the MinTTY shell and I like the green on black. However, when I do an 'ls', I get a dark blue for directories. It's not very readable. I found that the [LS_COLORS environment variable][1] controls the output of ls. Here is my current default:
<pre>
no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:
or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:
*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:
*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:
*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:
*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:
*.png=00;35:*.tif=00;35:
</pre>
Changing from `di=00;34` to `di=00;94` makes ls much more readable. Has anyone found other useful tweaks?
[1]: http://linux-sxs.org/housekeeping/lscolors.html | linux | bash | ls | null | null | 06/21/2010 15:14:19 | off topic | What are your LS_COLORS?
===
After installing a full version of Cygwin, I open up the MinTTY shell and I like the green on black. However, when I do an 'ls', I get a dark blue for directories. It's not very readable. I found that the [LS_COLORS environment variable][1] controls the output of ls. Here is my current default:
<pre>
no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:
or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:
*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:
*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:
*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:
*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:
*.png=00;35:*.tif=00;35:
</pre>
Changing from `di=00;34` to `di=00;94` makes ls much more readable. Has anyone found other useful tweaks?
[1]: http://linux-sxs.org/housekeeping/lscolors.html | 2 |
5,936,419 | 05/09/2011 11:46:57 | 723,697 | 04/25/2011 12:15:38 | 15 | 0 | reversing a String in java | Code to revers a string in java:
NOTE: One or two additional variables are fine. An extra copy of the array is not.
Now i have implemented a algo as follows:
public static void removeDuplicates(char[] str) {
2 if (str == null) return;
3 int len = str.length;
4 if (len < 2) return;
5
6 int tail = 1;
7
8 for (int i = 1; i < len; ++i) {
9 int j;
10 for (j = 0; j < tail; ++j) {
11 if (str[i] == str[j]) break;
12 }
13 if (j == tail) {
14 str[tail] = str[i];
15 ++tail;
16 }
17 }
18 str[tail] = something //something to mark end of char array eg '\0' as we have in C
19 } | java | interview-questions | null | null | null | 05/09/2011 12:34:46 | not a real question | reversing a String in java
===
Code to revers a string in java:
NOTE: One or two additional variables are fine. An extra copy of the array is not.
Now i have implemented a algo as follows:
public static void removeDuplicates(char[] str) {
2 if (str == null) return;
3 int len = str.length;
4 if (len < 2) return;
5
6 int tail = 1;
7
8 for (int i = 1; i < len; ++i) {
9 int j;
10 for (j = 0; j < tail; ++j) {
11 if (str[i] == str[j]) break;
12 }
13 if (j == tail) {
14 str[tail] = str[i];
15 ++tail;
16 }
17 }
18 str[tail] = something //something to mark end of char array eg '\0' as we have in C
19 } | 1 |
8,222,047 | 11/22/2011 04:38:55 | 952,427 | 09/19/2011 10:09:02 | 1 | 0 | is call divert application is available in android mrk with following feature | Is there any android application available in android market which can do following step.
1) Received sms .
2) And divert the all calls of the same mobile to different number requested by sender to a particular number which ismentioned in the sms.
| android | null | null | null | null | 11/23/2011 07:02:18 | off topic | is call divert application is available in android mrk with following feature
===
Is there any android application available in android market which can do following step.
1) Received sms .
2) And divert the all calls of the same mobile to different number requested by sender to a particular number which ismentioned in the sms.
| 2 |
10,310,235 | 04/25/2012 06:10:50 | 623,266 | 02/18/2011 14:17:12 | 1,149 | 18 | jquery not firing for link added using ajax | I have a list of images that are also link such as follows:
<a href="#"><img alt="P1010104" class="uploaded_image" src="/assets/user_images/156/thumb/P1010104.jpg?1335332807" /></a>
<a href="#"><img alt="P1010104" class="uploaded_image" src="/assets/user_images/157/thumb/P1010105.jpg?1335332809" /></a>
I have some javascript that adds the images to a page when one image is clicked:
//add an image from the gallery to the mail later
$('.uploaded_image').click(function(){
alert('clicked');
var src=$(this).attr('src').replace("thumb", "medium");
var location = $('#user_image_location').attr('value');
$('#mailing_body').contents().find("[data-edit-img="+''+location+''+"]").attr('src', src);
$('[data-dismiss]="cancel"').click();
});
I user some ajax to add another image to the images list. However when I click on this newly added image the javascript does not fire.
How can I do this?
Thanks | javascript | jquery | ajax | null | null | 04/25/2012 12:20:34 | not a real question | jquery not firing for link added using ajax
===
I have a list of images that are also link such as follows:
<a href="#"><img alt="P1010104" class="uploaded_image" src="/assets/user_images/156/thumb/P1010104.jpg?1335332807" /></a>
<a href="#"><img alt="P1010104" class="uploaded_image" src="/assets/user_images/157/thumb/P1010105.jpg?1335332809" /></a>
I have some javascript that adds the images to a page when one image is clicked:
//add an image from the gallery to the mail later
$('.uploaded_image').click(function(){
alert('clicked');
var src=$(this).attr('src').replace("thumb", "medium");
var location = $('#user_image_location').attr('value');
$('#mailing_body').contents().find("[data-edit-img="+''+location+''+"]").attr('src', src);
$('[data-dismiss]="cancel"').click();
});
I user some ajax to add another image to the images list. However when I click on this newly added image the javascript does not fire.
How can I do this?
Thanks | 1 |
5,122,494 | 02/25/2011 20:52:06 | 623,432 | 02/18/2011 16:06:11 | 13 | 0 | Business Intelligence Server for a startup | What are some low cost Business Intelligence Servers on the market? | business-intelligence | null | null | null | null | 06/25/2012 22:34:36 | off topic | Business Intelligence Server for a startup
===
What are some low cost Business Intelligence Servers on the market? | 2 |
6,638,233 | 07/09/2011 23:45:00 | 177,222 | 09/22/2009 15:00:29 | 6,022 | 196 | HTML5 Canvas hosted on Dropbox doesn't work with IE9 | Try this link on Firefox or Chrome:
http://dl.dropbox.com/u/34375299/aaa/index.html
Notice a simple animation appears on a HTML5 canvas there.
Load the same link in IE9, and it displays the fallback content inside the canvas tag: "Your browser does not appear to support HTML5..." - but IE9 has perfectly good canvas support!
I'm using `<!DOCTYPE html>`, and if all the necessary files are downloaded and run in IE9 from disk, it works OK. Also, the same page hosted on other providers (e.g. normal web servers rather than dropbox), it also works OK.
What's different about dropbox that means IE9 won't show a canvas, and can I fix it? | html5 | canvas | internet-explorer-9 | dropbox | null | null | open | HTML5 Canvas hosted on Dropbox doesn't work with IE9
===
Try this link on Firefox or Chrome:
http://dl.dropbox.com/u/34375299/aaa/index.html
Notice a simple animation appears on a HTML5 canvas there.
Load the same link in IE9, and it displays the fallback content inside the canvas tag: "Your browser does not appear to support HTML5..." - but IE9 has perfectly good canvas support!
I'm using `<!DOCTYPE html>`, and if all the necessary files are downloaded and run in IE9 from disk, it works OK. Also, the same page hosted on other providers (e.g. normal web servers rather than dropbox), it also works OK.
What's different about dropbox that means IE9 won't show a canvas, and can I fix it? | 0 |
6,166,702 | 05/29/2011 08:27:55 | 754,437 | 05/15/2011 12:08:20 | 81 | 8 | OrientDB: stories from the trenches? | Currently I am looking a little bit closer at OrientDB, and must say that I am quite impressed:
* both embeddable and server deployment
* no impedance mismatch between (java) objects and persistance
* still a query language
* can be used schema-less and with full schema support
* transaction support
* fast, scalable, whatever
It sounds almost too good to be true. So my questions are:
Does anybody have a more in-depth experience with OrientDB? If so, what are the impressions? Where are the shortcomings? Any "the good, the bad and the ugly"-reports? | nosql | orient-db | null | null | null | 05/30/2011 10:21:57 | off topic | OrientDB: stories from the trenches?
===
Currently I am looking a little bit closer at OrientDB, and must say that I am quite impressed:
* both embeddable and server deployment
* no impedance mismatch between (java) objects and persistance
* still a query language
* can be used schema-less and with full schema support
* transaction support
* fast, scalable, whatever
It sounds almost too good to be true. So my questions are:
Does anybody have a more in-depth experience with OrientDB? If so, what are the impressions? Where are the shortcomings? Any "the good, the bad and the ugly"-reports? | 2 |
5,211,259 | 03/06/2011 15:11:31 | 522,482 | 11/27/2010 19:05:29 | 5 | 1 | Strange Bar Overlayed on Flex Interface | When I set my Flex application to run in FullScreen_Interactive, as soon as I click on a control this bar appears along the bottom of the screen. It's quite obtrusive and has shown up on two different computers so far.
There's a lot of solid white underneath it and it covers at least 5-10% of the bottom of the screen, it blocks the controls also. I obviously never made/placed this thing, has anyone else come across this?
| flex | air | components | flash-builder | bar | null | open | Strange Bar Overlayed on Flex Interface
===
When I set my Flex application to run in FullScreen_Interactive, as soon as I click on a control this bar appears along the bottom of the screen. It's quite obtrusive and has shown up on two different computers so far.
There's a lot of solid white underneath it and it covers at least 5-10% of the bottom of the screen, it blocks the controls also. I obviously never made/placed this thing, has anyone else come across this?
| 0 |
640,055 | 03/12/2009 19:08:34 | 70,398 | 02/24/2009 14:45:45 | 11 | 0 | How to insert a value in a string at certain positions c# | I have a program that gets a string from a method.
I want to know how to insert a string value to that string at certain positions.
For example,
if mystring = column1 in('a','b')column2 in('c','d')column3 in('e','f')
Here, how would I insert the string value " and " after every occurance of the character ')' in mystring ?
PS. if possible, also include how not to insert it right at the end
Thank you | insert | c# | index | value | null | null | open | How to insert a value in a string at certain positions c#
===
I have a program that gets a string from a method.
I want to know how to insert a string value to that string at certain positions.
For example,
if mystring = column1 in('a','b')column2 in('c','d')column3 in('e','f')
Here, how would I insert the string value " and " after every occurance of the character ')' in mystring ?
PS. if possible, also include how not to insert it right at the end
Thank you | 0 |
11,404,595 | 07/09/2012 23:17:27 | 1,513,299 | 07/09/2012 23:13:35 | 1 | 0 | How to put a while loop in a variable? | Well, it aren't more then the code actually!
$toq = mysql_query("SELECT * FROM users")
or die(mysql_error());
$to = while($row = mysql_fetch_array($toq)) { echo "".$row['mail'].", "; };
echo $to;`enter code here` | php | null | null | null | null | 07/10/2012 04:33:06 | not a real question | How to put a while loop in a variable?
===
Well, it aren't more then the code actually!
$toq = mysql_query("SELECT * FROM users")
or die(mysql_error());
$to = while($row = mysql_fetch_array($toq)) { echo "".$row['mail'].", "; };
echo $to;`enter code here` | 1 |
7,941,481 | 10/29/2011 20:29:15 | 816,604 | 06/26/2011 23:30:51 | 1 | 0 | Ecommerce Websitee taxes shipping | i am building an e-commerce online website, and I would like to know:
1. How does shipping work on e-commerce sites? Are there standard shipping options that every e-commerce website provides? How do I find the price for each shipping method? Is shipping taxed? What affects the shipping charge? Is there a website I can go to to get that information?
2. How do sale taxes works? Do we charge customers sales tax based on the total amount they spend on the site? | php | e-commerce | shopping | shop | null | 10/30/2011 14:26:12 | off topic | Ecommerce Websitee taxes shipping
===
i am building an e-commerce online website, and I would like to know:
1. How does shipping work on e-commerce sites? Are there standard shipping options that every e-commerce website provides? How do I find the price for each shipping method? Is shipping taxed? What affects the shipping charge? Is there a website I can go to to get that information?
2. How do sale taxes works? Do we charge customers sales tax based on the total amount they spend on the site? | 2 |
4,500,084 | 12/21/2010 14:06:33 | 536,153 | 12/09/2010 09:03:51 | 3 | 0 | process information in C# | is there any way to find information about a process, such as type (browser, player.. ) with C#? or with any API function? | c# | api | process | null | null | null | open | process information in C#
===
is there any way to find information about a process, such as type (browser, player.. ) with C#? or with any API function? | 0 |
5,511,398 | 04/01/2011 09:16:51 | 495,093 | 11/02/2010 18:06:00 | 125 | 2 | File Manager For asp.net CKEditor | Is There any fileManager for [asp.net CKEditor](http://ckeditor.com/download) ? | asp.net | ckeditor | null | null | null | 02/27/2012 16:11:40 | not constructive | File Manager For asp.net CKEditor
===
Is There any fileManager for [asp.net CKEditor](http://ckeditor.com/download) ? | 4 |
5,595,199 | 04/08/2011 12:43:37 | 556,982 | 12/29/2010 10:01:49 | 109 | 10 | how to create chat like gmail in php? | i have developed doctor site in php. in this site i have need implement chat, for patient chat with doctors who's in online.
please advise me.
how to implement it.
thanks & Regard.
R.Ramkumar | php | chat | null | null | null | 04/08/2011 14:48:32 | not a real question | how to create chat like gmail in php?
===
i have developed doctor site in php. in this site i have need implement chat, for patient chat with doctors who's in online.
please advise me.
how to implement it.
thanks & Regard.
R.Ramkumar | 1 |
6,362,280 | 06/15/2011 18:10:42 | 689,131 | 04/02/2011 17:47:22 | 151 | 5 | D template spezialisation in different source file | I recently asked [this][1] question about how to simulate type classes in D and suggested a way to do this using template spezialisation.
I encountered that D doesn´t recognizes template spezialisation in a different source file. So i couldn´t just make a spezialisation in a file not included from the file where the generic function is defined. To issustrate this i´ll give you an example:
//template.d
import std.stdio;
template Generic(A) {
void sayHello() {
writefln("Generic");
}
}
void testTemplate(A)() {
Generic!A.sayHello();
}
//spezialisation.d
import std.stdio;
import Template;
template Generic(A:int) {
void sayHello() {
writefln("only for ints");
}
}
void main() {
testTemplate!int();
}
this code prints "generic" when i run it.
So I´m asking wheter there is some good workaround, so that the spezialisation can be found from the algorithm.
The workaround I took in the question about Type classes was to mixin the generic functions after importing all files with template spezialisation, but this is somewhat ugly and limited.
I heard c++0x will have extern templates, wich will allow this. Does D have a simular feature, too ?
[1]: http://stackoverflow.com/questions/6328444/type-classes-in-d | templates | d | null | null | null | null | open | D template spezialisation in different source file
===
I recently asked [this][1] question about how to simulate type classes in D and suggested a way to do this using template spezialisation.
I encountered that D doesn´t recognizes template spezialisation in a different source file. So i couldn´t just make a spezialisation in a file not included from the file where the generic function is defined. To issustrate this i´ll give you an example:
//template.d
import std.stdio;
template Generic(A) {
void sayHello() {
writefln("Generic");
}
}
void testTemplate(A)() {
Generic!A.sayHello();
}
//spezialisation.d
import std.stdio;
import Template;
template Generic(A:int) {
void sayHello() {
writefln("only for ints");
}
}
void main() {
testTemplate!int();
}
this code prints "generic" when i run it.
So I´m asking wheter there is some good workaround, so that the spezialisation can be found from the algorithm.
The workaround I took in the question about Type classes was to mixin the generic functions after importing all files with template spezialisation, but this is somewhat ugly and limited.
I heard c++0x will have extern templates, wich will allow this. Does D have a simular feature, too ?
[1]: http://stackoverflow.com/questions/6328444/type-classes-in-d | 0 |
8,835,636 | 01/12/2012 13:13:02 | 934,777 | 09/08/2011 12:23:30 | 150 | 1 | Which CMS to use for a small non-profit organisation | I need to do make a website for a small non-profit organisation pretty quick. My original plan was to build a custom CMS in MVC3 but other "proper" projects are consuming too much of my time.
I need to decide on a quick and easy-to-learn CMS which I can throw my own custom HTML based template ontop of.
I know the obvious ones like Joomla and want to avoid things such as WordPress as it wouldn't be suitable.
The site is basically for a small 30-40 person organisation which needs a few static pages, a calendar and user logins - So nothing overly fancy :)
Advice on a decent, free and easy-to-use CMS would be appreciated! I'm quite technically minded and also a web programmer, so dont mind chopping and hacking code together either!
Info:
Joomla - I'm not too familiar with Joomla, glanced over the Quick start and it looks pretty complex compared to what it used to be!
DotNetNuke - For some reason ran slow on my host ~30-40 seconds a page! Not really appropriate.
I have access to pretty much most web technologies on my host. | joomla | content-management-system | internet | null | null | 01/12/2012 13:40:22 | not constructive | Which CMS to use for a small non-profit organisation
===
I need to do make a website for a small non-profit organisation pretty quick. My original plan was to build a custom CMS in MVC3 but other "proper" projects are consuming too much of my time.
I need to decide on a quick and easy-to-learn CMS which I can throw my own custom HTML based template ontop of.
I know the obvious ones like Joomla and want to avoid things such as WordPress as it wouldn't be suitable.
The site is basically for a small 30-40 person organisation which needs a few static pages, a calendar and user logins - So nothing overly fancy :)
Advice on a decent, free and easy-to-use CMS would be appreciated! I'm quite technically minded and also a web programmer, so dont mind chopping and hacking code together either!
Info:
Joomla - I'm not too familiar with Joomla, glanced over the Quick start and it looks pretty complex compared to what it used to be!
DotNetNuke - For some reason ran slow on my host ~30-40 seconds a page! Not really appropriate.
I have access to pretty much most web technologies on my host. | 4 |
11,621,090 | 07/23/2012 21:50:57 | 148,273 | 07/31/2009 05:04:32 | 125 | 2 | BOX events api stopped working as of 23rd July 2012 10:00am PST | We have noticed that as of 23rd July 2012 10:00am PST events api stopped working.
We are getting following errors for all our accounts:
{"type":"error","status":500,
"code":"internal_server_error",
"help_url":"http:\/\/developers.box.com\/docs\/#errors",
"message": "Internal Server Error",
"request_id":"1740663416500dc42663d5a"})
If there a way to check status of API?
| box-api | null | null | null | null | 07/24/2012 13:11:32 | too localized | BOX events api stopped working as of 23rd July 2012 10:00am PST
===
We have noticed that as of 23rd July 2012 10:00am PST events api stopped working.
We are getting following errors for all our accounts:
{"type":"error","status":500,
"code":"internal_server_error",
"help_url":"http:\/\/developers.box.com\/docs\/#errors",
"message": "Internal Server Error",
"request_id":"1740663416500dc42663d5a"})
If there a way to check status of API?
| 3 |
3,961,988 | 10/18/2010 18:04:04 | 445,105 | 02/23/2009 17:49:40 | 11,763 | 472 | How do I fix a jQuery Dialog that is stretching vertically across my site? | I have a jQuery dialog defined as follows
<div id="emaildialog" title="Contact Us">
<!-- Html.RenderPartial("ContactUs"); -->
<div>This is a test</div>
</div>
<script type="text/javascript">
(function ($) {
// increase the default animation speed to exaggerate the effect
$.fx.speeds._default = 1000;
$(function() {
$( "#emaildialog" ).dialog({
autoOpen: false,
show: "blind",
hide: "explode",
width: 700,
modal: true,
position: 'center'
});
$( "#viewselected" ).click(function() {
$( "#emaildialog" ).dialog( "open" );
return false;
});
});
})(jQuery);
</script>
When I click on the button that causes the dialog to show up, the dialog is centered in the middle of the screen, but it span the entire height of the we page. Specifically, the title bar itself stretches and the content at the bottom of the dialog seems fine.
Does anyone know what might be causing this and how to fix it?
I noticed one odd thing. If I click on the side of the dialog to resize the dialog, then it redraws itself properly, and upon inspecting the css I noticed that the dialog has it's position changed from relative to absolute, but this is all done inside jQuery UI, so I'm not sure how to fix this in my code.
| jquery | jquery-ui | null | null | null | null | open | How do I fix a jQuery Dialog that is stretching vertically across my site?
===
I have a jQuery dialog defined as follows
<div id="emaildialog" title="Contact Us">
<!-- Html.RenderPartial("ContactUs"); -->
<div>This is a test</div>
</div>
<script type="text/javascript">
(function ($) {
// increase the default animation speed to exaggerate the effect
$.fx.speeds._default = 1000;
$(function() {
$( "#emaildialog" ).dialog({
autoOpen: false,
show: "blind",
hide: "explode",
width: 700,
modal: true,
position: 'center'
});
$( "#viewselected" ).click(function() {
$( "#emaildialog" ).dialog( "open" );
return false;
});
});
})(jQuery);
</script>
When I click on the button that causes the dialog to show up, the dialog is centered in the middle of the screen, but it span the entire height of the we page. Specifically, the title bar itself stretches and the content at the bottom of the dialog seems fine.
Does anyone know what might be causing this and how to fix it?
I noticed one odd thing. If I click on the side of the dialog to resize the dialog, then it redraws itself properly, and upon inspecting the css I noticed that the dialog has it's position changed from relative to absolute, but this is all done inside jQuery UI, so I'm not sure how to fix this in my code.
| 0 |
5,329,339 | 03/16/2011 17:35:42 | 278,337 | 02/21/2010 22:59:28 | 111 | 14 | jQuery string to DOM without DOM insertion | I have a textarea with the following content (innerHTML):
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
</body>
</html>
To prepare the content for DOM parsing with jQuery I do the following (temp is just a div):
$('#temp').append(input.val());
console.log($('#temp').html());
As pointed out at http://stackoverflow.com/questions/4155680/jquery-object-from-complete-html-document, the head, body, html and doctype tags are gone:
<meta charset="utf-8">
<title></title>
So is there any other way not to append to the DOM and still get DOM elements to work with?
Iframe may be a last resort but that would be ugly. | jquery | parsing | dom | innerhtml | null | null | open | jQuery string to DOM without DOM insertion
===
I have a textarea with the following content (innerHTML):
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
</body>
</html>
To prepare the content for DOM parsing with jQuery I do the following (temp is just a div):
$('#temp').append(input.val());
console.log($('#temp').html());
As pointed out at http://stackoverflow.com/questions/4155680/jquery-object-from-complete-html-document, the head, body, html and doctype tags are gone:
<meta charset="utf-8">
<title></title>
So is there any other way not to append to the DOM and still get DOM elements to work with?
Iframe may be a last resort but that would be ugly. | 0 |
5,044,219 | 02/18/2011 17:03:03 | 620,615 | 02/17/2011 01:29:46 | 26 | 2 | Printign 2d Array in Perl | I have a problem with return the string[][]. I cannot return the whole array
and the second problem is
@language[$id] = [@$eng];
@return = [[@language[$id]],[@$eng]];
when I use the foreach to loop through the 2d array (@return). it gives me some output as
word:
ARRAY(0x30ae1b4) ARRAY(0x30ae1e4)
... Hello.2.....
word: ARRAY(0x30ae534) ARRAY(0x30ae574) ...
Please help...
sub nextWord{
my @return = [];
for my $id(1 .. 3)
{
my $eng = $db->selectall_arrayref("select word from words
left outer join language
on words.languageId = language.languageId
where words.languageId = $id
order by word asc
;"); #limit 10 offset $currentOffset
@language[$id] = [@$eng];
@return = [[@language[$id]],[@$eng]];
foreach my $row (@return)
{
print "word: @$row ...\n";
print " Hello.". @$row.".....\n";
}
$currentOffset+=10;
}return @return;
} | perl | null | null | null | null | 02/18/2011 20:33:01 | too localized | Printign 2d Array in Perl
===
I have a problem with return the string[][]. I cannot return the whole array
and the second problem is
@language[$id] = [@$eng];
@return = [[@language[$id]],[@$eng]];
when I use the foreach to loop through the 2d array (@return). it gives me some output as
word:
ARRAY(0x30ae1b4) ARRAY(0x30ae1e4)
... Hello.2.....
word: ARRAY(0x30ae534) ARRAY(0x30ae574) ...
Please help...
sub nextWord{
my @return = [];
for my $id(1 .. 3)
{
my $eng = $db->selectall_arrayref("select word from words
left outer join language
on words.languageId = language.languageId
where words.languageId = $id
order by word asc
;"); #limit 10 offset $currentOffset
@language[$id] = [@$eng];
@return = [[@language[$id]],[@$eng]];
foreach my $row (@return)
{
print "word: @$row ...\n";
print " Hello.". @$row.".....\n";
}
$currentOffset+=10;
}return @return;
} | 3 |
8,856,892 | 01/13/2012 20:36:11 | 1,148,400 | 01/13/2012 19:44:29 | 1 | 0 | node.js file memory leak? | I'm seeing a memory leak with the following code:
while (true) {
console.log("Testing.");
}
I have tried defining the string and just using a constant, but it leaks memory, still:
var test = "Testing.";
while (true) {
console.log(test);
}
The same leak happens if I use a file instead of the standard log:
var test = "Testing.";
var fh = fs.createWriteStream("test.out", {flags: "a"});
while (true) {
fh.write(test);
}
I thought maybe it was because I wasn't properly closing the file, but I tried this and still saw the leak:
var test = "Testing";
while (true) {
var fh = fs.createWriteStream("test.out", {flags: "a"});
fh.end(test);
fh.destroy();
fh = null;
}
Does anyone have any hints as to how I'm supposed to write things without leaking memory? | file | node.js | memory-leaks | logging | null | null | open | node.js file memory leak?
===
I'm seeing a memory leak with the following code:
while (true) {
console.log("Testing.");
}
I have tried defining the string and just using a constant, but it leaks memory, still:
var test = "Testing.";
while (true) {
console.log(test);
}
The same leak happens if I use a file instead of the standard log:
var test = "Testing.";
var fh = fs.createWriteStream("test.out", {flags: "a"});
while (true) {
fh.write(test);
}
I thought maybe it was because I wasn't properly closing the file, but I tried this and still saw the leak:
var test = "Testing";
while (true) {
var fh = fs.createWriteStream("test.out", {flags: "a"});
fh.end(test);
fh.destroy();
fh = null;
}
Does anyone have any hints as to how I'm supposed to write things without leaking memory? | 0 |
8,903,409 | 01/18/2012 00:01:28 | 437,861 | 09/02/2010 10:54:47 | 16 | 2 | Formating Strings in input like tags in HTML | Hey guys i want to use the jquery Autocomplete plugin and instead of separating the tags with , i want to format each tag like displayed in the attached picture.
![enter image description here][1]
[1]: http://i.stack.imgur.com/2sEuR.png | jquery | html | css | null | null | 01/18/2012 12:49:13 | not a real question | Formating Strings in input like tags in HTML
===
Hey guys i want to use the jquery Autocomplete plugin and instead of separating the tags with , i want to format each tag like displayed in the attached picture.
![enter image description here][1]
[1]: http://i.stack.imgur.com/2sEuR.png | 1 |
9,598,573 | 03/07/2012 09:13:52 | 984,678 | 10/07/2011 20:27:38 | 16 | 0 | How to change the default settings of a file/new/project in visual studio? | For example: I want to have all newly-created C++ projects (libraries, dlls, apps) to treat warnings as errors. | visual-studio | settings | default | null | null | null | open | How to change the default settings of a file/new/project in visual studio?
===
For example: I want to have all newly-created C++ projects (libraries, dlls, apps) to treat warnings as errors. | 0 |
3,274,950 | 07/18/2010 09:14:00 | 352,130 | 05/27/2010 15:46:57 | 21 | 4 | Rounded corners for <input type='text' /> using border-radius.htc for IE | I want to create an input fields with rounded corners.
HTML:
<code>
<div id="RightColumn">
<input type="text" class="inputForm" />
</div>
</code>
CSS:
<code>
.inputForm
{
-moz-border-radius:10px; /* Firefox */
-webkit-border-radius: 10px; /* Safari, Chrome */
-khtml-border-radius: 10px; /* KHTML */
border-radius: 10px; /* CSS3 */
behavior:url("border-radius.htc");
}
#RightColumn
{
background-color:White;
}
</code>
But IE doesn't show any borders for input fields - neighter rounded nor simple borders.
When I remove CSS-style for #RightColumn, IE shows an input fields with rounded corners.
But I need background for #RightColumn.
How can I create it? | html | css | markup | rounded-corners | border-radius | null | open | Rounded corners for <input type='text' /> using border-radius.htc for IE
===
I want to create an input fields with rounded corners.
HTML:
<code>
<div id="RightColumn">
<input type="text" class="inputForm" />
</div>
</code>
CSS:
<code>
.inputForm
{
-moz-border-radius:10px; /* Firefox */
-webkit-border-radius: 10px; /* Safari, Chrome */
-khtml-border-radius: 10px; /* KHTML */
border-radius: 10px; /* CSS3 */
behavior:url("border-radius.htc");
}
#RightColumn
{
background-color:White;
}
</code>
But IE doesn't show any borders for input fields - neighter rounded nor simple borders.
When I remove CSS-style for #RightColumn, IE shows an input fields with rounded corners.
But I need background for #RightColumn.
How can I create it? | 0 |
2,077,050 | 01/16/2010 10:50:06 | 196,961 | 10/26/2009 23:06:50 | 14 | 0 | Django templatetag scope forcing me to do extra queries | The problem is that if I call a templatetag into a block
and it fills me a variiable with the usual context[varname]=something,
then if I need that variable into another block, I have to call the
templatetag again. This for me means extra db queries, which is really
something I'm trying to avoid.
This templatetag is called in a base template which is extended by
many other templates, so I can't just change all the views to pass
something to the context, it makes no sense (WET principle?)
Even a context processor would be not good because I don't want to
call it for every page rendered in the site, even the ones not based
on that template.
I was thinking about writing a templatetag which would use the
internal context structures to put the variable in a global context,
but I'd feel too guilty doing it.
How would you solve this problem? | django | templatetags | scope | null | null | null | open | Django templatetag scope forcing me to do extra queries
===
The problem is that if I call a templatetag into a block
and it fills me a variiable with the usual context[varname]=something,
then if I need that variable into another block, I have to call the
templatetag again. This for me means extra db queries, which is really
something I'm trying to avoid.
This templatetag is called in a base template which is extended by
many other templates, so I can't just change all the views to pass
something to the context, it makes no sense (WET principle?)
Even a context processor would be not good because I don't want to
call it for every page rendered in the site, even the ones not based
on that template.
I was thinking about writing a templatetag which would use the
internal context structures to put the variable in a global context,
but I'd feel too guilty doing it.
How would you solve this problem? | 0 |
7,135,381 | 08/20/2011 23:33:03 | 487,113 | 10/26/2010 01:38:07 | 122 | 2 | XAMPP won't run php | I've installed XAMPP on a 32-bit windows xp machine. Their splash page at localhost looks fine, but i can't get my own php echo tests to run. They only display the code, not the page itself. I've tried putting my files in different places hoping XAMPP will figure it out with no luck. I've also tried other free servers with no luck. Where(?) is localhost on my machine? any help greatly appreciated, thanks. | php | xampp | null | null | null | 08/20/2011 23:53:02 | not a real question | XAMPP won't run php
===
I've installed XAMPP on a 32-bit windows xp machine. Their splash page at localhost looks fine, but i can't get my own php echo tests to run. They only display the code, not the page itself. I've tried putting my files in different places hoping XAMPP will figure it out with no luck. I've also tried other free servers with no luck. Where(?) is localhost on my machine? any help greatly appreciated, thanks. | 1 |
5,330,554 | 03/16/2011 19:16:01 | 486,620 | 10/25/2010 15:46:07 | 2,329 | 123 | SQLite won't match C# DateTime retrieved from database. | I'm attempting to run some unit tests on my application using SQLite in memory, but I've run into an odd problem:
I have two queries. The result of the first is the date of the most recent price list for a given list name, and that `DateTime` is used in the second query in order to fetch the most recent prices. The problem is, the second query returns no results.
Any idea what might be going wrong in the background here?
var effective = DbSession.Current.CreateCriteria<ItemPrice>()
.SetProjection(Projections.Max("Effective"))
.Add(Restrictions.Le("Effective", workDate))
.CreateCriteria("PriceList")
.Add(Restrictions.Eq("ListName", listName))
.Add(Restrictions.Eq("Active", true))
.UniqueResult<DateTime>();
return DbSession.Current.CreateCriteria<ItemPrice>()
.Add(Restrictions.Eq("Effective", effective))
.CreateCriteria("PriceList")
.Add(Restrictions.Eq("ListName", listName))
.Add(Restrictions.Eq("Active", true))
.List<ItemPrice>(); | c# | nhibernate | sqlite | null | null | null | open | SQLite won't match C# DateTime retrieved from database.
===
I'm attempting to run some unit tests on my application using SQLite in memory, but I've run into an odd problem:
I have two queries. The result of the first is the date of the most recent price list for a given list name, and that `DateTime` is used in the second query in order to fetch the most recent prices. The problem is, the second query returns no results.
Any idea what might be going wrong in the background here?
var effective = DbSession.Current.CreateCriteria<ItemPrice>()
.SetProjection(Projections.Max("Effective"))
.Add(Restrictions.Le("Effective", workDate))
.CreateCriteria("PriceList")
.Add(Restrictions.Eq("ListName", listName))
.Add(Restrictions.Eq("Active", true))
.UniqueResult<DateTime>();
return DbSession.Current.CreateCriteria<ItemPrice>()
.Add(Restrictions.Eq("Effective", effective))
.CreateCriteria("PriceList")
.Add(Restrictions.Eq("ListName", listName))
.Add(Restrictions.Eq("Active", true))
.List<ItemPrice>(); | 0 |
5,768,125 | 04/24/2011 01:45:56 | 583,916 | 01/21/2011 03:41:19 | 49 | 5 | image upload problem -> Errors and success messages CI | I have the following code witch I have just found out that I can upload any kind of file but I am also unsure were to place `$data[success] = TRUE` so that it loads after the image has been loaded. How could I do this with the error messages?
**Controller:**
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Addimage extends CI_Controller {
function __construct(){
parent::__construct();
}
function index() {
if(!$this->session->userdata('logged_in')) {
redirect('admin/home');
}
// Main Page Data
$data['cms_pages'] = $this->navigation_model->getCMSPages();
$data['title'] = 'Add Gallery Image';
$data['content'] = $this->load->view('admin/addimage',NULL,TRUE);
$this->load->view('admintemplate', $data);
//Set Validation
//$this->form_validation->set_rules('userfile', 'userfile', 'trim|required');
$this->form_validation->set_rules('description', 'Description', 'trim|required');
if($this->form_validation->run() === TRUE) {
//Set File Settings
$config['upload_path'] = 'includes/uploads/gallery/';
$config['allowed_types'] = 'jpg|png';
$config['remove_spaces'] = TRUE;
$config['overwrite'] = TRUE;
$config['max_size'] = '100';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$this->load->library('upload', $config);
if(!$this->upload->do_upload()) {
$error = array('imageError' => $this->upload->display_errors());
}
else{
$data = array('upload_data' => $this->upload->data());
$data['success'] = TRUE;
$config['image_library'] = 'GD2';
$config['source_image'] = $this->upload->upload_path.$this->upload->file_name;
$config['new_image'] = 'includes/uploads/gallery/thumbs/';
$config['create_thumb'] = 'TRUE';
$config['thumb_marker'] ='_thumb';
$config['maintain_ratio'] = 'FALSE';
$config['width'] = '200';
$config['height'] = '150';
$this->load->library('image_lib', $config);
$this->image_lib->resize();
}
$file_info = $this->upload->data();
$data = array(
'description' => $this->input->post('description', TRUE),
'imagename' => $file_info['file_name'],
'thumbname' =>$file_info['raw_name'].'_thumb'.$file_info['file_ext']
);
$this->image_model->addImage($data);
}
}
}
**View:**
<?php
//Setting form attributes
$formAddImage = array('id' => 'addImage', 'name' => 'addImage');
$imageImage = array('id' => 'userfile', 'name' => 'userfile', 'placeholder' => 'File Location*');
$imageDescription = array('id' => 'description','name' => 'description','placeholder' => 'Image Description*');
if($success == TRUE) {
echo '<section id = "validation">Image Uploaded</section>';
}
?>
<section id = "validation"><?php echo validation_errors();?></section>
<?php
echo form_open_multipart('admin/addimage', $formAddImage);
echo form_fieldset();
echo form_upload($imageImage);
echo form_textarea($imageDescription);
echo form_submit('submit','Submit');
echo form_fieldset_close();
echo form_close();
?> | php | validation | codeigniter | form-validation | null | 02/16/2012 04:09:21 | too localized | image upload problem -> Errors and success messages CI
===
I have the following code witch I have just found out that I can upload any kind of file but I am also unsure were to place `$data[success] = TRUE` so that it loads after the image has been loaded. How could I do this with the error messages?
**Controller:**
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Addimage extends CI_Controller {
function __construct(){
parent::__construct();
}
function index() {
if(!$this->session->userdata('logged_in')) {
redirect('admin/home');
}
// Main Page Data
$data['cms_pages'] = $this->navigation_model->getCMSPages();
$data['title'] = 'Add Gallery Image';
$data['content'] = $this->load->view('admin/addimage',NULL,TRUE);
$this->load->view('admintemplate', $data);
//Set Validation
//$this->form_validation->set_rules('userfile', 'userfile', 'trim|required');
$this->form_validation->set_rules('description', 'Description', 'trim|required');
if($this->form_validation->run() === TRUE) {
//Set File Settings
$config['upload_path'] = 'includes/uploads/gallery/';
$config['allowed_types'] = 'jpg|png';
$config['remove_spaces'] = TRUE;
$config['overwrite'] = TRUE;
$config['max_size'] = '100';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$this->load->library('upload', $config);
if(!$this->upload->do_upload()) {
$error = array('imageError' => $this->upload->display_errors());
}
else{
$data = array('upload_data' => $this->upload->data());
$data['success'] = TRUE;
$config['image_library'] = 'GD2';
$config['source_image'] = $this->upload->upload_path.$this->upload->file_name;
$config['new_image'] = 'includes/uploads/gallery/thumbs/';
$config['create_thumb'] = 'TRUE';
$config['thumb_marker'] ='_thumb';
$config['maintain_ratio'] = 'FALSE';
$config['width'] = '200';
$config['height'] = '150';
$this->load->library('image_lib', $config);
$this->image_lib->resize();
}
$file_info = $this->upload->data();
$data = array(
'description' => $this->input->post('description', TRUE),
'imagename' => $file_info['file_name'],
'thumbname' =>$file_info['raw_name'].'_thumb'.$file_info['file_ext']
);
$this->image_model->addImage($data);
}
}
}
**View:**
<?php
//Setting form attributes
$formAddImage = array('id' => 'addImage', 'name' => 'addImage');
$imageImage = array('id' => 'userfile', 'name' => 'userfile', 'placeholder' => 'File Location*');
$imageDescription = array('id' => 'description','name' => 'description','placeholder' => 'Image Description*');
if($success == TRUE) {
echo '<section id = "validation">Image Uploaded</section>';
}
?>
<section id = "validation"><?php echo validation_errors();?></section>
<?php
echo form_open_multipart('admin/addimage', $formAddImage);
echo form_fieldset();
echo form_upload($imageImage);
echo form_textarea($imageDescription);
echo form_submit('submit','Submit');
echo form_fieldset_close();
echo form_close();
?> | 3 |
6,693,000 | 07/14/2011 12:18:43 | 796,723 | 06/13/2011 22:21:59 | 58 | 0 | Why magic comment is needed | In this commit I do not see anything that is not utf-8. Then why magic comment is needed?
https://github.com/rails/rails/commit/db0a65cbe0a819e0fe325250155b3e2f0f01e6e2 | ruby-on-rails | null | null | null | null | null | open | Why magic comment is needed
===
In this commit I do not see anything that is not utf-8. Then why magic comment is needed?
https://github.com/rails/rails/commit/db0a65cbe0a819e0fe325250155b3e2f0f01e6e2 | 0 |
8,564,485 | 12/19/2011 16:41:18 | 925,540 | 09/02/2011 15:12:45 | 1 | 0 | Why does the facebook Open Graph Object Debugger fail to find the fb:admins and fb:app_id properties on my page? | Even though I have include the fb:admins and fb:app_id properties I get the following warning from the facebook Open Graph Object Debugger tool @ http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.ionsonic.com%2Fmusic%2FElectroKnight%2Ftrack1759.php
**Like Button Warnings That Should Be Fixed**
*Inferred Property fb:admins and fb:app_id missing. fb:admins or fb:app_id is necessary for Facebook to render a News Feed story that generates a high clickthrough rate.*
An example of the page URLs attached to the fb like button throwing this warning can be found at http://www.ionsonic.com/music/ElectroKnight/track1765.php
Thanks,
Stephen | facebook | debugging | object | graph | open | 07/12/2012 17:05:39 | too localized | Why does the facebook Open Graph Object Debugger fail to find the fb:admins and fb:app_id properties on my page?
===
Even though I have include the fb:admins and fb:app_id properties I get the following warning from the facebook Open Graph Object Debugger tool @ http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.ionsonic.com%2Fmusic%2FElectroKnight%2Ftrack1759.php
**Like Button Warnings That Should Be Fixed**
*Inferred Property fb:admins and fb:app_id missing. fb:admins or fb:app_id is necessary for Facebook to render a News Feed story that generates a high clickthrough rate.*
An example of the page URLs attached to the fb like button throwing this warning can be found at http://www.ionsonic.com/music/ElectroKnight/track1765.php
Thanks,
Stephen | 3 |
4,580,517 | 01/02/2011 21:06:45 | 320,380 | 04/12/2010 12:03:07 | 43 | 3 | Stop Stored Procedure Execution | Lets say I have a stored procedure which has a simple IF case. If performed check meets the criteria i want to stop the procedure. How may I do that ? Thanks alot.
IF EXISTS (<Preform your Check>)
BEGIN
// NEED TO STOP STORED PROCEDURE EXECUTION
END
ELSE
BEGIN
INSERT ()...
END
| sql-server | stored-procedures | null | null | null | null | open | Stop Stored Procedure Execution
===
Lets say I have a stored procedure which has a simple IF case. If performed check meets the criteria i want to stop the procedure. How may I do that ? Thanks alot.
IF EXISTS (<Preform your Check>)
BEGIN
// NEED TO STOP STORED PROCEDURE EXECUTION
END
ELSE
BEGIN
INSERT ()...
END
| 0 |
10,942,632 | 06/08/2012 03:13:34 | 1,439,606 | 06/06/2012 11:19:36 | 1 | 0 | How to create a open source 3d charts | i want to create a open source 3d charts so please share your knowledge about chart & also share a tutorials to create chart.
please share your Knowledge with me | javascript | jquery | html5 | jquery-ajax | css3 | 06/08/2012 03:25:16 | not a real question | How to create a open source 3d charts
===
i want to create a open source 3d charts so please share your knowledge about chart & also share a tutorials to create chart.
please share your Knowledge with me | 1 |
8,466,526 | 12/11/2011 18:53:15 | 501,213 | 11/06/2010 12:14:26 | 75 | 4 | What disadvantages PocoCapsule has? | Except that development stopped.
It's interesting why I should or shouldn't use this project nowadays.
There were done so much in this IoC implementation. | c++ | poco-libraries | null | null | null | 12/11/2011 19:40:29 | not constructive | What disadvantages PocoCapsule has?
===
Except that development stopped.
It's interesting why I should or shouldn't use this project nowadays.
There were done so much in this IoC implementation. | 4 |
8,745,143 | 01/05/2012 15:34:37 | 1,132,495 | 01/05/2012 15:29:36 | 1 | 0 | AFNetworking Remote Image cancelImageRequestOperation _sigtramp | AFNetworking is faling with the following crash log when following the AFNetworking remote image example
1 libsystem_c.dylib 0x332e752f _sigtramp 38
2 UnlimTones_ 0x00051ff3 -[AFURLConnectionOperation cancel] 82
3 UnlimTones_ 0x000531bd -[UIImageView(AFNetworking) cancelImageRequestOperation] 24
4 UnlimTones_ 0x000536b5 -[SpotTableViewCell prepareForReuse] 116
5 UIKit 0x379021eb -[UITableView dequeueReusableCellWithIdentifier:] 142
6 UnlimTones_ 0x0001ed2d -[qResults tableView:cellForRowAtIndexPath:] 300
7 UIKit 0x379019cb -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] 546
8 UIKit 0x37900aa9 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] 1076
9 UIKit 0x37900233 -[UITableView layoutSubviews] 206
10 UIKit 0x378a4d29 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] 148
11 CoreFoundation 0x3445722b -[NSObject performSelector:withObject:] 42
12 QuartzCore 0x34fe8381 -[CALayer layoutSublayers] 216
13 QuartzCore 0x34fe7f99 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE 216
14 QuartzCore 0x34fec11b _ZN2CA7Context18commit_transactionEPNS_11TransactionE 226
15 QuartzCore 0x34febe57 _ZN2CA11Transaction6commitEv 314
16 QuartzCore 0x34fe3d85
_ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv 56
17 CoreFoundation 0x344ccb4b
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 18
18 CoreFoundation 0x344cad87 __CFRunLoopDoObservers 258
19 CoreFoundation 0x344cb0e1 __CFRunLoopRun 760
20 CoreFoundation 0x3444e4dd CFRunLoopRunSpecific 300
21 CoreFoundation 0x3444e3a5 CFRunLoopRunInMode 104
22 GraphicsServices 0x30cd2fcd GSEventRunModal 156
23 UIKit 0x378cf743 UIApplicationMain 1090
24 UnlimTones_ 0x000036b5 main 48
25 UnlimTones_ 0x0000364c start 52 | ios | ios5 | null | null | null | null | open | AFNetworking Remote Image cancelImageRequestOperation _sigtramp
===
AFNetworking is faling with the following crash log when following the AFNetworking remote image example
1 libsystem_c.dylib 0x332e752f _sigtramp 38
2 UnlimTones_ 0x00051ff3 -[AFURLConnectionOperation cancel] 82
3 UnlimTones_ 0x000531bd -[UIImageView(AFNetworking) cancelImageRequestOperation] 24
4 UnlimTones_ 0x000536b5 -[SpotTableViewCell prepareForReuse] 116
5 UIKit 0x379021eb -[UITableView dequeueReusableCellWithIdentifier:] 142
6 UnlimTones_ 0x0001ed2d -[qResults tableView:cellForRowAtIndexPath:] 300
7 UIKit 0x379019cb -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] 546
8 UIKit 0x37900aa9 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] 1076
9 UIKit 0x37900233 -[UITableView layoutSubviews] 206
10 UIKit 0x378a4d29 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] 148
11 CoreFoundation 0x3445722b -[NSObject performSelector:withObject:] 42
12 QuartzCore 0x34fe8381 -[CALayer layoutSublayers] 216
13 QuartzCore 0x34fe7f99 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE 216
14 QuartzCore 0x34fec11b _ZN2CA7Context18commit_transactionEPNS_11TransactionE 226
15 QuartzCore 0x34febe57 _ZN2CA11Transaction6commitEv 314
16 QuartzCore 0x34fe3d85
_ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv 56
17 CoreFoundation 0x344ccb4b
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 18
18 CoreFoundation 0x344cad87 __CFRunLoopDoObservers 258
19 CoreFoundation 0x344cb0e1 __CFRunLoopRun 760
20 CoreFoundation 0x3444e4dd CFRunLoopRunSpecific 300
21 CoreFoundation 0x3444e3a5 CFRunLoopRunInMode 104
22 GraphicsServices 0x30cd2fcd GSEventRunModal 156
23 UIKit 0x378cf743 UIApplicationMain 1090
24 UnlimTones_ 0x000036b5 main 48
25 UnlimTones_ 0x0000364c start 52 | 0 |
6,694,851 | 07/14/2011 14:28:51 | 844,769 | 07/14/2011 14:28:51 | 1 | 0 | getting back to c# programming after dabbling in non tech world | Whats the best way to get back and stay abreast to latest stuff going on with C#3/4?
I do have Jon Skeet's book
If this needs to be posted elsewhere, can you direct me?
| c# | null | null | null | null | 07/14/2011 16:04:33 | off topic | getting back to c# programming after dabbling in non tech world
===
Whats the best way to get back and stay abreast to latest stuff going on with C#3/4?
I do have Jon Skeet's book
If this needs to be posted elsewhere, can you direct me?
| 2 |
11,628,076 | 07/24/2012 09:37:10 | 578,667 | 01/17/2011 14:58:53 | 230 | 7 | Backbone.js - getting id from collection create | I am adding a model to a collection using the `create` method and the api is responding just fine. The model seems to have been properly returned and see the `console.dir( resp );` which is what I was looking for. However, when I try to access `runningorderid`, which is the `id` as defined with `idAttribute`, the response is null. I presume this is something to do with the async nature of the response, but I don't know how to deal with it.
var resp = window.app.RunningOrderCollection.create(
{ runningorderid: null, listitemid: 1, starttime: n} ,
{ wait: true }
);
console.dir( resp );
console.dir( resp.get("strt") );
console.dir( resp.id );
![screenscape of problem][1]
[1]: http://i.stack.imgur.com/9c5KF.png | backbone.js | backbone.js-collections | null | null | null | null | open | Backbone.js - getting id from collection create
===
I am adding a model to a collection using the `create` method and the api is responding just fine. The model seems to have been properly returned and see the `console.dir( resp );` which is what I was looking for. However, when I try to access `runningorderid`, which is the `id` as defined with `idAttribute`, the response is null. I presume this is something to do with the async nature of the response, but I don't know how to deal with it.
var resp = window.app.RunningOrderCollection.create(
{ runningorderid: null, listitemid: 1, starttime: n} ,
{ wait: true }
);
console.dir( resp );
console.dir( resp.get("strt") );
console.dir( resp.id );
![screenscape of problem][1]
[1]: http://i.stack.imgur.com/9c5KF.png | 0 |
10,878,632 | 06/04/2012 08:50:41 | 580,532 | 01/18/2011 20:44:53 | 73 | 2 | how github host our source code? | i am resarching on how projecthosting site works, specially i want to know where they host their project, i am very much interested to know aboui want to know where github host our projects.
**is they have a central server?**
**r they using any distributed system?**
**any ptp like torrent like system cloud based?**
any recommended link to know about how github hosting projects.
i find that "Git is a distributed system" what is the meaning of it? how it works? | github | distributed | p2p | cloud-hosting | null | 06/04/2012 11:16:33 | not a real question | how github host our source code?
===
i am resarching on how projecthosting site works, specially i want to know where they host their project, i am very much interested to know aboui want to know where github host our projects.
**is they have a central server?**
**r they using any distributed system?**
**any ptp like torrent like system cloud based?**
any recommended link to know about how github hosting projects.
i find that "Git is a distributed system" what is the meaning of it? how it works? | 1 |
7,335,592 | 09/07/2011 14:28:11 | 931,351 | 09/06/2011 18:47:24 | 1 | 1 | Android image download from server? | my logcat---------::
09-07 19:55:51.623: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:55:51.634: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:55:52.033: DEBUG/dalvikvm(1680): GC_FOR_MALLOC freed 1896 objects / 518112 bytes in 97ms
09-07 19:55:52.364: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:55:53.254: DEBUG/dalvikvm(1680): GC_FOR_MALLOC freed 822 objects / 539696 bytes in 67ms
09-07 19:56:01.514: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805085124_wtpa.logo.png
09-07 19:56:01.584: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805084621_wtpa.logo.png
09-07 19:56:01.643: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805025050_chuckie liv.ashx.jpg
09-07 19:56:01.684: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805024007_space vegas.ashx.jpg
09-07 19:56:01.914: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:01.953: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:02.714: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:02.754: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805023407_blush vegas.ashx.jpg
09-07 19:56:02.834: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805022856_Savoy vegas.ashx.jpg
09-07 19:56:02.944: DEBUG/dalvikvm(1680): GC_FOR_MALLOC freed 1058 objects / 490016 bytes in 80ms
09-07 19:56:02.944: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:02.944: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:03.894: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:03.923: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110808101519_DSC0028-Ti.jpg
09-07 19:56:04.104: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110729152914_wtpa.logo.png
09-07 19:56:04.604: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:04.634: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:05.004: DEBUG/dalvikvm(1680): GC_FOR_MALLOC freed 966 objects / 515008 bytes in 80ms
09-07 19:56:05.404: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:05.434: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:05.464: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:06.194: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
my code is ::
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.Collections;
import java.util.Map;
import java.util.Stack;
import java.util.WeakHashMap;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.entity.BufferedHttpEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.EventLogTags.Description;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
public class ImageLoader {
MemoryCache memoryCache = new MemoryCache();
FileCache fileCache;
private Map<ImageView, String> imageViews = Collections
.synchronizedMap(new WeakHashMap<ImageView, String>());
private ProgressBar indicator;
public ImageLoader(Context context) {
photoLoaderThread.setPriority(Thread.NORM_PRIORITY - 1);
fileCache = new FileCache(context);
}
public void DisplayImage(String url, Context activity, ImageView imageView,
ProgressBar pbar) {
imageViews.put(imageView, url);
Bitmap bitmap = memoryCache.get(url);
if (bitmap != null) {
this.indicator = pbar;
indicator.setVisibility(View.INVISIBLE);
imageView.setImageBitmap(bitmap);
} else {
this.indicator = pbar;
indicator.setVisibility(View.INVISIBLE);
queuePhoto(url, activity, imageView);
imageView.setImageBitmap(null);
}
}
private void queuePhoto(String url, Context activity, ImageView imageView) {
// This ImageView may be used for other images before. So there may be
// some old tasks in the queue. We need to discard them.
photosQueue.Clean(imageView);
PhotoToLoad p = new PhotoToLoad(url, imageView);
synchronized (photosQueue.photosToLoad) {
photosQueue.photosToLoad.push(p);
photosQueue.photosToLoad.notifyAll();
}
// start thread if it's not started yet
if (photoLoaderThread.getState() == Thread.State.NEW)
photoLoaderThread.start();
}
private Bitmap getBitmap(String url) {
File f = fileCache.getFile(url);
// from SD cache
Bitmap b = decodeFile(f);
if (b != null)
return b;
// from web
try {
HttpGet httpRequest = null;
try {
int pos = url.lastIndexOf('/') + 1;
URI uri = new URI(url.substring(0, pos)
+ URLEncoder.encode(url.substring(pos), "UTF-8"));
//URL imgUrl = new URL(decodeUrl);
httpRequest = new HttpGet(uri);
} catch (URISyntaxException e) {
System.out.println("Error ::" + e.toString());
e.printStackTrace();
}
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = (HttpResponse) httpclient
.execute(httpRequest);
HttpEntity entity = response.getEntity();
BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity);
InputStream instream = bufHttpEntity.getContent();
Bitmap bm = BitmapFactory.decodeStream(instream);
/*
* Bitmap bitmap = null; URL imageUrl = new URL(url);
* HttpURLConnection conn = (HttpURLConnection) imageUrl
* .openConnection(); conn.connect(); conn.getDoOutput();
*
*
* conn.setConnectTimeout(30000); conn.setReadTimeout(30000);
*
* InputStream is = conn.getInputStream();
*
* OutputStream os = new FileOutputStream(f); Utils.CopyStream(is,
* os); os.close(); bitmap = decodeFile(f); return bitmap;
*/
return bm;
} catch (Exception ex) {
ex.printStackTrace();
return null;
}
}
private Bitmap gonextUrl(String url) {
Bitmap bm = null;
try {
URL imgUrl = new URL(url);
HttpGet httpRequest = new HttpGet(imgUrl.toURI());
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = (HttpResponse) httpclient
.execute(httpRequest);
HttpEntity entity = response.getEntity();
BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity);
InputStream instream = bufHttpEntity.getContent();
bm = BitmapFactory.decodeStream(instream);
return bm;
} catch (Exception e) {
e.printStackTrace();
}
return bm;
}
// decodes image and scales it to reduce memory consumption
private Bitmap decodeFile(File f) {
try {
// decode image size
BitmapFactory.Options o = new BitmapFactory.Options();
o.inJustDecodeBounds = true;
BitmapFactory.decodeStream(new FileInputStream(f), null, o);
// Find the correct scale value. It should be the power of 2.
final int REQUIRED_SIZE = 70;
int width_tmp = o.outWidth, height_tmp = o.outHeight;
int scale = 1;
while (true) {
if (width_tmp / 2 < REQUIRED_SIZE
|| height_tmp / 2 < REQUIRED_SIZE)
break;
width_tmp /= 2;
height_tmp /= 2;
scale *= 2;
}
BitmapFactory.Options o2 = new BitmapFactory.Options();
o2.inSampleSize = scale;
return BitmapFactory.decodeStream(new FileInputStream(f), null, o2);
} catch (FileNotFoundException e) {
}
return null;
}
// Task for the queue
private class PhotoToLoad {
public String url;
public ImageView imageView;
public PhotoToLoad(String u, ImageView i) {
url = u;
imageView = i;
}
}
PhotosQueue photosQueue = new PhotosQueue();
public void stopThread() {
photoLoaderThread.interrupt();
}
// stores list of photos to download
class PhotosQueue {
private Stack<PhotoToLoad> photosToLoad = new Stack<PhotoToLoad>();
// removes all instances of this ImageView
public void Clean(ImageView image) {
for (int j = 0; j < photosToLoad.size();) {
if (photosToLoad.get(j).imageView == image)
photosToLoad.remove(j);
else
++j;
}
}
}
class PhotosLoader extends Thread {
public void run() {
try {
while (true) {
if (photosQueue.photosToLoad.size() == 0)
synchronized (photosQueue.photosToLoad) {
photosQueue.photosToLoad.wait();
}
if (photosQueue.photosToLoad.size() != 0) {
PhotoToLoad photoToLoad;
synchronized (photosQueue.photosToLoad) {
photoToLoad = photosQueue.photosToLoad.pop();
}
Bitmap bmp = getBitmap(photoToLoad.url);
memoryCache.put(photoToLoad.url, bmp);
String tag = imageViews.get(photoToLoad.imageView);
if (tag != null && tag.equals(photoToLoad.url)) {
BitmapDisplayer bd = new BitmapDisplayer(bmp,
photoToLoad.imageView, indicator);
Activity a = (Activity) photoToLoad.imageView
.getContext();
a.runOnUiThread(bd);
}
}
if (Thread.interrupted())
break;
}
} catch (InterruptedException e) {
// allow thread to exit
}
}
}
PhotosLoader photoLoaderThread = new PhotosLoader();
// Used to display bitmap in the UI thread
class BitmapDisplayer implements Runnable {
Bitmap bitmap;
ImageView imageView;
// private ProgressBar indicator1;
public BitmapDisplayer(Bitmap b, ImageView i, ProgressBar indicator) {
this.bitmap = b;
this.imageView = i;
// this.indicator1 = indicator;
}
public void run() {
if (bitmap != null) {
// indicator1.setVisibility(View.INVISIBLE);
imageView.setImageBitmap(bitmap);
} else
imageView.setImageBitmap(null);
}
}
public void clearCache() {
memoryCache.clear();
fileCache.clear();
}
}
| android | null | null | null | null | 09/07/2011 17:44:23 | not a real question | Android image download from server?
===
my logcat---------::
09-07 19:55:51.623: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:55:51.634: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:55:52.033: DEBUG/dalvikvm(1680): GC_FOR_MALLOC freed 1896 objects / 518112 bytes in 97ms
09-07 19:55:52.364: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:55:53.254: DEBUG/dalvikvm(1680): GC_FOR_MALLOC freed 822 objects / 539696 bytes in 67ms
09-07 19:56:01.514: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805085124_wtpa.logo.png
09-07 19:56:01.584: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805084621_wtpa.logo.png
09-07 19:56:01.643: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805025050_chuckie liv.ashx.jpg
09-07 19:56:01.684: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805024007_space vegas.ashx.jpg
09-07 19:56:01.914: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:01.953: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:02.714: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:02.754: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805023407_blush vegas.ashx.jpg
09-07 19:56:02.834: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110805022856_Savoy vegas.ashx.jpg
09-07 19:56:02.944: DEBUG/dalvikvm(1680): GC_FOR_MALLOC freed 1058 objects / 490016 bytes in 80ms
09-07 19:56:02.944: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:02.944: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:03.894: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:03.923: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110808101519_DSC0028-Ti.jpg
09-07 19:56:04.104: INFO/System.out(1680): ImageUrl :: http://www.heresmyparty.com/cms/components/com_chronocontact/uploads/add_event_form/20110729152914_wtpa.logo.png
09-07 19:56:04.604: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:04.634: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:05.004: DEBUG/dalvikvm(1680): GC_FOR_MALLOC freed 966 objects / 515008 bytes in 80ms
09-07 19:56:05.404: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:05.434: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:05.464: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
09-07 19:56:06.194: DEBUG/skia(1680): --- SkImageDecoder::Factory returned null
my code is ::
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.Collections;
import java.util.Map;
import java.util.Stack;
import java.util.WeakHashMap;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.entity.BufferedHttpEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.EventLogTags.Description;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
public class ImageLoader {
MemoryCache memoryCache = new MemoryCache();
FileCache fileCache;
private Map<ImageView, String> imageViews = Collections
.synchronizedMap(new WeakHashMap<ImageView, String>());
private ProgressBar indicator;
public ImageLoader(Context context) {
photoLoaderThread.setPriority(Thread.NORM_PRIORITY - 1);
fileCache = new FileCache(context);
}
public void DisplayImage(String url, Context activity, ImageView imageView,
ProgressBar pbar) {
imageViews.put(imageView, url);
Bitmap bitmap = memoryCache.get(url);
if (bitmap != null) {
this.indicator = pbar;
indicator.setVisibility(View.INVISIBLE);
imageView.setImageBitmap(bitmap);
} else {
this.indicator = pbar;
indicator.setVisibility(View.INVISIBLE);
queuePhoto(url, activity, imageView);
imageView.setImageBitmap(null);
}
}
private void queuePhoto(String url, Context activity, ImageView imageView) {
// This ImageView may be used for other images before. So there may be
// some old tasks in the queue. We need to discard them.
photosQueue.Clean(imageView);
PhotoToLoad p = new PhotoToLoad(url, imageView);
synchronized (photosQueue.photosToLoad) {
photosQueue.photosToLoad.push(p);
photosQueue.photosToLoad.notifyAll();
}
// start thread if it's not started yet
if (photoLoaderThread.getState() == Thread.State.NEW)
photoLoaderThread.start();
}
private Bitmap getBitmap(String url) {
File f = fileCache.getFile(url);
// from SD cache
Bitmap b = decodeFile(f);
if (b != null)
return b;
// from web
try {
HttpGet httpRequest = null;
try {
int pos = url.lastIndexOf('/') + 1;
URI uri = new URI(url.substring(0, pos)
+ URLEncoder.encode(url.substring(pos), "UTF-8"));
//URL imgUrl = new URL(decodeUrl);
httpRequest = new HttpGet(uri);
} catch (URISyntaxException e) {
System.out.println("Error ::" + e.toString());
e.printStackTrace();
}
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = (HttpResponse) httpclient
.execute(httpRequest);
HttpEntity entity = response.getEntity();
BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity);
InputStream instream = bufHttpEntity.getContent();
Bitmap bm = BitmapFactory.decodeStream(instream);
/*
* Bitmap bitmap = null; URL imageUrl = new URL(url);
* HttpURLConnection conn = (HttpURLConnection) imageUrl
* .openConnection(); conn.connect(); conn.getDoOutput();
*
*
* conn.setConnectTimeout(30000); conn.setReadTimeout(30000);
*
* InputStream is = conn.getInputStream();
*
* OutputStream os = new FileOutputStream(f); Utils.CopyStream(is,
* os); os.close(); bitmap = decodeFile(f); return bitmap;
*/
return bm;
} catch (Exception ex) {
ex.printStackTrace();
return null;
}
}
private Bitmap gonextUrl(String url) {
Bitmap bm = null;
try {
URL imgUrl = new URL(url);
HttpGet httpRequest = new HttpGet(imgUrl.toURI());
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = (HttpResponse) httpclient
.execute(httpRequest);
HttpEntity entity = response.getEntity();
BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity);
InputStream instream = bufHttpEntity.getContent();
bm = BitmapFactory.decodeStream(instream);
return bm;
} catch (Exception e) {
e.printStackTrace();
}
return bm;
}
// decodes image and scales it to reduce memory consumption
private Bitmap decodeFile(File f) {
try {
// decode image size
BitmapFactory.Options o = new BitmapFactory.Options();
o.inJustDecodeBounds = true;
BitmapFactory.decodeStream(new FileInputStream(f), null, o);
// Find the correct scale value. It should be the power of 2.
final int REQUIRED_SIZE = 70;
int width_tmp = o.outWidth, height_tmp = o.outHeight;
int scale = 1;
while (true) {
if (width_tmp / 2 < REQUIRED_SIZE
|| height_tmp / 2 < REQUIRED_SIZE)
break;
width_tmp /= 2;
height_tmp /= 2;
scale *= 2;
}
BitmapFactory.Options o2 = new BitmapFactory.Options();
o2.inSampleSize = scale;
return BitmapFactory.decodeStream(new FileInputStream(f), null, o2);
} catch (FileNotFoundException e) {
}
return null;
}
// Task for the queue
private class PhotoToLoad {
public String url;
public ImageView imageView;
public PhotoToLoad(String u, ImageView i) {
url = u;
imageView = i;
}
}
PhotosQueue photosQueue = new PhotosQueue();
public void stopThread() {
photoLoaderThread.interrupt();
}
// stores list of photos to download
class PhotosQueue {
private Stack<PhotoToLoad> photosToLoad = new Stack<PhotoToLoad>();
// removes all instances of this ImageView
public void Clean(ImageView image) {
for (int j = 0; j < photosToLoad.size();) {
if (photosToLoad.get(j).imageView == image)
photosToLoad.remove(j);
else
++j;
}
}
}
class PhotosLoader extends Thread {
public void run() {
try {
while (true) {
if (photosQueue.photosToLoad.size() == 0)
synchronized (photosQueue.photosToLoad) {
photosQueue.photosToLoad.wait();
}
if (photosQueue.photosToLoad.size() != 0) {
PhotoToLoad photoToLoad;
synchronized (photosQueue.photosToLoad) {
photoToLoad = photosQueue.photosToLoad.pop();
}
Bitmap bmp = getBitmap(photoToLoad.url);
memoryCache.put(photoToLoad.url, bmp);
String tag = imageViews.get(photoToLoad.imageView);
if (tag != null && tag.equals(photoToLoad.url)) {
BitmapDisplayer bd = new BitmapDisplayer(bmp,
photoToLoad.imageView, indicator);
Activity a = (Activity) photoToLoad.imageView
.getContext();
a.runOnUiThread(bd);
}
}
if (Thread.interrupted())
break;
}
} catch (InterruptedException e) {
// allow thread to exit
}
}
}
PhotosLoader photoLoaderThread = new PhotosLoader();
// Used to display bitmap in the UI thread
class BitmapDisplayer implements Runnable {
Bitmap bitmap;
ImageView imageView;
// private ProgressBar indicator1;
public BitmapDisplayer(Bitmap b, ImageView i, ProgressBar indicator) {
this.bitmap = b;
this.imageView = i;
// this.indicator1 = indicator;
}
public void run() {
if (bitmap != null) {
// indicator1.setVisibility(View.INVISIBLE);
imageView.setImageBitmap(bitmap);
} else
imageView.setImageBitmap(null);
}
}
public void clearCache() {
memoryCache.clear();
fileCache.clear();
}
}
| 1 |
5,402,689 | 03/23/2011 08:45:38 | 647,782 | 03/07/2011 08:03:30 | 35 | 5 | Place Exit Button On Android Application | I am Developing one application. In that application I want to put Exit button.
By clicking Exit Button I want to Exit from application.
I used the following code
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
finish();
It exit the application but not stop all activities which is running in that application
plz give me some suggestion to solve this problem | android | null | null | null | null | null | open | Place Exit Button On Android Application
===
I am Developing one application. In that application I want to put Exit button.
By clicking Exit Button I want to Exit from application.
I used the following code
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
finish();
It exit the application but not stop all activities which is running in that application
plz give me some suggestion to solve this problem | 0 |
8,875,652 | 01/16/2012 04:03:19 | 1,151,180 | 01/16/2012 03:42:27 | 1 | 0 | How to connect google translator service in Android translator Application? | I am Using only this format it is sufficient? please tell me!!!
I am using Google API for translator but i am not able to see any translation
how can i proceed...
my programming is like this ...
import com.google.api.GoogleAPIException;
import com.google.api.translate.Language;
import com.google.api.translate.Translate;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;
public class TranslateActivity extends Activity {
String translated;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
translated = Translate.DEFAULT.execute("Bonjour le monde", Language.FRENCH,
Language.ENGLISH);
} catch (GoogleAPIException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Toast.makeText(getApplicationContext(), translated, Toast.LENGTH_LONG).show();
}
}
but in jar file class Translate has no method like setHttpReferrer so how can i
get this method please tell me step by step...thanx in advance | java | null | null | null | null | null | open | How to connect google translator service in Android translator Application?
===
I am Using only this format it is sufficient? please tell me!!!
I am using Google API for translator but i am not able to see any translation
how can i proceed...
my programming is like this ...
import com.google.api.GoogleAPIException;
import com.google.api.translate.Language;
import com.google.api.translate.Translate;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;
public class TranslateActivity extends Activity {
String translated;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
translated = Translate.DEFAULT.execute("Bonjour le monde", Language.FRENCH,
Language.ENGLISH);
} catch (GoogleAPIException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Toast.makeText(getApplicationContext(), translated, Toast.LENGTH_LONG).show();
}
}
but in jar file class Translate has no method like setHttpReferrer so how can i
get this method please tell me step by step...thanx in advance | 0 |
10,378,716 | 04/30/2012 05:03:10 | 1,330,394 | 04/12/2012 23:21:27 | 3 | 0 | set background image | I have set the background of my activity by doing:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/image">
What I'm doing: In my main activity it will chose whether I want image1 or image2 and then make either image1 or image 2 the background for the activity.
Thanks | java | android | background | null | null | 05/02/2012 15:38:16 | not a real question | set background image
===
I have set the background of my activity by doing:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/image">
What I'm doing: In my main activity it will chose whether I want image1 or image2 and then make either image1 or image 2 the background for the activity.
Thanks | 1 |
2,715,155 | 04/26/2010 16:39:12 | 64,336 | 02/09/2009 21:14:03 | 101 | 13 | Sharepoint 2007 - use same master page in all sites | Is it possible to use a master page on a root SP web application for all its children sites? In other words, for a site called http://myspsite I have a customized master page called "mycustom.master". I would then like to create a site within this web application cammed "newSubsite" so it points to http://myspsite/newSubsite. Would it be possible to have this new site use the same master page as its root ("mycustom.master") ?
What i am affraid is that this isn't possible and i will need to copy the "mycustom.master" to each child site if i want to use the same one.
Thank you all in advanced.
| sharepoint | master | sites | null | null | 01/25/2012 15:50:04 | off topic | Sharepoint 2007 - use same master page in all sites
===
Is it possible to use a master page on a root SP web application for all its children sites? In other words, for a site called http://myspsite I have a customized master page called "mycustom.master". I would then like to create a site within this web application cammed "newSubsite" so it points to http://myspsite/newSubsite. Would it be possible to have this new site use the same master page as its root ("mycustom.master") ?
What i am affraid is that this isn't possible and i will need to copy the "mycustom.master" to each child site if i want to use the same one.
Thank you all in advanced.
| 2 |
3,775,097 | 09/23/2010 02:42:34 | 349,528 | 05/25/2010 03:23:55 | 21 | 1 | php glob() on another directory in IIS 6 | Always returns an empty array despite giving the IUSR_<MACHINE_NAME> "List Folder Contents" permission (and "Read" and "Read & Execute" permissons). glob(".\\Images\\*") on a directory within the website directory works fine. glob() also works on a specific file (which inherited the permissons) in the afore mentioned directory that it fails on, but I cannot get it to work on the directory when I do not know the file name... | php | iis6 | glob | null | null | null | open | php glob() on another directory in IIS 6
===
Always returns an empty array despite giving the IUSR_<MACHINE_NAME> "List Folder Contents" permission (and "Read" and "Read & Execute" permissons). glob(".\\Images\\*") on a directory within the website directory works fine. glob() also works on a specific file (which inherited the permissons) in the afore mentioned directory that it fails on, but I cannot get it to work on the directory when I do not know the file name... | 0 |
835,069 | 05/07/2009 14:42:28 | 28,571 | 10/16/2008 13:10:45 | 198 | 20 | Which SQLite administration console do you recommend? | I've been doing some development using sqlite (which BTW it's awesome).
Until now I've used the [SQLite Administrator][1].
Although it has some great features, there are some annoying bugs. So, I ask you, what administration consoles (GUI) do you recommend for SQLite?
[1]: http://sqliteadmin.orbmu2k.de/ | sqlite | gui | administration-console | null | null | 06/13/2012 13:30:33 | not constructive | Which SQLite administration console do you recommend?
===
I've been doing some development using sqlite (which BTW it's awesome).
Until now I've used the [SQLite Administrator][1].
Although it has some great features, there are some annoying bugs. So, I ask you, what administration consoles (GUI) do you recommend for SQLite?
[1]: http://sqliteadmin.orbmu2k.de/ | 4 |
9,202,339 | 02/08/2012 22:14:54 | 685,125 | 03/31/2011 05:14:39 | 472 | 12 | How to pass arguments to an event handler function and still use 'this' reference? | I have a situation (using the Raphael library) where I have this:
rect.click(doSomething);
And within `doSomething()`, I can get the bounding box size:
var boxSize = this.getBBox();
The problem is, what if I want to pass an argument to doSomething? If I do, then the `this` reference breaks for some reason. How can I pass in an argument and still use `this`? | javascript | null | null | null | null | null | open | How to pass arguments to an event handler function and still use 'this' reference?
===
I have a situation (using the Raphael library) where I have this:
rect.click(doSomething);
And within `doSomething()`, I can get the bounding box size:
var boxSize = this.getBBox();
The problem is, what if I want to pass an argument to doSomething? If I do, then the `this` reference breaks for some reason. How can I pass in an argument and still use `this`? | 0 |
112,234 | 09/21/2008 21:28:51 | 16,773 | 09/17/2008 20:35:18 | 8 | 1 | Sorting matched arrays in Java | Let's say that I have two arrays (in Java),
int[] numbers; and int[] colors;
Each ith element of numbers corresponds to its ith element in colors.
Ex, numbers = {4,2,1}
colors = {0x11, 0x24, 0x01}; Means that number 4 is color 0x11, number 2 is 0x24, etc.
I want to sort the numbers array, but then still have it so each element matches up with its pair in colors.
Ex. numbers = {1,2,4};
colors = {0x01,0x24,0x11};
What's the cleanest, simplest way to do this? The arrays have a few thousand items, so being in place would be best, but not required. Would it make sense to do an Arrays.sort() and a custom comparator? Using library functions as much as possible is preferable. | java | sorting | list | null | null | null | open | Sorting matched arrays in Java
===
Let's say that I have two arrays (in Java),
int[] numbers; and int[] colors;
Each ith element of numbers corresponds to its ith element in colors.
Ex, numbers = {4,2,1}
colors = {0x11, 0x24, 0x01}; Means that number 4 is color 0x11, number 2 is 0x24, etc.
I want to sort the numbers array, but then still have it so each element matches up with its pair in colors.
Ex. numbers = {1,2,4};
colors = {0x01,0x24,0x11};
What's the cleanest, simplest way to do this? The arrays have a few thousand items, so being in place would be best, but not required. Would it make sense to do an Arrays.sort() and a custom comparator? Using library functions as much as possible is preferable. | 0 |
8,892,896 | 01/17/2012 10:18:25 | 92,096 | 04/17/2009 12:34:15 | 871 | 72 | Using media field from Page in an extension | We all may know the following snippet that gets the first entry of the media field of a page to e.g. display a header image on a page.
10 = IMAGE
10.file {
import = uploads/media/
import.data = levelmedia: 0, slide
import.listNum = 0
}
I am creating an extension (plugin, no ItemuserFunc etc) which needs to work with this media. I don't want to process dozens of typoscript directives in php to create this images. How can I use the example above to process the media field through typoscript, using core functionality instead of reinventing the wheel?
So now I'm in my extension code, having an array of page records. How to get further? The code below doesn't provide the functionality I need because I am not working on the page level (like I would when using the TS from above in a TMENU).
$content .= $this->cObj->stdWrap($page['media'], $this->conf['media_stdWrap.']);
| php | extension | typo3 | typoscript | null | null | open | Using media field from Page in an extension
===
We all may know the following snippet that gets the first entry of the media field of a page to e.g. display a header image on a page.
10 = IMAGE
10.file {
import = uploads/media/
import.data = levelmedia: 0, slide
import.listNum = 0
}
I am creating an extension (plugin, no ItemuserFunc etc) which needs to work with this media. I don't want to process dozens of typoscript directives in php to create this images. How can I use the example above to process the media field through typoscript, using core functionality instead of reinventing the wheel?
So now I'm in my extension code, having an array of page records. How to get further? The code below doesn't provide the functionality I need because I am not working on the page level (like I would when using the TS from above in a TMENU).
$content .= $this->cObj->stdWrap($page['media'], $this->conf['media_stdWrap.']);
| 0 |
7,198,901 | 08/26/2011 00:46:51 | 863,951 | 07/26/2011 17:15:12 | 1 | 0 | A program to count number of pixels in a picture? | Is there any way or program to count number pixels(am I even saying the right thing) of different color? Or, maybe a program to measure the general area of a color... Is there any possible activities, lines, or sets of commands that may be relevant to that? (in Android) | android | colors | pixels | null | null | null | open | A program to count number of pixels in a picture?
===
Is there any way or program to count number pixels(am I even saying the right thing) of different color? Or, maybe a program to measure the general area of a color... Is there any possible activities, lines, or sets of commands that may be relevant to that? (in Android) | 0 |
5,138,398 | 02/28/2011 05:05:24 | 423,620 | 08/18/2010 05:30:03 | 143 | 1 | how to start server using java? | i am using Rabbitmq server.can i start server using Java code?
Thanks | java | rabbitmq | null | null | null | 02/28/2011 06:07:21 | too localized | how to start server using java?
===
i am using Rabbitmq server.can i start server using Java code?
Thanks | 3 |
3,840,607 | 10/01/2010 15:26:35 | 368,999 | 06/17/2010 06:30:54 | 85 | 4 | debugging a crash (c++) | I am having a service which calls a C++ COM dll. The C++ COM dll causes some problem and the service crashes.
I couldn't figure it at what point the service crash. I used debugdiag. But it is not putting any crash dump.
Kindly let me know how I can debug a application crash. Or direct me to some good tutorials and tools.
Many thanks. | visual-c++ | windows-services | null | null | null | null | open | debugging a crash (c++)
===
I am having a service which calls a C++ COM dll. The C++ COM dll causes some problem and the service crashes.
I couldn't figure it at what point the service crash. I used debugdiag. But it is not putting any crash dump.
Kindly let me know how I can debug a application crash. Or direct me to some good tutorials and tools.
Many thanks. | 0 |
5,559,640 | 04/05/2011 23:09:36 | 692,941 | 04/05/2011 13:06:57 | 3 | 0 | Where does Safari save the local database on a Mac? | On my Windows 7 machine Chrome saves the local database (which I create with some JavaScript) in
C:\Users\[user]\AppData\Local\Google\Chrome\User Data\Default\databases\[website]
I don't have a Mac available right now and google didn't make me any wiser, where on a Mac would Safari save this file?
Thanks in advance. | osx | html5 | webkit | local-database | null | 04/06/2011 14:47:59 | off topic | Where does Safari save the local database on a Mac?
===
On my Windows 7 machine Chrome saves the local database (which I create with some JavaScript) in
C:\Users\[user]\AppData\Local\Google\Chrome\User Data\Default\databases\[website]
I don't have a Mac available right now and google didn't make me any wiser, where on a Mac would Safari save this file?
Thanks in advance. | 2 |
7,613,872 | 09/30/2011 17:23:21 | 182,305 | 10/01/2009 06:49:13 | 1,255 | 107 | Cloud server recommendation needed for our website | I am need to buy one cloud server with some basic requirements to use a pre-production:
- remote desktop
- 1GB ram
- bigger disk space is better
- supports 3rd party software
- good and cheap support (?)
This will be used for ASP.NET MVC 3, MongoDB web app
I will buy more servers in future for production.
Anyone has any tips or suggestion?
Could you please tell me how much it may cost per month?
Thanks | cloud | cloud-hosting | null | null | null | 09/30/2011 23:14:45 | off topic | Cloud server recommendation needed for our website
===
I am need to buy one cloud server with some basic requirements to use a pre-production:
- remote desktop
- 1GB ram
- bigger disk space is better
- supports 3rd party software
- good and cheap support (?)
This will be used for ASP.NET MVC 3, MongoDB web app
I will buy more servers in future for production.
Anyone has any tips or suggestion?
Could you please tell me how much it may cost per month?
Thanks | 2 |
8,689,746 | 12/31/2011 18:14:57 | 1,050,269 | 11/16/2011 18:09:31 | 61 | 2 | What next - learning materials | Just finished Michael's Hartl online tutorial - http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
So my current state is - a little bit of Ruby knowledge and some Rails - based on this tutorial.
Where do I go from here?
1. I understand that JScript is a must, but in Rails 3.1 it has been replaced with CoffeeScript. So which one should I choose to learn?
2. What would be the nex step in learning RoR?
Thanks a lot.
| javascript | ruby-on-rails-3 | coffeescript | null | null | 12/31/2011 19:02:39 | not constructive | What next - learning materials
===
Just finished Michael's Hartl online tutorial - http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
So my current state is - a little bit of Ruby knowledge and some Rails - based on this tutorial.
Where do I go from here?
1. I understand that JScript is a must, but in Rails 3.1 it has been replaced with CoffeeScript. So which one should I choose to learn?
2. What would be the nex step in learning RoR?
Thanks a lot.
| 4 |
10,876,917 | 06/04/2012 06:01:33 | 1,400,271 | 05/17/2012 06:12:41 | 26 | 0 | Need suggestions to draw a graph in PHP frrom mysql | I have the data(co-ordinates for roads and offices) in a mysql database and i need to draw those co-ordinates using PHP. Can any one point me in right direction | php | mysql | null | null | null | 06/04/2012 07:32:56 | not constructive | Need suggestions to draw a graph in PHP frrom mysql
===
I have the data(co-ordinates for roads and offices) in a mysql database and i need to draw those co-ordinates using PHP. Can any one point me in right direction | 4 |
2,791,166 | 05/07/2010 19:25:18 | 127,257 | 06/22/2009 23:54:43 | 1,021 | 24 | Maximizing the number of threads to fully utilize all available resources without hindering overall performance | Let's say I have to generate a bunch of result files, and I want to make it as fast as possible. Each result file is generated independently of any other result file; in fact, one could say that each result file is agnostic to every other result file. The resources used to generate each result file is also unique to each. How can I dynamically decide the optimal number of threads to run simultaneously in order to minimize the overall run time? Is my only option to write my own thread manager that watches performance counters and adjust accordingly or does there exists some solid classes that already accomplish this? | .net | multithreading | .net-3.5 | null | null | null | open | Maximizing the number of threads to fully utilize all available resources without hindering overall performance
===
Let's say I have to generate a bunch of result files, and I want to make it as fast as possible. Each result file is generated independently of any other result file; in fact, one could say that each result file is agnostic to every other result file. The resources used to generate each result file is also unique to each. How can I dynamically decide the optimal number of threads to run simultaneously in order to minimize the overall run time? Is my only option to write my own thread manager that watches performance counters and adjust accordingly or does there exists some solid classes that already accomplish this? | 0 |
7,396,693 | 09/13/2011 04:07:32 | 889,178 | 08/11/2011 04:09:54 | 1 | 0 | Multiple timer with different interval in C#.net | I want different timer with different interval that i input.For example, if I input 4, 4 timer create and show time in 4 label, where 1st timer's time change in 1sec,2nd timer's time change in 2sec,3rd timer's time change in 3sec and 4tn timer's time change in 4sec.Here is my code,
string input = textBox2.Text;
int n = Convert.ToInt32(input);
for (i = 1; i <= n; i++)
{
Timer timer = new Timer();
timer.Tick += new EventHandler(timer_Tick);
timer.Interval = (1000) * (i);
timer.Enabled = true;
timer.Start();
Label label = new Label();
label.Name = "label"+i;
label.Location = new Point(100, 100 + i * 30);
label.TabIndex = i;
label.Visible = true;
this.Controls.Add(label);
}
private void timer_Tick(object sender, EventArgs e)
{
label.Text = DateTime.Now.ToString();
}
But i don't get any output.What can i do.I use windows application. | c# | null | null | null | null | null | open | Multiple timer with different interval in C#.net
===
I want different timer with different interval that i input.For example, if I input 4, 4 timer create and show time in 4 label, where 1st timer's time change in 1sec,2nd timer's time change in 2sec,3rd timer's time change in 3sec and 4tn timer's time change in 4sec.Here is my code,
string input = textBox2.Text;
int n = Convert.ToInt32(input);
for (i = 1; i <= n; i++)
{
Timer timer = new Timer();
timer.Tick += new EventHandler(timer_Tick);
timer.Interval = (1000) * (i);
timer.Enabled = true;
timer.Start();
Label label = new Label();
label.Name = "label"+i;
label.Location = new Point(100, 100 + i * 30);
label.TabIndex = i;
label.Visible = true;
this.Controls.Add(label);
}
private void timer_Tick(object sender, EventArgs e)
{
label.Text = DateTime.Now.ToString();
}
But i don't get any output.What can i do.I use windows application. | 0 |
7,369,125 | 09/10/2011 01:56:58 | 352,552 | 05/26/2010 21:08:59 | 5,880 | 219 | Divs not floating when content is too large | I'm trying to get two divs side by side. The left one will have an image, and the right one will have some data. I'd like the one on the right to just truncate when there's not enough room. Unfortunately, instead of truncating, the whole div is just dropping down under the one that would otherwise be on the left when there's not enough room. The picture below should make this clear.
Here's my html. I'm throwing `overflow:hidden; white-space: nowrap;` everywhere, to no avail. When the content in the right div is not too large (or when I resize the popup wide enough) everything floats like I want it.
*(this is not MVC, if it was, I'd be using Ravor syntax with gusto)*
<div id="tabInfo" class="tabDiv">
<ul>
<li><a href="#tabs-info">Book Info</a></li>
<li><a href="#tabs-reviews">Reviews</a></li>
<li><a href="#tabs-subjects">Related Subjects</a></li>
</ul>
<div id="tabs-info">
<div style="float:left;">
<img src="../books/covers/medium/<%= Book.medImgID %>.jpg" />
</div>
<div style="float:left; margin-left:10px; font-size:10pt; overflow:hidden; white-space: nowrap; text-overflow: ellipsis;">
<div style="font-size:14pt; overflow:hidden; white-space: nowrap; text-overflow: ellipsis;">
<b><%= Book.Title %></b>
</div>
<div title='<%= PublisherDisplay %>' style='margin-top:5px; font-size:12pt'><%= PublisherDisplay %></div>
<div style="margin-top:7px;">Author<%= Book.AuthorsArray.Length == 1 ? "" : "s" %></div>
<% foreach (string auth in Book.AuthorsArray) { %>
<div style="margin-left:10px;"><%= auth %></div>
<% } %>
<div title='<%= Book.Pages ?? 0 %>' Pages' style='margin-top:6px;'><%= Book.Pages ?? 0 %> Pages</div>
<div style="margin-top:5px; height:16px; margin-top:6px;">
<div style="vertical-align: middle; float: left;">Read? </div>
<img src='../Img/IsRead/<%= Book.IsRead ? "check" : "cross" %>.png' style='width: 16px; height: 16px;' />
</div>
</div>
</div>
![enter image description here][1]
[1]: http://i.stack.imgur.com/RgyN4.png | html | css | css-float | null | null | null | open | Divs not floating when content is too large
===
I'm trying to get two divs side by side. The left one will have an image, and the right one will have some data. I'd like the one on the right to just truncate when there's not enough room. Unfortunately, instead of truncating, the whole div is just dropping down under the one that would otherwise be on the left when there's not enough room. The picture below should make this clear.
Here's my html. I'm throwing `overflow:hidden; white-space: nowrap;` everywhere, to no avail. When the content in the right div is not too large (or when I resize the popup wide enough) everything floats like I want it.
*(this is not MVC, if it was, I'd be using Ravor syntax with gusto)*
<div id="tabInfo" class="tabDiv">
<ul>
<li><a href="#tabs-info">Book Info</a></li>
<li><a href="#tabs-reviews">Reviews</a></li>
<li><a href="#tabs-subjects">Related Subjects</a></li>
</ul>
<div id="tabs-info">
<div style="float:left;">
<img src="../books/covers/medium/<%= Book.medImgID %>.jpg" />
</div>
<div style="float:left; margin-left:10px; font-size:10pt; overflow:hidden; white-space: nowrap; text-overflow: ellipsis;">
<div style="font-size:14pt; overflow:hidden; white-space: nowrap; text-overflow: ellipsis;">
<b><%= Book.Title %></b>
</div>
<div title='<%= PublisherDisplay %>' style='margin-top:5px; font-size:12pt'><%= PublisherDisplay %></div>
<div style="margin-top:7px;">Author<%= Book.AuthorsArray.Length == 1 ? "" : "s" %></div>
<% foreach (string auth in Book.AuthorsArray) { %>
<div style="margin-left:10px;"><%= auth %></div>
<% } %>
<div title='<%= Book.Pages ?? 0 %>' Pages' style='margin-top:6px;'><%= Book.Pages ?? 0 %> Pages</div>
<div style="margin-top:5px; height:16px; margin-top:6px;">
<div style="vertical-align: middle; float: left;">Read? </div>
<img src='../Img/IsRead/<%= Book.IsRead ? "check" : "cross" %>.png' style='width: 16px; height: 16px;' />
</div>
</div>
</div>
![enter image description here][1]
[1]: http://i.stack.imgur.com/RgyN4.png | 0 |
3,477,988 | 08/13/2010 14:47:53 | 145,964 | 07/27/2009 19:19:40 | 131 | 4 | How can a programmatically draw a scalable, aethetically-pleasing, curved comic-book balloon tail? | As a UI specialist, I am often asked to build tool-tip displays and other sorts of popups that display text. One of styles clients seem most keen on is text in a comic-book balloon. I would like to create this balloons programmatically (as opposed to embedding or linking to rendered graphics), because these balloons will have to change size at runtime, depending on how much text they have to hold.
Balloons are easy to draw for the most part: circles, rectangles or rounded-corner rectangles. The tough part, for me, is the tail (the little arrow-like part of the comic balloon that points towards the speaker). If you google comic balloon, you see that there are many varieties of tails. They ones clients request from me most often are curved. E.g...
http://www.macybugs.com/round%20bubble.PNG
and
http://thumb10.shutterstock.com.edgesuite.net/display_pic_with_logo/121360/121360,1222432252,2/stock-vector-vector-cartoon-speech-balloon-add-your-own-text-easily-17961022.jpg
The tail will always be on the bottom of the balloon, and it will sometimes point left and sometimes point right. I have been trying to come up with tail-drawing algorithms for a while, but I'm not happy with the results. I'm basically stumbling around in the dark, changing variables, looking at the results, and using trial and error to try to move closer to the magic numbers that will work. "Work" just means a result that looks pleasing, which I realize is subjective. Most of my clients will be a happy with anything that looks reasonably good and professional.
I want this result to scale. And it would be great if it could work with as few inputs as possible, maybe just isFacingLeft, tailWidth and tailHeight (Which could maybe be a percentage of the whole balloon). Maybe an adjustable curveAmount.
If it matters, I'm using Flash/Actionscript, but any system that has some sort of turtle graphics engine should work pretty much the same way: I'm working with that standard flipped Cartesian grid (y increases downward), x and y coordinates, the ability to move a pen, draw lines and draw curves.
**One caveat: Flash only allows me to draw 3-point bezier curves -- start point, control point, end point.**
Note: balloons won't have to scale after the are drawn. | flash | actionscript | graphics | drawing | null | null | open | How can a programmatically draw a scalable, aethetically-pleasing, curved comic-book balloon tail?
===
As a UI specialist, I am often asked to build tool-tip displays and other sorts of popups that display text. One of styles clients seem most keen on is text in a comic-book balloon. I would like to create this balloons programmatically (as opposed to embedding or linking to rendered graphics), because these balloons will have to change size at runtime, depending on how much text they have to hold.
Balloons are easy to draw for the most part: circles, rectangles or rounded-corner rectangles. The tough part, for me, is the tail (the little arrow-like part of the comic balloon that points towards the speaker). If you google comic balloon, you see that there are many varieties of tails. They ones clients request from me most often are curved. E.g...
http://www.macybugs.com/round%20bubble.PNG
and
http://thumb10.shutterstock.com.edgesuite.net/display_pic_with_logo/121360/121360,1222432252,2/stock-vector-vector-cartoon-speech-balloon-add-your-own-text-easily-17961022.jpg
The tail will always be on the bottom of the balloon, and it will sometimes point left and sometimes point right. I have been trying to come up with tail-drawing algorithms for a while, but I'm not happy with the results. I'm basically stumbling around in the dark, changing variables, looking at the results, and using trial and error to try to move closer to the magic numbers that will work. "Work" just means a result that looks pleasing, which I realize is subjective. Most of my clients will be a happy with anything that looks reasonably good and professional.
I want this result to scale. And it would be great if it could work with as few inputs as possible, maybe just isFacingLeft, tailWidth and tailHeight (Which could maybe be a percentage of the whole balloon). Maybe an adjustable curveAmount.
If it matters, I'm using Flash/Actionscript, but any system that has some sort of turtle graphics engine should work pretty much the same way: I'm working with that standard flipped Cartesian grid (y increases downward), x and y coordinates, the ability to move a pen, draw lines and draw curves.
**One caveat: Flash only allows me to draw 3-point bezier curves -- start point, control point, end point.**
Note: balloons won't have to scale after the are drawn. | 0 |
7,045,232 | 08/12/2011 19:17:14 | 892,349 | 08/12/2011 19:17:14 | 1 | 0 | Problem with iPad SplitView Applicazion? | I'm trying to make an iPad SplitView Application, but I've a graphic issue. I tried to modify the navigation bars colors (bordeaux color) both the detailView and the mainWindow but when I change the app orientation I've a color issue in the portrait navigation bar.
In particular, if I start the application in portrait allthing works perfectly and also when I launch it in landscape mode.
But the problem is when I click in the EVENT button, in portrait mode, in this way:
http://img15.imageshack.us/img15/7078/schermata082455786alle2.png
... and I try to change another time the orientation. Because it happens this:
http://img850.imageshack.us/img850/7078/schermata082455786alle2.png
So when I push the events button and I change the ipad orientation, the left navigation bar return in the default color, so grey!
I would clarify that in the XCODE simulator the problem there isn't, it works perfectly. It's directly on the iPad that the problem appears. Furthermore it's not a code problem and/or a programming error, because I tried to make a blank iPadSplitView application changing only the navigation bars color!
Is there a way to solve this strange problem???
| ios | xcode | ipad | ipad-splitview | null | null | open | Problem with iPad SplitView Applicazion?
===
I'm trying to make an iPad SplitView Application, but I've a graphic issue. I tried to modify the navigation bars colors (bordeaux color) both the detailView and the mainWindow but when I change the app orientation I've a color issue in the portrait navigation bar.
In particular, if I start the application in portrait allthing works perfectly and also when I launch it in landscape mode.
But the problem is when I click in the EVENT button, in portrait mode, in this way:
http://img15.imageshack.us/img15/7078/schermata082455786alle2.png
... and I try to change another time the orientation. Because it happens this:
http://img850.imageshack.us/img850/7078/schermata082455786alle2.png
So when I push the events button and I change the ipad orientation, the left navigation bar return in the default color, so grey!
I would clarify that in the XCODE simulator the problem there isn't, it works perfectly. It's directly on the iPad that the problem appears. Furthermore it's not a code problem and/or a programming error, because I tried to make a blank iPadSplitView application changing only the navigation bars color!
Is there a way to solve this strange problem???
| 0 |
9,908,390 | 03/28/2012 13:20:12 | 1,298,260 | 03/28/2012 13:14:06 | 1 | 0 | Stuck with making a random number generator in Java | A company sells 50 tickets for their monthly draw every month. I have to write a java program that will generate 5 number sequences (between 1 and 6) for 50 tickets that are sold. And on the day of the draw, the program will generate the winning combination and display whether or not the winning combination is present in any of the 50 tickets.
For example:
Ticket 1 = 4,2,1,5,3
Ticket 2 = 3,5,1,3,2
And the winning combination is 3,5,1,3,2
And the winning combination is present in one of the tickets generated.
------------------------------------------------------------------------------------------
Anyway, any help will be appreciated. I'm having some trouble working it out (I'm horrid at programming).
Cheers. | java | null | null | null | null | 03/28/2012 20:07:50 | not a real question | Stuck with making a random number generator in Java
===
A company sells 50 tickets for their monthly draw every month. I have to write a java program that will generate 5 number sequences (between 1 and 6) for 50 tickets that are sold. And on the day of the draw, the program will generate the winning combination and display whether or not the winning combination is present in any of the 50 tickets.
For example:
Ticket 1 = 4,2,1,5,3
Ticket 2 = 3,5,1,3,2
And the winning combination is 3,5,1,3,2
And the winning combination is present in one of the tickets generated.
------------------------------------------------------------------------------------------
Anyway, any help will be appreciated. I'm having some trouble working it out (I'm horrid at programming).
Cheers. | 1 |
10,512,987 | 05/09/2012 09:07:13 | 840,710 | 07/12/2011 12:40:36 | 565 | 25 | O_DIRECT flag not working | **Board Introduction:**
I am working on a board that has ST40 chip on it basically used for capturing the DVB stream and displaying it on the TV. The board is running on Linux OS.
**Problem Description:**
I am trying to read data from a large file(approximately 2 GB) on USB using O_DIRECT flag.
Here is the relevant code snippet:
char subblk[BLKSIZE];
open (filename2,O_CREAT|O_WRONLY|O_DIRECT,S_IRWXU|S_IRWXG|S_IRWXO);
read (fp,subblk,BLKSIZE);
It says read failed with error number 22 - `"EINVAL 22 /* Invalid argument"`
To clarify whether this a programming issue or some architecture dependent problem, I ran the same code on my Desktop system, it worked perfectly fine and I was able to print the characters what I just read. What is the reason it is failing on my ST40 board? | c | linux | io | null | null | null | open | O_DIRECT flag not working
===
**Board Introduction:**
I am working on a board that has ST40 chip on it basically used for capturing the DVB stream and displaying it on the TV. The board is running on Linux OS.
**Problem Description:**
I am trying to read data from a large file(approximately 2 GB) on USB using O_DIRECT flag.
Here is the relevant code snippet:
char subblk[BLKSIZE];
open (filename2,O_CREAT|O_WRONLY|O_DIRECT,S_IRWXU|S_IRWXG|S_IRWXO);
read (fp,subblk,BLKSIZE);
It says read failed with error number 22 - `"EINVAL 22 /* Invalid argument"`
To clarify whether this a programming issue or some architecture dependent problem, I ran the same code on my Desktop system, it worked perfectly fine and I was able to print the characters what I just read. What is the reason it is failing on my ST40 board? | 0 |
9,890,313 | 03/27/2012 13:18:04 | 93,558 | 04/21/2009 03:04:53 | 1,025 | 22 | How to use keystore in Java to store private key? | I have used `KeyPairGenerator` to generate a RSA key pair. If I'm not wrong, the KeyStore is only used to store certificates and not keys. How can I properly store the private key on the computer? | java | keystore | null | null | null | null | open | How to use keystore in Java to store private key?
===
I have used `KeyPairGenerator` to generate a RSA key pair. If I'm not wrong, the KeyStore is only used to store certificates and not keys. How can I properly store the private key on the computer? | 0 |
6,954,400 | 08/05/2011 09:46:17 | 38,058 | 11/16/2008 17:58:12 | 130 | 8 | Spring @Transactional how to attach different method to same transaction | Hallo all
I have a problem with the transactional configuration subclassing.
I have a class A that has this method:
@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public EventMessage<ModificaOperativitaRapporto> activate(EventMessage<ModificaOperativitaRapporto> eventMessage) {
// some dao operations
return eventMessage;
}
Then class B subclass class A and overrides the activate method
InserimentoCanaleActivator extends ModificaOperativitaRapportoActivator ....
@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public EventMessage<ModificaOperativitaRapporto> activate(EventMessage<ModificaOperativitaRapporto> eventMessage) {
// others dao operations
return super.activate(eventMessage);
I need that when the super method is executed alone has his own transaction, but when is executed the method of class B all the operations need to partecipate to same transaction.
Any idea?
Kind regards
Massimo | spring | transactional | null | null | null | null | open | Spring @Transactional how to attach different method to same transaction
===
Hallo all
I have a problem with the transactional configuration subclassing.
I have a class A that has this method:
@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public EventMessage<ModificaOperativitaRapporto> activate(EventMessage<ModificaOperativitaRapporto> eventMessage) {
// some dao operations
return eventMessage;
}
Then class B subclass class A and overrides the activate method
InserimentoCanaleActivator extends ModificaOperativitaRapportoActivator ....
@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public EventMessage<ModificaOperativitaRapporto> activate(EventMessage<ModificaOperativitaRapporto> eventMessage) {
// others dao operations
return super.activate(eventMessage);
I need that when the super method is executed alone has his own transaction, but when is executed the method of class B all the operations need to partecipate to same transaction.
Any idea?
Kind regards
Massimo | 0 |
10,632,563 | 05/17/2012 08:55:55 | 122,019 | 06/12/2009 13:50:38 | 306 | 4 | Open-sourced options for HTML5 chart libraries? | I need to migrate a bunch of old versions' stats pages that use [Open Flash Chart][1] to display data in charts, I'd like to switch to a HTML5 version of this pages so I need an open source library to do that.
I've seen some options but mostly are freemium version, is there anyone who has used any of this libraries and can give some feedback?
[1]: http://teethgrinder.co.uk/open-flash-chart-2/ | javascript | html5 | charts | null | null | 05/18/2012 17:23:05 | not constructive | Open-sourced options for HTML5 chart libraries?
===
I need to migrate a bunch of old versions' stats pages that use [Open Flash Chart][1] to display data in charts, I'd like to switch to a HTML5 version of this pages so I need an open source library to do that.
I've seen some options but mostly are freemium version, is there anyone who has used any of this libraries and can give some feedback?
[1]: http://teethgrinder.co.uk/open-flash-chart-2/ | 4 |
8,330,064 | 11/30/2011 17:13:25 | 832,323 | 07/06/2011 20:11:13 | 100 | 0 | Am I using DTOs wrong with my service? | I currently have a WCF service that exposes a SOAP enpoint. In this webservice I have the following metthod:
public List<DataField> GetAvailableFields(string accountNumber, string accountKey, Models.Enums.CountryEnum country)
{
//Code that builds DataFields
return dataFields;
}
My Datafields may look something like this
[DataContract]
public class DataField
{
public DataField()
{
AlternativeFields = new List<DataField>();
}
[DataMember]
public string FieldName { get; set; }
[DataMember]
public string Value { get; set; }
[DataMember]
public bool IsRequired { get; set; }
[DataMember]
public List<DataField> AlternativeFields { get; set; }
public DataField ParentField { get; set; }
}
So I have 2 questions.
1: The ParentField reference...I am guessing that this needs to go as I'm not sure how that would serialize
2: Is it appropriate to have my list of alternative fields? This is essentially a list of DTOs inside a DTO but it seems that this should serialize just fine and there should be no interoperability issues with this. In general..is it bad practice to have DTOs inside other DTOs?
Thank you and feel free to point out anything I am doing incorrectly.
| wcf | web-services | design | dto | null | null | open | Am I using DTOs wrong with my service?
===
I currently have a WCF service that exposes a SOAP enpoint. In this webservice I have the following metthod:
public List<DataField> GetAvailableFields(string accountNumber, string accountKey, Models.Enums.CountryEnum country)
{
//Code that builds DataFields
return dataFields;
}
My Datafields may look something like this
[DataContract]
public class DataField
{
public DataField()
{
AlternativeFields = new List<DataField>();
}
[DataMember]
public string FieldName { get; set; }
[DataMember]
public string Value { get; set; }
[DataMember]
public bool IsRequired { get; set; }
[DataMember]
public List<DataField> AlternativeFields { get; set; }
public DataField ParentField { get; set; }
}
So I have 2 questions.
1: The ParentField reference...I am guessing that this needs to go as I'm not sure how that would serialize
2: Is it appropriate to have my list of alternative fields? This is essentially a list of DTOs inside a DTO but it seems that this should serialize just fine and there should be no interoperability issues with this. In general..is it bad practice to have DTOs inside other DTOs?
Thank you and feel free to point out anything I am doing incorrectly.
| 0 |
11,746,659 | 07/31/2012 18:28:42 | 1,552,588 | 07/25/2012 18:46:26 | 6 | 0 | Null and Not null in sql2008 | I am using sequel server management studio 2008 Sp2 and I need to add a column in the database ....can any one please let me know how I can use the columns "Allow Null" in the table...My requirement for this scenario is I want to add a column for the table in which user may or may not change the selection of the newly inserted column... | sql | sql-server | null | null | null | 07/31/2012 18:36:20 | not a real question | Null and Not null in sql2008
===
I am using sequel server management studio 2008 Sp2 and I need to add a column in the database ....can any one please let me know how I can use the columns "Allow Null" in the table...My requirement for this scenario is I want to add a column for the table in which user may or may not change the selection of the newly inserted column... | 1 |
11,606,850 | 07/23/2012 05:21:37 | 1,533,709 | 07/18/2012 05:34:31 | 1 | 1 | Can I install JAVA on the same linux or unix server on which PHP is already installed and hosting website without any issue? | I need to install Java on the same server on which PHP is already installed and hosting website. I need Java on the same server as I need to validate my XML file for Schematron business rule validation, will it create any problem if I install Java on same server? | java | php | ubuntu | schematron | null | 07/23/2012 09:51:34 | off topic | Can I install JAVA on the same linux or unix server on which PHP is already installed and hosting website without any issue?
===
I need to install Java on the same server on which PHP is already installed and hosting website. I need Java on the same server as I need to validate my XML file for Schematron business rule validation, will it create any problem if I install Java on same server? | 2 |
1,361,527 | 09/01/2009 09:41:26 | 132,096 | 07/02/2009 06:00:32 | 6 | 0 | how to add uiview as a subview to existing view | i want to add a uiview of smaller frame as subview to parental view but i am not getting the needed
uiview *view = [[uiview alloc] initwithFrame:something];
[self.view addsubview:view];
can anyone suggest me the answer | iphone | null | null | null | null | null | open | how to add uiview as a subview to existing view
===
i want to add a uiview of smaller frame as subview to parental view but i am not getting the needed
uiview *view = [[uiview alloc] initwithFrame:something];
[self.view addsubview:view];
can anyone suggest me the answer | 0 |
11,190,386 | 06/25/2012 13:36:14 | 523,725 | 11/29/2010 09:59:52 | 715 | 73 | Add new tags to DITA file | I'm starting with DITA technology. I have read about the basic structure of a DITA document. Now, I doubt arises as follows:
How can I add my own tags to a DITA document?, Should I create a .DTD file based on a topic.dtd like http://docs.oasis-open.org/dita/v1.2/cd03/dtd1.2/base/dtd/basetopic.dtd?
Regards! | xml | dtd | dita | xml-dtd | null | null | open | Add new tags to DITA file
===
I'm starting with DITA technology. I have read about the basic structure of a DITA document. Now, I doubt arises as follows:
How can I add my own tags to a DITA document?, Should I create a .DTD file based on a topic.dtd like http://docs.oasis-open.org/dita/v1.2/cd03/dtd1.2/base/dtd/basetopic.dtd?
Regards! | 0 |
11,294,142 | 07/02/2012 12:56:14 | 1,217,696 | 02/18/2012 06:31:48 | 60 | 3 | Error in load Properties file and upload image in jboss 7 server | In jeety , Glassfish server when project is deploy then make one folder in webapp but in jboss 7 server have no webapp folder.
where is project deploy( folder name ) in jboss 7?
so there are some problem like read properties file and image upload . b'caz i use class path and server path for it.
for ex in jboss 7:
get File path : "E:/jboss-as-7.1.1.Final/bin/content/mwp.war/WEB-INF/classes/analytics.properties"
Properties pro = new Properties();
String fileName = this.getClass().getClassLoader().getResource("analytics.properties").getFile();
pro.store(new FileOutputStream(fileName),null);
then get error :
16:21:52,004 ERROR [stderr] (MSC service thread 1-3) at java.io.FileOutputStream.open(Native Method)
16:21:52,006 ERROR [stderr] (MSC service thread 1-3) at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
16:21:52,007 ERROR [stderr] (MSC service thread 1-3) at java.io.FileOutputStream.<init>(FileOutputStream.java:104)
16:21:52,008 ERROR [stderr] (MSC service thread 1-3) at mwp.slktechlabs.model.analytics.AnalyticsDBData.updateAnalyticsPropertiesData(AnalyticsDBData.ja
va:95)
16:21:52,010 ERROR [stderr] (MSC service thread 1-3) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:21:52,011 ERROR [stderr] (MSC service thread 1-3) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
16:21:52,013 ERROR [stderr] (MSC service thread 1-3) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
16:21:52,015 ERROR [stderr] (MSC service thread 1-3) at java.lang.reflect.Method.invoke(Method.java:601)
16:21:52,016 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleEle
ment.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
16:21:52,018 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMet
adata.invokeDestroyMethods(InitDestroyAnnotationBeanPostProcessor.java:305)
16:21:52,020 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessB
eforeDestruction(InitDestroyAnnotationBeanPostProcessor.java:148)
16:21:52,023 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.ja
va:166)
16:21:52,025 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingle
tonBeanRegistry.java:487)
16:21:52,027 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultS
ingletonBeanRegistry.java:463)
16:21:52,029 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(Default
SingletonBeanRegistry.java:431)
16:21:52,031 ERROR [stderr] (MSC service thread 1-3) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationC
ontext.java:1053)
16:21:52,033 ERROR [stderr] (MSC service thread 1-3) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContex
t.java:463)
16:21:52,035 ERROR [stderr] (MSC service thread 1-3) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:294
)
16:21:52,036 ERROR [stderr] (MSC service thread 1-3) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:215)
16:21:52,038 ERROR [stderr] (MSC service thread 1-3) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.j
ava:47)
16:21:52,040 ERROR [stderr] (MSC service thread 1-3) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)
16:21:52,041 ERROR [stderr] (MSC service thread 1-3) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)
16:21:52,043 ERROR [stderr] (MSC service thread 1-3) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
16:21:52,045 ERROR [stderr] (MSC service thread 1-3) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:18
11)
16:21:52,046 ERROR [stderr] (MSC service thread 1-3) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
16:21:52,048 ERROR [stderr] (MSC service thread 1-3) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
16:21:52,050 ERROR [stderr] (MSC service thread 1-3) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
16:21:52,051 ERROR [stderr] (MSC service thread 1-3) at java.lang.Thread.run(Thread.java:722)
so how to remove this error ?
Thanks,
kamlesh | spring | java-ee | jboss | jboss7.x | null | null | open | Error in load Properties file and upload image in jboss 7 server
===
In jeety , Glassfish server when project is deploy then make one folder in webapp but in jboss 7 server have no webapp folder.
where is project deploy( folder name ) in jboss 7?
so there are some problem like read properties file and image upload . b'caz i use class path and server path for it.
for ex in jboss 7:
get File path : "E:/jboss-as-7.1.1.Final/bin/content/mwp.war/WEB-INF/classes/analytics.properties"
Properties pro = new Properties();
String fileName = this.getClass().getClassLoader().getResource("analytics.properties").getFile();
pro.store(new FileOutputStream(fileName),null);
then get error :
16:21:52,004 ERROR [stderr] (MSC service thread 1-3) at java.io.FileOutputStream.open(Native Method)
16:21:52,006 ERROR [stderr] (MSC service thread 1-3) at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
16:21:52,007 ERROR [stderr] (MSC service thread 1-3) at java.io.FileOutputStream.<init>(FileOutputStream.java:104)
16:21:52,008 ERROR [stderr] (MSC service thread 1-3) at mwp.slktechlabs.model.analytics.AnalyticsDBData.updateAnalyticsPropertiesData(AnalyticsDBData.ja
va:95)
16:21:52,010 ERROR [stderr] (MSC service thread 1-3) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:21:52,011 ERROR [stderr] (MSC service thread 1-3) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
16:21:52,013 ERROR [stderr] (MSC service thread 1-3) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
16:21:52,015 ERROR [stderr] (MSC service thread 1-3) at java.lang.reflect.Method.invoke(Method.java:601)
16:21:52,016 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleEle
ment.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
16:21:52,018 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMet
adata.invokeDestroyMethods(InitDestroyAnnotationBeanPostProcessor.java:305)
16:21:52,020 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessB
eforeDestruction(InitDestroyAnnotationBeanPostProcessor.java:148)
16:21:52,023 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.ja
va:166)
16:21:52,025 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingle
tonBeanRegistry.java:487)
16:21:52,027 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultS
ingletonBeanRegistry.java:463)
16:21:52,029 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(Default
SingletonBeanRegistry.java:431)
16:21:52,031 ERROR [stderr] (MSC service thread 1-3) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationC
ontext.java:1053)
16:21:52,033 ERROR [stderr] (MSC service thread 1-3) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContex
t.java:463)
16:21:52,035 ERROR [stderr] (MSC service thread 1-3) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:294
)
16:21:52,036 ERROR [stderr] (MSC service thread 1-3) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:215)
16:21:52,038 ERROR [stderr] (MSC service thread 1-3) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.j
ava:47)
16:21:52,040 ERROR [stderr] (MSC service thread 1-3) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)
16:21:52,041 ERROR [stderr] (MSC service thread 1-3) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)
16:21:52,043 ERROR [stderr] (MSC service thread 1-3) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
16:21:52,045 ERROR [stderr] (MSC service thread 1-3) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:18
11)
16:21:52,046 ERROR [stderr] (MSC service thread 1-3) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
16:21:52,048 ERROR [stderr] (MSC service thread 1-3) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
16:21:52,050 ERROR [stderr] (MSC service thread 1-3) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
16:21:52,051 ERROR [stderr] (MSC service thread 1-3) at java.lang.Thread.run(Thread.java:722)
so how to remove this error ?
Thanks,
kamlesh | 0 |
529,442 | 02/09/2009 19:07:33 | 56,546 | 01/19/2009 03:19:25 | 141 | 21 | Unattended Processing - Application Automation | I'm looking for information [I hesitate to infer "Best Practices"] for Automating Applications. I'm specifically referring to replacing that which is predictably repeatable through traditional manual means [humans manipulating the GUI] with something that is scheduled by the User and performed "Automatically".
We use AutoIT internally for performing Automated Testing and have considered the same approach for providing Unattended Processing of our applications, but we're reluctant due to the possibility of the user "accidentally" interacting with the Application _in parallel_ with the execution of a scheduled "automation" and therefore "breaking" the automation.
Shy of building in our own scheduler with known events and fixed arguments for controlling a predefined set of actions, what approaches should I evaluate/consider and which tools would be required? | autoit | automation | autohotkey | unattended-processing | null | null | open | Unattended Processing - Application Automation
===
I'm looking for information [I hesitate to infer "Best Practices"] for Automating Applications. I'm specifically referring to replacing that which is predictably repeatable through traditional manual means [humans manipulating the GUI] with something that is scheduled by the User and performed "Automatically".
We use AutoIT internally for performing Automated Testing and have considered the same approach for providing Unattended Processing of our applications, but we're reluctant due to the possibility of the user "accidentally" interacting with the Application _in parallel_ with the execution of a scheduled "automation" and therefore "breaking" the automation.
Shy of building in our own scheduler with known events and fixed arguments for controlling a predefined set of actions, what approaches should I evaluate/consider and which tools would be required? | 0 |
10,310,748 | 04/25/2012 06:54:40 | 117,362 | 06/04/2009 13:48:56 | 8,911 | 497 | How to implement "Press back again to quit" feature? | some applications (like for example the Dolphin HD Browser) implement the following feature:
Pressing "Back" jumps back in the back stack. When the initial view/activity/fragment is shown and you press "Back", a `Toast` appears saying "Press Back again to quit" or something similar.
How could I implement this feature? | android | null | null | null | null | 04/25/2012 13:17:16 | not a real question | How to implement "Press back again to quit" feature?
===
some applications (like for example the Dolphin HD Browser) implement the following feature:
Pressing "Back" jumps back in the back stack. When the initial view/activity/fragment is shown and you press "Back", a `Toast` appears saying "Press Back again to quit" or something similar.
How could I implement this feature? | 1 |
9,917,348 | 03/28/2012 23:57:39 | 1,244,035 | 03/02/2012 00:45:16 | 1 | 0 | Random number based off of varabile | I would like to have a random number generated based of a variable called "offset" this var starts at 1 and can go up to 5,000,000 and counts up at a fast rate. This function would have to read offset generate a number that is higher than offset by 3000. Can figure out how to do this so asking for help. | javascript | null | null | null | null | 03/30/2012 01:42:10 | not a real question | Random number based off of varabile
===
I would like to have a random number generated based of a variable called "offset" this var starts at 1 and can go up to 5,000,000 and counts up at a fast rate. This function would have to read offset generate a number that is higher than offset by 3000. Can figure out how to do this so asking for help. | 1 |
9,297,787 | 02/15/2012 17:04:06 | 1,188,304 | 02/03/2012 19:24:44 | 34 | 0 | XCode: what is the best way of measuring a code performance? | Please, tell me, what is the best way of measuring a code performance in Xcode? | c++ | c | xcode | null | null | 05/22/2012 11:18:44 | not constructive | XCode: what is the best way of measuring a code performance?
===
Please, tell me, what is the best way of measuring a code performance in Xcode? | 4 |
11,711,405 | 07/29/2012 17:34:28 | 798,162 | 06/14/2011 17:18:56 | 71 | 2 | Developing search application in java | I am planning of building a java search application with a php front end on amazon cloud. Can anyone please tell me:
i) the best database type to use for my app
i) how to run the java search application continuously on the cloud
ii) how to check if the indexing is active on the java application from php webapp
iv) is it better for me to create my own search app or should i use some library?
(This is the first time I am planning to host an app on the cloud, so i am not sure how it works.) | java | php | search | full-text-search | cloud | 07/29/2012 18:24:07 | not a real question | Developing search application in java
===
I am planning of building a java search application with a php front end on amazon cloud. Can anyone please tell me:
i) the best database type to use for my app
i) how to run the java search application continuously on the cloud
ii) how to check if the indexing is active on the java application from php webapp
iv) is it better for me to create my own search app or should i use some library?
(This is the first time I am planning to host an app on the cloud, so i am not sure how it works.) | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.