PostId int64 13 11.8M | PostCreationDate stringlengths 19 19 | OwnerUserId int64 3 1.57M | OwnerCreationDate stringlengths 10 19 | ReputationAtPostCreation int64 -33 210k | OwnerUndeletedAnswerCountAtPostTime int64 0 5.77k | Title stringlengths 10 250 | BodyMarkdown stringlengths 12 30k | Tag1 stringlengths 1 25 ⌀ | Tag2 stringlengths 1 25 ⌀ | Tag3 stringlengths 1 25 ⌀ | Tag4 stringlengths 1 25 ⌀ | Tag5 stringlengths 1 25 ⌀ | PostClosedDate stringlengths 19 19 ⌀ | OpenStatus stringclasses 5 values | unified_texts stringlengths 47 30.1k | OpenStatus_id int64 0 4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8,997,396 | 01/25/2012 03:09:41 | 1,092,899 | 12/12/2011 01:00:18 | 1 | 0 | Las Vegas Algorithm Mathematical Exercise | I have an exercise on Las Vegas algorithm, but so far not a clue on how to approach it as it is rather mathematical than programming which I'm familiar with. Anyway, here it is:
Let ε,δ be real numbers 0<ε<δ<1. Let A be a randomized algorithm that computes a function F with
Prob(A(x)=F(x))>=1/2 and Prob(A(x)="?")=1-Prob(A(x)=F(x)).
----------------------------------------------------------
Let, for every k€N,k>=2, Ak(k as an indicator on variant A just couldn't print here) be the randomized algorithm that for any input x executes k indendent runs of A on x. The output of Ak is "?" if and only if all k runs of A on x finished with the output "?". In all other cases the algorithm Ak computes the right result F(x). Estimate the smallest k such that Prob(Ak(x)=F(x))>=δ.
Any help will be appreciated. Thanks in advance. | algorithm | homework | random | analysis | null | 01/25/2012 05:12:12 | off topic | Las Vegas Algorithm Mathematical Exercise
===
I have an exercise on Las Vegas algorithm, but so far not a clue on how to approach it as it is rather mathematical than programming which I'm familiar with. Anyway, here it is:
Let ε,δ be real numbers 0<ε<δ<1. Let A be a randomized algorithm that computes a function F with
Prob(A(x)=F(x))>=1/2 and Prob(A(x)="?")=1-Prob(A(x)=F(x)).
----------------------------------------------------------
Let, for every k€N,k>=2, Ak(k as an indicator on variant A just couldn't print here) be the randomized algorithm that for any input x executes k indendent runs of A on x. The output of Ak is "?" if and only if all k runs of A on x finished with the output "?". In all other cases the algorithm Ak computes the right result F(x). Estimate the smallest k such that Prob(Ak(x)=F(x))>=δ.
Any help will be appreciated. Thanks in advance. | 2 |
3,639,750 | 09/03/2010 21:44:26 | 441,664 | 05/24/2010 20:05:22 | 93 | 1 | Latest version for mysql | What is the latest mysql version? is it v5.2 or v5.1?
Thanks. | mysql | null | null | null | null | 09/03/2010 21:49:42 | too localized | Latest version for mysql
===
What is the latest mysql version? is it v5.2 or v5.1?
Thanks. | 3 |
8,340,044 | 12/01/2011 10:45:59 | 1,075,235 | 12/01/2011 10:40:52 | 1 | 0 | Would someone tell me what to learn after C? | I'm a college student majoring in software engineering and I'm very interested in programming.
So I want to become able to write desktop application on my own ASAP. I have already learnt C, what should I learn next? Or would you suggest me a list of books to read? Thanks in advance. | c | college | null | null | null | 12/01/2011 10:50:57 | not constructive | Would someone tell me what to learn after C?
===
I'm a college student majoring in software engineering and I'm very interested in programming.
So I want to become able to write desktop application on my own ASAP. I have already learnt C, what should I learn next? Or would you suggest me a list of books to read? Thanks in advance. | 4 |
11,014,809 | 06/13/2012 12:27:42 | 1,297,879 | 03/28/2012 10:22:13 | 56 | 1 | Simple Rest web service | I want to develop one simple project for creating Rest web service in Netbeans Editor.in that project client will give any input to me.without looking into client input i just want to return a string name "hello" to client.How should i proceed for that project.I am new to development of Rest Web service and also new to that Netbeans editor.Please give me detailed step by step description about it. | java | web-services | netbeans | null | null | 06/14/2012 04:09:41 | not a real question | Simple Rest web service
===
I want to develop one simple project for creating Rest web service in Netbeans Editor.in that project client will give any input to me.without looking into client input i just want to return a string name "hello" to client.How should i proceed for that project.I am new to development of Rest Web service and also new to that Netbeans editor.Please give me detailed step by step description about it. | 1 |
2,928,090 | 05/28/2010 10:04:11 | 351,922 | 05/27/2010 12:06:08 | 6 | 1 | IE8 displays legend in blue but all other browsers dispaly it correctly in white text. Why? | I have a Joomla 1.5 site with a client login on the page (rather than going right into the back-end) using the standard Joomla module, but when the login is accessed via IE* the <legend> tag displays in blue. It is set in the .css files as white. IE8 is ignoring this. Any ideas? This only shows when admin is logged in so hard to show the problem without setting a temporary password (thus giving the whole world access to the site-don't really want to do that!) | joomla | legend | internet-explorer-8 | null | null | null | open | IE8 displays legend in blue but all other browsers dispaly it correctly in white text. Why?
===
I have a Joomla 1.5 site with a client login on the page (rather than going right into the back-end) using the standard Joomla module, but when the login is accessed via IE* the <legend> tag displays in blue. It is set in the .css files as white. IE8 is ignoring this. Any ideas? This only shows when admin is logged in so hard to show the problem without setting a temporary password (thus giving the whole world access to the site-don't really want to do that!) | 0 |
6,948,461 | 08/04/2011 21:01:21 | 327,258 | 04/27/2010 20:45:52 | 109 | 6 | Formating a textfile to display in an EditText on android | I got my little html fisher working and it grabs a text file form a URL string. I can call setText to my EditText view and it will indeed display the text in the text file, but there is like no formatting at all (I am talking simple stuff like carriage returns and line feeds). how can i get this to happen some? Original text file looks like:
Imagine the following from a resource:
http://www.someaddress.com/thetextfile.txt
Original Text File here.
1. First thing on the text file.
2. Second thing on the text file...
Finally the end of the text file. This is a long string blah blah
that I like to use here. Notice the carriage return line breaks and indentation
on the paragraph.
I can get the above as the string but there is no carriage returns at all when it displays. Is there anyway I can add this? Its not a matter of adding \n or \r cause those would already be in the text file I would suspect (was written in Notepad++). So anyway to get this even ever so slightly more formatted? (and preserve the formatting when he string is saved back out to disk or to a database? | android | android-edittext | android-ui | null | null | null | open | Formating a textfile to display in an EditText on android
===
I got my little html fisher working and it grabs a text file form a URL string. I can call setText to my EditText view and it will indeed display the text in the text file, but there is like no formatting at all (I am talking simple stuff like carriage returns and line feeds). how can i get this to happen some? Original text file looks like:
Imagine the following from a resource:
http://www.someaddress.com/thetextfile.txt
Original Text File here.
1. First thing on the text file.
2. Second thing on the text file...
Finally the end of the text file. This is a long string blah blah
that I like to use here. Notice the carriage return line breaks and indentation
on the paragraph.
I can get the above as the string but there is no carriage returns at all when it displays. Is there anyway I can add this? Its not a matter of adding \n or \r cause those would already be in the text file I would suspect (was written in Notepad++). So anyway to get this even ever so slightly more formatted? (and preserve the formatting when he string is saved back out to disk or to a database? | 0 |
1,562,948 | 10/13/2009 21:18:10 | 79,344 | 03/18/2009 07:14:46 | 185 | 5 | c++ dynamic dispatch problem | I've got the following structure:
struct A
{
A();
virtual ~A();
virtual void Foo() =0;
};
struct E;
struct F;
struct B: public A
{
B();
virtual ~B();
virtual void Bar(E*) =0;
virtual void Bar(F*) =0;
};
struct C: public B
{
C();
virtual ~C();
void Bar(E*);
};
struct D: public C
{
D();
virtual ~D();
void Foo();
void Bar(F*);
};
struct E: public A
{
E();
virtual ~E();
void Foo();
/* ... */
};
struct F: public A
{
F();
virtual ~F();
void Foo();
/* ... */
};
template <class _Base>
struct G: public _Base
{
G()
: _Base()
{}
virtual ~G()
{}
using _Base::Bar; // doesn't help
/* ... */
};
When I'm trying to call Bar() on an object of type G<D> with a E*, I get the following compile-time error:
> error: no matching function for call to 'G<D>::Bar(E*&)'
> note: candidates are: virtual void D::Bar(F*)
If I rename the declarations of (virtual) void Bar(F*), the code compiles fine and works as expected.
1, What's wrong with multiple overloads of member functions taking pointers to items of related types?
2, Why can't the compiler tell the difference between them?
| c++ | polymorphism | inheritance | multiple-dispatch | templates | null | open | c++ dynamic dispatch problem
===
I've got the following structure:
struct A
{
A();
virtual ~A();
virtual void Foo() =0;
};
struct E;
struct F;
struct B: public A
{
B();
virtual ~B();
virtual void Bar(E*) =0;
virtual void Bar(F*) =0;
};
struct C: public B
{
C();
virtual ~C();
void Bar(E*);
};
struct D: public C
{
D();
virtual ~D();
void Foo();
void Bar(F*);
};
struct E: public A
{
E();
virtual ~E();
void Foo();
/* ... */
};
struct F: public A
{
F();
virtual ~F();
void Foo();
/* ... */
};
template <class _Base>
struct G: public _Base
{
G()
: _Base()
{}
virtual ~G()
{}
using _Base::Bar; // doesn't help
/* ... */
};
When I'm trying to call Bar() on an object of type G<D> with a E*, I get the following compile-time error:
> error: no matching function for call to 'G<D>::Bar(E*&)'
> note: candidates are: virtual void D::Bar(F*)
If I rename the declarations of (virtual) void Bar(F*), the code compiles fine and works as expected.
1, What's wrong with multiple overloads of member functions taking pointers to items of related types?
2, Why can't the compiler tell the difference between them?
| 0 |
11,449,919 | 07/12/2012 10:29:16 | 1,520,459 | 07/12/2012 10:17:11 | 1 | 0 | Java Integer resetting it's self | I've been playing with a path finding program but I've run into a strange situation.
When creating an object one of the values appears to be resetting it's self to 0.
here are some screen dumps from the debugger.<br>
<a href="http://imageshack.us/photo/my-images/208/screen1edit.jpg/">http://imageshack.us/photo/my-images/208/screen1edit.jpg/</a><br>
<a href="http://imageshack.us/photo/my-images/855/screen2edit.jpg/">http://imageshack.us/photo/my-images/855/screen2edit.jpg/</a> | java | null | null | null | null | 07/12/2012 10:32:35 | not a real question | Java Integer resetting it's self
===
I've been playing with a path finding program but I've run into a strange situation.
When creating an object one of the values appears to be resetting it's self to 0.
here are some screen dumps from the debugger.<br>
<a href="http://imageshack.us/photo/my-images/208/screen1edit.jpg/">http://imageshack.us/photo/my-images/208/screen1edit.jpg/</a><br>
<a href="http://imageshack.us/photo/my-images/855/screen2edit.jpg/">http://imageshack.us/photo/my-images/855/screen2edit.jpg/</a> | 1 |
3,035,240 | 06/14/2010 06:08:34 | 364,274 | 06/11/2010 06:44:14 | 1 | 1 | best JavaScript Editor and debugger | JavaScript editors namely
- Komodo
- Eclipse (if it has any)
- Netbeans
- [Antechinus® JavaScript Editor][3]
[3]: http://www.c-point.com/javascript_editor.php
which one is best or proffered in by experience programmers, i am completely new to JavaScript and php so have no idea of which one to choose :s
or if there are any other do tell please
PS: also heard that many use Fireug for debugging | php | javascript | editor | null | null | 09/13/2011 12:40:37 | not constructive | best JavaScript Editor and debugger
===
JavaScript editors namely
- Komodo
- Eclipse (if it has any)
- Netbeans
- [Antechinus® JavaScript Editor][3]
[3]: http://www.c-point.com/javascript_editor.php
which one is best or proffered in by experience programmers, i am completely new to JavaScript and php so have no idea of which one to choose :s
or if there are any other do tell please
PS: also heard that many use Fireug for debugging | 4 |
2,760,182 | 05/03/2010 18:14:50 | 246,963 | 01/09/2010 07:25:34 | 136 | 36 | form validation message inside textbox | How to make validation something like this screen shot..!
is there any jquery plugin ,will do the validation...
[my screebshot][1]
[1]: http://img338.imageshack.us/img338/966/loginh.gif | jquery | form-validation | jquery-validate | null | null | null | open | form validation message inside textbox
===
How to make validation something like this screen shot..!
is there any jquery plugin ,will do the validation...
[my screebshot][1]
[1]: http://img338.imageshack.us/img338/966/loginh.gif | 0 |
8,229,832 | 11/22/2011 16:03:39 | 443,966 | 09/10/2010 02:07:29 | 1,054 | 25 | scp to a ftp server? | I am not good at remember too much command, I don't like `ftp` commands, I like `scp` command, but the server is ftp. can I connect a ftp server by scp like command? | linux | ftp | scp | null | null | 11/22/2011 21:40:59 | off topic | scp to a ftp server?
===
I am not good at remember too much command, I don't like `ftp` commands, I like `scp` command, but the server is ftp. can I connect a ftp server by scp like command? | 2 |
7,189,456 | 08/25/2011 11:18:56 | 598,343 | 02/01/2011 12:11:25 | 311 | 7 | Providing links to files outside of IIS | I have an upload function in my system that stores the files on the d drive e.g D:\KBFiles. Now i need to offer these files as links through internet explorer. Obviously i cant just offer a path e.g D:\KBFiles\test.pdf. Whats the best way to handle this scenario | c# | asp.net | null | null | null | null | open | Providing links to files outside of IIS
===
I have an upload function in my system that stores the files on the d drive e.g D:\KBFiles. Now i need to offer these files as links through internet explorer. Obviously i cant just offer a path e.g D:\KBFiles\test.pdf. Whats the best way to handle this scenario | 0 |
10,997,719 | 06/12/2012 13:28:35 | 1,207,026 | 02/13/2012 14:38:59 | 22 | 1 | At what point does an index become necessary or worthwhile? | I'm in the process of learning Databases and SQL. From what I have read adding an index to a table can increase performance to from around (log(n)) to even constant time.
Considering the increased space usage, at what point does it make sense to add an index to a table?
For example if i was using an employees table at how many records would the table have to have before you would add an index?
In this specific case would a clustered index make sense?
| sql | database | oracle | database-design | indexing | 06/12/2012 22:59:31 | not constructive | At what point does an index become necessary or worthwhile?
===
I'm in the process of learning Databases and SQL. From what I have read adding an index to a table can increase performance to from around (log(n)) to even constant time.
Considering the increased space usage, at what point does it make sense to add an index to a table?
For example if i was using an employees table at how many records would the table have to have before you would add an index?
In this specific case would a clustered index make sense?
| 4 |
9,785,190 | 03/20/2012 10:40:08 | 1,023,433 | 11/01/2011 10:01:44 | 31 | 2 | ContactPicker.PickSingleContactAsync Windows 8 C# usage | Could someone give me an example of how to use the ContactPicker.PickSingleContactAsync() functionality correctly in Windows 8 ASync programming, i've tried the following code below and I don't seem to be able to retrieve the results, let alone proceed. the JavaScript example is a bit vague and I don't understand JavaScript code. I'm new to ASync programming in C# as well
ContactPicker cp = new ContactPicker();
ContactInformation ci;
Task<ContactInformation> task = cp.PickSingleContactAsync() as Task<ContactInformation>;
await task;
How do I proceed to get results into 'ci' ? additionally, how do I ensure I get only contacts with phone numbers to pick from?
| c# | asynchronous | contacts | windows-8 | null | null | open | ContactPicker.PickSingleContactAsync Windows 8 C# usage
===
Could someone give me an example of how to use the ContactPicker.PickSingleContactAsync() functionality correctly in Windows 8 ASync programming, i've tried the following code below and I don't seem to be able to retrieve the results, let alone proceed. the JavaScript example is a bit vague and I don't understand JavaScript code. I'm new to ASync programming in C# as well
ContactPicker cp = new ContactPicker();
ContactInformation ci;
Task<ContactInformation> task = cp.PickSingleContactAsync() as Task<ContactInformation>;
await task;
How do I proceed to get results into 'ci' ? additionally, how do I ensure I get only contacts with phone numbers to pick from?
| 0 |
10,046,119 | 04/06/2012 16:13:01 | 1,317,785 | 04/06/2012 15:47:36 | 1 | 0 | Using python to Extract data from lines in file | I have a file with many lines of data much data like:
>chr1:4797973-4836816 57.7862
I want to create a new file with lines that look like:
>chr1 4797973 4836816 57.7862
chr# varies from line to line. # = 1-19, X, Y
Sorry if this is so basic...
J | python | null | null | null | null | 04/06/2012 16:28:53 | too localized | Using python to Extract data from lines in file
===
I have a file with many lines of data much data like:
>chr1:4797973-4836816 57.7862
I want to create a new file with lines that look like:
>chr1 4797973 4836816 57.7862
chr# varies from line to line. # = 1-19, X, Y
Sorry if this is so basic...
J | 3 |
4,659,931 | 01/11/2011 16:28:06 | 454,488 | 05/03/2010 03:43:01 | 164 | 2 | How do browsers work | I found this excellent article :
[how-browsers-work-part-1-architecture][1]
[1]: http://www.vineetgupta.com/2010/11/how-browsers-work-part-1-architecture/
But i could not find the part 2. I am guessing, once completed, it would explain the following aspects of how a browser works.
* Architecture
* HTTP
* Security Model
* Content and Rendering
* JavaScript
* Apps
Anyone would like to take a shot at explaining how Content and rendering wise?
| html | browser | null | null | null | 01/12/2011 00:41:15 | off topic | How do browsers work
===
I found this excellent article :
[how-browsers-work-part-1-architecture][1]
[1]: http://www.vineetgupta.com/2010/11/how-browsers-work-part-1-architecture/
But i could not find the part 2. I am guessing, once completed, it would explain the following aspects of how a browser works.
* Architecture
* HTTP
* Security Model
* Content and Rendering
* JavaScript
* Apps
Anyone would like to take a shot at explaining how Content and rendering wise?
| 2 |
7,468,674 | 09/19/2011 09:13:41 | 490,018 | 10/28/2010 11:21:45 | 137 | 12 | jqGrid: selected IDs are lost after changing the filter | I am implementing the functionality described at [the question][1].
I have looked through [the jqGrid examples][2].
See Advanced -> Multi Select.
There is the problem, the checkboxes' selection is reset when you change the filter, so selected IDs are reset. How to store all selected IDs despite the filter change?
[1]: http://stackoverflow.com/questions/7464138/user-groups-management
[2]: http://trirand.com/blog/jqgrid/jqgrid.html | asp.net-mvc | jqgrid | null | null | null | null | open | jqGrid: selected IDs are lost after changing the filter
===
I am implementing the functionality described at [the question][1].
I have looked through [the jqGrid examples][2].
See Advanced -> Multi Select.
There is the problem, the checkboxes' selection is reset when you change the filter, so selected IDs are reset. How to store all selected IDs despite the filter change?
[1]: http://stackoverflow.com/questions/7464138/user-groups-management
[2]: http://trirand.com/blog/jqgrid/jqgrid.html | 0 |
7,883,189 | 10/24/2011 23:39:34 | 581,851 | 01/19/2011 17:37:29 | 589 | 8 | How to setup functionality where a user can edit their profile, but all changes must be approved by an admin? | Does anyone know of any examples of this in terms of both front end (interface) and back end? Thanks for your time! | php | null | null | null | null | 10/25/2011 00:28:04 | off topic | How to setup functionality where a user can edit their profile, but all changes must be approved by an admin?
===
Does anyone know of any examples of this in terms of both front end (interface) and back end? Thanks for your time! | 2 |
9,467,952 | 02/27/2012 15:52:28 | 249,341 | 01/12/2010 22:44:34 | 1,308 | 31 | What libraries are needed for this binary to run? | Linux-based (Ubuntu 11.10)
Before my computer crashed I had a binary on my computer: `./program` that was given to me without the source. This file executed just fine. When my hard drive failed, I started with a fresh install and tried to run this binary on the same computer. It now fails with:
bash: ./program: cannot execute binary file
Running `ldd` on the file gives a bit more information:
/usr/bin/ldd: line 161: /lib64/ld-linux-x86-64.so.2: cannot execute binary file
not a dynamic executable
I have a second computer where the binary runs and `ldd` gives the output:
./program:
linux-vdso.so.1 => (0x00007fffdad5e000)
libz.so.1 => /lib64/libz.so.1 (0x00000039a1400000)
libstdc++.so.6 => /usr/local/gcc/gcc-4.5.1/lib64/libstdc++.so.6 (0x00007fce82c7a000)
libm.so.6 => /lib64/libm.so.6 (0x00007fce829f6000)
libgcc_s.so.1 => /usr/local/gcc/gcc-4.5.1/lib64/libgcc_s.so.1 (0x00007fce827e1000)
libc.so.6 => /lib64/libc.so.6 (0x00007fce82452000)
/lib64/ld-linux-x86-64.so.2 (0x00007fce82f7f000)
Is there a way I can tell what is needed so I can get my program running again? I know that anything installed before the crash was done with `apt-get` so I don't think it requires anything unique that's not in the repository. | linux | shared-libraries | binaryfiles | null | null | 02/27/2012 20:56:48 | off topic | What libraries are needed for this binary to run?
===
Linux-based (Ubuntu 11.10)
Before my computer crashed I had a binary on my computer: `./program` that was given to me without the source. This file executed just fine. When my hard drive failed, I started with a fresh install and tried to run this binary on the same computer. It now fails with:
bash: ./program: cannot execute binary file
Running `ldd` on the file gives a bit more information:
/usr/bin/ldd: line 161: /lib64/ld-linux-x86-64.so.2: cannot execute binary file
not a dynamic executable
I have a second computer where the binary runs and `ldd` gives the output:
./program:
linux-vdso.so.1 => (0x00007fffdad5e000)
libz.so.1 => /lib64/libz.so.1 (0x00000039a1400000)
libstdc++.so.6 => /usr/local/gcc/gcc-4.5.1/lib64/libstdc++.so.6 (0x00007fce82c7a000)
libm.so.6 => /lib64/libm.so.6 (0x00007fce829f6000)
libgcc_s.so.1 => /usr/local/gcc/gcc-4.5.1/lib64/libgcc_s.so.1 (0x00007fce827e1000)
libc.so.6 => /lib64/libc.so.6 (0x00007fce82452000)
/lib64/ld-linux-x86-64.so.2 (0x00007fce82f7f000)
Is there a way I can tell what is needed so I can get my program running again? I know that anything installed before the crash was done with `apt-get` so I don't think it requires anything unique that's not in the repository. | 2 |
10,808,973 | 05/30/2012 01:40:23 | 945,775 | 09/15/2011 00:37:44 | 1 | 0 | Which exploit/audit tool produces output like this? | I would like to audit the security of my site against SQL injections, and I have people showing me results like this (that's not my site, just an example of the output I'm being shown).
http://pastebin.com/WPCzCBZb
I would like to know what audit tool that comes from so I can test it myself.
Does anyone know? | sql | security | injection | audit | exploit | 06/01/2012 03:14:48 | off topic | Which exploit/audit tool produces output like this?
===
I would like to audit the security of my site against SQL injections, and I have people showing me results like this (that's not my site, just an example of the output I'm being shown).
http://pastebin.com/WPCzCBZb
I would like to know what audit tool that comes from so I can test it myself.
Does anyone know? | 2 |
7,244,338 | 08/30/2011 13:53:32 | 754,559 | 05/15/2011 15:01:29 | 26 | 4 | Changing data source for audio playback using existing MediaPlayer? | I'm trying to use the same media player but change the data source. Here is what I'm trying to do:
private String mediafile="my.mp3";
private MediaPlayer mMediaPlayer;
private void initMediaPlayer() {
// Setup media player, but don't start until user clicks button!
try {
if (mMediaPlayer == null) {
mMediaPlayer = new MediaPlayer();
} else {
mMediaPlayer.reset(); // so can change data source etc.
}
mMediaPlayer.setOnErrorListener(this);
AssetFileDescriptor afd = getAssets().openFd(mediafile);
mMediaPlayer.setDataSource(afd.getFileDescriptor());
}
catch (IllegalStateException e) {
Log.d(TAG, "IllegalStateException: " + e.getMessage());
}
catch (IOException e) {
Log.d(TAG, "IOException: " + e.getMessage());
}
catch (IllegalArgumentException e) {
Log.d(TAG, "IllegalArgumentException: " + e.getMessage());
}
catch (SecurityException e) {
Log.d(TAG, "SecurityException: " + e.getMessage());
}
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.prepareAsync(); // prepare async to not block main thread
mMediaPlayer.setWakeMode(getApplicationContext(), PowerManager.PARTIAL_WAKE_LOCK); // Keep playing when screen goes off!
}
I just call this when I want to change to a new mediafile. It doesn't appear to be changing the data source successfully though. First question: is it possible to do it this way, or do I have to release the media player and create a new one for each new file? If it is possible, then why isn't my code working right? | android | mediaplayer | audiomanager | null | null | null | open | Changing data source for audio playback using existing MediaPlayer?
===
I'm trying to use the same media player but change the data source. Here is what I'm trying to do:
private String mediafile="my.mp3";
private MediaPlayer mMediaPlayer;
private void initMediaPlayer() {
// Setup media player, but don't start until user clicks button!
try {
if (mMediaPlayer == null) {
mMediaPlayer = new MediaPlayer();
} else {
mMediaPlayer.reset(); // so can change data source etc.
}
mMediaPlayer.setOnErrorListener(this);
AssetFileDescriptor afd = getAssets().openFd(mediafile);
mMediaPlayer.setDataSource(afd.getFileDescriptor());
}
catch (IllegalStateException e) {
Log.d(TAG, "IllegalStateException: " + e.getMessage());
}
catch (IOException e) {
Log.d(TAG, "IOException: " + e.getMessage());
}
catch (IllegalArgumentException e) {
Log.d(TAG, "IllegalArgumentException: " + e.getMessage());
}
catch (SecurityException e) {
Log.d(TAG, "SecurityException: " + e.getMessage());
}
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.prepareAsync(); // prepare async to not block main thread
mMediaPlayer.setWakeMode(getApplicationContext(), PowerManager.PARTIAL_WAKE_LOCK); // Keep playing when screen goes off!
}
I just call this when I want to change to a new mediafile. It doesn't appear to be changing the data source successfully though. First question: is it possible to do it this way, or do I have to release the media player and create a new one for each new file? If it is possible, then why isn't my code working right? | 0 |
4,051,083 | 10/29/2010 10:45:22 | 73,603 | 03/04/2009 09:49:21 | 5,546 | 148 | Version controlled South migrations in virtualenv | I have a Django site placed in folder `site/`. It's under version control. I use South for schema and data migrations for my applications. Site-specific applications are under folder `site/` so they are all version-controlled along with their migrations.
I manage a virtualenv to keep third party components dry and safe. I install packages via PyPI. The installed packages' list are frozen in requirements.txt so the they can be easily installed in another environment. The virtualenv is not under VCS. I think it is a good way if virtualenv can be easly deleted and reconstructed at any time. If I need to test my site, for instance, using another version of Python interpreter, simply activate another virtulalenv.
I'd like to use South for third party packages, though. Here comes the problem. Migration scripts stored in the application's folder so they are outside of my site's repository. But I want migration scripts to be under version control so I can run them on different stages as well.
I don't want to version control the whole virtualenv but the migration scripts for third party applications. How can I resolve this conflict? Is there any misconcept in my scenario? | version-control | virtualenv | data-migration | django-south | null | null | open | Version controlled South migrations in virtualenv
===
I have a Django site placed in folder `site/`. It's under version control. I use South for schema and data migrations for my applications. Site-specific applications are under folder `site/` so they are all version-controlled along with their migrations.
I manage a virtualenv to keep third party components dry and safe. I install packages via PyPI. The installed packages' list are frozen in requirements.txt so the they can be easily installed in another environment. The virtualenv is not under VCS. I think it is a good way if virtualenv can be easly deleted and reconstructed at any time. If I need to test my site, for instance, using another version of Python interpreter, simply activate another virtulalenv.
I'd like to use South for third party packages, though. Here comes the problem. Migration scripts stored in the application's folder so they are outside of my site's repository. But I want migration scripts to be under version control so I can run them on different stages as well.
I don't want to version control the whole virtualenv but the migration scripts for third party applications. How can I resolve this conflict? Is there any misconcept in my scenario? | 0 |
9,581,141 | 03/06/2012 09:41:46 | 792,359 | 06/10/2011 08:05:24 | 75 | 0 | In objective-c, what is the default value for a field if no default value is provided? | In objective-c, what is the default value for a field if no default value is provided?
eg UIButton, NSArray, NSMutableSet, UIActivityIndicatorView, int , BOOL
And what is the different between instance variable default value and local variable default value ? | iphone | objective-c | object | default | null | null | open | In objective-c, what is the default value for a field if no default value is provided?
===
In objective-c, what is the default value for a field if no default value is provided?
eg UIButton, NSArray, NSMutableSet, UIActivityIndicatorView, int , BOOL
And what is the different between instance variable default value and local variable default value ? | 0 |
5,984,662 | 05/12/2011 21:25:40 | 124,240 | 06/17/2009 10:24:42 | 57 | 1 | Clock app "No Alarms" message on the background | In iPhone Clock App, on Alarm tab, if there are no alarms or if the last alarm is deleted, a message is displayed on the background view "No Alarms".
How can that be implemented?
I am using a TableViewController to implement a list of data and want to show a similar "No Data" when the last row is deleted.
| iphone | clock | null | null | null | null | open | Clock app "No Alarms" message on the background
===
In iPhone Clock App, on Alarm tab, if there are no alarms or if the last alarm is deleted, a message is displayed on the background view "No Alarms".
How can that be implemented?
I am using a TableViewController to implement a list of data and want to show a similar "No Data" when the last row is deleted.
| 0 |
155,303 | 09/30/2008 22:03:42 | 17,235 | 09/18/2008 04:57:43 | 252 | 15 | .NET - How can you split a "caps" delimited string into an array? | How do I go from this string: "ThisIsMyCapsDelimitedString"
...to this string: "This Is My Caps Delimited String"
Fewest lines of code in VB.net is preferred but C# is also welcome.
Cheers! | .net | algorithm | string | null | null | null | open | .NET - How can you split a "caps" delimited string into an array?
===
How do I go from this string: "ThisIsMyCapsDelimitedString"
...to this string: "This Is My Caps Delimited String"
Fewest lines of code in VB.net is preferred but C# is also welcome.
Cheers! | 0 |
4,756,843 | 01/21/2011 08:41:20 | 584,147 | 01/21/2011 08:02:50 | 1 | 0 | jQuery.live() on plugin selector elements. | Alright, my issue is, I have created a jQuery plugin that binds a click, and mouseover event to the elements provided by the selector. Now, I need those events, to instead, be ".live" events, after a lot-a-bit of searching, I found 'a' solution located [here][1]
Which, the given solution is as follows..
(function($) {
$.fn.liveBindTest = function() {
return this.each(function() {
$(this).click(function(){
console.log('click');
return false;
});
});
};
})(jQuery);
$('a').live('click', function(){ $(this).liveBindTest(); });
Though, this doesn't make sense, as then the plugin wouldn't be binding the live click to the 'selectors' provided. On the other hand it 'would' bind a click event to the selector elements. (In this case, the anchor tags, and not specifically a dynamically provided by developer selector set)
The above example is simply taking a long route to bind a live click to all anchor elements. Which, works in the case that you need a specific element live binded for your plugin. But my plugin is based solely on the selectors provided by the end developer using the plugin. So this solution means each time the developer would either,
A. Need to manually bind each live event the PLUGIN needs, before they actually init the plugin. Sort of like this..
$('*:not(.complicatedSelectorHere)').live('click', function(){
$(this).liveBindTest();
});
or
B. They would need to go into the jQuery.plugin.js file, go to the bottom of the code, and modify the live events there. This would be an ugly way of doing things, and not vary portable at all, which is what is needed as well, portability.
So my end question, to make sure it is clear with everyone..
Question: How does one bind a `LIVE` event to `ALL` `SELECTORS` provided to a plugin?
Please do no provide the obvious solution below, as it does not work...
(function($) {
$.fn.liveBindTest = function() {
return this.each(function() {
$(this).live('click', function(){
console.log('live clicked');
return false;
});
});
};
})(jQuery);
[1]: http://stackoverflow.com/questions/2300081/jquery-live-not-working-inside-of-a-plugin
| jquery | plugins | selectors | live | null | null | open | jQuery.live() on plugin selector elements.
===
Alright, my issue is, I have created a jQuery plugin that binds a click, and mouseover event to the elements provided by the selector. Now, I need those events, to instead, be ".live" events, after a lot-a-bit of searching, I found 'a' solution located [here][1]
Which, the given solution is as follows..
(function($) {
$.fn.liveBindTest = function() {
return this.each(function() {
$(this).click(function(){
console.log('click');
return false;
});
});
};
})(jQuery);
$('a').live('click', function(){ $(this).liveBindTest(); });
Though, this doesn't make sense, as then the plugin wouldn't be binding the live click to the 'selectors' provided. On the other hand it 'would' bind a click event to the selector elements. (In this case, the anchor tags, and not specifically a dynamically provided by developer selector set)
The above example is simply taking a long route to bind a live click to all anchor elements. Which, works in the case that you need a specific element live binded for your plugin. But my plugin is based solely on the selectors provided by the end developer using the plugin. So this solution means each time the developer would either,
A. Need to manually bind each live event the PLUGIN needs, before they actually init the plugin. Sort of like this..
$('*:not(.complicatedSelectorHere)').live('click', function(){
$(this).liveBindTest();
});
or
B. They would need to go into the jQuery.plugin.js file, go to the bottom of the code, and modify the live events there. This would be an ugly way of doing things, and not vary portable at all, which is what is needed as well, portability.
So my end question, to make sure it is clear with everyone..
Question: How does one bind a `LIVE` event to `ALL` `SELECTORS` provided to a plugin?
Please do no provide the obvious solution below, as it does not work...
(function($) {
$.fn.liveBindTest = function() {
return this.each(function() {
$(this).live('click', function(){
console.log('live clicked');
return false;
});
});
};
})(jQuery);
[1]: http://stackoverflow.com/questions/2300081/jquery-live-not-working-inside-of-a-plugin
| 0 |
8,040,815 | 11/07/2011 18:22:17 | 1,034,276 | 11/07/2011 18:10:31 | 1 | 0 | Communication Between Windows and web application using vb.net or C# | I am new for dotnet. i need to implement one concept that is i am developing one desktop application that is act as server and create one website. so client give a request from website to my desktop application. the server get the request and perform some task and then response to client. how to implement this concept. whether i use Http Listener or any other concept available in dotnet.
the sample request and response examples
Client Request: http://ipaddress/ConnectionStatus/
Server Response: ALIVE
Client Request: http://ipaddress/MARSrequest/?userid=1010"
Server Response: username=bala balance=1000
how can i implement this concept. | c# | vb.net | null | null | null | 11/08/2011 00:00:50 | not a real question | Communication Between Windows and web application using vb.net or C#
===
I am new for dotnet. i need to implement one concept that is i am developing one desktop application that is act as server and create one website. so client give a request from website to my desktop application. the server get the request and perform some task and then response to client. how to implement this concept. whether i use Http Listener or any other concept available in dotnet.
the sample request and response examples
Client Request: http://ipaddress/ConnectionStatus/
Server Response: ALIVE
Client Request: http://ipaddress/MARSrequest/?userid=1010"
Server Response: username=bala balance=1000
how can i implement this concept. | 1 |
8,517,447 | 12/15/2011 08:57:38 | 681,911 | 03/29/2011 11:02:10 | 6 | 1 | Setting background colour for a SurfaceView in Android | I am building a paint application for android. Extending the FingerPaint application sample provided with the SDK. However, unlike FingerPaint, I'm using SurfaceView with a separate rendering thread to draw to the surface. All this is very standard and straightforward. Working well. I want to, however, give a White coloured background to the painting surface, so it's like drawing on a white paper. The default background is black coloured.
The thread of my surface view, calls the onDraw() method of the view.
The problem I'm facing here is, if I set a background colour or background resource to my SurfaceView, this background overwrites the previous drawing of the surface, when the view is rendered the next time. I will explain this with an example:
Suppose I set the background to white colour. Now, the application starts, with my SurfaceView having the white colour. Ok, so far good. Now, I draw a red coloured line on this surface, with my finger. The line is now shown on the white surface. Good. Now, this is supposed to be a painting app, and suppose I want to draw a car. So, then, I draw my 2nd red line, with my finger. The 2nd line is drawn on the screen, but the 1st one, which I drew previously, vanishes. That is, because I have set some background to my SurfaceView, the background is drawn again, thus overwriting the 1st line that was drawn. Now the screen shows only the 2nd line drawn.
Obviously, I do not want this to happen. The code works perfectly, when I don't attempt to change the background (that is, both lines are shown, on a default black background, no background effectively). But when I set some desired background, this thing happens. Is there a way to somehow have a *static* background, that is not drawn every time? I want the background to be drawn only once, all the subsequent drawings should happen *on* this background. I don't want the android runtime , to draw the background, every time it draws my view, thus overwriting all drawing present on that view, from previous renderings. Any way to work around this?
The things I have tried, to achieve this are:
1. Setting the background colour of my SurfaceView using android:background in XML.
2. Doing the above, using the concept of style. (specifying a style value and referencing it in the layout file). The style just defines the background colour as #FFFFFFFF (white).
3. Setting the style of 2, to the parent view of the SurfaceView (a RelativeLayout).
4. Setting the style of 2, to the entire application, as a theme,using android:theme in my manifest file.
5. Setting the background drawable of my SurfaceView to an image which is plain and white-coloured.
6. Calling the setBackgroundColor for my SurfaceView from the code as, this.setBackgroundColor(Color.WHITE).
Thanks. | android | background | background-color | surfaceview | surfaceholder | null | open | Setting background colour for a SurfaceView in Android
===
I am building a paint application for android. Extending the FingerPaint application sample provided with the SDK. However, unlike FingerPaint, I'm using SurfaceView with a separate rendering thread to draw to the surface. All this is very standard and straightforward. Working well. I want to, however, give a White coloured background to the painting surface, so it's like drawing on a white paper. The default background is black coloured.
The thread of my surface view, calls the onDraw() method of the view.
The problem I'm facing here is, if I set a background colour or background resource to my SurfaceView, this background overwrites the previous drawing of the surface, when the view is rendered the next time. I will explain this with an example:
Suppose I set the background to white colour. Now, the application starts, with my SurfaceView having the white colour. Ok, so far good. Now, I draw a red coloured line on this surface, with my finger. The line is now shown on the white surface. Good. Now, this is supposed to be a painting app, and suppose I want to draw a car. So, then, I draw my 2nd red line, with my finger. The 2nd line is drawn on the screen, but the 1st one, which I drew previously, vanishes. That is, because I have set some background to my SurfaceView, the background is drawn again, thus overwriting the 1st line that was drawn. Now the screen shows only the 2nd line drawn.
Obviously, I do not want this to happen. The code works perfectly, when I don't attempt to change the background (that is, both lines are shown, on a default black background, no background effectively). But when I set some desired background, this thing happens. Is there a way to somehow have a *static* background, that is not drawn every time? I want the background to be drawn only once, all the subsequent drawings should happen *on* this background. I don't want the android runtime , to draw the background, every time it draws my view, thus overwriting all drawing present on that view, from previous renderings. Any way to work around this?
The things I have tried, to achieve this are:
1. Setting the background colour of my SurfaceView using android:background in XML.
2. Doing the above, using the concept of style. (specifying a style value and referencing it in the layout file). The style just defines the background colour as #FFFFFFFF (white).
3. Setting the style of 2, to the parent view of the SurfaceView (a RelativeLayout).
4. Setting the style of 2, to the entire application, as a theme,using android:theme in my manifest file.
5. Setting the background drawable of my SurfaceView to an image which is plain and white-coloured.
6. Calling the setBackgroundColor for my SurfaceView from the code as, this.setBackgroundColor(Color.WHITE).
Thanks. | 0 |
4,103,699 | 11/05/2010 05:00:32 | 337,690 | 05/10/2010 21:08:25 | 392 | 3 | PHP Logout Script with 4 frames in frameset | I have a study logout.php file which works fantastically, the issue I am faced with however is putting the script into a new 'intranet style' administrative site which uses 4 frames within a frameset (header, left, center, right).
There are two requirements I need to meet which I am having a very difficult time finding a solution to (yes I know frames suck for today's consumer sites but to reiterate, this is for an internal system administration panel with widgets everywhere).
1. When a user clicks the 'logout' button in the top frame, the ENTIRE page is directed to logout.php which then redirects to a single page "home.php". As of now, hitting logout only takes that particular frame to my desired destination.
2. When a user logs in, a SESSION variables is created and set to true; if pages are visited without SESSION[validated]= true, the user is logged out. Similarly to above, IF this happens, I need the ENTIRE frameset directed to logout.php.
I am trying to achieve this without javascript (as this can obviously simply be disabled and JS is not a true measure for security).
Anybody ever dealt with this issue in the past? | php | javascript | jquery | frames | logout | null | open | PHP Logout Script with 4 frames in frameset
===
I have a study logout.php file which works fantastically, the issue I am faced with however is putting the script into a new 'intranet style' administrative site which uses 4 frames within a frameset (header, left, center, right).
There are two requirements I need to meet which I am having a very difficult time finding a solution to (yes I know frames suck for today's consumer sites but to reiterate, this is for an internal system administration panel with widgets everywhere).
1. When a user clicks the 'logout' button in the top frame, the ENTIRE page is directed to logout.php which then redirects to a single page "home.php". As of now, hitting logout only takes that particular frame to my desired destination.
2. When a user logs in, a SESSION variables is created and set to true; if pages are visited without SESSION[validated]= true, the user is logged out. Similarly to above, IF this happens, I need the ENTIRE frameset directed to logout.php.
I am trying to achieve this without javascript (as this can obviously simply be disabled and JS is not a true measure for security).
Anybody ever dealt with this issue in the past? | 0 |
10,055,024 | 04/07/2012 13:48:42 | 1,260,979 | 03/10/2012 12:10:34 | 13 | 1 | first time web hosting | I am pretty new to web development but over the last year I have been developing an application with zend framework but because i have been doing all the development offline I am yet to choose a web host. I have bought a domain name from godaddy but have read some reviews that recommend i steer clear of them for web hosting.
The application i am developing will allow different uses to upload files and share them with other users. My main concern is that the data being uploaded will be very sensitive and if it was lost it would be very bad for me. Should I backup the data locally myself each night or is can i have my host do this for me.
I will initially only have about 100 users on the site but for each project i role it out to i will gain an additional 100 users, so at the moment there will not be that many users but it could grow quickly if i wanted it to.
I have spent most of the day looking online but I am still not sure what is right for me. I was thinking of going with the 'baby plan' from [hostgator][1] or the unlimited plan from [midphase][2]. There will be quire a bit of data stored online but these plans specify unlimited web storage so i assume this actually means unlimited. ie the site could have a couple of terabytes of information stored if it was required.
I think a shared server will be ok for the moment because i wont have that many users. Is this correct? When would i be need to get a dedicated server.
Because this is all new to me i am looking for is a bit of advise to help me make the right decision? Any help would be very appreciated.
thanks
[1]: http://www.hostgator.com/shared.shtml
[2]: http://www.midphase.com/website-hosting/ | php | zend-framework | web-hosting | null | null | 04/07/2012 14:03:45 | not constructive | first time web hosting
===
I am pretty new to web development but over the last year I have been developing an application with zend framework but because i have been doing all the development offline I am yet to choose a web host. I have bought a domain name from godaddy but have read some reviews that recommend i steer clear of them for web hosting.
The application i am developing will allow different uses to upload files and share them with other users. My main concern is that the data being uploaded will be very sensitive and if it was lost it would be very bad for me. Should I backup the data locally myself each night or is can i have my host do this for me.
I will initially only have about 100 users on the site but for each project i role it out to i will gain an additional 100 users, so at the moment there will not be that many users but it could grow quickly if i wanted it to.
I have spent most of the day looking online but I am still not sure what is right for me. I was thinking of going with the 'baby plan' from [hostgator][1] or the unlimited plan from [midphase][2]. There will be quire a bit of data stored online but these plans specify unlimited web storage so i assume this actually means unlimited. ie the site could have a couple of terabytes of information stored if it was required.
I think a shared server will be ok for the moment because i wont have that many users. Is this correct? When would i be need to get a dedicated server.
Because this is all new to me i am looking for is a bit of advise to help me make the right decision? Any help would be very appreciated.
thanks
[1]: http://www.hostgator.com/shared.shtml
[2]: http://www.midphase.com/website-hosting/ | 4 |
11,287,922 | 07/02/2012 04:51:08 | 1,438,796 | 05/29/2012 01:10:57 | 61 | 2 | Recommended architecture for ASP.NET Webforms application | I have written an ASP.NET WebForms portal for a client. The project has kind of evolved rather than being properly planned and structured from the beginning. Consequently, all the code is mashed together within the same project and without any layers. The client is now happy with the functionality, so I would like to refactor the code such that I will be confident about releasing the project. As there seems to be many differing ways to design the architecture, I would like some opinions about the best approach to take.
**FUNCTIONALITY**
The portal allows administrators to configure HTML templates. Other associated "partners" will be able to display these templates by adding IFrame code to their site. Within these templates, customers can register and purchase products. An API has been implemented using WCF allowing external companies to interface with the system also. An Admin section allows Administrators to configure various functionality and view reports for each partner. The system sends out invoices and email notifications to customers.
**CURRENT ARCHITECTURE**
It is currently using EF4 to read/write to the database. The EF objects are used directly within the aspx files. This has facilitated rapid development while I have been writing the site but it is probably unacceptable to keep it like that as it is tightly coupling the db with the UI. Specific business logic has been added to partial classes of the EF objects.
**QUESTIONS**
The goal of refactoring will be to make the site scalable, easily maintainable and secure.
1) What kind of architecture would be best for this? Please describe what should be in each layer, whether I should use DTO's / POCO / Active Record pattern etc.
2) Is there a robust way to auto-generate DTO's / BOs so that any future enhancements will be simple to implement despite the extra layers?
3) Would it be beneficial to convert the project from WebForms to MVC? | c# | asp.net | architecture | null | null | 07/02/2012 05:05:21 | not constructive | Recommended architecture for ASP.NET Webforms application
===
I have written an ASP.NET WebForms portal for a client. The project has kind of evolved rather than being properly planned and structured from the beginning. Consequently, all the code is mashed together within the same project and without any layers. The client is now happy with the functionality, so I would like to refactor the code such that I will be confident about releasing the project. As there seems to be many differing ways to design the architecture, I would like some opinions about the best approach to take.
**FUNCTIONALITY**
The portal allows administrators to configure HTML templates. Other associated "partners" will be able to display these templates by adding IFrame code to their site. Within these templates, customers can register and purchase products. An API has been implemented using WCF allowing external companies to interface with the system also. An Admin section allows Administrators to configure various functionality and view reports for each partner. The system sends out invoices and email notifications to customers.
**CURRENT ARCHITECTURE**
It is currently using EF4 to read/write to the database. The EF objects are used directly within the aspx files. This has facilitated rapid development while I have been writing the site but it is probably unacceptable to keep it like that as it is tightly coupling the db with the UI. Specific business logic has been added to partial classes of the EF objects.
**QUESTIONS**
The goal of refactoring will be to make the site scalable, easily maintainable and secure.
1) What kind of architecture would be best for this? Please describe what should be in each layer, whether I should use DTO's / POCO / Active Record pattern etc.
2) Is there a robust way to auto-generate DTO's / BOs so that any future enhancements will be simple to implement despite the extra layers?
3) Would it be beneficial to convert the project from WebForms to MVC? | 4 |
7,871,571 | 10/24/2011 05:24:30 | 1,010,279 | 10/24/2011 05:21:07 | 1 | 0 | Mysql local installation on windows 64 machine | I'm trying to install Mysql on my windows 64bit using Xampp,Easy php,but it doesnt seem to work.I cannot access phpmyadmin.Can someone please help me with the problem?
| mysql | xampp | windows64 | null | null | 11/23/2011 16:21:43 | off topic | Mysql local installation on windows 64 machine
===
I'm trying to install Mysql on my windows 64bit using Xampp,Easy php,but it doesnt seem to work.I cannot access phpmyadmin.Can someone please help me with the problem?
| 2 |
7,891,787 | 10/25/2011 15:34:14 | 234,451 | 12/18/2009 10:14:57 | 2,398 | 181 | Creating an RSS/XML datasource | I am trying to create a feeds data source to make getting feeds easier and cleaner, and as a way to learn some new bits and bobs of the Cake framework.
I have the datasource working as I'd like, it returns items, however I'd like to be able to instantiate it with different feeds so that I don't need to create a new data source for each feed. I'm going to be syndicating about 5 different feeds.
I was thinking about defining them in the `app/config/core.php` and then passing in which one you wanted as a condition in the find, but I'd rather do it lower down than in the controller.
Any idea's please?
Uploaded my code here, https://bitbucket.org/davidyell/cakephp-feedsource/src/4010d393af1b/FeedSource.php | cakephp | rss | cakephp-2.0 | null | null | null | open | Creating an RSS/XML datasource
===
I am trying to create a feeds data source to make getting feeds easier and cleaner, and as a way to learn some new bits and bobs of the Cake framework.
I have the datasource working as I'd like, it returns items, however I'd like to be able to instantiate it with different feeds so that I don't need to create a new data source for each feed. I'm going to be syndicating about 5 different feeds.
I was thinking about defining them in the `app/config/core.php` and then passing in which one you wanted as a condition in the find, but I'd rather do it lower down than in the controller.
Any idea's please?
Uploaded my code here, https://bitbucket.org/davidyell/cakephp-feedsource/src/4010d393af1b/FeedSource.php | 0 |
11,197,353 | 06/25/2012 21:04:37 | 1,346,418 | 04/20/2012 11:30:54 | 128 | 1 | Java slice a String | I have a url which always ending on an number for example:
String url=localhost:8080/myproject/reader/add/1/;
String anotherurl= localhost:8080/myproject/actor/take/154/;
And i want to take the number exist before the last slash("/") and after the second last slash.Does anyone knows how can i do this? | java | null | null | null | null | null | open | Java slice a String
===
I have a url which always ending on an number for example:
String url=localhost:8080/myproject/reader/add/1/;
String anotherurl= localhost:8080/myproject/actor/take/154/;
And i want to take the number exist before the last slash("/") and after the second last slash.Does anyone knows how can i do this? | 0 |
11,224,291 | 06/27/2012 10:36:05 | 1,485,323 | 06/27/2012 10:29:53 | 1 | 0 | Undefined index: username in C:\wamp\www\Website\storeadmin\admin_login.php..and the same for password | //index.php
<?php
session_start();
if(!isset($_SESSION["member"])){
header("location:admin_login.php");
exit();
}
$managerID = preg_replace('#[^0-9]#i',"",$_SESSION["id"]);
$manager = preg_replace('#[A-Za-z0-9]#i',"",$_SESSION["name"]);
$password = preg_replace('#[A-Za-z0-9]#i',"",$_SESSION["password"]);
include "../storescripts/connect_to_mysql.php";
$sql = mysql_query("SELECT * FROM admin WHERE id ='managerID' AND username ='$manager' AND password ='$password'LIMIT 1");
$exist_count = mysql_num_rows($sql);
if($exist_count == 0){
echo("Your login session data in not in the database");
exit();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Service Admin Area</title>
<link rel="stylesheet" href="../style/style.css" type="text/css" media="screen"/>
</head>
<body>
<div id="mainWrapper" >
<?php include_once("../template_header.php");?>
<div id="pageContent" >
<div align="left" "style="margin-left:040px;"><h1>Hello Store Manager .What would you loke to do today</h1><br />
<h3><a href="inventory_list.php">Manage Inventory</a></h3><br/><h3><a href="">Manage Me</a></h3><br/></div></div>
<?php include_once("../template_header.php");?>
</div>
</body>
</html>
//admin_login.php
<?php
session_start();
if(isset($_SESSION["member"])){
header("location:index.php");
exit();
}
$manager = preg_replace('#[A-Za-z0-9]#i',"",$_SESSION["username"]);
$password = preg_replace('#[A-Za-z0-9]#i',"",$_SESSION["password"]);
include "../storescripts/connect_to_mysql.php";
$sql = mysql_query("SELECT * FROM admin WHERE username ='$manager' AND password ='$password'LIMIT 1");
$exist_count = mysql_num_rows($sql);
if($exist_count == 1){
while(mysql_fetch_array($sql)){
$id = $row["id"];
}
$_SESSION["id"]= $id;
$_SESSION["name"]= $manager;
$_SESSION["password"]= $password;
header("location:index.php");
exit();
}
else{
echo 'This information is incorrect,try again <a href = "index.php">Click Here</a>';
exit();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> AdminLogin</title>
<link rel="stylesheet" href="../style/style.css" type="text/css" media="screen"/>
</head>
<body>
<div id="mainWrapper" >
<?php include_once("../template_header.php");?>
<div id="pageContent" >
<div align="left" "style="margin-left:040px;"><h1>Please login to continue</h1><br />
</div>
<form id="form1" name="form1" method="post" action=" admin_login.php">
UserName<br />
<input type="text" name="username" id="username" size="40"/>
Password<br />
<input type="password" name="password" id="password" size="40"/>
<br />
<br />
<br />
<input type="submit" name="button" id="button" value="LogIn"/>
</form>
</div>
<?php include_once("../template_header.php");?>
</div>
</body>
</html>
This is getting tiresome,and i cant get the error,and i know it is pretty small and really hope i can the error rectified among you guys.The above two php pages are tomake the Admin Login pages in my practise web documents.
| php | mysql | css | null | null | 06/27/2012 15:31:14 | not a real question | Undefined index: username in C:\wamp\www\Website\storeadmin\admin_login.php..and the same for password
===
//index.php
<?php
session_start();
if(!isset($_SESSION["member"])){
header("location:admin_login.php");
exit();
}
$managerID = preg_replace('#[^0-9]#i',"",$_SESSION["id"]);
$manager = preg_replace('#[A-Za-z0-9]#i',"",$_SESSION["name"]);
$password = preg_replace('#[A-Za-z0-9]#i',"",$_SESSION["password"]);
include "../storescripts/connect_to_mysql.php";
$sql = mysql_query("SELECT * FROM admin WHERE id ='managerID' AND username ='$manager' AND password ='$password'LIMIT 1");
$exist_count = mysql_num_rows($sql);
if($exist_count == 0){
echo("Your login session data in not in the database");
exit();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Service Admin Area</title>
<link rel="stylesheet" href="../style/style.css" type="text/css" media="screen"/>
</head>
<body>
<div id="mainWrapper" >
<?php include_once("../template_header.php");?>
<div id="pageContent" >
<div align="left" "style="margin-left:040px;"><h1>Hello Store Manager .What would you loke to do today</h1><br />
<h3><a href="inventory_list.php">Manage Inventory</a></h3><br/><h3><a href="">Manage Me</a></h3><br/></div></div>
<?php include_once("../template_header.php");?>
</div>
</body>
</html>
//admin_login.php
<?php
session_start();
if(isset($_SESSION["member"])){
header("location:index.php");
exit();
}
$manager = preg_replace('#[A-Za-z0-9]#i',"",$_SESSION["username"]);
$password = preg_replace('#[A-Za-z0-9]#i',"",$_SESSION["password"]);
include "../storescripts/connect_to_mysql.php";
$sql = mysql_query("SELECT * FROM admin WHERE username ='$manager' AND password ='$password'LIMIT 1");
$exist_count = mysql_num_rows($sql);
if($exist_count == 1){
while(mysql_fetch_array($sql)){
$id = $row["id"];
}
$_SESSION["id"]= $id;
$_SESSION["name"]= $manager;
$_SESSION["password"]= $password;
header("location:index.php");
exit();
}
else{
echo 'This information is incorrect,try again <a href = "index.php">Click Here</a>';
exit();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> AdminLogin</title>
<link rel="stylesheet" href="../style/style.css" type="text/css" media="screen"/>
</head>
<body>
<div id="mainWrapper" >
<?php include_once("../template_header.php");?>
<div id="pageContent" >
<div align="left" "style="margin-left:040px;"><h1>Please login to continue</h1><br />
</div>
<form id="form1" name="form1" method="post" action=" admin_login.php">
UserName<br />
<input type="text" name="username" id="username" size="40"/>
Password<br />
<input type="password" name="password" id="password" size="40"/>
<br />
<br />
<br />
<input type="submit" name="button" id="button" value="LogIn"/>
</form>
</div>
<?php include_once("../template_header.php");?>
</div>
</body>
</html>
This is getting tiresome,and i cant get the error,and i know it is pretty small and really hope i can the error rectified among you guys.The above two php pages are tomake the Admin Login pages in my practise web documents.
| 1 |
10,965,743 | 06/10/2012 01:17:31 | 1,349,029 | 04/22/2012 02:14:47 | 194 | 23 | documenting processes | **Situation:**
I have to document a bunch of tech support procedures and save them to pdf or html. Things like setting up email users on the system, adding domains and databases for development environments, installing ssl certs and so forth.
**Goal:**
I want to do the work once while taking screenshots at key times then quickly crop the images, add annotation to them, and write the text ... without actually having to mess with each image in a separate program.
**Question:**
Has anyone used an all in one tutorial maker like I describe in the Goal section above? If so where can I get it?
Thanks | documentation | null | null | null | null | 06/10/2012 22:48:35 | off topic | documenting processes
===
**Situation:**
I have to document a bunch of tech support procedures and save them to pdf or html. Things like setting up email users on the system, adding domains and databases for development environments, installing ssl certs and so forth.
**Goal:**
I want to do the work once while taking screenshots at key times then quickly crop the images, add annotation to them, and write the text ... without actually having to mess with each image in a separate program.
**Question:**
Has anyone used an all in one tutorial maker like I describe in the Goal section above? If so where can I get it?
Thanks | 2 |
432,106 | 01/11/2009 01:18:07 | 53,007 | 01/08/2009 16:57:03 | 121 | 14 | Do you prefer C# or Visual Basic .Net? | What do you see as benefits for one over the other? As far as I know, it's just preference. I have way more experience with C# than I do with Visual Basic and was wondering if I should dabble in Visual Basic for certain types of projects? | vb.net | c# | .net | null | null | 01/11/2009 01:22:20 | not constructive | Do you prefer C# or Visual Basic .Net?
===
What do you see as benefits for one over the other? As far as I know, it's just preference. I have way more experience with C# than I do with Visual Basic and was wondering if I should dabble in Visual Basic for certain types of projects? | 4 |
9,334,608 | 02/17/2012 20:01:11 | 1,215,039 | 02/16/2012 23:18:05 | 11 | 0 | Not so hidden form field | I have an input field where users can input a comment. I want to add another field but I want it to be "hidden" where when they click "add people" a drop-down-box with an input field pops down and then you type the name of the person you would like to add. Then when the user hits 'submit' the comment and the additional "people" information gets processed by my PHP script. How would this be done? | javascript | html | css | null | null | 02/19/2012 15:25:39 | not a real question | Not so hidden form field
===
I have an input field where users can input a comment. I want to add another field but I want it to be "hidden" where when they click "add people" a drop-down-box with an input field pops down and then you type the name of the person you would like to add. Then when the user hits 'submit' the comment and the additional "people" information gets processed by my PHP script. How would this be done? | 1 |
8,192,106 | 11/19/2011 05:21:56 | 548,852 | 12/20/2010 16:00:31 | 188 | 4 | Android Nested Interface to store constants | So I was looking at Google's I/O App, iosched, and I notice they implement constants through a nested interface. For example in their ScheduleDatabase class they have:
public class ScheduleDatabase extends SQLiteOpenHelper {
interface Tables {
String BLOCKS = "blocks"
String TRACKS = "tracks"
}
}
But I have been reading online that it is poor java practice to create a interface to just store constants. But as you can see in the [ScheduleDatabase][1] class it kind of makes sense why they went with this approach. So I was wondering if this is also poor practice?
[1]:http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/provider/ScheduleDatabase.java | android | interface | constants | null | null | null | open | Android Nested Interface to store constants
===
So I was looking at Google's I/O App, iosched, and I notice they implement constants through a nested interface. For example in their ScheduleDatabase class they have:
public class ScheduleDatabase extends SQLiteOpenHelper {
interface Tables {
String BLOCKS = "blocks"
String TRACKS = "tracks"
}
}
But I have been reading online that it is poor java practice to create a interface to just store constants. But as you can see in the [ScheduleDatabase][1] class it kind of makes sense why they went with this approach. So I was wondering if this is also poor practice?
[1]:http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/provider/ScheduleDatabase.java | 0 |
6,464,999 | 06/24/2011 08:04:48 | 218,275 | 11/25/2009 02:56:51 | 114 | 5 | Any one help me modify this C chatting room program in Linux form using Socket to Pipes | This is a very simple chatting Room LINUX program written in C.
Here is the code of server.c and client.c
The codes are pasted [HERE][1], because the code styles disordered when I paste them on stackOverFlow..
Can you help to modify this from using Sockets to using Pipes and Daemon Processes?
Or show me an example about how to use Pipes and Daemon Processes is also very thankful.
[1]: http://www.blogjava.net/jayslong/articles/352970.html | c++ | c | linux | process | pipes | 06/24/2011 08:44:43 | not a real question | Any one help me modify this C chatting room program in Linux form using Socket to Pipes
===
This is a very simple chatting Room LINUX program written in C.
Here is the code of server.c and client.c
The codes are pasted [HERE][1], because the code styles disordered when I paste them on stackOverFlow..
Can you help to modify this from using Sockets to using Pipes and Daemon Processes?
Or show me an example about how to use Pipes and Daemon Processes is also very thankful.
[1]: http://www.blogjava.net/jayslong/articles/352970.html | 1 |
140,295 | 09/26/2008 15:38:00 | 5,442 | 09/09/2008 15:46:21 | 61 | 3 | Using locale.setlocale in embedded Python without breaking file parsing in C thread | We're using a third-party middleware product that allows us to write code in an embedded Python interpreter, and which exposes an API that we can call into. Some of these API calls allow us to load various kinds of file, and the loading code is implemented in C. File loading happens in a separate thread, and calls back into Python when the data is available. So far, all well and dandy.
We've been i14ing (heh) our product, and one thing we'd like to do is format user-facing numerical output according to the user's locale settings. So, from Python, we do this:
import locale
locale.setLocale( locale.LC_ALL, '' )
Now, this works (in that the user-facing numbers are formatted correctly for their locale). However, if the user's locale differs from the default C locale, any files that are subsequently loaded will return incorrect data, presumably because all string-to-float conversion has been affected, right down to the metal.
We can't work around this by implementing locale aware file loading, so our current workaround is to only set the locale when formatting output for the user, and then set it back again afterwards. That is, something like:
import locale
currentLocale = locale.getLocale( locale.LC_ALL )
locale.setLocale( locale.LC_ALL, '' )
displayNumbersToTheUser()
locale.setlocale( locale.LC_ALL, currentLocale )
This seems a bit clunky, and I was wondering whether this is a common approach to formatting locale-aware output for the user? My other concern is that this is obviously not thread safe, so we'll presumably still get problems if any file parsing occurs in a separate thread when the locale is changed.
Any information on best practice is appreciated - I don't have much experience with this sort of thing. | python | internationalization | locale | null | null | null | open | Using locale.setlocale in embedded Python without breaking file parsing in C thread
===
We're using a third-party middleware product that allows us to write code in an embedded Python interpreter, and which exposes an API that we can call into. Some of these API calls allow us to load various kinds of file, and the loading code is implemented in C. File loading happens in a separate thread, and calls back into Python when the data is available. So far, all well and dandy.
We've been i14ing (heh) our product, and one thing we'd like to do is format user-facing numerical output according to the user's locale settings. So, from Python, we do this:
import locale
locale.setLocale( locale.LC_ALL, '' )
Now, this works (in that the user-facing numbers are formatted correctly for their locale). However, if the user's locale differs from the default C locale, any files that are subsequently loaded will return incorrect data, presumably because all string-to-float conversion has been affected, right down to the metal.
We can't work around this by implementing locale aware file loading, so our current workaround is to only set the locale when formatting output for the user, and then set it back again afterwards. That is, something like:
import locale
currentLocale = locale.getLocale( locale.LC_ALL )
locale.setLocale( locale.LC_ALL, '' )
displayNumbersToTheUser()
locale.setlocale( locale.LC_ALL, currentLocale )
This seems a bit clunky, and I was wondering whether this is a common approach to formatting locale-aware output for the user? My other concern is that this is obviously not thread safe, so we'll presumably still get problems if any file parsing occurs in a separate thread when the locale is changed.
Any information on best practice is appreciated - I don't have much experience with this sort of thing. | 0 |
8,628,261 | 12/25/2011 04:48:50 | 1,115,059 | 12/25/2011 04:40:05 | 1 | 0 | Java recursion program - Help needed | I need a recursive method that accepts an integer parameter "n" and prints the first n squares
separated by commas, with the odd squares in descending order followed by the even squares in ascending order.
For example,
if the input is 8
It should print the following output:
49, 25, 9, 1, 4, 16, 36, 64 | java | recursion | null | null | null | 12/27/2011 03:16:27 | not a real question | Java recursion program - Help needed
===
I need a recursive method that accepts an integer parameter "n" and prints the first n squares
separated by commas, with the odd squares in descending order followed by the even squares in ascending order.
For example,
if the input is 8
It should print the following output:
49, 25, 9, 1, 4, 16, 36, 64 | 1 |
5,258,783 | 03/10/2011 11:05:34 | 651,348 | 03/09/2011 10:30:33 | 11 | 1 | phonegap in android | hi i want to install phone gap in android.
i had done lots of try from net but not install correct way.
so plz help me if u know..............Thanks in advance.. | android | null | null | null | null | 03/10/2011 12:33:52 | not a real question | phonegap in android
===
hi i want to install phone gap in android.
i had done lots of try from net but not install correct way.
so plz help me if u know..............Thanks in advance.. | 1 |
1,978,270 | 12/30/2009 03:32:07 | 209,962 | 11/12/2009 21:30:06 | 289 | 12 | Whats a good ruby idiom for breaking up a large class into modules? | I have a large class with lots of methods and it's starting to get a bit unorganized and hard to navigate. I'd like to break it up into modules, where each module is a collection of class and instance methods. Perhaps something like this:
class Large
include Validations
include Attributes
include BusinessLogic
include Callbacks
end
After reading Yehuda's post about [Better Ruby Idioms](http://yehudakatz.com/2009/11/12/better-ruby-idioms/), I'm curious how others are tackling this problem. Here's the two methods I can think of.
## First Method
module Foo
module Validations
module ClassMethods
def bar
"bar"
end
end
module InstanceMethods
def baz
"baz"
end
end
end
class Large
extend Validations::ClassMethods
include Validations::InstanceMethods
end
end
## Second Method
module Foo
module Validations
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
def bar
"bar"
end
end
def baz
"baz"
end
end
class Base
include Validations
end
end
## My questions are:
* Is there a better way to do this?
* How do you get a one-liner module mixin for a set of class/instance methods with the least amount of magic?
* How do you namespace these modules to the base class without namespacing the class itself?
* How do you organize these files? | ruby | null | null | null | null | null | open | Whats a good ruby idiom for breaking up a large class into modules?
===
I have a large class with lots of methods and it's starting to get a bit unorganized and hard to navigate. I'd like to break it up into modules, where each module is a collection of class and instance methods. Perhaps something like this:
class Large
include Validations
include Attributes
include BusinessLogic
include Callbacks
end
After reading Yehuda's post about [Better Ruby Idioms](http://yehudakatz.com/2009/11/12/better-ruby-idioms/), I'm curious how others are tackling this problem. Here's the two methods I can think of.
## First Method
module Foo
module Validations
module ClassMethods
def bar
"bar"
end
end
module InstanceMethods
def baz
"baz"
end
end
end
class Large
extend Validations::ClassMethods
include Validations::InstanceMethods
end
end
## Second Method
module Foo
module Validations
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
def bar
"bar"
end
end
def baz
"baz"
end
end
class Base
include Validations
end
end
## My questions are:
* Is there a better way to do this?
* How do you get a one-liner module mixin for a set of class/instance methods with the least amount of magic?
* How do you namespace these modules to the base class without namespacing the class itself?
* How do you organize these files? | 0 |
1,412,422 | 09/11/2009 18:02:16 | 171,985 | 09/11/2009 10:04:36 | 1 | 0 | Best alternative solution for ASP.NET AJAX UpdatePanel | Best alternative solution for ASP.NET AJAX UpdatePanel for dynamically add and remove user controls without full postback | updatepanel | user | controls | asp.net | ajax | 09/16/2011 20:51:17 | not constructive | Best alternative solution for ASP.NET AJAX UpdatePanel
===
Best alternative solution for ASP.NET AJAX UpdatePanel for dynamically add and remove user controls without full postback | 4 |
2,677,012 | 04/20/2010 16:52:07 | 24,898 | 10/03/2008 16:09:32 | 453 | 10 | Where did the debug commands go in Visual Studio 2008? | You're going to think I'm either lying or nuts, but neither is the case. I installed VS2008 PRO on a Windows 7 x64 machine and all the debugging commands are missing. There's no debug toolbar and no Debug.* commands under Tools\Options\keyboard.
How do I get the debug functionality working? | visual-studio-2008 | debugging | null | null | null | null | open | Where did the debug commands go in Visual Studio 2008?
===
You're going to think I'm either lying or nuts, but neither is the case. I installed VS2008 PRO on a Windows 7 x64 machine and all the debugging commands are missing. There's no debug toolbar and no Debug.* commands under Tools\Options\keyboard.
How do I get the debug functionality working? | 0 |
4,672,858 | 01/12/2011 19:01:52 | 28,817 | 10/17/2008 04:26:41 | 6,668 | 167 | Symbolic vs word operators eg ( '||' vs 'or' and '!' vs 'not'). | I think `or` is keyword in c++.
It might be that I've been doing too much python code recently but I find `or` is more readable than `||` and `xor` much more readable than `^`.
Is it a good idea to use the word alternatives to the symbolic operators?
Why don't I see them used more? | c++ | null | null | null | null | null | open | Symbolic vs word operators eg ( '||' vs 'or' and '!' vs 'not').
===
I think `or` is keyword in c++.
It might be that I've been doing too much python code recently but I find `or` is more readable than `||` and `xor` much more readable than `^`.
Is it a good idea to use the word alternatives to the symbolic operators?
Why don't I see them used more? | 0 |
11,615,365 | 07/23/2012 15:13:26 | 1,545,458 | 07/23/2012 09:38:40 | 1 | 0 | Make array from a csv file in PHP | Just for an example, [here][1] is a spreadsheet hosted at Google Docs.
Now, using fgetcsv I can open this file as a csv file and can print lines. But I want to just take B (width), C (Length), D (thickness) and H (Price) columns and make them in an array. So, the actual idea is, I will just take the values from the selective columns of each row and will print them in a table. But how could I do it?
Thank you.
[1]: https://docs.google.com/spreadsheet/pub?key=0AvsJIruShqYOdGZMOWhRam5rYWdHUjVaS2dvQU5TUkE&single=true&gid=0&output=html | php | arrays | csv | null | null | 07/23/2012 15:25:01 | not a real question | Make array from a csv file in PHP
===
Just for an example, [here][1] is a spreadsheet hosted at Google Docs.
Now, using fgetcsv I can open this file as a csv file and can print lines. But I want to just take B (width), C (Length), D (thickness) and H (Price) columns and make them in an array. So, the actual idea is, I will just take the values from the selective columns of each row and will print them in a table. But how could I do it?
Thank you.
[1]: https://docs.google.com/spreadsheet/pub?key=0AvsJIruShqYOdGZMOWhRam5rYWdHUjVaS2dvQU5TUkE&single=true&gid=0&output=html | 1 |
1,782,796 | 11/23/2009 12:14:37 | 59,279 | 01/27/2009 10:16:10 | 7,236 | 232 | Creating installers for complex cross-platform programs | I'm sketching an application deployment process for a bunch of relatively complex desktop applications. We have both native and Java apps, so the deployment must be able to check for existence of the JRE and install it if needed. Some of the apps depend on special hardware, so the deployment must also be able to launch the necessary driver installers. Some of the apps are multiplatform, and *preferably* the same mechanism should be able to create Windows, Linux and Mac OS X installers. That is:
- The installer *must* be able to install, in addition to the application itself:
- Java Runtime Environment.
- Drivers (hardware) - that is, launch other installers.
- The installer builder *must* be operable from the command line so that it can be integrated with an automatic build mechanism that generates installer packages for each platform as nightly builds.
- In addition, I need to create "update from the web" mechanisms for the applications. It could be included in the installer, or it could also be a separate custom mechanism built into the application.
Now, all this is a bit complex, and I suspect that there's no one installer that could do this all. Therefore I'm thinking between two basic alternatives:
1. Platform-specific mechanisms: [NSIS](http://nsis.sourceforge.net/) would create `.exe` for Windows, XXX would create `.deb` for Ubuntu, and YYY would create `.dmg` for OS X.
2. Cross-platform installer that would handle all the requirements above: ZZZ?
Any recommendations? Some options that I've looked include:
* [NSIS](http://nsis.sourceforge.net/) - Excellent, but Windows only.
* [IzPack](http://izpack.org/) - Good, but requires JVM to run.
Is there an universal tool for this, or should I pick an appropriate tool separately for each platform?
| deployment | installation | update | cross-platform | installer | null | open | Creating installers for complex cross-platform programs
===
I'm sketching an application deployment process for a bunch of relatively complex desktop applications. We have both native and Java apps, so the deployment must be able to check for existence of the JRE and install it if needed. Some of the apps depend on special hardware, so the deployment must also be able to launch the necessary driver installers. Some of the apps are multiplatform, and *preferably* the same mechanism should be able to create Windows, Linux and Mac OS X installers. That is:
- The installer *must* be able to install, in addition to the application itself:
- Java Runtime Environment.
- Drivers (hardware) - that is, launch other installers.
- The installer builder *must* be operable from the command line so that it can be integrated with an automatic build mechanism that generates installer packages for each platform as nightly builds.
- In addition, I need to create "update from the web" mechanisms for the applications. It could be included in the installer, or it could also be a separate custom mechanism built into the application.
Now, all this is a bit complex, and I suspect that there's no one installer that could do this all. Therefore I'm thinking between two basic alternatives:
1. Platform-specific mechanisms: [NSIS](http://nsis.sourceforge.net/) would create `.exe` for Windows, XXX would create `.deb` for Ubuntu, and YYY would create `.dmg` for OS X.
2. Cross-platform installer that would handle all the requirements above: ZZZ?
Any recommendations? Some options that I've looked include:
* [NSIS](http://nsis.sourceforge.net/) - Excellent, but Windows only.
* [IzPack](http://izpack.org/) - Good, but requires JVM to run.
Is there an universal tool for this, or should I pick an appropriate tool separately for each platform?
| 0 |
6,716,979 | 07/16/2011 11:17:12 | 421,994 | 08/16/2010 17:34:15 | 1 | 0 | GWT serialization issue. | **Hi,
When I serialize the one of my object I got serialization exception. The object I created satisfies all the requirements for a object to get serialize in gwt like implements IsSerializable and having a default constructor etc.. I have attached a stack trace. Could any one help please.**
com.google.gwt.user.client.rpc.SerializationException
at com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java:161)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:145)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.BaseModelData_FieldSerializer.serialize(BaseModelData_FieldSerializer.java:17)
at com.extjs.gxt.ui.client.data.BaseModel_FieldSerializer.serialize(BaseModel_FieldSerializer.java:16)
at com.subex.rocforms.client.lib.FSModel_FieldSerializer.serialize(FSModel_FieldSerializer.java:36)
at com.subex.spark.web.app.client.framework.models.AbstractBaseFSModel_FieldSerializer.serialize(AbstractBaseFSModel_FieldSerializer.java:54)
at com.subex.spark.web.app.client.framework.models.AbstractFSModel_FieldSerializer.serialize(AbstractFSModel_FieldSerializer.java:12)
at com.subex.spark.web.app.client.framework.customcomponents.canvas.CanvasItemModel_FieldSerializer.serialize(CanvasItemModel_FieldSerializer.java:16)
at com.subex.spark.web.app.client.framework.customcomponents.canvas.CellOverlayModel_FieldSerializer.serialize(CellOverlayModel_FieldSerializer.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:43)
at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:36)
at com.subex.rocforms.client.lib.FSListModel_FieldSerializer.serialize(FSListModel_FieldSerializer.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.BaseModelData_FieldSerializer.serialize(BaseModelData_FieldSerializer.java:17)
at com.extjs.gxt.ui.client.data.BaseModel_FieldSerializer.serialize(BaseModel_FieldSerializer.java:16)
at com.subex.rocforms.client.lib.FSModel_FieldSerializer.serialize(FSModel_FieldSerializer.java:36)
at com.subex.spark.web.app.client.framework.models.AbstractBaseFSModel_FieldSerializer.serialize(AbstractBaseFSModel_FieldSerializer.java:54)
at com.subex.spark.web.app.client.framework.models.AbstractFSModel_FieldSerializer.serialize(AbstractFSModel_FieldSerializer.java:12)
at com.subex.spark.web.app.client.framework.customcomponents.canvas.CanvasItemModel_FieldSerializer.serialize(CanvasItemModel_FieldSerializer.java:16)
at com.subex.spark.web.app.client.framework.customcomponents.canvas.VertexModel_FieldSerializer.serialize(VertexModel_FieldSerializer.java:18)
at com.subex.moneta.web.app.client.module.businesshierarchyconfig.BhNodeModel_FieldSerializer.serialize(BhNodeModel_FieldSerializer.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:43)
at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:36)
at com.subex.rocforms.client.lib.FSListModel_FieldSerializer.serialize(FSListModel_FieldSerializer.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.BaseModelData_FieldSerializer.serialize(BaseModelData_FieldSerializer.java:17)
at com.extjs.gxt.ui.client.data.BaseModel_FieldSerializer.serialize(BaseModel_FieldSerializer.java:16)
at com.subex.rocforms.client.lib.FSModel_FieldSerializer.serialize(FSModel_FieldSerializer.java:36)
at com.subex.spark.web.app.client.framework.models.AbstractBaseFSModel_FieldSerializer.serialize(AbstractBaseFSModel_FieldSerializer.java:54)
at com.subex.spark.web.app.client.framework.models.AbstractFSModel_FieldSerializer.serialize(AbstractFSModel_FieldSerializer.java:12)
at com.subex.moneta.web.app.client.module.businesshierarchyconfig.CanvasDfnModel_FieldSerializer.serialize(CanvasDfnModel_FieldSerializer.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.BaseModelData_FieldSerializer.serialize(BaseModelData_FieldSerializer.java:17)
at com.extjs.gxt.ui.client.data.BaseModel_FieldSerializer.serialize(BaseModel_FieldSerializer.java:16)
at com.subex.rocforms.client.lib.FSModel_FieldSerializer.serialize(FSModel_FieldSerializer.java:36)
at com.subex.spark.web.app.client.framework.models.AbstractBaseFSModel_FieldSerializer.serialize(AbstractBaseFSModel_FieldSerializer.java:54)
at com.subex.spark.web.app.client.framework.models.AbstractFSModel_FieldSerializer.serialize(AbstractFSModel_FieldSerializer.java:12)
at com.subex.moneta.web.app.client.module.businesshierarchyconfig.BusinessHierarchyModel_FieldSerializer.serialize(BusinessHierarchyModel_FieldSerializer.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.subex.moneta.web.app.client.module.businesshierarchyconfig.BusinessHierarchyConfigDetailService_Proxy.saveModel(BusinessHierarchyConfigDetailService_Proxy.java:208)
at com.subex.moneta.web.app.client.module.businesshierarchyconfig.AbstractBusinessHierarchyConfigDetail$7.execute(AbstractBusinessHierarchyConfigDetail.java:273)
at com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.java:310)
at com.google.gwt.user.client.CommandExecutor$2.run(CommandExecutor.java:205)
at com.google.gwt.user.client.Timer.fire(Timer.java:141)
at sun.reflect.GeneratedMethodAccessor420.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor333.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1668)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
| gwt | null | null | null | null | null | open | GWT serialization issue.
===
**Hi,
When I serialize the one of my object I got serialization exception. The object I created satisfies all the requirements for a object to get serialize in gwt like implements IsSerializable and having a default constructor etc.. I have attached a stack trace. Could any one help please.**
com.google.gwt.user.client.rpc.SerializationException
at com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java:161)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:145)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.BaseModelData_FieldSerializer.serialize(BaseModelData_FieldSerializer.java:17)
at com.extjs.gxt.ui.client.data.BaseModel_FieldSerializer.serialize(BaseModel_FieldSerializer.java:16)
at com.subex.rocforms.client.lib.FSModel_FieldSerializer.serialize(FSModel_FieldSerializer.java:36)
at com.subex.spark.web.app.client.framework.models.AbstractBaseFSModel_FieldSerializer.serialize(AbstractBaseFSModel_FieldSerializer.java:54)
at com.subex.spark.web.app.client.framework.models.AbstractFSModel_FieldSerializer.serialize(AbstractFSModel_FieldSerializer.java:12)
at com.subex.spark.web.app.client.framework.customcomponents.canvas.CanvasItemModel_FieldSerializer.serialize(CanvasItemModel_FieldSerializer.java:16)
at com.subex.spark.web.app.client.framework.customcomponents.canvas.CellOverlayModel_FieldSerializer.serialize(CellOverlayModel_FieldSerializer.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:43)
at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:36)
at com.subex.rocforms.client.lib.FSListModel_FieldSerializer.serialize(FSListModel_FieldSerializer.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.BaseModelData_FieldSerializer.serialize(BaseModelData_FieldSerializer.java:17)
at com.extjs.gxt.ui.client.data.BaseModel_FieldSerializer.serialize(BaseModel_FieldSerializer.java:16)
at com.subex.rocforms.client.lib.FSModel_FieldSerializer.serialize(FSModel_FieldSerializer.java:36)
at com.subex.spark.web.app.client.framework.models.AbstractBaseFSModel_FieldSerializer.serialize(AbstractBaseFSModel_FieldSerializer.java:54)
at com.subex.spark.web.app.client.framework.models.AbstractFSModel_FieldSerializer.serialize(AbstractFSModel_FieldSerializer.java:12)
at com.subex.spark.web.app.client.framework.customcomponents.canvas.CanvasItemModel_FieldSerializer.serialize(CanvasItemModel_FieldSerializer.java:16)
at com.subex.spark.web.app.client.framework.customcomponents.canvas.VertexModel_FieldSerializer.serialize(VertexModel_FieldSerializer.java:18)
at com.subex.moneta.web.app.client.module.businesshierarchyconfig.BhNodeModel_FieldSerializer.serialize(BhNodeModel_FieldSerializer.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:43)
at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:36)
at com.subex.rocforms.client.lib.FSListModel_FieldSerializer.serialize(FSListModel_FieldSerializer.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.BaseModelData_FieldSerializer.serialize(BaseModelData_FieldSerializer.java:17)
at com.extjs.gxt.ui.client.data.BaseModel_FieldSerializer.serialize(BaseModel_FieldSerializer.java:16)
at com.subex.rocforms.client.lib.FSModel_FieldSerializer.serialize(FSModel_FieldSerializer.java:36)
at com.subex.spark.web.app.client.framework.models.AbstractBaseFSModel_FieldSerializer.serialize(AbstractBaseFSModel_FieldSerializer.java:54)
at com.subex.spark.web.app.client.framework.models.AbstractFSModel_FieldSerializer.serialize(AbstractFSModel_FieldSerializer.java:12)
at com.subex.moneta.web.app.client.module.businesshierarchyconfig.CanvasDfnModel_FieldSerializer.serialize(CanvasDfnModel_FieldSerializer.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.extjs.gxt.ui.client.data.BaseModelData_FieldSerializer.serialize(BaseModelData_FieldSerializer.java:17)
at com.extjs.gxt.ui.client.data.BaseModel_FieldSerializer.serialize(BaseModel_FieldSerializer.java:16)
at com.subex.rocforms.client.lib.FSModel_FieldSerializer.serialize(FSModel_FieldSerializer.java:36)
at com.subex.spark.web.app.client.framework.models.AbstractBaseFSModel_FieldSerializer.serialize(AbstractBaseFSModel_FieldSerializer.java:54)
at com.subex.spark.web.app.client.framework.models.AbstractFSModel_FieldSerializer.serialize(AbstractFSModel_FieldSerializer.java:12)
at com.subex.moneta.web.app.client.module.businesshierarchyconfig.BusinessHierarchyModel_FieldSerializer.serialize(BusinessHierarchyModel_FieldSerializer.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.serialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:147)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at com.subex.moneta.web.app.client.module.businesshierarchyconfig.BusinessHierarchyConfigDetailService_Proxy.saveModel(BusinessHierarchyConfigDetailService_Proxy.java:208)
at com.subex.moneta.web.app.client.module.businesshierarchyconfig.AbstractBusinessHierarchyConfigDetail$7.execute(AbstractBusinessHierarchyConfigDetail.java:273)
at com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.java:310)
at com.google.gwt.user.client.CommandExecutor$2.run(CommandExecutor.java:205)
at com.google.gwt.user.client.Timer.fire(Timer.java:141)
at sun.reflect.GeneratedMethodAccessor420.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor333.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1668)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
| 0 |
5,949,095 | 05/10/2011 11:11:29 | 732,360 | 04/30/2011 12:00:43 | 11 | 0 | Sql Backup Need | We Have A Server Named "Exserver"
Now I Want To Take Backup Of A Database Which Is On Exserver Named "User"
And I Want To Take That Backup On My Local Pc's Hard Drive
How Could I Do That???? | sql | sql-server-2008 | server | null | null | 05/10/2011 22:32:49 | off topic | Sql Backup Need
===
We Have A Server Named "Exserver"
Now I Want To Take Backup Of A Database Which Is On Exserver Named "User"
And I Want To Take That Backup On My Local Pc's Hard Drive
How Could I Do That???? | 2 |
4,037,959 | 10/27/2010 21:42:55 | 31,141 | 10/24/2008 11:26:10 | 6,293 | 235 | BitC programming language, what's your stance about it? | What is your opinion about [BitC][1] as programming language?
Seems like a promising solution to "high level language with excellent performance that is pleasant to use" category.
What to you like and dislike about it? Do you think it has a chance to find its niche, or it is just yet another obscure programming language noone cares about.
[1]: http://www.bitc-lang.org | programming-languages | null | null | null | null | 10/28/2010 01:45:28 | not constructive | BitC programming language, what's your stance about it?
===
What is your opinion about [BitC][1] as programming language?
Seems like a promising solution to "high level language with excellent performance that is pleasant to use" category.
What to you like and dislike about it? Do you think it has a chance to find its niche, or it is just yet another obscure programming language noone cares about.
[1]: http://www.bitc-lang.org | 4 |
5,770,546 | 04/24/2011 12:44:06 | 722,428 | 04/24/2011 07:37:15 | 10 | 0 | another HAML problem about how HAML knows the end | = form_for(:subject, :url => {:action => "create"}) do |f|
= render :partial => "form", :locals => {:f => f}
#form_buttons= submit_tag "Create Subject"
noticed that form_for has a "do",so it needs a "end"
but in here,how does HAMLknows where to end the "end"
Sorry about my English,hope you can understand what am I talking about! | ruby | plugins | haml | ruby-on-rails-3 | null | null | open | another HAML problem about how HAML knows the end
===
= form_for(:subject, :url => {:action => "create"}) do |f|
= render :partial => "form", :locals => {:f => f}
#form_buttons= submit_tag "Create Subject"
noticed that form_for has a "do",so it needs a "end"
but in here,how does HAMLknows where to end the "end"
Sorry about my English,hope you can understand what am I talking about! | 0 |
3,794,552 | 09/25/2010 16:27:44 | 12,388 | 09/16/2008 14:12:05 | 3,805 | 111 | Android SSL failure trying to connect with GAE | I am trying to connect an Android application with an HTTP remote service that is hosted in Google App Engine for Java (https://applicationname.appspot.com), using the HTTPClient 4 implementation that comes with Android.
I am using Android 2.1 in a real device (HTC Hero), and I get the following error: **`SSL23_GET_SERVER_HELLO:unknown protocol`**.
This is part of my code:
HttpParams params = new BasicHttpParams();
...
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(
new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
schemeRegistry.register(
new Scheme("http", SSLSocketFactory.getSocketFactory(), 443));
..
ClientConnectionManager cm =
new ThreadSafeClientConnManager(params, schemeRegistry);
DefaultHttpClient result = new DefaultHttpClient(cm, params);
Any idea about what could be happening and any solution or workaround?
This is the complete stack trace:
09-25 18:19:05.452: ERROR/OpenSSLSocketImpl(1195): Unknown error 1 during connect
09-25 18:19:05.460: ERROR/ServerProxy(1195): HTTPHelp : IOException : java.io.IOException: SSL handshake failure: Failure in SSL library, usually a protocol error
09-25 18:19:05.460: ERROR/ServerProxy(1195): error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:585 0xaf586674:0x00000000)
09-25 18:19:05.460: ERROR/ServerProxy(1195): java.io.IOException: SSL handshake failure: Failure in SSL library, usually a protocol error
09-25 18:19:05.460: ERROR/ServerProxy(1195): error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:585 0xaf586674:0x00000000)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeconnect(Native Method)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:305)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.<init>(OpenSSLSocketImpl.java:502)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:443)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.io.SocketInputBuffer.<init>(SocketInputBuffer.java:93)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.SocketHttpClientConnection.createSessionInputBuffer(SocketHttpClientConnection.java:83)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.conn.DefaultClientConnection.createSessionInputBuffer(DefaultClientConnection.java:170)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.SocketHttpClientConnection.bind(SocketHttpClientConnection.java:106)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.conn.DefaultClientConnection.openCompleted(DefaultClientConnection.java:129)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
Thank you very much. | android | ssl | httpclient | android-networking | null | null | open | Android SSL failure trying to connect with GAE
===
I am trying to connect an Android application with an HTTP remote service that is hosted in Google App Engine for Java (https://applicationname.appspot.com), using the HTTPClient 4 implementation that comes with Android.
I am using Android 2.1 in a real device (HTC Hero), and I get the following error: **`SSL23_GET_SERVER_HELLO:unknown protocol`**.
This is part of my code:
HttpParams params = new BasicHttpParams();
...
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(
new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
schemeRegistry.register(
new Scheme("http", SSLSocketFactory.getSocketFactory(), 443));
..
ClientConnectionManager cm =
new ThreadSafeClientConnManager(params, schemeRegistry);
DefaultHttpClient result = new DefaultHttpClient(cm, params);
Any idea about what could be happening and any solution or workaround?
This is the complete stack trace:
09-25 18:19:05.452: ERROR/OpenSSLSocketImpl(1195): Unknown error 1 during connect
09-25 18:19:05.460: ERROR/ServerProxy(1195): HTTPHelp : IOException : java.io.IOException: SSL handshake failure: Failure in SSL library, usually a protocol error
09-25 18:19:05.460: ERROR/ServerProxy(1195): error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:585 0xaf586674:0x00000000)
09-25 18:19:05.460: ERROR/ServerProxy(1195): java.io.IOException: SSL handshake failure: Failure in SSL library, usually a protocol error
09-25 18:19:05.460: ERROR/ServerProxy(1195): error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:585 0xaf586674:0x00000000)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeconnect(Native Method)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:305)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.<init>(OpenSSLSocketImpl.java:502)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:443)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.io.SocketInputBuffer.<init>(SocketInputBuffer.java:93)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.SocketHttpClientConnection.createSessionInputBuffer(SocketHttpClientConnection.java:83)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.conn.DefaultClientConnection.createSessionInputBuffer(DefaultClientConnection.java:170)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.SocketHttpClientConnection.bind(SocketHttpClientConnection.java:106)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.conn.DefaultClientConnection.openCompleted(DefaultClientConnection.java:129)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
09-25 18:19:05.460: ERROR/ServerProxy(1195): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
Thank you very much. | 0 |
3,620,357 | 09/01/2010 16:53:20 | 437,180 | 09/01/2010 16:53:20 | 1 | 0 | tfs problem. Cannot open solution file | i have this project in TFS, and someone else from another computer changed the solution file's name. Now when i try to open it, i cant. It gives ne this error -
"This project (xxx.sln) cannot be opened from source control because it was created by a version of Microsoft Visual Studio that is incompatible with this one.
If this is the case, you may be able to open it from source control using that version of Microsoft Visual Studio, and then use Microsoft Visual Studio to open the local copy."
I dont have a local copy cause i deleted it. Reason being i wanted to get eveything new from the server. How can i open this project now? | vb.net | tfs | projects-and-solutions | null | null | null | open | tfs problem. Cannot open solution file
===
i have this project in TFS, and someone else from another computer changed the solution file's name. Now when i try to open it, i cant. It gives ne this error -
"This project (xxx.sln) cannot be opened from source control because it was created by a version of Microsoft Visual Studio that is incompatible with this one.
If this is the case, you may be able to open it from source control using that version of Microsoft Visual Studio, and then use Microsoft Visual Studio to open the local copy."
I dont have a local copy cause i deleted it. Reason being i wanted to get eveything new from the server. How can i open this project now? | 0 |
11,712,473 | 07/29/2012 19:58:03 | 1,561,449 | 07/29/2012 19:38:15 | 1 | 0 | ORMLite Android - How can I "map" in ORMLite a base object that all Database entities extend | I am very new to ORMLite and I really need some help. I have an object that I call "BaseObject" which all classes that are persisted extend. This class has an "_id" field, a "dateCreated" field, a "dateModified" field, etc.... The database tables that correspond to all objects that extends this base object obviously have columns that store these values. How can I set up these fields using annotations so all these fields are persisted to the database. Can I do this or will I need to add these fields to the POJOs directly. I have included below my base object and one of the classes that extends it. I would appreciate any help.
package com.aaron.grocery.pojos;
public class BaseObject {
private int _id;
private String dateCreated;
private String dateModified;
private String createModule;
private String modifiedModule;
public int get_id() {
return _id;
}
public void set_id(int _id) {
this._id = _id;
}
public String getDateCreated() {
return dateCreated;
}
public void setDateCreated(String dateCreated) {
this.dateCreated = dateCreated;
}
public String getDateModified() {
return dateModified;
}
public void setDateModified(String dateModified) {
this.dateModified = dateModified;
}
public String getCreateModule() {
return createModule;
}
public void setCreateModule(String createModule) {
this.createModule = createModule;
}
public String getModifiedModule() {
return modifiedModule;
}
public void setModifiedModule(String modifiedModule) {
this.modifiedModule = modifiedModule;
}
}
</i>
<i>
package com.aaron.grocery.pojos;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable(tableName = "FOOD")
public class Food extends BaseObject {
public Food(int foodGroupId, String longDescription) {
this.foodGroupId = foodGroupId;
this.longDescription = longDescription;
}
private Integer foodGroupId;
private String longDescription;
public Integer getFoodGroupId() {
return foodGroupId;
}
public void setFoodGroupId(Integer foodGroupId) {
this.foodGroupId = foodGroupId;
}
public String getLongDescription() {
return longDescription;
}
public void setLongDescription(String longDescription) {
this.longDescription = longDescription;
}
}
</i>
Any help would be appreciated. Thank you. | android | annotations | ormlite | object-persistence | null | null | open | ORMLite Android - How can I "map" in ORMLite a base object that all Database entities extend
===
I am very new to ORMLite and I really need some help. I have an object that I call "BaseObject" which all classes that are persisted extend. This class has an "_id" field, a "dateCreated" field, a "dateModified" field, etc.... The database tables that correspond to all objects that extends this base object obviously have columns that store these values. How can I set up these fields using annotations so all these fields are persisted to the database. Can I do this or will I need to add these fields to the POJOs directly. I have included below my base object and one of the classes that extends it. I would appreciate any help.
package com.aaron.grocery.pojos;
public class BaseObject {
private int _id;
private String dateCreated;
private String dateModified;
private String createModule;
private String modifiedModule;
public int get_id() {
return _id;
}
public void set_id(int _id) {
this._id = _id;
}
public String getDateCreated() {
return dateCreated;
}
public void setDateCreated(String dateCreated) {
this.dateCreated = dateCreated;
}
public String getDateModified() {
return dateModified;
}
public void setDateModified(String dateModified) {
this.dateModified = dateModified;
}
public String getCreateModule() {
return createModule;
}
public void setCreateModule(String createModule) {
this.createModule = createModule;
}
public String getModifiedModule() {
return modifiedModule;
}
public void setModifiedModule(String modifiedModule) {
this.modifiedModule = modifiedModule;
}
}
</i>
<i>
package com.aaron.grocery.pojos;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable(tableName = "FOOD")
public class Food extends BaseObject {
public Food(int foodGroupId, String longDescription) {
this.foodGroupId = foodGroupId;
this.longDescription = longDescription;
}
private Integer foodGroupId;
private String longDescription;
public Integer getFoodGroupId() {
return foodGroupId;
}
public void setFoodGroupId(Integer foodGroupId) {
this.foodGroupId = foodGroupId;
}
public String getLongDescription() {
return longDescription;
}
public void setLongDescription(String longDescription) {
this.longDescription = longDescription;
}
}
</i>
Any help would be appreciated. Thank you. | 0 |
3,061,247 | 06/17/2010 11:33:44 | 365,627 | 06/13/2010 10:48:52 | 6 | 0 | Initialization of a vector of vectors? | Is there a way to initialize a vector of vectors in the same ,quick, manner as you initialize a matrix?
typedef int type;
type matrix[2][2]=
{
{1,0},{0,1}
};
vector<vector<type> > vectorMatrix; //??? | c++ | stl | vector | matrix | null | null | open | Initialization of a vector of vectors?
===
Is there a way to initialize a vector of vectors in the same ,quick, manner as you initialize a matrix?
typedef int type;
type matrix[2][2]=
{
{1,0},{0,1}
};
vector<vector<type> > vectorMatrix; //??? | 0 |
8,445,271 | 12/09/2011 12:08:13 | 164,954 | 08/28/2009 15:39:43 | 72 | 0 | Determining members of a structure | Is it possible to determine that to Member2 points to a structure that has a group of 3 pointers based on the following code:
`UnknownStruct->Member3 = &UnknownStruct->Member2;
UnkownStruct->Member2 = &UnknownStruct->Member2;
UnknownStruct->Member4 = &UnknownStruct->Member2;`
I am reading the book "reverse engineering" and the author claims that Member2 points to a structure with 3 pointers but I am not able to understand.
Can anybody provide an explanation?
Thanks in advance. | c++ | c | assembly | null | null | 12/09/2011 13:40:22 | not a real question | Determining members of a structure
===
Is it possible to determine that to Member2 points to a structure that has a group of 3 pointers based on the following code:
`UnknownStruct->Member3 = &UnknownStruct->Member2;
UnkownStruct->Member2 = &UnknownStruct->Member2;
UnknownStruct->Member4 = &UnknownStruct->Member2;`
I am reading the book "reverse engineering" and the author claims that Member2 points to a structure with 3 pointers but I am not able to understand.
Can anybody provide an explanation?
Thanks in advance. | 1 |
8,676,199 | 12/30/2011 04:35:44 | 1,122,261 | 12/30/2011 03:37:08 | 1 | 0 | silhouette of curve | Can someone please explain how to solve for *t* in the equation [B(t)×B′(t) = 0] provided by Gareth Rees on the following question:
http://stackoverflow.com/questions/574732/calculate-the-horizon-of-a-curved-face-not-extrema
I'd love to see how *t* can be broken out and resolved for if all the point-values are known to start with.
Regards. | expression | bezier | quadratic | null | null | 12/30/2011 18:43:23 | off topic | silhouette of curve
===
Can someone please explain how to solve for *t* in the equation [B(t)×B′(t) = 0] provided by Gareth Rees on the following question:
http://stackoverflow.com/questions/574732/calculate-the-horizon-of-a-curved-face-not-extrema
I'd love to see how *t* can be broken out and resolved for if all the point-values are known to start with.
Regards. | 2 |
8,748,100 | 01/05/2012 18:54:57 | 1,130,975 | 01/04/2012 22:41:06 | 1 | 0 | What webservices support CORS? | i'd like to know which webservices providers does support CORS and which of them are best to learn (simple functions and more advanced ones simultanously)
Thank you for your help! | web-services | soap | cors | null | null | 01/06/2012 02:50:19 | not constructive | What webservices support CORS?
===
i'd like to know which webservices providers does support CORS and which of them are best to learn (simple functions and more advanced ones simultanously)
Thank you for your help! | 4 |
7,470,217 | 09/19/2011 11:29:24 | 898,567 | 08/17/2011 12:02:11 | 21 | 3 | How can I configure two concurrent DNS servers in OSX | I'd like configure two DNS servers in OSX Snow Leopard, with both servers being active. The current implementation only shifts to the secondary DNS if there is no response from the first; I'd like to have the query sent to the secondary DNS if there is a *negative* response (i.e. "not found") from the first, or even better, tie one or more top-level domains to a particular DNS server.
Any ideas how this could be achieved?
Background: I often work with a client and so connect through VPN. Once connected, the client's DNS become the primary DNS (and I need it to resolve client-internal names) but at the same time I'd like to retain the ability to resolve my local servers, on the network on this side of the VPN. | osx | apple | dns | osx-snow-leopard | multiple | 09/19/2011 11:54:12 | off topic | How can I configure two concurrent DNS servers in OSX
===
I'd like configure two DNS servers in OSX Snow Leopard, with both servers being active. The current implementation only shifts to the secondary DNS if there is no response from the first; I'd like to have the query sent to the secondary DNS if there is a *negative* response (i.e. "not found") from the first, or even better, tie one or more top-level domains to a particular DNS server.
Any ideas how this could be achieved?
Background: I often work with a client and so connect through VPN. Once connected, the client's DNS become the primary DNS (and I need it to resolve client-internal names) but at the same time I'd like to retain the ability to resolve my local servers, on the network on this side of the VPN. | 2 |
5,092,376 | 02/23/2011 14:44:52 | 316,233 | 04/14/2010 06:58:22 | 68 | 1 | Phishing And CSS position:absolute | How CSS position:absolute rule actually helps phishing?
Can someone help me out, I'm confused :(
| css | position | absolute | phishing | null | 02/23/2011 14:52:26 | not a real question | Phishing And CSS position:absolute
===
How CSS position:absolute rule actually helps phishing?
Can someone help me out, I'm confused :(
| 1 |
5,189,167 | 03/04/2011 02:56:19 | 644,040 | 03/04/2011 02:56:19 | 1 | 0 | Can anyone i give me hints on this homework? | A nano-technology chemical company is manufacturing buckminsterfullerene molecules
made up of 60 carbon atoms arranged in the same way as a soccer ball (ref:
http://en.wikipedia.org/wiki/Buckminsterfullerene). The mass of a buckminsterfullerene
molecule is 1.19707641e-21 kg, and the density is 1.44e25 molecules per cubic meter.
Write a program that calculates the total mass and the volume of a certain number of
buckminsterfullerene molecules. The program first reads in the number of molecules,
performs the calculation, and prints the results at the precision of 6 significant digits after
the decimal point. A skeleton program q1cskeleton.c is given to you.
‧ Decide the appropriate types for the variable is important.
‧ Use %.6e in printf to print out the result in the required precision.
‧ Volume = Number of Molecules / Density in molecule per cubic meter. | c | homework | null | null | null | 03/05/2011 05:17:10 | not a real question | Can anyone i give me hints on this homework?
===
A nano-technology chemical company is manufacturing buckminsterfullerene molecules
made up of 60 carbon atoms arranged in the same way as a soccer ball (ref:
http://en.wikipedia.org/wiki/Buckminsterfullerene). The mass of a buckminsterfullerene
molecule is 1.19707641e-21 kg, and the density is 1.44e25 molecules per cubic meter.
Write a program that calculates the total mass and the volume of a certain number of
buckminsterfullerene molecules. The program first reads in the number of molecules,
performs the calculation, and prints the results at the precision of 6 significant digits after
the decimal point. A skeleton program q1cskeleton.c is given to you.
‧ Decide the appropriate types for the variable is important.
‧ Use %.6e in printf to print out the result in the required precision.
‧ Volume = Number of Molecules / Density in molecule per cubic meter. | 1 |
10,869,858 | 06/03/2012 11:18:26 | 1,403,424 | 05/18/2012 13:06:43 | 1 | 1 | System Permission with PHP uploaded files in Local Windows 7 Server | I Have Serious Problem with My Local Server in Windows 7.
the uploaded files get System Permission and I Can't view it or edit it at all , none from windows or using Apache.
what is the problem exactly? why I have that permission with any file uploaded with Apache?
| php | windows | file | upload | permissions | 06/03/2012 21:11:30 | off topic | System Permission with PHP uploaded files in Local Windows 7 Server
===
I Have Serious Problem with My Local Server in Windows 7.
the uploaded files get System Permission and I Can't view it or edit it at all , none from windows or using Apache.
what is the problem exactly? why I have that permission with any file uploaded with Apache?
| 2 |
6,977,243 | 08/08/2011 02:28:27 | 872,042 | 08/01/2011 00:43:00 | 1 | 0 | protocol buffers with c & c++ | Now i have a c/s program with protocol buffers(using c++). I want to rewrite the server with c. But in the .proto file there are many services. The program implements the rpc itself, while protocol buffers-c provides another. I want someone to show me how to implement this examples.
service {
rpc foo (what) returns(what);
}
How can write this service, while the client is in c++ and server in c. | c++ | c | protocol-buffers | null | null | 08/08/2011 07:20:45 | not a real question | protocol buffers with c & c++
===
Now i have a c/s program with protocol buffers(using c++). I want to rewrite the server with c. But in the .proto file there are many services. The program implements the rpc itself, while protocol buffers-c provides another. I want someone to show me how to implement this examples.
service {
rpc foo (what) returns(what);
}
How can write this service, while the client is in c++ and server in c. | 1 |
2,726,167 | 04/28/2010 00:53:17 | 27,290 | 10/13/2008 01:39:44 | 268 | 11 | Parse a CSV file using python (to make a decision tree later) | First off, full disclosure: This is going towards a uni assignment, so I don't want to receive code. :). I'm more looking for approaches; I'm *very* new to python, having read a book but not yet written any code.
The entire task is to import the contents of a CSV file, create a decision tree from the contents of the CSV file (using the <a href="http://en.wikipedia.org/wiki/ID3_algorithm">ID3 algorithm</a>), and then parse a second CSV file to run against the tree. There's a big (understandable) preference to have it capable of dealing with different CSV files (I asked if we were allowed to hard code the column names, mostly to eliminate it as a possibility, and the answer was no).
The CSV files are in a fairly standard format; the header row is marked with a # then the column names are displayed, and every row after that is a simple series of values. Example:
# Column1, Column2, Column3, Column4
Value01, Value02, Value03, Value04
Value11, Value12, Value13, Value14
At the moment, I'm trying to work out the first part: parsing the CSV. To make the decisions for the decision tree, a dictionary structure seems like it's going to be the most logical; so I was thinking of doing something along these lines:
Read in each line, character by character
If the character is not a comma or a space
Append character to temporary string
If the character is a comma
Append the temporary string to a list
Empty string
Once a line has been read
Create a dictionary using the header row as the key (somehow!)
Append that dictionary to a list
However, if I do things that way, I'm not sure how to make a mapping between the keys and the values. I'm also wondering whether there is some way to perform an action on every dictionary in a list, since I'll need to be doing things to the effect of "Everyone return their values for columns Column1 and Column4, so I can count up who has what!" - I assume that there is some mechanism, but I don't think I know how to do it.
Is a dictionary the best way to do it? Would I be better off doing things using some other data structure? If so, what? | python | decisiontrees | csv | null | null | 04/27/2012 14:30:01 | not constructive | Parse a CSV file using python (to make a decision tree later)
===
First off, full disclosure: This is going towards a uni assignment, so I don't want to receive code. :). I'm more looking for approaches; I'm *very* new to python, having read a book but not yet written any code.
The entire task is to import the contents of a CSV file, create a decision tree from the contents of the CSV file (using the <a href="http://en.wikipedia.org/wiki/ID3_algorithm">ID3 algorithm</a>), and then parse a second CSV file to run against the tree. There's a big (understandable) preference to have it capable of dealing with different CSV files (I asked if we were allowed to hard code the column names, mostly to eliminate it as a possibility, and the answer was no).
The CSV files are in a fairly standard format; the header row is marked with a # then the column names are displayed, and every row after that is a simple series of values. Example:
# Column1, Column2, Column3, Column4
Value01, Value02, Value03, Value04
Value11, Value12, Value13, Value14
At the moment, I'm trying to work out the first part: parsing the CSV. To make the decisions for the decision tree, a dictionary structure seems like it's going to be the most logical; so I was thinking of doing something along these lines:
Read in each line, character by character
If the character is not a comma or a space
Append character to temporary string
If the character is a comma
Append the temporary string to a list
Empty string
Once a line has been read
Create a dictionary using the header row as the key (somehow!)
Append that dictionary to a list
However, if I do things that way, I'm not sure how to make a mapping between the keys and the values. I'm also wondering whether there is some way to perform an action on every dictionary in a list, since I'll need to be doing things to the effect of "Everyone return their values for columns Column1 and Column4, so I can count up who has what!" - I assume that there is some mechanism, but I don't think I know how to do it.
Is a dictionary the best way to do it? Would I be better off doing things using some other data structure? If so, what? | 4 |
7,820,319 | 10/19/2011 11:02:53 | 813,739 | 06/24/2011 08:42:26 | 47 | 3 | PHP Ecommerce for beginners | I have just dived into PHP ocean. I am basically a Java developer and learning PHP, and it seems to be literally an ocean of PHP API, Frameworks and e-commerce solution etc. So, basically I'm confused.
I wanted to know about PHP e-commerce solutions. I came across several things like Maganto, Zen Cart and several other. Here is my question.
What is the best, among all, e-commerce solution - Zen cart, Magento etc...- ?
Any good and simple tutorials that covers most of the aspects of the best e-commerce solution?
Thank you very much.
| php | e-commerce | shopping-cart | php-frameworks | null | 10/19/2011 11:54:23 | not constructive | PHP Ecommerce for beginners
===
I have just dived into PHP ocean. I am basically a Java developer and learning PHP, and it seems to be literally an ocean of PHP API, Frameworks and e-commerce solution etc. So, basically I'm confused.
I wanted to know about PHP e-commerce solutions. I came across several things like Maganto, Zen Cart and several other. Here is my question.
What is the best, among all, e-commerce solution - Zen cart, Magento etc...- ?
Any good and simple tutorials that covers most of the aspects of the best e-commerce solution?
Thank you very much.
| 4 |
2,436,391 | 03/12/2010 22:47:47 | 82,265 | 03/24/2009 21:36:24 | 191 | 24 | What programming language to choose | We need to write a script that needs to process movies (using C-based ffmpeg) and also update our databases. Also there would be some thread programming to accomplish with a worker-manager design. I am thinking of writing this in Ruby is there any good language to do this, if so what is its primary advantage for choosing?
We are based on the Mac platform.
Thanks in advance. | programming-languages | language-features | null | null | null | null | open | What programming language to choose
===
We need to write a script that needs to process movies (using C-based ffmpeg) and also update our databases. Also there would be some thread programming to accomplish with a worker-manager design. I am thinking of writing this in Ruby is there any good language to do this, if so what is its primary advantage for choosing?
We are based on the Mac platform.
Thanks in advance. | 0 |
3,137,594 | 06/29/2010 03:08:11 | 93,311 | 04/20/2009 17:14:16 | 255 | 17 | How to create PI sequentially in Ruby.. | Out of pure interested, I'm curious how to create PI sequentially so that instead of the number being produced after the outcome of the process, allow the numbers to display as the process itself is being generated. If this is the case, then the number could produce itself, and I could implement garbage collection on previously seen numbers thus creating an infinite series. The outcome is just a number being generated every second that follows the series of Pi.
Here's what I've found sifting through the internets :
This it the popular computer-friendly algorithm, The Machin-like Algorithm :
def arccot(x, unity)
xpow = unity / x
n = 1
sign = 1
sum = 0
loop do
term = xpow / n
break if term == 0
sum += sign * (xpow/n)
xpow /= x*x
n += 2
sign = -sign
end
sum
end
def calc_pi(digits = 10000)
fudge = 10
unity = 10**(digits+fudge)
pi = 4*(4*arccot(5, unity) - arccot(239, unity))
pi / (10**fudge)
end
digits = (ARGV[0] || 10000).to_i
p calc_pi(digits)
| ruby | algorithm | math | mathematical-optimization | null | null | open | How to create PI sequentially in Ruby..
===
Out of pure interested, I'm curious how to create PI sequentially so that instead of the number being produced after the outcome of the process, allow the numbers to display as the process itself is being generated. If this is the case, then the number could produce itself, and I could implement garbage collection on previously seen numbers thus creating an infinite series. The outcome is just a number being generated every second that follows the series of Pi.
Here's what I've found sifting through the internets :
This it the popular computer-friendly algorithm, The Machin-like Algorithm :
def arccot(x, unity)
xpow = unity / x
n = 1
sign = 1
sum = 0
loop do
term = xpow / n
break if term == 0
sum += sign * (xpow/n)
xpow /= x*x
n += 2
sign = -sign
end
sum
end
def calc_pi(digits = 10000)
fudge = 10
unity = 10**(digits+fudge)
pi = 4*(4*arccot(5, unity) - arccot(239, unity))
pi / (10**fudge)
end
digits = (ARGV[0] || 10000).to_i
p calc_pi(digits)
| 0 |
11,021,684 | 06/13/2012 19:08:05 | 1,079,466 | 12/03/2011 22:00:05 | 35 | 0 | Issue linking gcc-4.7 Mac OSX 10.6 | So I downloaded gcc using homebrew so that I could update gcc and g++ to 4.7.
So then I:
$ mkdir ~/bin
created ~/.bashrc with contents:
'export PATH=$HOME/bin:$PATH'
created ~/.bash_profile with contents:
'. $HOME/.bashrc'
and then:
$ ln -s /usr/local/bin/g++-4.7 ~/bin/g++
so now I run g++ -v and it's 4.7, YAY!
Now I go to update gcc and do:
$ ln -s /usr/local/bin/gcc-4.7 ~/bin/gcc
I get no errors but then when I run gcc -v i get:
gcc-4.7: error trying to exec '/usr/local/bin/i686-apple-darwin10-gcc-4.2.1': execvp: No such file or directory
So it seems to be looking for 4.2 for some reason? If I cd to ~/bin/gcc and do ./gcc -v it works fine. Also echo $PATH has the correct ~/bin path. I'm not sure why g++ worked and gcc didnt.
| osx | gcc | g++ | null | null | null | open | Issue linking gcc-4.7 Mac OSX 10.6
===
So I downloaded gcc using homebrew so that I could update gcc and g++ to 4.7.
So then I:
$ mkdir ~/bin
created ~/.bashrc with contents:
'export PATH=$HOME/bin:$PATH'
created ~/.bash_profile with contents:
'. $HOME/.bashrc'
and then:
$ ln -s /usr/local/bin/g++-4.7 ~/bin/g++
so now I run g++ -v and it's 4.7, YAY!
Now I go to update gcc and do:
$ ln -s /usr/local/bin/gcc-4.7 ~/bin/gcc
I get no errors but then when I run gcc -v i get:
gcc-4.7: error trying to exec '/usr/local/bin/i686-apple-darwin10-gcc-4.2.1': execvp: No such file or directory
So it seems to be looking for 4.2 for some reason? If I cd to ~/bin/gcc and do ./gcc -v it works fine. Also echo $PATH has the correct ~/bin path. I'm not sure why g++ worked and gcc didnt.
| 0 |
8,145,219 | 11/16/2011 00:42:36 | 773,263 | 05/27/2011 14:27:52 | 300 | 5 | Forward .html/.htm to .php with .config | I'm moving a site from my linux hosted server to a client's windows hosted server.
The .htaccess file no longer works and I'm told that windows servers use .config .
How can I forward all users accessing .html & .htm files to the equivalent .php file. | .htaccess | forwarding | windows-hosting | null | null | 11/22/2011 07:51:40 | off topic | Forward .html/.htm to .php with .config
===
I'm moving a site from my linux hosted server to a client's windows hosted server.
The .htaccess file no longer works and I'm told that windows servers use .config .
How can I forward all users accessing .html & .htm files to the equivalent .php file. | 2 |
10,006,621 | 04/04/2012 07:22:52 | 941,919 | 09/13/2011 06:27:07 | 14 | 0 | SQL Server Management Studio Express it does not open | When I click `SQL Server Management Studio Express` it does not open
it just blink and out,.,.
Please give the solution for opening that | sql-server-2005 | visual-studio-2008 | null | null | null | 04/05/2012 09:15:10 | off topic | SQL Server Management Studio Express it does not open
===
When I click `SQL Server Management Studio Express` it does not open
it just blink and out,.,.
Please give the solution for opening that | 2 |
11,658,277 | 07/25/2012 20:42:16 | 1,552,814 | 07/25/2012 20:35:50 | 1 | 0 | CPU usage while sending udp packets in C#.net | I'm trying to send udp packets using C# Socket class. Each packet has 1024 bytes and I send packets each 5 miliseconds. It cause my system cpu usage to go more than 50% which I beleive is not natural. does anyone have any idea about my problem? | .net | null | null | null | null | 07/31/2012 08:34:41 | not a real question | CPU usage while sending udp packets in C#.net
===
I'm trying to send udp packets using C# Socket class. Each packet has 1024 bytes and I send packets each 5 miliseconds. It cause my system cpu usage to go more than 50% which I beleive is not natural. does anyone have any idea about my problem? | 1 |
4,114,205 | 11/06/2010 17:23:02 | 389,119 | 07/12/2010 01:11:12 | 8 | 1 | Free web hosting for Wt | is there a free web hosting on which I can use/install Wt ?
Thanks. | c++ | web-hosting | wt | null | null | 06/27/2012 03:22:00 | not constructive | Free web hosting for Wt
===
is there a free web hosting on which I can use/install Wt ?
Thanks. | 4 |
4,459,244 | 12/16/2010 09:36:41 | 533,677 | 12/07/2010 13:03:45 | 1 | 0 | how to send voicemail in android | how to send voicemail in android | android | null | null | null | null | 12/16/2010 23:01:01 | not a real question | how to send voicemail in android
===
how to send voicemail in android | 1 |
5,114,126 | 02/25/2011 05:57:20 | 340,007 | 05/13/2010 06:47:07 | 3 | 1 | linkShare integration in iPhone | I want to integrate linkShare affiliated link into the my iPhone application.
I have already created the links for the applications which I want to sell from within my application using my linkShare account.
But the only problem is how would I get the logo, name and description of those applications. Is there any kind of iTunes or other API available?
Thanks in Advance. | iphone | null | null | null | null | null | open | linkShare integration in iPhone
===
I want to integrate linkShare affiliated link into the my iPhone application.
I have already created the links for the applications which I want to sell from within my application using my linkShare account.
But the only problem is how would I get the logo, name and description of those applications. Is there any kind of iTunes or other API available?
Thanks in Advance. | 0 |
8,367,045 | 12/03/2011 10:28:51 | 961,904 | 09/23/2011 20:12:06 | 1 | 0 | gps tracking in background android | i have service for listening the gps locations and want to display the updated location in toast, i run the service in other activity by clicking a button. service is created successfully but not showing the toast of updated location.here is code
public class locationlistening_service extends Service implements LocationListener {
static LocationManager locationManager;
LocationListener locationListener;
private static final String TAG = "Calculations";
@Override
public void onCreate() {
Toast.makeText(this, "My Service Created", Toast.LENGTH_LONG).show();
Log.d(TAG, "onCreate");
run();
}
private void run(){
final Criteria criteria = new Criteria();
criteria.setAccuracy(Criteria.ACCURACY_FINE);
criteria.setSpeedRequired(true);
criteria.setAltitudeRequired(false);
criteria.setBearingRequired(false);
criteria.setCostAllowed(true);
criteria.setPowerRequirement(Criteria.POWER_LOW);
//Acquire a reference to the system Location Manager
locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
// Define a listener that responds to location updates
locationListener = new LocationListener() {
public void onLocationChanged(Location location)
{
recordLocation(location);
}
public void onStatusChanged(String provider, int status, Bundle extras) {}
public void onProviderEnabled(String provider) {}
public void onProviderDisabled(String provider) {}
};
}
public void recordLocation(Location loc)
{
Toast.makeText(locationlistening_service.this,"Lat: " + String.valueOf(loc.getLatitude()) + " Long: " + String.valueOf(loc.getLongitude()),Toast.LENGTH_SHORT).show();
}
public void onLocationChanged(Location location) {
// TODO Auto-generated method stub
}
public void onProviderDisabled(String provider) {
// TODO Auto-generated method stub
}
public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub
}
@Override
public IBinder onBind(Intent intent) {
// TODO Auto-generated method stub
return null;
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
// TODO Auto-generated method stub
}
}
there is call of service in other activity.
public void startButton(View view) {
startService(new Intent(this, locationlistening_service.class));
}
| android | android-service | null | null | null | null | open | gps tracking in background android
===
i have service for listening the gps locations and want to display the updated location in toast, i run the service in other activity by clicking a button. service is created successfully but not showing the toast of updated location.here is code
public class locationlistening_service extends Service implements LocationListener {
static LocationManager locationManager;
LocationListener locationListener;
private static final String TAG = "Calculations";
@Override
public void onCreate() {
Toast.makeText(this, "My Service Created", Toast.LENGTH_LONG).show();
Log.d(TAG, "onCreate");
run();
}
private void run(){
final Criteria criteria = new Criteria();
criteria.setAccuracy(Criteria.ACCURACY_FINE);
criteria.setSpeedRequired(true);
criteria.setAltitudeRequired(false);
criteria.setBearingRequired(false);
criteria.setCostAllowed(true);
criteria.setPowerRequirement(Criteria.POWER_LOW);
//Acquire a reference to the system Location Manager
locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
// Define a listener that responds to location updates
locationListener = new LocationListener() {
public void onLocationChanged(Location location)
{
recordLocation(location);
}
public void onStatusChanged(String provider, int status, Bundle extras) {}
public void onProviderEnabled(String provider) {}
public void onProviderDisabled(String provider) {}
};
}
public void recordLocation(Location loc)
{
Toast.makeText(locationlistening_service.this,"Lat: " + String.valueOf(loc.getLatitude()) + " Long: " + String.valueOf(loc.getLongitude()),Toast.LENGTH_SHORT).show();
}
public void onLocationChanged(Location location) {
// TODO Auto-generated method stub
}
public void onProviderDisabled(String provider) {
// TODO Auto-generated method stub
}
public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub
}
@Override
public IBinder onBind(Intent intent) {
// TODO Auto-generated method stub
return null;
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
// TODO Auto-generated method stub
}
}
there is call of service in other activity.
public void startButton(View view) {
startService(new Intent(this, locationlistening_service.class));
}
| 0 |
2,128,195 | 01/24/2010 18:30:15 | 130,127 | 06/28/2009 19:06:48 | 29 | 0 | Access contents of PyBuffer from C | I have created a buffer object in python like so:
f = io.open('some_file', 'rb')
byte_stream = buffer(f.read(4096))
I'm now passing `byte_stream` as a parameter to a C function, through SWIG. I have a typemap for converting the data which looks like this:
%typemap(in) unsigned char * byte_stream {
PyObject *buf = $input;
//some code to read the contents of buf
}
I have tried a few different things bug can't get to the actual content/value of my byte_stream. How do I convert or access the content of my `byte_stream` using the C API? There are many different methods for converting a C data to a buffer but none that I can find for going the other way around.
I have tried looking at this object in gcb but neither it, or the values it points to contain my data.
(I'm using buffers because I want to avoid the overhead of converting the data to a string when reading it from the file)
I'm using python 2.6 on Linux.
--
Thanks Pavel | python | python-c-api | pybuffer | swig | null | null | open | Access contents of PyBuffer from C
===
I have created a buffer object in python like so:
f = io.open('some_file', 'rb')
byte_stream = buffer(f.read(4096))
I'm now passing `byte_stream` as a parameter to a C function, through SWIG. I have a typemap for converting the data which looks like this:
%typemap(in) unsigned char * byte_stream {
PyObject *buf = $input;
//some code to read the contents of buf
}
I have tried a few different things bug can't get to the actual content/value of my byte_stream. How do I convert or access the content of my `byte_stream` using the C API? There are many different methods for converting a C data to a buffer but none that I can find for going the other way around.
I have tried looking at this object in gcb but neither it, or the values it points to contain my data.
(I'm using buffers because I want to avoid the overhead of converting the data to a string when reading it from the file)
I'm using python 2.6 on Linux.
--
Thanks Pavel | 0 |
9,654,686 | 03/11/2012 11:54:49 | 1,262,205 | 03/11/2012 11:50:43 | 1 | 0 | How to move a Video to the top of a page in html | Hi i was wondering if anyone knows how to move a video to the top and centre of a Page in html ?
Thanks
James:) | html | video | youtube | embed | null | 03/11/2012 23:27:36 | not a real question | How to move a Video to the top of a page in html
===
Hi i was wondering if anyone knows how to move a video to the top and centre of a Page in html ?
Thanks
James:) | 1 |
9,394,518 | 02/22/2012 12:14:53 | 1,082,619 | 12/06/2011 01:02:16 | 15 | 0 | Jquery ajax get request | I am new to jquery and php, I have two input fields, zip and city, the city shall output a value based from the zip that the user input. The jquery script shall call a URL: http://domain.com/city?zip.php="zip; so that zip.php will return an echo value that will output to the city input field.
I tried using ajax getXMLHTTP. some times it works but sometimes not
Please Refer to the following code snippet below:
> <input type="text" id="zip_code" name="zip_code" />
>
> <input type="text" id="city" name="city" />
>
> <script type="text/javascript">
>
> // Some Jquery code here for ajax get request to
> http://domain.com/city?zip.php
>
> </script>
| php | jquery | ajax | null | null | null | open | Jquery ajax get request
===
I am new to jquery and php, I have two input fields, zip and city, the city shall output a value based from the zip that the user input. The jquery script shall call a URL: http://domain.com/city?zip.php="zip; so that zip.php will return an echo value that will output to the city input field.
I tried using ajax getXMLHTTP. some times it works but sometimes not
Please Refer to the following code snippet below:
> <input type="text" id="zip_code" name="zip_code" />
>
> <input type="text" id="city" name="city" />
>
> <script type="text/javascript">
>
> // Some Jquery code here for ajax get request to
> http://domain.com/city?zip.php
>
> </script>
| 0 |
7,758,224 | 10/13/2011 17:47:26 | 994,023 | 10/13/2011 17:39:17 | 1 | 0 | Connecting Maya 2011 with Mysqldb | I am using Maya 2011(64bit) and MySQL 5.5 (64 bit) in Windows 7 (64 bit) machine. I tried to connect maya with Mysqldb through python. So i copied the connector files into maya\python\lib\site packages. I was able to import MYsqldb module without any error. But when i tried call the cursor object(for querying), I found that Maya is not recognizing the cursor object.
Here is my sample code:
import MySQLdb as mb
import maya.cmds as cmds
def mysql_connect(hostname, username, password, dbname):
db = mb.connect(host=hostname,user=username,passwd=password,db=dbname)
db = mysql_connect("localhost", “root”, “test”, “mydbt")
dbcursor = db.cursor()
dbcursor.execute("select * from maya")
# Error: AttributeError: ‘NoneType’ object has no attribute ‘cursor’ #
I tried verifying the env-path variables, replacing the connector files but still the problem persists.
Since being a beginner, i am un-able to identify the exact issue.
I request for your valuable suggestions
Thank you | python | mysql | maya | null | null | null | open | Connecting Maya 2011 with Mysqldb
===
I am using Maya 2011(64bit) and MySQL 5.5 (64 bit) in Windows 7 (64 bit) machine. I tried to connect maya with Mysqldb through python. So i copied the connector files into maya\python\lib\site packages. I was able to import MYsqldb module without any error. But when i tried call the cursor object(for querying), I found that Maya is not recognizing the cursor object.
Here is my sample code:
import MySQLdb as mb
import maya.cmds as cmds
def mysql_connect(hostname, username, password, dbname):
db = mb.connect(host=hostname,user=username,passwd=password,db=dbname)
db = mysql_connect("localhost", “root”, “test”, “mydbt")
dbcursor = db.cursor()
dbcursor.execute("select * from maya")
# Error: AttributeError: ‘NoneType’ object has no attribute ‘cursor’ #
I tried verifying the env-path variables, replacing the connector files but still the problem persists.
Since being a beginner, i am un-able to identify the exact issue.
I request for your valuable suggestions
Thank you | 0 |
1,792,463 | 11/24/2009 19:44:38 | 218,068 | 11/24/2009 19:44:38 | 1 | 0 | posting data to zend framework action from external website | I am trying to post data from a website (non-zend) to my zend based website.
i use the php post method to post from the non-zend website which is
e.g.
$data=Array('testkey'=>'testvalue');
$query = http_build_query($data);
$host="localhost/index.php/default/proc/procnew";
$rr=post($host,$query);
function post($host,$query,$others=''){
$path=explode('/',$host);
$host=$path[0];
unset($path[0]);
$path='/'.(implode('/',$path));
$post="POST $path HTTP/1.1\r\nHost: $host\r\nContent-type: application/x-www-form-urlencoded\r\n${others}User-Agent: Mozilla 4.0\r\nContent-length: ".strlen($query)."\r\nConnection: close\r\n\r\n$query";
$h=fsockopen($host,80);
fwrite($h,$post);
for($a=0,$r='';!$a;){
$b=fread($h,8192);
$r.=$b;
$a=(($b=='')?1:0);
}
fclose($h);
return $r;
}
my problem is that the action seems never to recieve the post request although after enabling zend log to debug level i see this in log
2009-11-24T22:04:22-05:00 INFO (6): REQUESTED URI: /index.php/default/proc/procnew
2009-11-24T22:04:22-05:00 INFO (6): POST payload: Array
(
[testkey] => testvalue
)
which means that the post is sent correctly but the action does not recieve it
also i have done another test and added to file to webroot of zend that reads the request and write it to some log file and the file read the request correctly and write it to log file
so the problem is in how zend recieve the post request from another website
thanks
| zend-framework | post | action | null | null | 08/22/2011 03:36:36 | too localized | posting data to zend framework action from external website
===
I am trying to post data from a website (non-zend) to my zend based website.
i use the php post method to post from the non-zend website which is
e.g.
$data=Array('testkey'=>'testvalue');
$query = http_build_query($data);
$host="localhost/index.php/default/proc/procnew";
$rr=post($host,$query);
function post($host,$query,$others=''){
$path=explode('/',$host);
$host=$path[0];
unset($path[0]);
$path='/'.(implode('/',$path));
$post="POST $path HTTP/1.1\r\nHost: $host\r\nContent-type: application/x-www-form-urlencoded\r\n${others}User-Agent: Mozilla 4.0\r\nContent-length: ".strlen($query)."\r\nConnection: close\r\n\r\n$query";
$h=fsockopen($host,80);
fwrite($h,$post);
for($a=0,$r='';!$a;){
$b=fread($h,8192);
$r.=$b;
$a=(($b=='')?1:0);
}
fclose($h);
return $r;
}
my problem is that the action seems never to recieve the post request although after enabling zend log to debug level i see this in log
2009-11-24T22:04:22-05:00 INFO (6): REQUESTED URI: /index.php/default/proc/procnew
2009-11-24T22:04:22-05:00 INFO (6): POST payload: Array
(
[testkey] => testvalue
)
which means that the post is sent correctly but the action does not recieve it
also i have done another test and added to file to webroot of zend that reads the request and write it to some log file and the file read the request correctly and write it to log file
so the problem is in how zend recieve the post request from another website
thanks
| 3 |
5,976,117 | 05/12/2011 09:42:21 | 713,179 | 04/05/2011 10:09:17 | 147 | 1 | NSDictionary and CTypedPtrMap-Objective C | Is it possible to get the same behaviour of `CTypedPtrMap<CMapWordToPtr,WORD,stTimer*> m_cAppMap;` in Objective C's NSDictionary.
NSDictionary holds key and value object. | objective-c | null | null | null | null | null | open | NSDictionary and CTypedPtrMap-Objective C
===
Is it possible to get the same behaviour of `CTypedPtrMap<CMapWordToPtr,WORD,stTimer*> m_cAppMap;` in Objective C's NSDictionary.
NSDictionary holds key and value object. | 0 |
11,377,734 | 07/07/2012 18:48:18 | 1,492,999 | 06/30/2012 12:41:44 | 38 | 2 | Best ORM with fluent API and automapping for .Net | I'm currently trying out FluentNHibernate and am very impressed by its fluent interface and automapping capabilities.
Does anybody know, if other ORM frameworks for .Net provide similar functionality? If yes, how good are they compared to FluentNHibernate? | .net | orm | fluent-nhibernate | null | null | 07/08/2012 17:53:09 | not constructive | Best ORM with fluent API and automapping for .Net
===
I'm currently trying out FluentNHibernate and am very impressed by its fluent interface and automapping capabilities.
Does anybody know, if other ORM frameworks for .Net provide similar functionality? If yes, how good are they compared to FluentNHibernate? | 4 |
3,938,921 | 10/15/2010 01:52:07 | 473,908 | 10/12/2010 22:52:52 | 10 | 0 | Prefered OS for server - Windows 2008 x64 or Linux CentOs, Fedora, Ubuntu | I want to know which want do you prefer for a Dedicated server... Yeah in 2 months I'll get a dedicated server but I don't know which OS to choose.
I use exec command from PHP to run .exe files... (like image converter, video converter) but I'm sure I can find that for Linux too... I don't know Linux very well, but I use Windows every day so maybe it will be easier for me?
Help me choose, please!
Thanks! | operating-system | hosting | null | null | null | 10/15/2010 03:44:53 | off topic | Prefered OS for server - Windows 2008 x64 or Linux CentOs, Fedora, Ubuntu
===
I want to know which want do you prefer for a Dedicated server... Yeah in 2 months I'll get a dedicated server but I don't know which OS to choose.
I use exec command from PHP to run .exe files... (like image converter, video converter) but I'm sure I can find that for Linux too... I don't know Linux very well, but I use Windows every day so maybe it will be easier for me?
Help me choose, please!
Thanks! | 2 |
83,185 | 09/17/2008 13:29:23 | 1,219 | 08/13/2008 13:44:47 | 2,980 | 173 | Should you administer IQ tests to programmers during the interview process? | How many companies are using IQ tests to rate prospective programmers?
How would you weight an IQ test vs. education, experience, etc.?
Are there any legal issues that come into play with this kind of thing?
Is there an industry standard test? | interview-questions | interviews | language-agnostic | null | null | 03/08/2011 00:26:29 | not constructive | Should you administer IQ tests to programmers during the interview process?
===
How many companies are using IQ tests to rate prospective programmers?
How would you weight an IQ test vs. education, experience, etc.?
Are there any legal issues that come into play with this kind of thing?
Is there an industry standard test? | 4 |
10,706,591 | 05/22/2012 16:59:12 | 1,160,997 | 01/20/2012 16:22:33 | 105 | 4 | What's a good way to share data between threads? | I asked [a question][1] earlier about `volatile` variables that opened up an enormous learning experience for me. Among other things, I realized I wasn't asking the right question. Hope this isn't bad stackoverflow etiquette, but I think I should create a new question here that addresses my underlying issue: I have two threads, A and B, in my Visual C++ program. B is blocked, waiting for a signal from A. A sets a number of variables. A then signals B, which will read the variables set by A. I am concerned that some of the variables set by A may not actually be written back to memory, as they may only reside in CPU registers. What is a good way to be sure that thread B will, upon reading the variables previously set by thread A, read the values that thread A set?
[1]: http://stackoverflow.com/questions/10705267/why-cant-volatile-file-be-assigned-to-file | c++ | multithreading | null | null | null | 05/24/2012 20:55:27 | not constructive | What's a good way to share data between threads?
===
I asked [a question][1] earlier about `volatile` variables that opened up an enormous learning experience for me. Among other things, I realized I wasn't asking the right question. Hope this isn't bad stackoverflow etiquette, but I think I should create a new question here that addresses my underlying issue: I have two threads, A and B, in my Visual C++ program. B is blocked, waiting for a signal from A. A sets a number of variables. A then signals B, which will read the variables set by A. I am concerned that some of the variables set by A may not actually be written back to memory, as they may only reside in CPU registers. What is a good way to be sure that thread B will, upon reading the variables previously set by thread A, read the values that thread A set?
[1]: http://stackoverflow.com/questions/10705267/why-cant-volatile-file-be-assigned-to-file | 4 |
6,358,218 | 06/15/2011 13:14:53 | 799,639 | 06/15/2011 13:14:15 | 1 | 0 | Change "class" to "struct" | Sorry for my english. So I need change the struct "class" to "struct normal" to make easy to read the source code. It's possible, change "class" in begin of code to "struct" in source code: http://www.syntax-example.com/Code/create-queue-dynamic-memory-allocation-973.aspx
thanks. | c++ | c | null | null | null | 06/15/2011 13:20:55 | not a real question | Change "class" to "struct"
===
Sorry for my english. So I need change the struct "class" to "struct normal" to make easy to read the source code. It's possible, change "class" in begin of code to "struct" in source code: http://www.syntax-example.com/Code/create-queue-dynamic-memory-allocation-973.aspx
thanks. | 1 |
8,975,508 | 01/23/2012 17:01:51 | 1,148,163 | 01/13/2012 17:09:10 | 31 | 0 | PCI Compliance guidance | I am in the middle of setting up an ecommerce solution on a commercial website.
My system will store card number in the form of : xxxx-xxxx-xxxx-4000 (just the last 4 digits) and XXX (nothing) for the CVV code.
The full details are sent to an external gateway (raven).
I would just like to know what level of PCI DSS compliance I require for my servers end.
Below shows maybe 4 different levels of security options.
https://www.pcisecuritystandards.org/merchants/self_assessment_form.php
Kind regards, | php | e-commerce | credit-card | pci-dss | pci-compliance | 01/23/2012 20:43:06 | off topic | PCI Compliance guidance
===
I am in the middle of setting up an ecommerce solution on a commercial website.
My system will store card number in the form of : xxxx-xxxx-xxxx-4000 (just the last 4 digits) and XXX (nothing) for the CVV code.
The full details are sent to an external gateway (raven).
I would just like to know what level of PCI DSS compliance I require for my servers end.
Below shows maybe 4 different levels of security options.
https://www.pcisecuritystandards.org/merchants/self_assessment_form.php
Kind regards, | 2 |
1,661,936 | 11/02/2009 15:25:56 | 201,026 | 11/02/2009 15:25:56 | 1 | 0 | How to get the attribute value with XQuery in MS SQL Server 2008 | I have an XML like this:
<EXP>
<TITLES>
<SUBTITLE CL="AXT4" FL="1" NB="Text 1"/>
</TITLES>
<TITLES>
<SUBTITLE CL="BVT6" FL="2" NB="Text 2"/>
</TITLES>
<TITLES>
<SUBTITLE CL="PLO7" FL="3" NB="Text 3"/>
</TITLES>
</EXP>
Using XQuery in SQL Server 2008, How can I select Just the value of the attribute NB in a list, by rows (I need all possible values),
Example:
-- Subtitles --
Text 1
Text 2
Text 3 | xquery | sql-server | null | null | null | null | open | How to get the attribute value with XQuery in MS SQL Server 2008
===
I have an XML like this:
<EXP>
<TITLES>
<SUBTITLE CL="AXT4" FL="1" NB="Text 1"/>
</TITLES>
<TITLES>
<SUBTITLE CL="BVT6" FL="2" NB="Text 2"/>
</TITLES>
<TITLES>
<SUBTITLE CL="PLO7" FL="3" NB="Text 3"/>
</TITLES>
</EXP>
Using XQuery in SQL Server 2008, How can I select Just the value of the attribute NB in a list, by rows (I need all possible values),
Example:
-- Subtitles --
Text 1
Text 2
Text 3 | 0 |
2,968,913 | 06/03/2010 19:00:55 | 224,922 | 12/04/2009 16:51:10 | 1,328 | 2 | which language to choose for a LIVE web application? | i want to create not only a web application, but a web application where everything is LIVE.
eg. if someone posts a message and then another one replies, then the creator will get on his webpage a notification.
and also i want to implement a chat in the web application.
i want these features to be implemented using true server-push (no javascript polling)!
because i only want to create web applications i don't think i will use java.
i wonder if i should use python, ruby or php for this?
thanks | php | python | ruby | null | null | 06/06/2010 07:48:34 | not a real question | which language to choose for a LIVE web application?
===
i want to create not only a web application, but a web application where everything is LIVE.
eg. if someone posts a message and then another one replies, then the creator will get on his webpage a notification.
and also i want to implement a chat in the web application.
i want these features to be implemented using true server-push (no javascript polling)!
because i only want to create web applications i don't think i will use java.
i wonder if i should use python, ruby or php for this?
thanks | 1 |
10,846,808 | 06/01/2012 08:22:02 | 155,196 | 08/12/2009 16:08:13 | 2,472 | 49 | Google Analytics Structure | I am trying to build a custom Analytics App. I am just wondering a few things.
Google Analytics contains Accounts which in turn contains Web Properties which in return gives you the Profile Id.
Just wanted to know can Accounts have mutiple Web Properties and Web properties have multiple Profile ids ?
how are these naming conventions work ? | google | google-analytics | google-api | google-analytics-api | null | 06/04/2012 08:58:48 | off topic | Google Analytics Structure
===
I am trying to build a custom Analytics App. I am just wondering a few things.
Google Analytics contains Accounts which in turn contains Web Properties which in return gives you the Profile Id.
Just wanted to know can Accounts have mutiple Web Properties and Web properties have multiple Profile ids ?
how are these naming conventions work ? | 2 |
4,327,026 | 12/01/2010 17:15:57 | 57,159 | 01/20/2009 16:21:54 | 7,418 | 400 | How do I get “select for xml” to output to several files? | Our customer is complaining that our export file is too long; they would like us to split the export into many files with no more than “n” records per file. Is there a way of doing this with “select for xml”
(If this is too hard, I can always post process the single large file to split it up)
| sql-server | xml | tsql | forxml | null | null | open | How do I get “select for xml” to output to several files?
===
Our customer is complaining that our export file is too long; they would like us to split the export into many files with no more than “n” records per file. Is there a way of doing this with “select for xml”
(If this is too hard, I can always post process the single large file to split it up)
| 0 |
4,391,495 | 12/08/2010 19:35:21 | 26,188 | 10/08/2008 15:35:46 | 5,613 | 293 | Mobile developer interview questions, that a non-mobile developer can ask | I need to interview some people for a mobile developer position (iphone) soon. The problem is that my strength is in Java web development.
What questions should i ask without sounding like an idiot?
Also, what are valid answers to these questions? | iphone | objective-c | interview-questions | mobile-phones | null | 12/03/2011 06:17:07 | not constructive | Mobile developer interview questions, that a non-mobile developer can ask
===
I need to interview some people for a mobile developer position (iphone) soon. The problem is that my strength is in Java web development.
What questions should i ask without sounding like an idiot?
Also, what are valid answers to these questions? | 4 |
4,576,730 | 01/02/2011 01:58:07 | 112,194 | 05/25/2009 17:14:05 | 3,796 | 288 | Usability battles: designers vs. developers | We develop for web.
For some reason our design team hates [the look of] indented unordered and ordered lists. This is the default treatment for these lists, and I think it's for good reason. These types of lists are generally important, and indenting them draws attention to them, and makes them easier to read.
Every web app we build that has content management is sure to use lists, and I always get demands to remove the indenting on these lists. I try to ignore these requests as long as possible, but eventually design wins the battle.
The design team also hates when vertical navigation in a tree structure has sub-levels that are indented. They prefer to use colour, font size, font weight or other treatments to indicate different levels in the tree. But again, indenting has to be removed.
These examples both seem to be absolutely terrible ideas in my opinion - but that's the problem - it's just my opinion. Without doing a full usability test (which most of our projects cannot afford), how can I win these battles? Since it's coming from design it seems that they carry more weight for usability because it's usally 'visual', not the developer implementing the designs.
I guess the questions here are:
1. Am I off base in thinking these are bad ideas?
2. In the absense of a usability expert on your team, and in the absense of usability testing, how can a developer push back against design treatments that seem to represent poor usability? | usability | null | null | null | null | 01/02/2011 05:40:02 | not constructive | Usability battles: designers vs. developers
===
We develop for web.
For some reason our design team hates [the look of] indented unordered and ordered lists. This is the default treatment for these lists, and I think it's for good reason. These types of lists are generally important, and indenting them draws attention to them, and makes them easier to read.
Every web app we build that has content management is sure to use lists, and I always get demands to remove the indenting on these lists. I try to ignore these requests as long as possible, but eventually design wins the battle.
The design team also hates when vertical navigation in a tree structure has sub-levels that are indented. They prefer to use colour, font size, font weight or other treatments to indicate different levels in the tree. But again, indenting has to be removed.
These examples both seem to be absolutely terrible ideas in my opinion - but that's the problem - it's just my opinion. Without doing a full usability test (which most of our projects cannot afford), how can I win these battles? Since it's coming from design it seems that they carry more weight for usability because it's usally 'visual', not the developer implementing the designs.
I guess the questions here are:
1. Am I off base in thinking these are bad ideas?
2. In the absense of a usability expert on your team, and in the absense of usability testing, how can a developer push back against design treatments that seem to represent poor usability? | 4 |
322,612 | 11/27/2008 00:27:29 | 17,744 | 09/18/2008 14:22:40 | 1,428 | 62 | What are the most common mistakes made in WPF development? | This question intends to provide a list of solutions to common pitfalls or "gotcha's" when developing WPF applications. Responses should be voted up or down based on how common the type of issue is. Here are the rules:
- One response per post. This will clearly give the most common issues the highest ranking.
- It would be best to provide the link to the a related post or solution already living somewhere in SO land. | wpf | pitfalls | null | null | null | 04/06/2012 17:51:36 | not constructive | What are the most common mistakes made in WPF development?
===
This question intends to provide a list of solutions to common pitfalls or "gotcha's" when developing WPF applications. Responses should be voted up or down based on how common the type of issue is. Here are the rules:
- One response per post. This will clearly give the most common issues the highest ranking.
- It would be best to provide the link to the a related post or solution already living somewhere in SO land. | 4 |
8,404,281 | 12/06/2011 17:41:19 | 1,068,000 | 11/27/2011 15:20:09 | 1 | 0 | page/title.html or page/title for craw rate or seo | Which one do you this is better regarding crawling rate, pageran, seo etc.?
www.url.com/page/title.html
or
www.url.com/page/title
Thanks | seo | pagerank | null | null | null | 12/07/2011 04:35:38 | off topic | page/title.html or page/title for craw rate or seo
===
Which one do you this is better regarding crawling rate, pageran, seo etc.?
www.url.com/page/title.html
or
www.url.com/page/title
Thanks | 2 |
10,269,514 | 04/22/2012 15:59:48 | 1,255,956 | 03/07/2012 23:54:40 | 28 | 2 | Solrj Query Dynamic Field | In Solrj (Solr 3.6), am I able to filter my search for a dynamic field:
params.set("fl", "name*_s");
Or do I [still][1] need to copy this field to a new field (non-dynamic) in order to search it?
Thank you in advance.
[1]: http://lucene.472066.n3.nabble.com/fl-parameter-and-dynamic-fields-td489832.html | solr | lucene | solrj | null | null | null | open | Solrj Query Dynamic Field
===
In Solrj (Solr 3.6), am I able to filter my search for a dynamic field:
params.set("fl", "name*_s");
Or do I [still][1] need to copy this field to a new field (non-dynamic) in order to search it?
Thank you in advance.
[1]: http://lucene.472066.n3.nabble.com/fl-parameter-and-dynamic-fields-td489832.html | 0 |
492,384 | 01/29/2009 16:33:34 | 33,324 | 11/01/2008 20:19:00 | 28 | 0 | How to find the sizeof( a pointer pointing to an array ) | First off, here is some code:
int main()
{
int days[] = {1,2,3,4,5};
int *ptr = days;
printf("%u\n", sizeof(days));
printf("%u\n", sizeof(ptr));
return 0;
}
Is there a any way to find out the size of the array that ptr is pointing to? Instead of just giving it's size, which is 4 bytes.
Thanks. | c | sizeof | pointers | arrays | null | null | open | How to find the sizeof( a pointer pointing to an array )
===
First off, here is some code:
int main()
{
int days[] = {1,2,3,4,5};
int *ptr = days;
printf("%u\n", sizeof(days));
printf("%u\n", sizeof(ptr));
return 0;
}
Is there a any way to find out the size of the array that ptr is pointing to? Instead of just giving it's size, which is 4 bytes.
Thanks. | 0 |
5,235,271 | 03/08/2011 16:25:52 | 1,231,786 | 11/24/2010 00:57:10 | 190 | 7 | Objective-C: incompatible pointer type error | I am struggling with Objective-C... can't seem to get the differences between it and C#... anyway, I have the following code, which is giving me a build error (see http://imgur.com/zCbKu)
What is this trying to tell me? | objective-c | sqlite | null | null | null | null | open | Objective-C: incompatible pointer type error
===
I am struggling with Objective-C... can't seem to get the differences between it and C#... anyway, I have the following code, which is giving me a build error (see http://imgur.com/zCbKu)
What is this trying to tell me? | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.