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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7,750,133 | 10/13/2011 06:16:28 | 881,850 | 08/06/2011 10:47:13 | 11 | 0 | add active class using jquery | <ul>
<li id="db" onclick="loadSlide('db_content')">Database</li>
<li id="xp" onclick="loadSlide('xp_content')">Xpath</li>
<li id="con" onclick="loadSlide('con_content')">Controller</li>
</ul>
This is the code and I want to add active class.<br />
Please note that there is no a tag.<br />
Now how can I add active class to li<br />
Thanks in advance
| jquery | html | null | null | null | 10/13/2011 06:33:21 | not a real question | add active class using jquery
===
<ul>
<li id="db" onclick="loadSlide('db_content')">Database</li>
<li id="xp" onclick="loadSlide('xp_content')">Xpath</li>
<li id="con" onclick="loadSlide('con_content')">Controller</li>
</ul>
This is the code and I want to add active class.<br />
Please note that there is no a tag.<br />
Now how can I add active class to li<br />
Thanks in advance
| 1 |
9,856,390 | 03/24/2012 22:56:17 | 1,102,994 | 12/17/2011 02:11:01 | 20 | 0 | Some troubles with using sed and awk | Right now I have some troubles. I'm finding a way to solve one problem. I have some file in the tree whose names are stdout-captured, stderr-captured and status-capture and I have to rename these files to stdout-expected, stderr-expected and status-expected.
Thanks for your help. | bash | unix | script | sed | awk | 03/26/2012 12:26:53 | not a real question | Some troubles with using sed and awk
===
Right now I have some troubles. I'm finding a way to solve one problem. I have some file in the tree whose names are stdout-captured, stderr-captured and status-capture and I have to rename these files to stdout-expected, stderr-expected and status-expected.
Thanks for your help. | 1 |
7,376,584 | 09/11/2011 05:59:18 | 461,609 | 09/29/2010 10:30:01 | 608 | 29 | How to configure windows VPN server to support broadcasting | This maybe a wrong place, I had no idea of anywhere else to ask. How can we configure the windows VPN server (Win server 2003 SP2) to support broadcasting. I have searched a lot and found some things regarding to broadcasting name resolution and stuff! but that does not seem to be the right answer! Truth is I have a vpn server and I just wanted to play some games on it! I have searched a lot but no one seems to have the knowledge! so I came here. The games don't seem to be sending broadcast messages correctly, however they can connect directly via NAT IP address (Say 192.168.1.6). So the configuration of the server must not be wrong, otherwise they would not even connect! Is there something wrong with windows VPN? There are some other VPN softwares who support broadcasting completely. I have no idea how to fix this issue which is not a small one!
P.S. The games are Counter Strike and War Craft III if it will help the answers! | windows | networking | vpn | broadcast | broadcasting | 09/11/2011 08:25:39 | off topic | How to configure windows VPN server to support broadcasting
===
This maybe a wrong place, I had no idea of anywhere else to ask. How can we configure the windows VPN server (Win server 2003 SP2) to support broadcasting. I have searched a lot and found some things regarding to broadcasting name resolution and stuff! but that does not seem to be the right answer! Truth is I have a vpn server and I just wanted to play some games on it! I have searched a lot but no one seems to have the knowledge! so I came here. The games don't seem to be sending broadcast messages correctly, however they can connect directly via NAT IP address (Say 192.168.1.6). So the configuration of the server must not be wrong, otherwise they would not even connect! Is there something wrong with windows VPN? There are some other VPN softwares who support broadcasting completely. I have no idea how to fix this issue which is not a small one!
P.S. The games are Counter Strike and War Craft III if it will help the answers! | 2 |
6,251,205 | 06/06/2011 11:16:12 | 389,428 | 07/12/2010 11:23:25 | 60 | 5 | Singlton is Violated or Not? | While we are creating the class using SingltonPattern am uable to clone in the same class
It means the SingletonPattern rule violated can any one please clarify my doubt.
My Code is:
class SingletonObject implements Cloneable
{
private SingletonObject()
{
// no code req'd
}
public static SingletonObject getSingletonObject()
{
SingletonObject obj = null;
if (ref == null){
// it's ok, we can call this constructor
ref = new SingletonObject();
try {
obj = (SingletonObject)ref.clone();
if(obj.equals(ref)){
System.out.println("both objects are same");
}else{
System.out.println("both objects are not same");
}
} catch (CloneNotSupportedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return obj;
}
private static SingletonObject ref;
} | java | null | null | null | null | 06/08/2011 00:46:03 | not a real question | Singlton is Violated or Not?
===
While we are creating the class using SingltonPattern am uable to clone in the same class
It means the SingletonPattern rule violated can any one please clarify my doubt.
My Code is:
class SingletonObject implements Cloneable
{
private SingletonObject()
{
// no code req'd
}
public static SingletonObject getSingletonObject()
{
SingletonObject obj = null;
if (ref == null){
// it's ok, we can call this constructor
ref = new SingletonObject();
try {
obj = (SingletonObject)ref.clone();
if(obj.equals(ref)){
System.out.println("both objects are same");
}else{
System.out.println("both objects are not same");
}
} catch (CloneNotSupportedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return obj;
}
private static SingletonObject ref;
} | 1 |
7,207,041 | 08/26/2011 15:25:15 | 835,038 | 07/08/2011 08:54:05 | 143 | 2 | Looking for Locations API (c#) | In my app i am allowing users to enter there current city, for that i need an organised list of countries, states and cities on my server.
I am looking for an api that's available on net through which i get download orgainsed list of countries, states and cities. | c# | null | null | null | null | null | open | Looking for Locations API (c#)
===
In my app i am allowing users to enter there current city, for that i need an organised list of countries, states and cities on my server.
I am looking for an api that's available on net through which i get download orgainsed list of countries, states and cities. | 0 |
8,276 | 08/11/2008 22:12:04 | 923 | 08/10/2008 14:25:39 | 11 | 1 | Class::DBI-like library for php? | I have inherited an old crusty PHP application, and I'd like to refactor it into something a little nicer to deal with, but in a gradual manner. In perl's CPAN, there is a series of classes around Class::DBI that allow you to use database rows as the basis for objects in your code, with the library generating accessor methods etc as appropriate, but also allowing you to add additional methods.
Does anyone know of something like this for PHP? Especially something that doesn't require wholesale adoption of a "framework"... bonus points if it works in PHP4 too, but to be honest, I'd love to have another reason to ditch that. :-) | perl | php | null | null | null | null | open | Class::DBI-like library for php?
===
I have inherited an old crusty PHP application, and I'd like to refactor it into something a little nicer to deal with, but in a gradual manner. In perl's CPAN, there is a series of classes around Class::DBI that allow you to use database rows as the basis for objects in your code, with the library generating accessor methods etc as appropriate, but also allowing you to add additional methods.
Does anyone know of something like this for PHP? Especially something that doesn't require wholesale adoption of a "framework"... bonus points if it works in PHP4 too, but to be honest, I'd love to have another reason to ditch that. :-) | 0 |
9,414,212 | 02/23/2012 13:41:17 | 1,094,259 | 12/12/2011 17:40:05 | 416 | 5 | Why only 1 image out of 2 is correctly read by tesseract? | It's my first experience with tesseract, I'm trying to read the digits contained in these tiff images:
http://imageshack.us/g/703/64553021.png/
As you can see they are in the same format and also same width/height. I don't know why tesseract returns the correct output only for the second image ("150") instead for the first one returns a blank output.
Maybe I should modify them to best fit tesseract? How? I can use Imagemagick if needed.
Thanks in advance. | image | unix | image-processing | null | null | null | open | Why only 1 image out of 2 is correctly read by tesseract?
===
It's my first experience with tesseract, I'm trying to read the digits contained in these tiff images:
http://imageshack.us/g/703/64553021.png/
As you can see they are in the same format and also same width/height. I don't know why tesseract returns the correct output only for the second image ("150") instead for the first one returns a blank output.
Maybe I should modify them to best fit tesseract? How? I can use Imagemagick if needed.
Thanks in advance. | 0 |
7,504,957 | 09/21/2011 18:43:34 | 781,495 | 06/02/2011 16:28:46 | 26 | 2 | Trying to change timeouts in nginx.conf | Hey friendly stackoverflowians – I can't crack a timeout issue; I'm a server noob, so the problem is probably obvious but beyond me. Setup is passenger-nginx-haproxy, using rubber, and I want to increase the minute timeout, but I can't seem to change it any direction.
For example, while debugging, I wrote a request that takes ~65 seconds to process, and changed the nginx config to have 10s timeouts (nginx.conf: https://gist.github.com/1232881). I've restarted the server, and the timeout still only comes after a minute, like before. I know that changes to the conf work, because I changed one of the log file locations and it worked fine. Any thoughts, folks? Thank you! | nginx | passenger | haproxy | null | null | 09/22/2011 20:42:03 | off topic | Trying to change timeouts in nginx.conf
===
Hey friendly stackoverflowians – I can't crack a timeout issue; I'm a server noob, so the problem is probably obvious but beyond me. Setup is passenger-nginx-haproxy, using rubber, and I want to increase the minute timeout, but I can't seem to change it any direction.
For example, while debugging, I wrote a request that takes ~65 seconds to process, and changed the nginx config to have 10s timeouts (nginx.conf: https://gist.github.com/1232881). I've restarted the server, and the timeout still only comes after a minute, like before. I know that changes to the conf work, because I changed one of the log file locations and it worked fine. Any thoughts, folks? Thank you! | 2 |
10,000,548 | 04/03/2012 20:06:00 | 224,982 | 12/04/2009 18:25:01 | 91 | 6 | tcl use variable in namespace name | Tcl 8.4.
I have this `namespace` tree:
namespace eval menu_tree {
#--------------------------------------------------------------------------
## Main Menu
namespace eval main_menu {
variable title "Main Menu"
}
#--------------------------------------------------------------------------
## Setup Menu
namespace eval setup_menu {
variable title "Show Setup Information"
}
#--------------------------------------------------------------------------
## Help Menu
namespace eval help_menu {
variable title "Show Help Information"
}
}
The idea was to have a function like this:
proc print_title {menu} {
puts $menu::title
}
This would work fine with global variables. However, from what I can find, using '$' with namespace names is required. I have tried to find the answer on the web, but nothing came up.
Does anyone know how to do it, and if it is even possible?
Thank you,
-Ilya.
| tcl | null | null | null | null | null | open | tcl use variable in namespace name
===
Tcl 8.4.
I have this `namespace` tree:
namespace eval menu_tree {
#--------------------------------------------------------------------------
## Main Menu
namespace eval main_menu {
variable title "Main Menu"
}
#--------------------------------------------------------------------------
## Setup Menu
namespace eval setup_menu {
variable title "Show Setup Information"
}
#--------------------------------------------------------------------------
## Help Menu
namespace eval help_menu {
variable title "Show Help Information"
}
}
The idea was to have a function like this:
proc print_title {menu} {
puts $menu::title
}
This would work fine with global variables. However, from what I can find, using '$' with namespace names is required. I have tried to find the answer on the web, but nothing came up.
Does anyone know how to do it, and if it is even possible?
Thank you,
-Ilya.
| 0 |
7,937,096 | 10/29/2011 04:55:28 | 1,248,202 | 04/06/2011 16:03:08 | 8 | 0 | Mysql Query Help is needed | I have 2 tables one tblAssociate and tblData. The link between them is one to many. My search will be based on date time range where if I find even one data in tblData between the set range then I want to show the tblAssociate data. Any idea how to solve this? | mysql | null | null | null | null | 10/29/2011 05:02:53 | not a real question | Mysql Query Help is needed
===
I have 2 tables one tblAssociate and tblData. The link between them is one to many. My search will be based on date time range where if I find even one data in tblData between the set range then I want to show the tblAssociate data. Any idea how to solve this? | 1 |
11,679,370 | 07/26/2012 23:13:45 | 1,553,553 | 07/26/2012 05:31:44 | 1 | 0 | Android removing the background after select? | I'm wondering if I can remove my imageview background after I select an image
example ..
the imageview has a background photo written in it insert an image
and when I choose an image from the gallery or the camera
and it gets inserted in the imageview by the "choosenBitmap"
but the imageview background is still there , and I want to remove it
I have try "imageView.remove(background);"
and "remove.background"
but no results | android | background | bitmap | imageview | null | null | open | Android removing the background after select?
===
I'm wondering if I can remove my imageview background after I select an image
example ..
the imageview has a background photo written in it insert an image
and when I choose an image from the gallery or the camera
and it gets inserted in the imageview by the "choosenBitmap"
but the imageview background is still there , and I want to remove it
I have try "imageView.remove(background);"
and "remove.background"
but no results | 0 |
10,022,033 | 04/05/2012 02:48:34 | 1,287,402 | 03/23/2012 03:03:17 | 1 | 1 | JQuery Avoid Null in URL? | I was just wondering if there's any way I can avoid parameter=null in jsp?
Will there be any function that's similar to the [Java's ? : operator][1] for Jquery?
Thanks.
[1]: http://www.cafeaulait.org/course/week2/43.html | jquery | null | null | null | null | 04/06/2012 11:43:32 | not a real question | JQuery Avoid Null in URL?
===
I was just wondering if there's any way I can avoid parameter=null in jsp?
Will there be any function that's similar to the [Java's ? : operator][1] for Jquery?
Thanks.
[1]: http://www.cafeaulait.org/course/week2/43.html | 1 |
8,867,175 | 01/15/2012 02:40:37 | 1,011,959 | 10/25/2011 02:07:19 | 69 | 4 | Send Email from .Net App without opening Desktop Mail Software or Browser? | I am writing a WPF (C#) application which takes feedback from user and send them through e-mail.
I want my program to send this mail to a fixed address without using any Desktop Mail Software (Outlook Express or Microsoft Outlook or Windows Mail or any other) & without opening any browser window.
In fact i want to send them undetected. That means user should not know about sending mails. (This is an optional requirement which can be ignored).
Anybody tell me how to do this. Thanks in advance. | c# | .net | null | null | null | null | open | Send Email from .Net App without opening Desktop Mail Software or Browser?
===
I am writing a WPF (C#) application which takes feedback from user and send them through e-mail.
I want my program to send this mail to a fixed address without using any Desktop Mail Software (Outlook Express or Microsoft Outlook or Windows Mail or any other) & without opening any browser window.
In fact i want to send them undetected. That means user should not know about sending mails. (This is an optional requirement which can be ignored).
Anybody tell me how to do this. Thanks in advance. | 0 |
10,394,289 | 05/01/2012 06:20:04 | 1,331,273 | 04/13/2012 09:57:50 | 1 | 0 | Low UILocalNotification volume for some users, any way to control it? | We have an app that uses UILocalNotification for notifying the users about events at the background.
the problem is some of the users hears the background notifications at a very low volume.
When it does happen, the only way the user can "reset" the notification volume is via a device reboot. Once that is done it comes back to a normal level.
other ways that we have tried are by changing settings outside the app:
1. using the volume buttons- changed the iPod's volume or the ringer volume, did not effect notifications volume level.
2. setting in: settings->sounds->ringer and alerts->setting to highest. did not have any effect on the notifications volume.
3. changing the volume at the iPod player: did not effect the notification volume.
4. finally restarting the iPhone - did set the notifications volume to a normal level, but it's not a good solution for the customers.
We looked for a code solution for this issue and tried many different options:
1. changing the iPod volume ([[MPMusicPlayerController iPodMusicPlayer]setVolume:1.0f])
only changed the iPod's volume and did not worked on notifications.
2. tried using [[AVAudioSession sharedInstance] setActive:YES error:NULL]; and then chaining the volume as in #1 - did not work.
3. using the volume slider "MPVolumeView" as is, this slider also did not seem to control notifications volume.
Is there a way that we can programmatically ensure that the notification volume is always at a normal audible level?
If not - what should we advise our users? A reboot always fixes this, but its a poor solution to advise to a user.
Thanks for your help!
| iphone | ios | ipad | audio | notifications | null | open | Low UILocalNotification volume for some users, any way to control it?
===
We have an app that uses UILocalNotification for notifying the users about events at the background.
the problem is some of the users hears the background notifications at a very low volume.
When it does happen, the only way the user can "reset" the notification volume is via a device reboot. Once that is done it comes back to a normal level.
other ways that we have tried are by changing settings outside the app:
1. using the volume buttons- changed the iPod's volume or the ringer volume, did not effect notifications volume level.
2. setting in: settings->sounds->ringer and alerts->setting to highest. did not have any effect on the notifications volume.
3. changing the volume at the iPod player: did not effect the notification volume.
4. finally restarting the iPhone - did set the notifications volume to a normal level, but it's not a good solution for the customers.
We looked for a code solution for this issue and tried many different options:
1. changing the iPod volume ([[MPMusicPlayerController iPodMusicPlayer]setVolume:1.0f])
only changed the iPod's volume and did not worked on notifications.
2. tried using [[AVAudioSession sharedInstance] setActive:YES error:NULL]; and then chaining the volume as in #1 - did not work.
3. using the volume slider "MPVolumeView" as is, this slider also did not seem to control notifications volume.
Is there a way that we can programmatically ensure that the notification volume is always at a normal audible level?
If not - what should we advise our users? A reboot always fixes this, but its a poor solution to advise to a user.
Thanks for your help!
| 0 |
3,780,904 | 09/23/2010 17:20:05 | 451,748 | 09/08/2010 10:56:50 | 1 | 0 | c/c++ programming |
In the following code segment what will be the result of the function, value of x , value of y
{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
please explain this .how this works..from my side its answer will be "not same" but its actual answer is "same"... | homework | null | null | null | null | 09/23/2010 17:29:11 | too localized | c/c++ programming
===
In the following code segment what will be the result of the function, value of x , value of y
{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
please explain this .how this works..from my side its answer will be "not same" but its actual answer is "same"... | 3 |
7,346,262 | 09/08/2011 10:02:10 | 622,875 | 02/18/2011 09:30:41 | 67 | 8 | Send mail using SMTP server | Hell Guys!
I have used SMTP server to send mail as per below
public bool SendMail(string mailFrom, string mailTo, string mailCC, string mailBCC, string subject, string body, string attachment, bool isBodyHtml)
{
bool SendStatus = false;
System.Net.Mail.MailMessage mailMesg = new System.Net.Mail.MailMessage(mailFrom, mailTo);
if (mailCC != string.Empty)
mailMesg.CC.Add(mailCC);
if (mailBCC != string.Empty)
mailMesg.Bcc.Add(mailBCC);
if (!string.IsNullOrEmpty(attachment))
{
System.Net.Mail.Attachment attach = new System.Net.Mail.Attachment(attachment);
mailMesg.Attachments.Add(attach);
}
mailMesg.Subject = subject;
mailMesg.Body = body;
mailMesg.IsBodyHtml = isBodyHtml;
mailMesg.ReplyTo = new System.Net.Mail.MailAddress(mailFrom);
System.Net.Mail.SmtpClient objSMTP = new System.Net.Mail.SmtpClient();
string Host = System.Configuration.ConfigurationManager.AppSettings["MailHost"].ToString();
string UserName = System.Configuration.ConfigurationManager.AppSettings["MailUserId"].ToString();
string password = System.Configuration.ConfigurationManager.AppSettings["MailPassword"].ToString();
objSMTP.Host = Host;
objSMTP.Port = int.Parse(System.Configuration.ConfigurationManager.AppSettings["Port"].ToString());
objSMTP.Credentials = new System.Net.NetworkCredential(UserName, password);
objSMTP.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network;
try
{
objSMTP.Send(mailMesg);
SendStatus = true;
}
catch (Exception ex)
{
throw ex;
}
finally
{
mailMesg.Dispose();
mailMesg = null;
}
return SendStatus;
}
I would like to know that Is it possible to send mail without username & password ?
If possible then can anyone please suggest me how to do that? | asp.net | null | null | null | null | null | open | Send mail using SMTP server
===
Hell Guys!
I have used SMTP server to send mail as per below
public bool SendMail(string mailFrom, string mailTo, string mailCC, string mailBCC, string subject, string body, string attachment, bool isBodyHtml)
{
bool SendStatus = false;
System.Net.Mail.MailMessage mailMesg = new System.Net.Mail.MailMessage(mailFrom, mailTo);
if (mailCC != string.Empty)
mailMesg.CC.Add(mailCC);
if (mailBCC != string.Empty)
mailMesg.Bcc.Add(mailBCC);
if (!string.IsNullOrEmpty(attachment))
{
System.Net.Mail.Attachment attach = new System.Net.Mail.Attachment(attachment);
mailMesg.Attachments.Add(attach);
}
mailMesg.Subject = subject;
mailMesg.Body = body;
mailMesg.IsBodyHtml = isBodyHtml;
mailMesg.ReplyTo = new System.Net.Mail.MailAddress(mailFrom);
System.Net.Mail.SmtpClient objSMTP = new System.Net.Mail.SmtpClient();
string Host = System.Configuration.ConfigurationManager.AppSettings["MailHost"].ToString();
string UserName = System.Configuration.ConfigurationManager.AppSettings["MailUserId"].ToString();
string password = System.Configuration.ConfigurationManager.AppSettings["MailPassword"].ToString();
objSMTP.Host = Host;
objSMTP.Port = int.Parse(System.Configuration.ConfigurationManager.AppSettings["Port"].ToString());
objSMTP.Credentials = new System.Net.NetworkCredential(UserName, password);
objSMTP.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network;
try
{
objSMTP.Send(mailMesg);
SendStatus = true;
}
catch (Exception ex)
{
throw ex;
}
finally
{
mailMesg.Dispose();
mailMesg = null;
}
return SendStatus;
}
I would like to know that Is it possible to send mail without username & password ?
If possible then can anyone please suggest me how to do that? | 0 |
3,581,792 | 08/27/2010 06:17:33 | 409,573 | 08/03/2010 10:59:48 | 11 | 0 | I have created inverted index for a website but where to store that? Database for a search engine? | What can be the database for a search engine? I mean after creating inverted index for a site, where one could store it so that program can create indices for other sites and save them too. Later on indexer can query them also.
Because indices can range in thousands of billions.
Thanksyou | database | search-engine | inverted-index | null | null | null | open | I have created inverted index for a website but where to store that? Database for a search engine?
===
What can be the database for a search engine? I mean after creating inverted index for a site, where one could store it so that program can create indices for other sites and save them too. Later on indexer can query them also.
Because indices can range in thousands of billions.
Thanksyou | 0 |
6,072,623 | 05/20/2011 13:30:14 | 762,811 | 05/20/2011 13:30:14 | 1 | 0 | Google Maps or Bing Maps or ? | Due to the planned unavailability from November 8th, 2011 of the free Multimap API I'm using since several years on my Web site (http://www.vehicall.com), I need to choose another (free ?) mapping solution provider before that deadline to simply display a map (world-wide coverage required), to be able to zoom till the street level on it and to get the latitudes and longitudes of the map corners of the displayed map, that's all :-)
Please be kind enough to let me know which one you recommend with AJAX and/or Javascript which I'm using as programmation languages...
Thanks in advance for your appreciated help and regards,
Germain
| javascript | ajax | api | maps | free | 05/20/2011 13:36:47 | not constructive | Google Maps or Bing Maps or ?
===
Due to the planned unavailability from November 8th, 2011 of the free Multimap API I'm using since several years on my Web site (http://www.vehicall.com), I need to choose another (free ?) mapping solution provider before that deadline to simply display a map (world-wide coverage required), to be able to zoom till the street level on it and to get the latitudes and longitudes of the map corners of the displayed map, that's all :-)
Please be kind enough to let me know which one you recommend with AJAX and/or Javascript which I'm using as programmation languages...
Thanks in advance for your appreciated help and regards,
Germain
| 4 |
10,101,990 | 04/11/2012 07:54:53 | 1,221,631 | 02/20/2012 17:12:58 | 24 | 0 | creating java generics stack class from C++ stack class | #include <cstdlib>
#include<iostream>
using namespace std;
template <typename T>
class stack
{
public:
T arr[100];
int top;
stack()
{
top=-1;
}
public:
void push(T x)
{
if(top==99)
cout<<"overflow";
else
arr[++top]=x;
}
public :
T pop(void)
{
if(top==-1)
return 0;
else
return arr[top--];
}
};
int main(int argc, char** argv)
{
stack <int> s;
int x;
cout<<"\nEnter no : ";
cin>>x;
s.push(x);
x=s.pop();
cout<<"Element popped : "<<x;
return 0;
}
this is my C++ code for a stack class of variable data type. Its does basic function of pop,push. I want to convert this code to java generics . As i am not very much familiar with java generics . please help me | java | templates | generics | null | null | null | open | creating java generics stack class from C++ stack class
===
#include <cstdlib>
#include<iostream>
using namespace std;
template <typename T>
class stack
{
public:
T arr[100];
int top;
stack()
{
top=-1;
}
public:
void push(T x)
{
if(top==99)
cout<<"overflow";
else
arr[++top]=x;
}
public :
T pop(void)
{
if(top==-1)
return 0;
else
return arr[top--];
}
};
int main(int argc, char** argv)
{
stack <int> s;
int x;
cout<<"\nEnter no : ";
cin>>x;
s.push(x);
x=s.pop();
cout<<"Element popped : "<<x;
return 0;
}
this is my C++ code for a stack class of variable data type. Its does basic function of pop,push. I want to convert this code to java generics . As i am not very much familiar with java generics . please help me | 0 |
10,417,911 | 05/02/2012 16:32:06 | 279,695 | 02/23/2010 17:29:20 | 770 | 4 | RDF, Triples, and Semantic Web in everyday apps | Vague, uninformed questions:
1: Why do nearly 100% of app developers, app development communities and literature (books, tutorials, etc) take for-granted that you want to express data using either a relational database or a key-value store?
2: Why isn't everybody using "Triple" data structures?
3: Aren't Triples applicable to every problem that relational databses and key-balue stores, and aren't Triples at least as easy to work with in every case? | rdf | semantic-web | triples | null | null | null | open | RDF, Triples, and Semantic Web in everyday apps
===
Vague, uninformed questions:
1: Why do nearly 100% of app developers, app development communities and literature (books, tutorials, etc) take for-granted that you want to express data using either a relational database or a key-value store?
2: Why isn't everybody using "Triple" data structures?
3: Aren't Triples applicable to every problem that relational databses and key-balue stores, and aren't Triples at least as easy to work with in every case? | 0 |
3,948,485 | 10/16/2010 10:21:11 | 465,607 | 10/04/2010 08:25:31 | 12 | 0 | Accessing Videos in library using AssestsLibrary framework iPhone?? | i am trying to access videos in iPhone library using AssetsLibrary Framework with the help of following code...but when i run the application the code is not working...the array assets is still empty?? what am i doing wrong??
btw my iPhone is a 3G upgraded to iPhone 4.1.(but assets framework is not giving any error)
NSMutableArray *assets = [[NSMutableArray alloc]init];
ALAssetsLibrary *library =[[ALAssetsLibrary alloc]init];
void (^assetEnumerator)(struct ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {
if(result != NULL) {
NSLog(@"See Asset: %@", result);
[assets addObject:result];
}
};
void (^assetGroupEnumerator)(struct ALAssetsGroup *, BOOL *) = ^(ALAssetsGroup *group, BOOL *stop) {
if(group != nil) {NSLog(@"dont See Asset: ");
[group enumerateAssetsUsingBlock:assetEnumerator];
}
};
assets = [[NSMutableArray alloc] init];
library = [[ALAssetsLibrary alloc] init];
[library enumerateGroupsWithTypes:ALAssetsGroupAlbum
usingBlock:assetGroupEnumerator
failureBlock: ^(NSError *error) {
NSLog(@"Failure");
}];
| iphone | ios4 | iphone-sdk-4.0 | null | null | null | open | Accessing Videos in library using AssestsLibrary framework iPhone??
===
i am trying to access videos in iPhone library using AssetsLibrary Framework with the help of following code...but when i run the application the code is not working...the array assets is still empty?? what am i doing wrong??
btw my iPhone is a 3G upgraded to iPhone 4.1.(but assets framework is not giving any error)
NSMutableArray *assets = [[NSMutableArray alloc]init];
ALAssetsLibrary *library =[[ALAssetsLibrary alloc]init];
void (^assetEnumerator)(struct ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {
if(result != NULL) {
NSLog(@"See Asset: %@", result);
[assets addObject:result];
}
};
void (^assetGroupEnumerator)(struct ALAssetsGroup *, BOOL *) = ^(ALAssetsGroup *group, BOOL *stop) {
if(group != nil) {NSLog(@"dont See Asset: ");
[group enumerateAssetsUsingBlock:assetEnumerator];
}
};
assets = [[NSMutableArray alloc] init];
library = [[ALAssetsLibrary alloc] init];
[library enumerateGroupsWithTypes:ALAssetsGroupAlbum
usingBlock:assetGroupEnumerator
failureBlock: ^(NSError *error) {
NSLog(@"Failure");
}];
| 0 |
9,145,567 | 02/04/2012 23:30:40 | 1,190,012 | 02/04/2012 23:23:32 | 1 | 0 | IE7 float makes kind of line break and puts other divs under it | hi i had a problem several times while dealing with floats in IE here is an example of what i mean note that this example works in Firefox and Chrome
index.html
<html>
<link href="style.css" rel="stylesheet" type="text/css" />
<body>
<div class="some_box">
<div class="upper_red_box"></div>
<div class="title_bg">
<div class="title">hi im here </div>
</div>
</div>
</body>
</html>
style.css
div.some_box{
width:700px;
height:400px;
background-color:#f3f3f5;
}
div.upper_red_box{
width:10px;
height:70px;
background-color:#ac0061;
float:right;
}
div.title_bg{
background-color:#c1c1c1;
width:600px;
height:70px;
margin-left:100px;
}
div.title{
color:#f3f3f5;
font-family:impact , Verdana, Geneva, sans-serif;
font-size:24px;
padding-left:10px;
padding-top:20px;
}
thanks in advance for your help :) | html | css | null | null | null | 02/06/2012 02:08:46 | not a real question | IE7 float makes kind of line break and puts other divs under it
===
hi i had a problem several times while dealing with floats in IE here is an example of what i mean note that this example works in Firefox and Chrome
index.html
<html>
<link href="style.css" rel="stylesheet" type="text/css" />
<body>
<div class="some_box">
<div class="upper_red_box"></div>
<div class="title_bg">
<div class="title">hi im here </div>
</div>
</div>
</body>
</html>
style.css
div.some_box{
width:700px;
height:400px;
background-color:#f3f3f5;
}
div.upper_red_box{
width:10px;
height:70px;
background-color:#ac0061;
float:right;
}
div.title_bg{
background-color:#c1c1c1;
width:600px;
height:70px;
margin-left:100px;
}
div.title{
color:#f3f3f5;
font-family:impact , Verdana, Geneva, sans-serif;
font-size:24px;
padding-left:10px;
padding-top:20px;
}
thanks in advance for your help :) | 1 |
10,085,133 | 04/10/2012 07:57:48 | 1,249,370 | 03/05/2012 08:22:08 | 1 | 0 | Inkscape : crossing connectors | I'd like to know if there is a way to make a little "bridge" when two connectors cross each others and are not connected, in inkscape. (as we often see in schematic representations of electronic circuits)
Thanks
jeannot | connector | inkscape | null | null | null | 04/11/2012 23:32:11 | off topic | Inkscape : crossing connectors
===
I'd like to know if there is a way to make a little "bridge" when two connectors cross each others and are not connected, in inkscape. (as we often see in schematic representations of electronic circuits)
Thanks
jeannot | 2 |
8,315,047 | 11/29/2011 17:27:08 | 848,550 | 07/17/2011 09:40:19 | 129 | 3 | jQuery UI Library: is it worth of using? | Everybody knows jQuery and jQuery UI.
About the second one.
It is stable, well documented and tested on all major browsers, including IE6.
But with all this benefits there are some disadvantages.
The most serious disadvantage that it is too heavy (~200kb compressed).
So, if to use jQuery + jQuery UI, first site's page will contain at least 300kb of only js code. Time of loading will increase a lot.
I was faced with a difficult choice: use jQuery UI (I need such widgets: tabs, dialogs, autocomplete, datapicker) or search all these components separately on internet with all challenges I can meet (bugs, IE bugs, poor functionality and so on)...
Could anybody show serious web projects using jQuery UI Library? Really serious, like stackoverflow or github.
I really do not know what to do?
I will appreciate any advice!!!
| jquery | jquery-ui | null | null | null | 11/29/2011 19:00:50 | not constructive | jQuery UI Library: is it worth of using?
===
Everybody knows jQuery and jQuery UI.
About the second one.
It is stable, well documented and tested on all major browsers, including IE6.
But with all this benefits there are some disadvantages.
The most serious disadvantage that it is too heavy (~200kb compressed).
So, if to use jQuery + jQuery UI, first site's page will contain at least 300kb of only js code. Time of loading will increase a lot.
I was faced with a difficult choice: use jQuery UI (I need such widgets: tabs, dialogs, autocomplete, datapicker) or search all these components separately on internet with all challenges I can meet (bugs, IE bugs, poor functionality and so on)...
Could anybody show serious web projects using jQuery UI Library? Really serious, like stackoverflow or github.
I really do not know what to do?
I will appreciate any advice!!!
| 4 |
3,983,156 | 10/20/2010 23:36:35 | 482,383 | 10/20/2010 23:36:35 | 1 | 0 | ¿Cómo configurar un cliente WCF mediante wsDualHttpBinding en el código? | Buenas, vi el post con la solucion propuesta:
http://stackoverflow.com/questions/497209/how-to-set-up-a-wcf-client-using-wsdualhttpbinding-in-code
pero no me queda claro que es el CommServiceClient al que hace referencia cuando habla de crear el service client, algun ejemplo?
| c# | .net | wcf | web-services | bindingsource | 10/20/2010 23:43:40 | not a real question | ¿Cómo configurar un cliente WCF mediante wsDualHttpBinding en el código?
===
Buenas, vi el post con la solucion propuesta:
http://stackoverflow.com/questions/497209/how-to-set-up-a-wcf-client-using-wsdualhttpbinding-in-code
pero no me queda claro que es el CommServiceClient al que hace referencia cuando habla de crear el service client, algun ejemplo?
| 1 |
6,554,485 | 07/02/2011 01:01:13 | 825,676 | 07/02/2011 01:01:13 | 1 | 0 | Can you DD an Xbox 360 Hard Drive? | I've had a first gen Xbox since the first month it came out, and it is still in great condition, but the new bleeding edge games (i.e. L.A. Noire) are starting not to play. I have a bunch of XBLA games and saves on my hard drive, but a new Xbox 360 comes with a new drive that is at least twice the amount of storage. Can I just DD my old hard drive onto my new one? Or does the custom firmware of Xbox hard drives prevent such a simple solution? | harddrive | xbox | dd | null | null | 07/02/2011 02:01:57 | off topic | Can you DD an Xbox 360 Hard Drive?
===
I've had a first gen Xbox since the first month it came out, and it is still in great condition, but the new bleeding edge games (i.e. L.A. Noire) are starting not to play. I have a bunch of XBLA games and saves on my hard drive, but a new Xbox 360 comes with a new drive that is at least twice the amount of storage. Can I just DD my old hard drive onto my new one? Or does the custom firmware of Xbox hard drives prevent such a simple solution? | 2 |
10,803,424 | 05/29/2012 16:51:27 | 1,423,966 | 05/29/2012 14:37:33 | 1 | 0 | .Net UDP using multithreading | I have several vehicles that send a data via GPS to the server after every 10 seconds and the server should be listening and decode the data to store in the database (Sql Server). There will be hundreds of entries per minute. I have a single threaded code for now which is not really helpful. Few entries get dropped off during the process time of one entry. I want to create a multithreaded code so that when one thread is busy processing, the packet is moved to the next available thread.
To my knowledge and after looking into several forums, I realized that "yield" would help solving this issue. But I could not find proper examples as to how yield can be used?
Can someone help me with this by posting some examples?
| .net | null | null | null | null | null | open | .Net UDP using multithreading
===
I have several vehicles that send a data via GPS to the server after every 10 seconds and the server should be listening and decode the data to store in the database (Sql Server). There will be hundreds of entries per minute. I have a single threaded code for now which is not really helpful. Few entries get dropped off during the process time of one entry. I want to create a multithreaded code so that when one thread is busy processing, the packet is moved to the next available thread.
To my knowledge and after looking into several forums, I realized that "yield" would help solving this issue. But I could not find proper examples as to how yield can be used?
Can someone help me with this by posting some examples?
| 0 |
4,742,449 | 01/20/2011 00:56:34 | 34,824 | 11/05/2008 20:09:26 | 8,028 | 312 | New to WPF Data Binding | I'm new to WPF Data binding, and a bit stuck.<br>
Apparently my textbox is not correctly bound to the data element I intend, and I cannot figure out why.
First in my `MainWindow.xaml` file, I declare an object:
<Window.Resources>
<local:Aircraft x:Key="Aircraft"/>
</Window.Resources>
This creates an object of type Aircraft during `MainWindow.InitializeComponent()`<br>
(I can verify this by putting a breakpoint on the constructor of Aircraft)
Class `Aircraft` is defined in a `.cs` file, with property `Pilot` which has property `Weight`, so that `myAircraft.Pilot.Weight` is an `int`.
Next, I try to bind a textbox to this property:
<TextBox Name="PICWeight" DataContext="{Binding Source={StaticResource Aircraft}, Path=Pilot.Weight}" />
The application compiles and runs, but when I put numeric text into the textbox, then move the focus to another textbox, I expect to see the `setter` for `Pilot.Weight` get called (I have a breakpoint on it). It doesn't.
I believe that there should be a default ValueConverter from String (from the textbox) to int (the type of the Weight property), and that textboxes should have default update-source event of `LostFocus`.
Am I specifying the binding properly?<br>
Do I need to create a ValueConverter, or explicitly specify the update event?<br>
Is there anything else I'm doing wrong? | c# | wpf | data-binding | null | null | null | open | New to WPF Data Binding
===
I'm new to WPF Data binding, and a bit stuck.<br>
Apparently my textbox is not correctly bound to the data element I intend, and I cannot figure out why.
First in my `MainWindow.xaml` file, I declare an object:
<Window.Resources>
<local:Aircraft x:Key="Aircraft"/>
</Window.Resources>
This creates an object of type Aircraft during `MainWindow.InitializeComponent()`<br>
(I can verify this by putting a breakpoint on the constructor of Aircraft)
Class `Aircraft` is defined in a `.cs` file, with property `Pilot` which has property `Weight`, so that `myAircraft.Pilot.Weight` is an `int`.
Next, I try to bind a textbox to this property:
<TextBox Name="PICWeight" DataContext="{Binding Source={StaticResource Aircraft}, Path=Pilot.Weight}" />
The application compiles and runs, but when I put numeric text into the textbox, then move the focus to another textbox, I expect to see the `setter` for `Pilot.Weight` get called (I have a breakpoint on it). It doesn't.
I believe that there should be a default ValueConverter from String (from the textbox) to int (the type of the Weight property), and that textboxes should have default update-source event of `LostFocus`.
Am I specifying the binding properly?<br>
Do I need to create a ValueConverter, or explicitly specify the update event?<br>
Is there anything else I'm doing wrong? | 0 |
7,156,955 | 08/23/2011 06:13:58 | 364,253 | 06/11/2010 06:17:17 | 841 | 8 | === vs == vs equal? vs eql? [RUby] | I am trying to understand the difference between these four methods. I know by default that == calls the method equal? which returns true when both operands refer to exactly the same object.
=== by defaults also calls == which calls equal?... okay so if all these three mathods are not overriden then i guess
===,== and equal? do exactly the same thing?
Now comes eql? what does this do (by default)? does it call make a call to the operand's hash/ id?
Why does Ruby have so many equality signs? Are they suppose to differ in semantics?
| ruby | null | null | null | null | null | open | === vs == vs equal? vs eql? [RUby]
===
I am trying to understand the difference between these four methods. I know by default that == calls the method equal? which returns true when both operands refer to exactly the same object.
=== by defaults also calls == which calls equal?... okay so if all these three mathods are not overriden then i guess
===,== and equal? do exactly the same thing?
Now comes eql? what does this do (by default)? does it call make a call to the operand's hash/ id?
Why does Ruby have so many equality signs? Are they suppose to differ in semantics?
| 0 |
2,300,790 | 02/20/2010 02:22:43 | 273,163 | 02/15/2010 00:15:06 | 8 | 1 | What percentage of project hours should be developer development (non-meeting) for maximum output. | I'm working on a typical internal web/database app for a large corporation. By typical, I mean, a project that was projected to be 4 months and $300,000 looks like its going to be **9 months and $1,000,000.**
IMHO, one reason for gross over-run is the ratio of functional people to developers, 3.5 to 2 (PM, BA, QA, and a scrum master that comes to every meeting.) About 250k of 600k has been billed by developers but at least half of that is developers sitting in meetings with functional people trying build consensus with functionaly people who are not very analytically inclined.
**Many hours are also spent with the BA meeting with customers** and getting buy-in for an overly complicated system that focus more on the edge cases than the core functionality. Given enough time these people will redesign the wheel as a square for fear that a round wheel might role away!
One issue here is that the BA, QA, and PM aren't geeks and the users are staff level, mostly non-technical people. For each hour of meetings and talk and consesus building, I have to spend two hours conviencing them that they are trying to build all the flaws of a paper system into a digital system and that the power of a digital system is that 90% of the controls established by the paper system aren't necessary.
The long and short of it is that I feel like I **could write a version of the system with 90% fuctionality in 2 months** if they would just leave me alone. Granted, it might be the wrong system but given another month or two, I'm confident that I could get it right.
So I am wondering, **"what is your opinion of the optimal functional hours to developer hours on a project?"** Also, "Is there any published guidance on this"
Thanks for your thoughts,
Dan | staffing | project-management | allocation | null | null | 02/20/2010 06:51:59 | off topic | What percentage of project hours should be developer development (non-meeting) for maximum output.
===
I'm working on a typical internal web/database app for a large corporation. By typical, I mean, a project that was projected to be 4 months and $300,000 looks like its going to be **9 months and $1,000,000.**
IMHO, one reason for gross over-run is the ratio of functional people to developers, 3.5 to 2 (PM, BA, QA, and a scrum master that comes to every meeting.) About 250k of 600k has been billed by developers but at least half of that is developers sitting in meetings with functional people trying build consensus with functionaly people who are not very analytically inclined.
**Many hours are also spent with the BA meeting with customers** and getting buy-in for an overly complicated system that focus more on the edge cases than the core functionality. Given enough time these people will redesign the wheel as a square for fear that a round wheel might role away!
One issue here is that the BA, QA, and PM aren't geeks and the users are staff level, mostly non-technical people. For each hour of meetings and talk and consesus building, I have to spend two hours conviencing them that they are trying to build all the flaws of a paper system into a digital system and that the power of a digital system is that 90% of the controls established by the paper system aren't necessary.
The long and short of it is that I feel like I **could write a version of the system with 90% fuctionality in 2 months** if they would just leave me alone. Granted, it might be the wrong system but given another month or two, I'm confident that I could get it right.
So I am wondering, **"what is your opinion of the optimal functional hours to developer hours on a project?"** Also, "Is there any published guidance on this"
Thanks for your thoughts,
Dan | 2 |
10,580,749 | 05/14/2012 09:35:02 | 1,028,180 | 11/03/2011 16:56:16 | 22 | 0 | Raphael.js - bbox is too big using a custom font | I have the problem, that when I create a text with a custon font, that the bounding-box is too big. When I use standard-font everything is allright.
Anyone an idea? | javascript | text | fonts | raphael | bounding-box | 05/18/2012 18:36:39 | not a real question | Raphael.js - bbox is too big using a custom font
===
I have the problem, that when I create a text with a custon font, that the bounding-box is too big. When I use standard-font everything is allright.
Anyone an idea? | 1 |
8,877,972 | 01/16/2012 09:32:31 | 1,149,502 | 01/14/2012 16:59:23 | 1 | 0 | Connecting Guest ~> Host And GUEST ~> GUEST | I tried all of the ways I wanna connect Guest ~> Host And GUEST ~> GUEST to use exploits on metasploit ! I don't what's going on !
Thanks in advance
| virtual-machine | virtualbox | metasploit | null | null | 01/18/2012 03:10:28 | not a real question | Connecting Guest ~> Host And GUEST ~> GUEST
===
I tried all of the ways I wanna connect Guest ~> Host And GUEST ~> GUEST to use exploits on metasploit ! I don't what's going on !
Thanks in advance
| 1 |
2,645,670 | 04/15/2010 13:32:16 | 66,084 | 02/13/2009 14:16:54 | 263 | 5 | Perf4j Not Logging to Separate File | I setup some stop watch calls in my code to measure some code blocks and all the messages are going into my primary log and not into the timing log. The perfStats.log file gets created just fine but all the messages go to the root log which I didn't think was supposed to happen according to the docs I've read. Is there something obvious I'm missing here?
Example log4j.xml
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="STDOUT-DEBUG" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%t]%x %M (%F:%L) - %m%n"/>
</layout>
</appender>
<!-- Perf4J appenders -->
<!--
This AsyncCoalescingStatisticsAppender groups StopWatch log messages
into GroupedTimingStatistics messages which it sends on the
file appender defined below
-->
<appender name="CoalescingStatistics"
class="org.perf4j.log4j.AsyncCoalescingStatisticsAppender">
<!--
The TimeSlice option is used to determine the time window for which
all received StopWatch logs are aggregated to create a single
GroupedTimingStatistics log. Here we set it to 10 seconds, overriding
the default of 30000 ms
-->
<param name="TimeSlice" value="10000"/>
<appender-ref ref="fileAppender"/>
</appender>
<!-- This file appender is used to output aggregated performance statistics -->
<appender name="fileAppender" class="org.apache.log4j.FileAppender">
<param name="File" value="perfStats.log"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n"/>
</layout>
</appender>
<!-- Loggers -->
<!--
The Perf4J logger. Note that org.perf4j.TimingLogger is the value of the
org.perf4j.StopWatch.DEFAULT_LOGGER_NAME constant. Also, note that
additivity is set to false, which is usually what is desired - this means
that timing statements will only be sent to this logger and NOT to
upstream loggers.
-->
<logger name="org.perf4j.TimingLogger" additivity="false">
<level value="INFO"/>
<appender-ref ref="CoalescingStatistics"/>
</logger>
<root>
<priority value="info"/>
<appender-ref ref="STDOUT-DEBUG"/>
</root>
</log4j:configuration> | perf4j | java | log4j | performance | null | null | open | Perf4j Not Logging to Separate File
===
I setup some stop watch calls in my code to measure some code blocks and all the messages are going into my primary log and not into the timing log. The perfStats.log file gets created just fine but all the messages go to the root log which I didn't think was supposed to happen according to the docs I've read. Is there something obvious I'm missing here?
Example log4j.xml
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="STDOUT-DEBUG" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%t]%x %M (%F:%L) - %m%n"/>
</layout>
</appender>
<!-- Perf4J appenders -->
<!--
This AsyncCoalescingStatisticsAppender groups StopWatch log messages
into GroupedTimingStatistics messages which it sends on the
file appender defined below
-->
<appender name="CoalescingStatistics"
class="org.perf4j.log4j.AsyncCoalescingStatisticsAppender">
<!--
The TimeSlice option is used to determine the time window for which
all received StopWatch logs are aggregated to create a single
GroupedTimingStatistics log. Here we set it to 10 seconds, overriding
the default of 30000 ms
-->
<param name="TimeSlice" value="10000"/>
<appender-ref ref="fileAppender"/>
</appender>
<!-- This file appender is used to output aggregated performance statistics -->
<appender name="fileAppender" class="org.apache.log4j.FileAppender">
<param name="File" value="perfStats.log"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n"/>
</layout>
</appender>
<!-- Loggers -->
<!--
The Perf4J logger. Note that org.perf4j.TimingLogger is the value of the
org.perf4j.StopWatch.DEFAULT_LOGGER_NAME constant. Also, note that
additivity is set to false, which is usually what is desired - this means
that timing statements will only be sent to this logger and NOT to
upstream loggers.
-->
<logger name="org.perf4j.TimingLogger" additivity="false">
<level value="INFO"/>
<appender-ref ref="CoalescingStatistics"/>
</logger>
<root>
<priority value="info"/>
<appender-ref ref="STDOUT-DEBUG"/>
</root>
</log4j:configuration> | 0 |
7,974,287 | 11/01/2011 23:49:09 | 990,194 | 10/11/2011 19:22:56 | 44 | 0 | GLM documentation | I am using the mathematical library GML (http://glm.g-truc.net/) .
I can't find any documentation. for example:
what does this do?
glm::mat4 Projection = glm::perspective(45.0f, 1.0f, 0.1f, 100.0f);
what do the arguments represent? is it the same as "gluPerspective" (http://www.opengl.org/sdk/docs/man/xhtml/gluPerspective.xml)???
| opengl | glm | null | null | null | 11/21/2011 12:35:09 | not a real question | GLM documentation
===
I am using the mathematical library GML (http://glm.g-truc.net/) .
I can't find any documentation. for example:
what does this do?
glm::mat4 Projection = glm::perspective(45.0f, 1.0f, 0.1f, 100.0f);
what do the arguments represent? is it the same as "gluPerspective" (http://www.opengl.org/sdk/docs/man/xhtml/gluPerspective.xml)???
| 1 |
8,065,572 | 11/09/2011 13:17:25 | 973,191 | 09/30/2011 13:42:20 | 29 | 1 | Android, DLNA Projection onto Smart TVs | Any Idea of how to make DLNA projection of photos onto any smart TVs through Android Application? | android | dlna | null | null | null | 11/10/2011 16:40:17 | not a real question | Android, DLNA Projection onto Smart TVs
===
Any Idea of how to make DLNA projection of photos onto any smart TVs through Android Application? | 1 |
1,465,398 | 09/23/2009 11:24:31 | 8,003 | 09/15/2008 14:53:45 | 3,078 | 50 | git pull now broken on Snow Leopard | I recently upgraded my MacBook Pro to Snow Leopard and "git pull" returns:
rakudo $ git pull
git: 'pull' is not a git-command. See 'git --help'
Did you mean this?
shell
rakudo $ git-pull
-bash: git-pull: command not found
I've tried reinstalling via macports, but to no avail. Then I saw this
rakudo $ git --exec-path
/Users/ovid/libexec/git-core
That surprised me as that directory does not exist, nor has it ever existed. Google is not helping here. Hopefully you can :) | git | osx-snow-leopard | osx | null | null | null | open | git pull now broken on Snow Leopard
===
I recently upgraded my MacBook Pro to Snow Leopard and "git pull" returns:
rakudo $ git pull
git: 'pull' is not a git-command. See 'git --help'
Did you mean this?
shell
rakudo $ git-pull
-bash: git-pull: command not found
I've tried reinstalling via macports, but to no avail. Then I saw this
rakudo $ git --exec-path
/Users/ovid/libexec/git-core
That surprised me as that directory does not exist, nor has it ever existed. Google is not helping here. Hopefully you can :) | 0 |
5,388,042 | 03/22/2011 07:30:09 | 670,759 | 03/22/2011 07:30:09 | 1 | 0 | Checking for remote modifications using subversion | svn status gives the list of updates in my working copy. Tools like TortoiseSVN etc also show the list of remote modifications.
Is there a svn command that i can run to get a list of remote modifications given the url of the remote repository ?
Please Help
Thanks. | svn | null | null | null | null | null | open | Checking for remote modifications using subversion
===
svn status gives the list of updates in my working copy. Tools like TortoiseSVN etc also show the list of remote modifications.
Is there a svn command that i can run to get a list of remote modifications given the url of the remote repository ?
Please Help
Thanks. | 0 |
4,417,715 | 12/11/2010 16:40:52 | 501,134 | 11/08/2010 20:38:58 | 16 | 1 | Aptana Studio or Zend Studio | I want create a full website (designing and programming). And I like created it by me.
for an editor, Aptana studio is better for me or Zend Studio?
Thanks ... | aptana | zend-studio | null | null | null | 01/24/2012 11:38:29 | not constructive | Aptana Studio or Zend Studio
===
I want create a full website (designing and programming). And I like created it by me.
for an editor, Aptana studio is better for me or Zend Studio?
Thanks ... | 4 |
2,406,842 | 03/09/2010 05:19:10 | 205,930 | 11/08/2009 06:44:45 | 591 | 15 | Is JSON array parsable? | I have a YQL query that extracts data from a page and returns it to my script as JSON. The JSON is huge, and as such, here's my question:
Is JSON array parsable? So that I can iterate over the entire JSON structure? | javascript | json | yql | null | null | null | open | Is JSON array parsable?
===
I have a YQL query that extracts data from a page and returns it to my script as JSON. The JSON is huge, and as such, here's my question:
Is JSON array parsable? So that I can iterate over the entire JSON structure? | 0 |
1,975,624 | 12/29/2009 16:52:13 | 106,218 | 05/13/2009 11:22:51 | 10 | 0 | Not getting user input from TextBox | I'm starting to loose my nerves on some completely banal thing: I don't get user input from a TextBox :S
I do something like this (code behind aspx):
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
this._presenter.OnViewInitialized();
}
this._presenter.OnViewLoaded();
txtBox1.Text = "blah";
}
protected void Button1_Click(object sender, EventArgs e)
{
//Do sth with txtBox1.Text but when I read it, it is still the same as when a loaded the page at Page_Load, So if I entered "blahblah" in the txtBox1 via browser the text I get when I debug or run is still "blah"
}
And the aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InsertStudent.aspx.cs" Inherits="IzPT.Vb.Views.InsertStudent"
Title="VnosProfesorja" MasterPageFile="~/Shared/DefaultMaster.master" %>
<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" Runat="Server">
<h1>Student</h1>
<p>
<table style="width:100%;">
<tr>
<td style="width: 139px">
Name</td>
<td>
<asp:TextBox ID="txtBox1" runat="server"></asp:TextBox>
</td>
</tr>
</table>
</p>
<p>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Save" />
</p>
</asp:Content>
I also tried to do this with DetailsView and bind it to a list but when I read the values in the edit mode i had the same problem.
Any ideas? | asp.net | wcsf | textbox | null | null | null | open | Not getting user input from TextBox
===
I'm starting to loose my nerves on some completely banal thing: I don't get user input from a TextBox :S
I do something like this (code behind aspx):
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
this._presenter.OnViewInitialized();
}
this._presenter.OnViewLoaded();
txtBox1.Text = "blah";
}
protected void Button1_Click(object sender, EventArgs e)
{
//Do sth with txtBox1.Text but when I read it, it is still the same as when a loaded the page at Page_Load, So if I entered "blahblah" in the txtBox1 via browser the text I get when I debug or run is still "blah"
}
And the aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InsertStudent.aspx.cs" Inherits="IzPT.Vb.Views.InsertStudent"
Title="VnosProfesorja" MasterPageFile="~/Shared/DefaultMaster.master" %>
<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" Runat="Server">
<h1>Student</h1>
<p>
<table style="width:100%;">
<tr>
<td style="width: 139px">
Name</td>
<td>
<asp:TextBox ID="txtBox1" runat="server"></asp:TextBox>
</td>
</tr>
</table>
</p>
<p>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Save" />
</p>
</asp:Content>
I also tried to do this with DetailsView and bind it to a list but when I read the values in the edit mode i had the same problem.
Any ideas? | 0 |
9,229,367 | 02/10/2012 14:32:24 | 1,180,498 | 01/31/2012 14:12:49 | 27 | 0 | Prevent Duplicate Entries in SQL | How do I prevent a duplicate entry from a text field by using SQL Query? | vb.net | sql-server-2008 | query | duplicates | null | 02/10/2012 23:30:03 | not a real question | Prevent Duplicate Entries in SQL
===
How do I prevent a duplicate entry from a text field by using SQL Query? | 1 |
10,214,593 | 04/18/2012 17:22:18 | 1,250,286 | 03/05/2012 16:26:24 | 40 | 0 | ul li limit results and show more on hover | I have a ul list generated by a PHP funcion.
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</li>
I want to "limit" results and show list in this way (in HTML pages)
Item1 - Item2 - 3 more...
The "3 more" must be shown after mouse hover.
Is that possible?
How can I do that with Jquery?
Sorry, but I'm a Jquery totally noob! Please, help!
| php | jquery | css | html-lists | null | null | open | ul li limit results and show more on hover
===
I have a ul list generated by a PHP funcion.
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</li>
I want to "limit" results and show list in this way (in HTML pages)
Item1 - Item2 - 3 more...
The "3 more" must be shown after mouse hover.
Is that possible?
How can I do that with Jquery?
Sorry, but I'm a Jquery totally noob! Please, help!
| 0 |
9,051,630 | 01/29/2012 07:24:24 | 765,720 | 05/23/2011 09:13:21 | 16 | 3 | External Samsung Monitor not working with Ubuntu 11.10 netbook | sorry for the noob-type question, but this has gotten pretty frustrating.
I am trying to get my Samsung SyncMasterEx2220 to work with my Toshiba NB305 running Ubuntu 11.10, but it doesn't seem to want to work.
It's weird, though. It moves the top bar with the wi-fi info over to the external monitor, and you can see the mouse moving, but it's all black aside from that. Everything displays as normal on the netbook display, but things load really slowly or not at all.
Is this a standard issue, or is there more information that I can give that might lead to a solution?
Thanks for the help. | ubuntu | dual-monitor | netbook | null | null | 01/29/2012 12:18:12 | off topic | External Samsung Monitor not working with Ubuntu 11.10 netbook
===
sorry for the noob-type question, but this has gotten pretty frustrating.
I am trying to get my Samsung SyncMasterEx2220 to work with my Toshiba NB305 running Ubuntu 11.10, but it doesn't seem to want to work.
It's weird, though. It moves the top bar with the wi-fi info over to the external monitor, and you can see the mouse moving, but it's all black aside from that. Everything displays as normal on the netbook display, but things load really slowly or not at all.
Is this a standard issue, or is there more information that I can give that might lead to a solution?
Thanks for the help. | 2 |
11,089,381 | 06/18/2012 19:05:54 | 991,735 | 10/12/2011 15:22:00 | 93 | 1 | Anyone know a good tutorial for building a IM server and client | I am trying to learn about computer networking and am looking for a good tutorial of how a Instant Messenger works on a client server architecture. But i can't find a decent explanation anywhere. I am looking for a quite detailed explanation as i will be building my own IM for fun. Anyone know where i should start? | python | networking | scripting | network-programming | network-protocols | 06/18/2012 19:15:05 | not a real question | Anyone know a good tutorial for building a IM server and client
===
I am trying to learn about computer networking and am looking for a good tutorial of how a Instant Messenger works on a client server architecture. But i can't find a decent explanation anywhere. I am looking for a quite detailed explanation as i will be building my own IM for fun. Anyone know where i should start? | 1 |
4,345,326 | 12/03/2010 12:03:43 | 332,258 | 05/04/2010 10:48:20 | 665 | 31 | Dependency Property has a lots of advantages over the normal CLR properties How ? | why microsoft says Dependency Property has a lots of advantages over the normal CLR properties? Is it possible to do all thing by normal properties which dependency property can do ? | wpf | null | null | null | null | null | open | Dependency Property has a lots of advantages over the normal CLR properties How ?
===
why microsoft says Dependency Property has a lots of advantages over the normal CLR properties? Is it possible to do all thing by normal properties which dependency property can do ? | 0 |
11,576,763 | 07/20/2012 09:39:13 | 1,540,325 | 07/20/2012 09:29:09 | 1 | 1 | I tried to get the current frame work of video by giving static time, but i am getting it's thumbnail, | I tried to get the current frame work of video by giving static time, but i am getting it's thumbnail, how to get screen shot of a running video in video view, I tried this stuff.
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
try {
retriever.setDataSource("/mnt/sdcard/famous.3gp");
retriever.setDataSource(FD);
return retriever.getFrameAtTime(10000, MediaMetadataRetriever.OPTION_NEXT_SYNC);
} | android-widget | null | null | null | null | null | open | I tried to get the current frame work of video by giving static time, but i am getting it's thumbnail,
===
I tried to get the current frame work of video by giving static time, but i am getting it's thumbnail, how to get screen shot of a running video in video view, I tried this stuff.
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
try {
retriever.setDataSource("/mnt/sdcard/famous.3gp");
retriever.setDataSource(FD);
return retriever.getFrameAtTime(10000, MediaMetadataRetriever.OPTION_NEXT_SYNC);
} | 0 |
10,249,011 | 04/20/2012 15:23:39 | 797,495 | 06/14/2011 10:50:03 | 1,539 | 151 | Best parctices while developing an Android APP | Most of you will probably label this is a very generic question, but sill, I feel that I should make it:
**What are the best practices while developing an android app so it can handle errors in a way that doesn't Force Close?**
I'm asking this because I'm newbie developing android apps and I'm struggling with force closes a lot... I'm guessing that must exist a way to design the APP so it can avoid force closes whenever a problem exists (ex:no internet)
Right know I'm using try/catch but it doesn't seem a very programmatic and clean way of doing thinks, **is there other options to handle exceptions besides try/catch ?**
If you guys could send links to some good documentation or some sample code on this subject I would be very appreciated! tks! | java | android | android-layout | exception-handling | try-catch | 05/23/2012 01:54:14 | not constructive | Best parctices while developing an Android APP
===
Most of you will probably label this is a very generic question, but sill, I feel that I should make it:
**What are the best practices while developing an android app so it can handle errors in a way that doesn't Force Close?**
I'm asking this because I'm newbie developing android apps and I'm struggling with force closes a lot... I'm guessing that must exist a way to design the APP so it can avoid force closes whenever a problem exists (ex:no internet)
Right know I'm using try/catch but it doesn't seem a very programmatic and clean way of doing thinks, **is there other options to handle exceptions besides try/catch ?**
If you guys could send links to some good documentation or some sample code on this subject I would be very appreciated! tks! | 4 |
7,035,177 | 08/12/2011 03:02:39 | 237,904 | 12/23/2009 21:09:31 | 208 | 3 | What's the oldest still-maintained web framework? | I'm curious as to know how far back web frameworks go (of which I can still use today).
(Just as an FYI I don't consider CGI to be a framework as much as protocol or an interface.) | history | web-frameworks | null | null | null | 08/15/2011 04:25:42 | not constructive | What's the oldest still-maintained web framework?
===
I'm curious as to know how far back web frameworks go (of which I can still use today).
(Just as an FYI I don't consider CGI to be a framework as much as protocol or an interface.) | 4 |
8,224,100 | 11/22/2011 08:49:43 | 570,928 | 01/11/2011 07:25:16 | 970 | 71 | Javascript working in IE8 but not chrome and safari and other latest browsers | Following is the javascript code
var text;
var name;
window.onload = init;
function init() {
var button = document.getElementById("submitButton");
text = document.getElementById("nameTextInput");
button.onclick = handleButtonClick;
}
function handleButtonClick() {
if (text.value == "") {
alert("oops !! Enter Name");
}
else {
var content = document.getElementById("content");
content.removeChild(h4);
content.removeChild(img);
content.removeChild(form);
name = document.getElementById("name");
name.innerHTML = text.value + ", I am tracking you at ";
getMyLocation();
}
}
When i click the button, the elements are removed but name div doesn't show anything. It works on IE8 but in chrome, safari and opera it faulters.
Following is the HTML :-
<body>
<div class="topMiddle">Locate ME ;-)
</div>
<div id="content" class="content">
<h4 id="h4">Your Name</h4>
<img id ="img" src="rows-hand-.png" alt="arrow image" height="70" width="70" />
<form id="form">
<input type="text" id="nameTextInput" size="40" placeholder="Enter your name dear" class="inputTextClass">
<input type="button" id="submitButton" value="Submit" class="inputButtonClass">
</form>
<div id="name" class="name">
</div>
<div id="user" class="user">
<div id="map_canvas"></div>
</div>
<div id="me" class="me">
</div>
</div>
</body>
Following is the CSS :-
.content
{
text-align:center;
margin-top:10px;
}
h4
{
color: #E9E9E9;
}
.inputTextClass
{
width:150px;
}
.inputButtonClass
{
margin-top:20px;
width:80px;
}
.name
{
color:#000;
font-size:16px;
} | javascript | css | html5 | null | null | null | open | Javascript working in IE8 but not chrome and safari and other latest browsers
===
Following is the javascript code
var text;
var name;
window.onload = init;
function init() {
var button = document.getElementById("submitButton");
text = document.getElementById("nameTextInput");
button.onclick = handleButtonClick;
}
function handleButtonClick() {
if (text.value == "") {
alert("oops !! Enter Name");
}
else {
var content = document.getElementById("content");
content.removeChild(h4);
content.removeChild(img);
content.removeChild(form);
name = document.getElementById("name");
name.innerHTML = text.value + ", I am tracking you at ";
getMyLocation();
}
}
When i click the button, the elements are removed but name div doesn't show anything. It works on IE8 but in chrome, safari and opera it faulters.
Following is the HTML :-
<body>
<div class="topMiddle">Locate ME ;-)
</div>
<div id="content" class="content">
<h4 id="h4">Your Name</h4>
<img id ="img" src="rows-hand-.png" alt="arrow image" height="70" width="70" />
<form id="form">
<input type="text" id="nameTextInput" size="40" placeholder="Enter your name dear" class="inputTextClass">
<input type="button" id="submitButton" value="Submit" class="inputButtonClass">
</form>
<div id="name" class="name">
</div>
<div id="user" class="user">
<div id="map_canvas"></div>
</div>
<div id="me" class="me">
</div>
</div>
</body>
Following is the CSS :-
.content
{
text-align:center;
margin-top:10px;
}
h4
{
color: #E9E9E9;
}
.inputTextClass
{
width:150px;
}
.inputButtonClass
{
margin-top:20px;
width:80px;
}
.name
{
color:#000;
font-size:16px;
} | 0 |
4,232,175 | 11/20/2010 10:03:20 | 514,371 | 11/20/2010 10:03:20 | 1 | 0 | Subversion Mixed Revisions? | My question is essentially the same as this one [here][1].
I'm using AnkhSVN in Visual Studio 2010. I was under the impression that if I committed/updated the entire solution (I spammed both commit and update with all possible combinations), then the *entire* revision, and this means *every single file in the revision* would be updated to *one global revision*.
Lets assume there are 3 files: **A**, **B**, and **C**. **A** is at revision 1, **B** is at revision 1, and **C** is at revision 1. Let's say I revise **C** 20 times. **C** is now at revision 21. But I would expect A and B to also be at revision 21. But they're not! I look at the Repository Explorer and it says **A** and **B** are *still* at revision 1, while **C** is at revision 21. I thought the concept of Subversion was to make them all at revision 21. What the heck is going on?
A side question: if this is true, and A, B, and C really *are* at revision 21 but not displayed, then how do I get, lets say...revision 14 from A and B if they jumped from revision 1 to 21 directly?
[1]: http://www.mail-archive.com/[email protected]/msg01707.html | c# | svn | visual-studio-2010 | revision | ankhsvn | null | open | Subversion Mixed Revisions?
===
My question is essentially the same as this one [here][1].
I'm using AnkhSVN in Visual Studio 2010. I was under the impression that if I committed/updated the entire solution (I spammed both commit and update with all possible combinations), then the *entire* revision, and this means *every single file in the revision* would be updated to *one global revision*.
Lets assume there are 3 files: **A**, **B**, and **C**. **A** is at revision 1, **B** is at revision 1, and **C** is at revision 1. Let's say I revise **C** 20 times. **C** is now at revision 21. But I would expect A and B to also be at revision 21. But they're not! I look at the Repository Explorer and it says **A** and **B** are *still* at revision 1, while **C** is at revision 21. I thought the concept of Subversion was to make them all at revision 21. What the heck is going on?
A side question: if this is true, and A, B, and C really *are* at revision 21 but not displayed, then how do I get, lets say...revision 14 from A and B if they jumped from revision 1 to 21 directly?
[1]: http://www.mail-archive.com/[email protected]/msg01707.html | 0 |
3,108,445 | 06/24/2010 08:53:46 | 284,272 | 03/02/2010 09:41:48 | 349 | 23 | Download URL of blackberry JDK not working, new URL? | The Software update url for eclipse to get the JDK plugin for blackberry does not seem to be working.
http://www.blackberry.com/go/eclipseUpdate
Is there a new URL to use? | blackberry | null | null | null | null | null | open | Download URL of blackberry JDK not working, new URL?
===
The Software update url for eclipse to get the JDK plugin for blackberry does not seem to be working.
http://www.blackberry.com/go/eclipseUpdate
Is there a new URL to use? | 0 |
7,494,367 | 09/21/2011 03:47:09 | 316,614 | 04/14/2010 14:43:11 | 1 | 0 | Two Droids, one won't debug from Eclipse with USB the other will | I have two Droids (same make and Model), same cable, one debugs from Eclipse over USB fine, the other does not. Again, the driver works fine for one device but not the other. When Settings: Applications : Development : USB debugging unchecked on bad device, can access SIM card fine. When checked; abd devices lists is empty and so Eclipse can't find device.
Model Number: Droid
Android Version 2.2.2
Driver: Google USB Driver package, revision 4
Dev OS: Windows 7, 64 bit
I wonder if there is something physically wrong with the bad droid? Maybe there is a setting I am missing. Could use some trouble shooting tips. Debug used to work for this phone.
Settings I have checked:
Settings: Applications : Development : USB debugging checked
Settings: Applications : Unknown Sources checked
| android | eclipse | debugging | usb | null | 09/21/2011 08:33:52 | off topic | Two Droids, one won't debug from Eclipse with USB the other will
===
I have two Droids (same make and Model), same cable, one debugs from Eclipse over USB fine, the other does not. Again, the driver works fine for one device but not the other. When Settings: Applications : Development : USB debugging unchecked on bad device, can access SIM card fine. When checked; abd devices lists is empty and so Eclipse can't find device.
Model Number: Droid
Android Version 2.2.2
Driver: Google USB Driver package, revision 4
Dev OS: Windows 7, 64 bit
I wonder if there is something physically wrong with the bad droid? Maybe there is a setting I am missing. Could use some trouble shooting tips. Debug used to work for this phone.
Settings I have checked:
Settings: Applications : Development : USB debugging checked
Settings: Applications : Unknown Sources checked
| 2 |
6,400,838 | 06/19/2011 05:55:37 | 567,736 | 01/08/2011 03:38:21 | 2,226 | 114 | MVC RouteUrl not honoring Exclude attribute | (I am using ASP.NET MVC 2.)
How do I exclude certain properties from going into the query string when using <code>Url.RouteUrl(object)</code>?
Specifically, in my Model object that is being passed to my View, I have an array of strings (technically IEnumerable<string>) I want to exclude.
I thought that the Bind attribute with Exclude was supposed to do this, but it doesn't work. I tried putting <code>[Bind(Exclude = "Sizes")]</code> on my class, but I keep getting URL's that look like this:
http://localhost/?Sizes=System.String[]
| asp.net-mvc | asp.net-mvc-2 | model-binding | exclude | null | null | open | MVC RouteUrl not honoring Exclude attribute
===
(I am using ASP.NET MVC 2.)
How do I exclude certain properties from going into the query string when using <code>Url.RouteUrl(object)</code>?
Specifically, in my Model object that is being passed to my View, I have an array of strings (technically IEnumerable<string>) I want to exclude.
I thought that the Bind attribute with Exclude was supposed to do this, but it doesn't work. I tried putting <code>[Bind(Exclude = "Sizes")]</code> on my class, but I keep getting URL's that look like this:
http://localhost/?Sizes=System.String[]
| 0 |
8,984,151 | 01/24/2012 08:58:39 | 514,612 | 11/20/2010 17:18:35 | 52 | 1 | How to use many to many in ATG | I need help to declare a many to many in ATG, I read the doc but it does not work for me I need an example or explanation.
thank you in advance | java-ee | atg | null | null | null | 01/24/2012 15:32:33 | not a real question | How to use many to many in ATG
===
I need help to declare a many to many in ATG, I read the doc but it does not work for me I need an example or explanation.
thank you in advance | 1 |
10,834,640 | 05/31/2012 13:29:48 | 289,543 | 03/09/2010 10:20:52 | 23 | 3 | Population of test data | Having population methods for test data population on the actual objects being tested, is it good or bad?
Example.
Car {
List<String> passenger;
}
List passenger is populated by Hibernate/database in the application. As such I do not need any constructors for Car. However, for testing purposes in different test classes I need to create an car with different set of passenger. And instead of doing
Car c = new Car();
c.passenger.add("Hans");
c.passenger.add("Janne");
...
I would like to have an static method
Car {
Car makeCarWithPassenger(String... passenger) {
// Make an car and populate passenger with passenger param.
}
}
However, the method makeCarWithPassenger is really only going to be used by tests, and as such is this bad since I have added "test" code to my code? Note that I need to create Car with different sets of passengers in several different test classes.
| java | testing | null | null | null | 06/02/2012 04:05:32 | not constructive | Population of test data
===
Having population methods for test data population on the actual objects being tested, is it good or bad?
Example.
Car {
List<String> passenger;
}
List passenger is populated by Hibernate/database in the application. As such I do not need any constructors for Car. However, for testing purposes in different test classes I need to create an car with different set of passenger. And instead of doing
Car c = new Car();
c.passenger.add("Hans");
c.passenger.add("Janne");
...
I would like to have an static method
Car {
Car makeCarWithPassenger(String... passenger) {
// Make an car and populate passenger with passenger param.
}
}
However, the method makeCarWithPassenger is really only going to be used by tests, and as such is this bad since I have added "test" code to my code? Note that I need to create Car with different sets of passengers in several different test classes.
| 4 |
10,152,874 | 04/14/2012 10:27:52 | 1,333,150 | 04/14/2012 10:21:52 | 1 | 0 | How to use one textbox event for other textbox event | I just want use one textbox textchanged event for anouther textbox event with diffrerent textbox. | c# | null | null | null | null | 04/15/2012 13:45:21 | not a real question | How to use one textbox event for other textbox event
===
I just want use one textbox textchanged event for anouther textbox event with diffrerent textbox. | 1 |
1,658,458 | 11/01/2009 21:47:10 | 72,443 | 03/01/2009 11:57:20 | 1,449 | 174 | Tabs jquery without jquery UI | Does anyone have any resources about creating your own tab control without using jQuery UI? | jquery | null | null | null | null | 05/03/2012 05:18:59 | off topic | Tabs jquery without jquery UI
===
Does anyone have any resources about creating your own tab control without using jQuery UI? | 2 |
8,775,431 | 01/08/2012 04:41:06 | 218,284 | 11/25/2009 03:45:12 | 384 | 7 | SAP remote access with VMware | I am new to SAP and networking. I have the following requirement. I don't know how to do it.
Requirement :
I want to install SAP on my personal laptop and provide this installation to different users as service. The other students should be able to work on different modules on SAP at same time through SAP GUI clients.
My constraints:
As I am a student and don't have much money to buy a dedicated PC for using it a s SAP server, I have to use my current laptop for my personal use and as a SAP server also. Now my laptop has windows 7 OS. For SAP to be installed I need a server OS like windows 2003 or NT something like that. I am planning use VMWare platform. So I installed the same also. I just want to ask is it advisable to do so? Can I use the SAP server installed on Windows 2003 OS which is on VMWare which is on my Win7 laptop? I need to use the server remotely on other PCs.
Now my problem is I am not able to understand how to establish LAN connection between my win7 OS and win2003 server OS on VMware.
Please suggest.... | vmware | sap | remote-access | null | null | 01/08/2012 23:24:41 | off topic | SAP remote access with VMware
===
I am new to SAP and networking. I have the following requirement. I don't know how to do it.
Requirement :
I want to install SAP on my personal laptop and provide this installation to different users as service. The other students should be able to work on different modules on SAP at same time through SAP GUI clients.
My constraints:
As I am a student and don't have much money to buy a dedicated PC for using it a s SAP server, I have to use my current laptop for my personal use and as a SAP server also. Now my laptop has windows 7 OS. For SAP to be installed I need a server OS like windows 2003 or NT something like that. I am planning use VMWare platform. So I installed the same also. I just want to ask is it advisable to do so? Can I use the SAP server installed on Windows 2003 OS which is on VMWare which is on my Win7 laptop? I need to use the server remotely on other PCs.
Now my problem is I am not able to understand how to establish LAN connection between my win7 OS and win2003 server OS on VMware.
Please suggest.... | 2 |
2,631,252 | 04/13/2010 16:20:18 | 12,178 | 09/16/2008 13:29:35 | 10,071 | 744 | Initiate call in Windows Phone 7 | I am working on a Windows Phone 7 app and I want to give the option for the user to make a call. i.e How can I initiate a call when the user press a "call" button in my app? Looking like that API is not yet exposed. | silverlight | windows-phone-7 | null | null | null | null | open | Initiate call in Windows Phone 7
===
I am working on a Windows Phone 7 app and I want to give the option for the user to make a call. i.e How can I initiate a call when the user press a "call" button in my app? Looking like that API is not yet exposed. | 0 |
6,476,473 | 06/25/2011 07:19:05 | 815,109 | 06/25/2011 07:09:41 | 1 | 0 | JSDoc Toolkit - How to specify @param and @property on same line. | Is there a way to avoid having to type two seperate lines for @property and @param if, as in the example, on the constructor the parameters and properties are identically named.
/**
* Class for representing a point in 2D space.
* @property {number} x The x coordinate of this point.
* @property {number} y The y coordinate of this point.
* @constructor
* @param {number} x The x coordinate of this point.
* @param {number} y The y coordinate of this point.
* @return {Point} A new Point
*/
Point = function (x, y)
{
this.x = x;
this.y = y;
} | javascript | documentation | documentation-generation | jsdoc | null | null | open | JSDoc Toolkit - How to specify @param and @property on same line.
===
Is there a way to avoid having to type two seperate lines for @property and @param if, as in the example, on the constructor the parameters and properties are identically named.
/**
* Class for representing a point in 2D space.
* @property {number} x The x coordinate of this point.
* @property {number} y The y coordinate of this point.
* @constructor
* @param {number} x The x coordinate of this point.
* @param {number} y The y coordinate of this point.
* @return {Point} A new Point
*/
Point = function (x, y)
{
this.x = x;
this.y = y;
} | 0 |
9,282,855 | 02/14/2012 19:19:37 | 1,090,155 | 12/09/2011 16:51:31 | 11 | 3 | Recommendation for CMS Selection | Behalf of our company , I am responsible to move blog.purdys.com to one of current powerfull CMS.
Do you have any experience and suggestion in moving current website to CMS.
Our database is MS SQLServer.Is there any Dot Net version of WordPress? Please Let me know any idea and suggestion or any CMS.
| .net | wordpress | content-management-system | dotnetnuke | null | 02/15/2012 07:15:07 | not constructive | Recommendation for CMS Selection
===
Behalf of our company , I am responsible to move blog.purdys.com to one of current powerfull CMS.
Do you have any experience and suggestion in moving current website to CMS.
Our database is MS SQLServer.Is there any Dot Net version of WordPress? Please Let me know any idea and suggestion or any CMS.
| 4 |
10,158,888 | 04/15/2012 01:33:50 | 114,581 | 05/29/2009 22:19:21 | 299 | 17 | Are Operational Transformations on the horizon for Meteor? | Given Meteor's support for eventually-consistent offline writes to data objects, automatically merging concurrent edits to the same text field seems like a natural next step. This might be done by integrating some or all of an [operational transformation](http://en.wikipedia.org/wiki/Operational_transformation) library such as [ShareJS](http://sharejs.org/).
Is there a desire in the Meteor team to support this functionality in the core product at some point, or would it more likely appear as a third-party add-on module?
Also, since ShareJS actually seems to provide the basic functionality of the Meteor data architecture (they mention in their documentation that it works with arbitrary JSON objects), would it perhaps be possible to do something like Meteor using ShareJS for data syncronization? | meteor | operational-transform | null | null | null | 04/18/2012 16:06:12 | not constructive | Are Operational Transformations on the horizon for Meteor?
===
Given Meteor's support for eventually-consistent offline writes to data objects, automatically merging concurrent edits to the same text field seems like a natural next step. This might be done by integrating some or all of an [operational transformation](http://en.wikipedia.org/wiki/Operational_transformation) library such as [ShareJS](http://sharejs.org/).
Is there a desire in the Meteor team to support this functionality in the core product at some point, or would it more likely appear as a third-party add-on module?
Also, since ShareJS actually seems to provide the basic functionality of the Meteor data architecture (they mention in their documentation that it works with arbitrary JSON objects), would it perhaps be possible to do something like Meteor using ShareJS for data syncronization? | 4 |
7,457,371 | 09/17/2011 19:51:46 | 380,719 | 07/01/2010 04:25:37 | 867 | 4 | Why is WinRT unmanaged | (I hope this question won't be closed, I am really looking for an answer)
Windows 8 introduces WinRT, which is like .NET but unmanaged.
Why is it unmanaged? Is it a performance issue? Does it mean garbare collection is not suitable for lower level APIs | windows-8 | winrt | null | null | null | 07/27/2012 13:32:43 | not constructive | Why is WinRT unmanaged
===
(I hope this question won't be closed, I am really looking for an answer)
Windows 8 introduces WinRT, which is like .NET but unmanaged.
Why is it unmanaged? Is it a performance issue? Does it mean garbare collection is not suitable for lower level APIs | 4 |
6,370,468 | 06/16/2011 10:35:04 | 574,122 | 01/13/2011 11:05:13 | 481 | 1 | Is there GUI Scala Console that I can download and run from command line? | Groovy has a nice GUI Console in which I can enter any java/groovy code and run.
This is distributed with groovy.
As for as I know Scala does not have anything like that except the pathetic shell called REPL.
Is there any third party Scala GUI Console that I can download and install and run from command line and not from a JNLP file using webstart ?
| scala | groovy | null | null | null | 06/18/2011 11:01:19 | not constructive | Is there GUI Scala Console that I can download and run from command line?
===
Groovy has a nice GUI Console in which I can enter any java/groovy code and run.
This is distributed with groovy.
As for as I know Scala does not have anything like that except the pathetic shell called REPL.
Is there any third party Scala GUI Console that I can download and install and run from command line and not from a JNLP file using webstart ?
| 4 |
7,761,182 | 10/13/2011 22:29:40 | 935,780 | 09/08/2011 21:46:05 | 49 | 1 | Why are applications so large? | I made a complex hand detection software and it totals only around 28KB storage. I have around 600 lines of code and only have 28KB. How do other software programs manage to get so big (i.e. couple of Gigabytes). I mean I understand why games are big, but I couple of days ago I found a simple picture viewer that was around 50MB. How did it manage to take up so much space? I am taking about storage not RAM
What I am basically wondering is how do programs manage to need so much storage space? | c++ | application | size | storage | null | 10/13/2011 23:48:11 | off topic | Why are applications so large?
===
I made a complex hand detection software and it totals only around 28KB storage. I have around 600 lines of code and only have 28KB. How do other software programs manage to get so big (i.e. couple of Gigabytes). I mean I understand why games are big, but I couple of days ago I found a simple picture viewer that was around 50MB. How did it manage to take up so much space? I am taking about storage not RAM
What I am basically wondering is how do programs manage to need so much storage space? | 2 |
668,232 | 03/20/2009 22:27:20 | 80,727 | 03/20/2009 22:27:20 | 1 | 0 | jQuery and Prototype conflict | I am trying to use both jQuery and Prototype at the same time.
I've spent hours and hours searching solutions to fix this problem. The most common method I found is this http://docs.jquery.com/Using_jQuery_with_Other_Libraries. However, it didn't work no matter how I place the "jQuery.noConflict()" code.
Can anyone help me with this?
Thanks in advance
/* Here is my code */
<script type="text/javascript" src="/js/swfobject.js"></script>
<script type="text/javascript" src="/js/layerswitch.js"></script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-2351815-2";
urchinTracker();
</script>
<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/js/fadeLinks.js"></script>
<script>
jQuery.noConflict();
jQuery(document).ready(function($){
$("#example").autocomplete(options);
});
</script>
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous/scriptaculous.js" type="text/javascript"></script>
<script src="js/recommended_items.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
Event.observe(window, 'load', function() {
var recommended_items = new RecommendedItems('recommended_items', <?="$store_id, $gift_registry_id" ?>);
recommended_items.setBaseURL('<?=$site_server . SITE_STANDARD ?>');
<?php if (THIS_PAGE == PRODUCT_PHP) { ?>
recommended_items.setProduct(<?="$product_id, $category_id" ?>);
<?php } ?>
recommended_items.fetchItems();
});
//]]>
</script>
| jquery | null | null | null | null | null | open | jQuery and Prototype conflict
===
I am trying to use both jQuery and Prototype at the same time.
I've spent hours and hours searching solutions to fix this problem. The most common method I found is this http://docs.jquery.com/Using_jQuery_with_Other_Libraries. However, it didn't work no matter how I place the "jQuery.noConflict()" code.
Can anyone help me with this?
Thanks in advance
/* Here is my code */
<script type="text/javascript" src="/js/swfobject.js"></script>
<script type="text/javascript" src="/js/layerswitch.js"></script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-2351815-2";
urchinTracker();
</script>
<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/js/fadeLinks.js"></script>
<script>
jQuery.noConflict();
jQuery(document).ready(function($){
$("#example").autocomplete(options);
});
</script>
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous/scriptaculous.js" type="text/javascript"></script>
<script src="js/recommended_items.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
Event.observe(window, 'load', function() {
var recommended_items = new RecommendedItems('recommended_items', <?="$store_id, $gift_registry_id" ?>);
recommended_items.setBaseURL('<?=$site_server . SITE_STANDARD ?>');
<?php if (THIS_PAGE == PRODUCT_PHP) { ?>
recommended_items.setProduct(<?="$product_id, $category_id" ?>);
<?php } ?>
recommended_items.fetchItems();
});
//]]>
</script>
| 0 |
3,242,703 | 07/14/2010 01:10:19 | 276,660 | 02/19/2010 03:33:41 | 31 | 1 | Do i have to install jdk win64? | I have installed windows 7 x64, therefore i have a confusion whether i have to install JDK x64 or JDK x86? please help me, thank you | java | windows-7-x64 | jdk1.6 | null | null | null | open | Do i have to install jdk win64?
===
I have installed windows 7 x64, therefore i have a confusion whether i have to install JDK x64 or JDK x86? please help me, thank you | 0 |
5,191,304 | 03/04/2011 08:23:45 | 470,760 | 01/16/2010 00:26:05 | 225 | 4 | Reduce Memory Usage of Java Process | I wrote a wrapper application in c# NET that runs when the .jar file is running, closes when the .jar file closes, etc. This was basically to allow for our web panel to be able to query the executable to find out if it was actually running or not.
I have seen some other panels specifically intended for this software that have an option to reduce the memory usage of it when no one is connected. The java application (Minecraft) basically scales the RAM usage based on the size of the player world rather than how many players are connected. When no one is connected, it should be perfectly fine to reduce the usage.
So is there any way to reduce the RAM usage programatically from C# NET for a Java application? | c# | java | .net | memory | jar | null | open | Reduce Memory Usage of Java Process
===
I wrote a wrapper application in c# NET that runs when the .jar file is running, closes when the .jar file closes, etc. This was basically to allow for our web panel to be able to query the executable to find out if it was actually running or not.
I have seen some other panels specifically intended for this software that have an option to reduce the memory usage of it when no one is connected. The java application (Minecraft) basically scales the RAM usage based on the size of the player world rather than how many players are connected. When no one is connected, it should be perfectly fine to reduce the usage.
So is there any way to reduce the RAM usage programatically from C# NET for a Java application? | 0 |
3,296,734 | 07/21/2010 06:19:19 | 397,576 | 07/21/2010 06:19:19 | 1 | 0 | I need to perform add, delete, update, read data using xml. Any ideas ????? | Hey i need to create a windows application using C#.net as front end and to use XML as the back end to store the data.How to create an xml file , read it?, insert records? update records? and finally delete records? | c# | xml | null | null | null | 01/10/2012 14:56:18 | not a real question | I need to perform add, delete, update, read data using xml. Any ideas ?????
===
Hey i need to create a windows application using C#.net as front end and to use XML as the back end to store the data.How to create an xml file , read it?, insert records? update records? and finally delete records? | 1 |
6,903,172 | 08/01/2011 19:13:05 | 663,341 | 03/16/2011 21:44:30 | 132 | 5 | How To Use Python for a Web App? | I am creating a school management system that handles file uploads and downloads from teachers and students. Furthermore, there will be a large amount of database writes and reads (e.g. which classes a student is taking, what the student's grades are etc.)
I basically want dynamic web pages to be shown to the user when they log in and they are on their dashboard to check for updated class notes or exam dates etc.
On the back end I want to use python for file handling, database reads to show user their content, database writes when a user updates his/her content on the web app.
This would be very simple if I were using PHP, but it is different for Python.
I am currently going through the <a href="http://docs.pylonsproject.org/projects/pyramid/1.1/index.html">Pyramid</a> docs and after going past a few chapters, I don't see how pyramid helps me accomplish what I can do in PHP, and if it does do this, why so complicated?
Is pyramid the right tool, or should I be using <a href="http://web2py.com/">web2py</a>? | php | python | web2py | pyramid | null | 08/01/2011 21:44:24 | not a real question | How To Use Python for a Web App?
===
I am creating a school management system that handles file uploads and downloads from teachers and students. Furthermore, there will be a large amount of database writes and reads (e.g. which classes a student is taking, what the student's grades are etc.)
I basically want dynamic web pages to be shown to the user when they log in and they are on their dashboard to check for updated class notes or exam dates etc.
On the back end I want to use python for file handling, database reads to show user their content, database writes when a user updates his/her content on the web app.
This would be very simple if I were using PHP, but it is different for Python.
I am currently going through the <a href="http://docs.pylonsproject.org/projects/pyramid/1.1/index.html">Pyramid</a> docs and after going past a few chapters, I don't see how pyramid helps me accomplish what I can do in PHP, and if it does do this, why so complicated?
Is pyramid the right tool, or should I be using <a href="http://web2py.com/">web2py</a>? | 1 |
10,708,720 | 05/22/2012 19:24:20 | 1,223,347 | 02/21/2012 12:35:07 | 11 | 0 | Connecting to n number of databases in a for loop? PHP | i have a requirement like whenever i push a button , i need to update n number of databases for a CMS content. is it possible to connect one by one in a for loop and update the database .if there is any standard code available please give me the link. | php | mysql | database | for-loop | multiple | 05/22/2012 22:01:25 | not a real question | Connecting to n number of databases in a for loop? PHP
===
i have a requirement like whenever i push a button , i need to update n number of databases for a CMS content. is it possible to connect one by one in a for loop and update the database .if there is any standard code available please give me the link. | 1 |
9,122,909 | 02/03/2012 02:21:10 | 186,896 | 10/09/2009 03:51:47 | 44 | 0 | jQuery - Get the index of selected check box | jQuery 1.7.1 - I have a check box column and would like to get the index of selected boxes as an array or iterate through each checkbox - check whether its selected or not, if selected get the index.
HTML
<tr>
<td><input type="checkbox" class="it" name="it"></td>
</tr>
<tr>
<td><input type="checkbox" class="it" name="it"></td>
</tr>
| jquery | null | null | null | null | null | open | jQuery - Get the index of selected check box
===
jQuery 1.7.1 - I have a check box column and would like to get the index of selected boxes as an array or iterate through each checkbox - check whether its selected or not, if selected get the index.
HTML
<tr>
<td><input type="checkbox" class="it" name="it"></td>
</tr>
<tr>
<td><input type="checkbox" class="it" name="it"></td>
</tr>
| 0 |
9,787,718 | 03/20/2012 13:27:56 | 619,673 | 02/16/2011 12:59:02 | 361 | 3 | youtube snake any api to get params of it? | I would like create AI to control snake while watching videos on youtube.
Where should I start to search for it?
If I watch any clip, does it mean that I must first create firefox plugin to get somehow snake's params?
I was thinking about virtual send keys after getting the params, but is it good way to do? | c# | youtube | null | null | null | 04/20/2012 14:45:06 | not a real question | youtube snake any api to get params of it?
===
I would like create AI to control snake while watching videos on youtube.
Where should I start to search for it?
If I watch any clip, does it mean that I must first create firefox plugin to get somehow snake's params?
I was thinking about virtual send keys after getting the params, but is it good way to do? | 1 |
514,446 | 02/05/2009 03:40:57 | 5,830 | 09/11/2008 13:33:14 | 110 | 5 | Photo Blog on the Cheap | My dad and step-mom are building a straw bale hay house this year and I've put up a Mephisto blog for them to document it. However, my dad is not really technically savvy and the "file upload and link inside of a blog post" process is a bit much for him. Therefore, I'm seeking some alternatives. I have a couple of ideas. One is to use flickr to upload photos and then do a gallery on his site using the api. However, I've had good luck with people on this site who have given me great ideas that never crossed my mind.
Here are my requirements for his site:
* has to run on a linux server
* preferably zero maintenance on my part
* preferably rails or merb based application so that I can hack on it easily if I absolutely have to
* easy for non-technical person to upload photos, create thumbnails, and create albums
* ability for people to add comments on the photos that can show on the site
* my dad uses a Windows machine, so iPhoto with mobile me is not a good option
<br />
_BTW, I'm not even exactly sure what "on the cheap" means, but I heard someone say it a lot on a podcast, so I'll go with it._
| blogs | photo | image-gallery | gallery | null | 02/05/2009 03:57:35 | off topic | Photo Blog on the Cheap
===
My dad and step-mom are building a straw bale hay house this year and I've put up a Mephisto blog for them to document it. However, my dad is not really technically savvy and the "file upload and link inside of a blog post" process is a bit much for him. Therefore, I'm seeking some alternatives. I have a couple of ideas. One is to use flickr to upload photos and then do a gallery on his site using the api. However, I've had good luck with people on this site who have given me great ideas that never crossed my mind.
Here are my requirements for his site:
* has to run on a linux server
* preferably zero maintenance on my part
* preferably rails or merb based application so that I can hack on it easily if I absolutely have to
* easy for non-technical person to upload photos, create thumbnails, and create albums
* ability for people to add comments on the photos that can show on the site
* my dad uses a Windows machine, so iPhoto with mobile me is not a good option
<br />
_BTW, I'm not even exactly sure what "on the cheap" means, but I heard someone say it a lot on a podcast, so I'll go with it._
| 2 |
4,633,473 | 01/08/2011 10:39:32 | 567,935 | 01/08/2011 10:39:32 | 1 | 0 | Russian Potter stemming on javascript | Someone has any exemple Russian Potter stemming on javascript? | javascript | null | null | null | null | 01/08/2011 11:44:40 | not a real question | Russian Potter stemming on javascript
===
Someone has any exemple Russian Potter stemming on javascript? | 1 |
280,940 | 11/11/2008 13:57:07 | 36,574 | 11/11/2008 13:57:06 | 1 | 0 | Calling a C function with a varargs argument dynamically |
I am programming in C against a third party library (in HP/Mercury Loadrunner) that allows a varargs-style variable size argument list for one of it's functions. I want to call this function but I do not know up front how many arguments I will have.
There is a function made by one of my predecessors that serves somewhat but the problem here is that this function assumes the worst case scenario (over 3000 arguments) and hand-codes for that.
To illuminate, here's the (beginning of) the code. The function we call is `web_submit_data()`. It will HTTP post a set of form data. This implementation came about when dealing with dynamically generated forms with an arbitrary number of fields.
(Cleaned up a fair bit from the original, which hand coded indexes by hand as well..)
---
web_submit_data_buffer_gazillion_items( const char *bufferName, const char *bufferValue)
{
const int size = 129;
int i = 0;
int j = 11;
web_submit_data(&bufferName[i++ * size], //"some form"
&bufferName[i++ * size], //"Action=https://blah.blah/form");
&bufferName[i++ * size], //"Method=POST");
&bufferName[i++ * size], //"TargetFrame=");
&bufferName[i++ * size], //"RecContentType=text/html");
&bufferName[i++ * size], //"Referer=https://blah.blah/index.html");
&bufferName[i++ * size], //"Snapshot=t1.inf");
&bufferName[i++ * size], //"Mode=HTML");
ITEMDATA, // missing in action: indexes 8 through 10
&bufferName[j * size],&bufferValue[j++ * size], ENDITEM,
&bufferName[j * size],&bufferValue[j++ * size], ENDITEM,
&bufferName[j * size],&bufferValue[j++ * size], ENDITEM,
..
(repeat the last 3 lines ad nauseum)
..
&bufferName[j * size],&bufferValue[j++ * size], ENDITEM,
&bufferName[j * size]);
}
Now I have found an external library that might work (http://www.dyncall.org) but I would much rather not a) be completely processor dependant and b) attempt to teach Loadrunner about linking in external sources..
| c | null | null | null | null | null | open | Calling a C function with a varargs argument dynamically
===
I am programming in C against a third party library (in HP/Mercury Loadrunner) that allows a varargs-style variable size argument list for one of it's functions. I want to call this function but I do not know up front how many arguments I will have.
There is a function made by one of my predecessors that serves somewhat but the problem here is that this function assumes the worst case scenario (over 3000 arguments) and hand-codes for that.
To illuminate, here's the (beginning of) the code. The function we call is `web_submit_data()`. It will HTTP post a set of form data. This implementation came about when dealing with dynamically generated forms with an arbitrary number of fields.
(Cleaned up a fair bit from the original, which hand coded indexes by hand as well..)
---
web_submit_data_buffer_gazillion_items( const char *bufferName, const char *bufferValue)
{
const int size = 129;
int i = 0;
int j = 11;
web_submit_data(&bufferName[i++ * size], //"some form"
&bufferName[i++ * size], //"Action=https://blah.blah/form");
&bufferName[i++ * size], //"Method=POST");
&bufferName[i++ * size], //"TargetFrame=");
&bufferName[i++ * size], //"RecContentType=text/html");
&bufferName[i++ * size], //"Referer=https://blah.blah/index.html");
&bufferName[i++ * size], //"Snapshot=t1.inf");
&bufferName[i++ * size], //"Mode=HTML");
ITEMDATA, // missing in action: indexes 8 through 10
&bufferName[j * size],&bufferValue[j++ * size], ENDITEM,
&bufferName[j * size],&bufferValue[j++ * size], ENDITEM,
&bufferName[j * size],&bufferValue[j++ * size], ENDITEM,
..
(repeat the last 3 lines ad nauseum)
..
&bufferName[j * size],&bufferValue[j++ * size], ENDITEM,
&bufferName[j * size]);
}
Now I have found an external library that might work (http://www.dyncall.org) but I would much rather not a) be completely processor dependant and b) attempt to teach Loadrunner about linking in external sources..
| 0 |
8,448,492 | 12/09/2011 16:23:23 | 447,979 | 09/15/2010 03:38:46 | 2,037 | 186 | get {} is not working as expected | public class Settings
{
public static readonly string fileName = "config.ini";
private IConfigSource src
{
get
{
CreateIfNotExists();
return new IniConfigSource(fileName);
}
}
public void test1()
{
//var src = new IniConfigSource(fileName); ;
src.Configs["DATA"].Set("baa", "haaaaee");
src.Save();
}
public void test2()
{
var src2 = new IniConfigSource(fileName); ;
src2.Configs["DATA"].Set("baa", "haaaaee");
src2.Save();
}
public Stream CreateIfNotExists()
{
if (!File.Exists(fileName))
{
Stream file = File.Create(fileName);
return file;
}
return null;
}
}
why the `test2()` method works fine and `test1()` not works? | c# | .net | null | null | null | 12/09/2011 16:53:52 | not a real question | get {} is not working as expected
===
public class Settings
{
public static readonly string fileName = "config.ini";
private IConfigSource src
{
get
{
CreateIfNotExists();
return new IniConfigSource(fileName);
}
}
public void test1()
{
//var src = new IniConfigSource(fileName); ;
src.Configs["DATA"].Set("baa", "haaaaee");
src.Save();
}
public void test2()
{
var src2 = new IniConfigSource(fileName); ;
src2.Configs["DATA"].Set("baa", "haaaaee");
src2.Save();
}
public Stream CreateIfNotExists()
{
if (!File.Exists(fileName))
{
Stream file = File.Create(fileName);
return file;
}
return null;
}
}
why the `test2()` method works fine and `test1()` not works? | 1 |
9,753,445 | 03/17/2012 20:26:26 | 1,242,453 | 03/01/2012 10:55:25 | 1 | 0 | openldap rootpw | i have altlinux 6 centaurus server, and have problem with understanding how openldap works.
# slappasswd
new password: secret
re-enter new password: secret
{SSHA}-some symbols-
after that i modify slapd.conf
rootpw {SSHA}-some symbols-
and when i try any ldapmodify command it doesnt work
# /etc/init.d/slapd restart
# Stopping slapd service: [DONE]
# Starting slapd service: [DONE]
# ldapsearch -x -W
# enter LDAP password: secret
# ldap_bind: Invalid credentials (49)
I knew that i can use ldapsearch command without "-W" attribute, but why it doesnt work with "-W"? | linux | ldap | openldap | null | null | 03/19/2012 13:30:49 | off topic | openldap rootpw
===
i have altlinux 6 centaurus server, and have problem with understanding how openldap works.
# slappasswd
new password: secret
re-enter new password: secret
{SSHA}-some symbols-
after that i modify slapd.conf
rootpw {SSHA}-some symbols-
and when i try any ldapmodify command it doesnt work
# /etc/init.d/slapd restart
# Stopping slapd service: [DONE]
# Starting slapd service: [DONE]
# ldapsearch -x -W
# enter LDAP password: secret
# ldap_bind: Invalid credentials (49)
I knew that i can use ldapsearch command without "-W" attribute, but why it doesnt work with "-W"? | 2 |
9,737,755 | 03/16/2012 13:02:10 | 1,262,659 | 03/11/2012 18:03:20 | 6 | 0 | How to compare performace between different languages? | Assuming I wrote a program in two different languages, but if I need to compare the performace,
What aspects should I focus on except just comparing their running time?
Hope you can give me some brief ideas...
Thank you! | algorithm | testing | null | null | null | 03/17/2012 23:59:50 | not constructive | How to compare performace between different languages?
===
Assuming I wrote a program in two different languages, but if I need to compare the performace,
What aspects should I focus on except just comparing their running time?
Hope you can give me some brief ideas...
Thank you! | 4 |
5,664,934 | 04/14/2011 14:40:51 | 708,164 | 04/14/2011 14:40:51 | 1 | 0 | Random figures from Two colums - How can I Find? | I have 2 columns and their are more than 1000 rows in both columns.
Both colums have specific figures as below:
A B
1.33252 1.33368
1.26826 1.26937
1.44368 1.44265
an so on..
Here there are certain values between both columns of same row. Means there are some numbers between 1.33252 and 1.33368.
If my require result in some another column and row which require specific value between any columns, I have to display all remaining rows and columns.
Can anyone have the solution for this? | excel | null | null | null | null | 07/25/2012 12:12:36 | not a real question | Random figures from Two colums - How can I Find?
===
I have 2 columns and their are more than 1000 rows in both columns.
Both colums have specific figures as below:
A B
1.33252 1.33368
1.26826 1.26937
1.44368 1.44265
an so on..
Here there are certain values between both columns of same row. Means there are some numbers between 1.33252 and 1.33368.
If my require result in some another column and row which require specific value between any columns, I have to display all remaining rows and columns.
Can anyone have the solution for this? | 1 |
5,982,817 | 05/12/2011 18:43:06 | 751,139 | 05/12/2011 18:43:06 | 1 | 0 | problems using __next__ method in python | I have just started learning python and am reading about classes .
this is the code i had written for a simple iterable class :
class maths:
def __init__(self,x):
self.a=x
def __iter__(self):
self.b=0
return self
def next(self):
if self.b <= self.a:
self.b = self.b+1
return self.b-1
else:
raise StopIteration
x=maths(5)
for l in x:
print l
for the next() method when i used the (double underscore)__next__(double underscore)(self):
the following error was displayed
Traceback (most recent call last):
File "class.py", line 20, in <module>
for l in x:
TypeError: instance has no next() method
Can anyone elucidate on this behaviour . i saw an example in the dive into python 3 book by Mark Pilgrim that used the (double underscore)__next__(double underscore) method . even the example did not run on my interpreter .
Thanks for taking your time off to help me !
| python-2.6 | null | null | null | null | null | open | problems using __next__ method in python
===
I have just started learning python and am reading about classes .
this is the code i had written for a simple iterable class :
class maths:
def __init__(self,x):
self.a=x
def __iter__(self):
self.b=0
return self
def next(self):
if self.b <= self.a:
self.b = self.b+1
return self.b-1
else:
raise StopIteration
x=maths(5)
for l in x:
print l
for the next() method when i used the (double underscore)__next__(double underscore)(self):
the following error was displayed
Traceback (most recent call last):
File "class.py", line 20, in <module>
for l in x:
TypeError: instance has no next() method
Can anyone elucidate on this behaviour . i saw an example in the dive into python 3 book by Mark Pilgrim that used the (double underscore)__next__(double underscore) method . even the example did not run on my interpreter .
Thanks for taking your time off to help me !
| 0 |
471,740 | 01/23/2009 03:07:21 | 4,903 | 09/06/2008 14:16:54 | 1,805 | 73 | How do you give a junior developer a shot on a big project with tight deadlines? | I'm looking for advice on how to give a junior developer a chance to gain experience on a big project with tight deadlines without hurting the timeline. If we all know it will take a little longer with the developer because of less experience, then what is the best way to give them a portion of the project and spread the risk? Giving these developers the ability to learn on the job on real projects instead of handing down maintenance work all the time is important to me, and I want to find a way to make it work. | junior | teaching | training | experience | null | 03/08/2012 23:04:59 | off topic | How do you give a junior developer a shot on a big project with tight deadlines?
===
I'm looking for advice on how to give a junior developer a chance to gain experience on a big project with tight deadlines without hurting the timeline. If we all know it will take a little longer with the developer because of less experience, then what is the best way to give them a portion of the project and spread the risk? Giving these developers the ability to learn on the job on real projects instead of handing down maintenance work all the time is important to me, and I want to find a way to make it work. | 2 |
5,149,127 | 03/01/2011 00:12:46 | 375,793 | 06/25/2010 00:05:40 | 59 | 0 | Good Web hosts that support Ruby and Python? | I love Python and Ruby equally and I simply cannot standardize on one. I love Heroku, but it can get a speck pricey and is totally specific to Rails.
Is there a decently inexpensive host, or many, that *adequately* supports both Ruby and Python frameworks as well as offering common LAMPish support?
**Yeah... I wanna know if I can just have it all for cheap (*sigh*).**
I'm mostly interested in this for development and startups... scalability is not a big deal, but very welcome. | python | ruby | django | apache | ruby-on-rails-3 | 03/01/2011 05:09:12 | off topic | Good Web hosts that support Ruby and Python?
===
I love Python and Ruby equally and I simply cannot standardize on one. I love Heroku, but it can get a speck pricey and is totally specific to Rails.
Is there a decently inexpensive host, or many, that *adequately* supports both Ruby and Python frameworks as well as offering common LAMPish support?
**Yeah... I wanna know if I can just have it all for cheap (*sigh*).**
I'm mostly interested in this for development and startups... scalability is not a big deal, but very welcome. | 2 |
8,472,457 | 12/12/2011 09:48:23 | 591,801 | 01/27/2011 07:22:28 | 719 | 67 | How can I group SQL Server geometry data by STWithin? | I have two tables that I am storing geometries in.
CREATE TABLE config.region
(
id int identity(1,1) PRIMARY KEY,
polygon GEOMETRY NOT NULL
)
CREATE TABLE config.location
(
id int identity(1,1) PRIMARY KEY,
position GEOMETRY
)
The region table will hold rectangular polygons. The location table will hold only points.
What I want to do is select all the regions and a COUNT of how many points are actually within each polygon.
I've come up with this query, that shows the polygon id, the location id and whether or not the location is in the polygon.
SELECT polygon.id as pid, config.location.id as lid, polygon,polygon.STContains(config.location.position) as within FROM config.polygon, config.location
How can I modify this to give counts instead of just a list of whether or not they are within each other? | sql | sql-server | geometry | spatial | null | null | open | How can I group SQL Server geometry data by STWithin?
===
I have two tables that I am storing geometries in.
CREATE TABLE config.region
(
id int identity(1,1) PRIMARY KEY,
polygon GEOMETRY NOT NULL
)
CREATE TABLE config.location
(
id int identity(1,1) PRIMARY KEY,
position GEOMETRY
)
The region table will hold rectangular polygons. The location table will hold only points.
What I want to do is select all the regions and a COUNT of how many points are actually within each polygon.
I've come up with this query, that shows the polygon id, the location id and whether or not the location is in the polygon.
SELECT polygon.id as pid, config.location.id as lid, polygon,polygon.STContains(config.location.position) as within FROM config.polygon, config.location
How can I modify this to give counts instead of just a list of whether or not they are within each other? | 0 |
5,169,720 | 03/02/2011 15:32:31 | 639,522 | 12/14/2010 21:06:54 | 75 | 2 | c# server client | How can I programme a client to accept multiple connections from a server? The client is connected with the server on the port 5060, for eg. I can't have access to the server. I know I have to use threads. How? Thx. I have UDP connection. | c# | null | null | null | null | 03/02/2011 15:56:49 | not a real question | c# server client
===
How can I programme a client to accept multiple connections from a server? The client is connected with the server on the port 5060, for eg. I can't have access to the server. I know I have to use threads. How? Thx. I have UDP connection. | 1 |
10,304,590 | 04/24/2012 19:19:58 | 1,354,565 | 04/24/2012 19:14:58 | 1 | 0 | My website keeps loading in IE but fine in other browsers | My website www.imgnyc.com is re-loading constantly in IE, but displays fine in Chrome and Firefox. Is this my ISP's issue? | javascript | html | flash | internet-explorer | website | 04/24/2012 19:32:00 | not a real question | My website keeps loading in IE but fine in other browsers
===
My website www.imgnyc.com is re-loading constantly in IE, but displays fine in Chrome and Firefox. Is this my ISP's issue? | 1 |
9,667,649 | 03/12/2012 13:11:35 | 1,126,886 | 01/02/2012 22:26:08 | 79 | 4 | Hpple - Reading a tag with an attribute | I'm trying to parse a XML,
<entry>
<title type="html"><![CDATA[TITLE]]></title>
</entry>
Using Hpple, I'm trying to read the <entry>
NSArray *array = [xpathParser searchWithXPathQuery:@"//entry/title[@type='html']"];
But the returned value is null. What I'm doing wrong? | objective-c | xml | xpath | hpple | null | null | open | Hpple - Reading a tag with an attribute
===
I'm trying to parse a XML,
<entry>
<title type="html"><![CDATA[TITLE]]></title>
</entry>
Using Hpple, I'm trying to read the <entry>
NSArray *array = [xpathParser searchWithXPathQuery:@"//entry/title[@type='html']"];
But the returned value is null. What I'm doing wrong? | 0 |
4,750,303 | 01/20/2011 17:16:07 | 583,262 | 01/20/2011 16:32:34 | 1 | 0 | Jquery callback not working when animation options are included (masonry plugin) | I am implementing David DeSandro's JQuery Masonry plugin for a site i'm trying to build. I am trying to run a callback on the masonry function so that i can scroll to the relevant part in the page after it runs but for some reason can't get it to work when I have the animation turned on. The docs can be seen at http://desandro.com/demo/masonry/docs/#options. When I run the following code it works fine and the alert only happens once the masonry function has run:
$wall.masonry(
{
columnWidth: 216,
itemSelector: '.box:not(.invis)',
animate: false
},
function()
{
alert("Finished?");
}
);
However when i run the following code with the animation options included the alert runs before the animation has finished:
$wall.masonry(
{
columnWidth: 216,
itemSelector: '.box:not(.invis)',
animate: true,
animationOptions: {
duration: speed,
queue: false
}
},
function()
{
alert("Finished?");
}
);
I would really appreciate any pointers anyone can give me as to how to prevent the alert happening until the animation has completed as i'm stumped! Thanks so much for your help,
Dave | javascript | jquery | jquery-plugins | jquery-callback | null | null | open | Jquery callback not working when animation options are included (masonry plugin)
===
I am implementing David DeSandro's JQuery Masonry plugin for a site i'm trying to build. I am trying to run a callback on the masonry function so that i can scroll to the relevant part in the page after it runs but for some reason can't get it to work when I have the animation turned on. The docs can be seen at http://desandro.com/demo/masonry/docs/#options. When I run the following code it works fine and the alert only happens once the masonry function has run:
$wall.masonry(
{
columnWidth: 216,
itemSelector: '.box:not(.invis)',
animate: false
},
function()
{
alert("Finished?");
}
);
However when i run the following code with the animation options included the alert runs before the animation has finished:
$wall.masonry(
{
columnWidth: 216,
itemSelector: '.box:not(.invis)',
animate: true,
animationOptions: {
duration: speed,
queue: false
}
},
function()
{
alert("Finished?");
}
);
I would really appreciate any pointers anyone can give me as to how to prevent the alert happening until the animation has completed as i'm stumped! Thanks so much for your help,
Dave | 0 |
10,655,680 | 05/18/2012 15:40:45 | 1,403,731 | 05/18/2012 15:21:56 | 1 | 0 | php oop is there way to automatically set this variables | class User extends DatabaseObject {
protected static $table_name='users';
protected static $db_fields = array();
public function __construct() {
// Get columns from table
global $database;
$result_set = $database->query("SELECT * FROM ".self::$table_name." LIMIT 1");
$num_fields = mysql_num_fields($result_set);
for($i=0; $i<$num_fields; $i++) {
$column_name = mysql_field_name($result_set, $i);
// Set column names as variables
self::$db_fields[] = $column_name; // THIS WORKS
$this->{$column_name}; // THIS IS PROBLEMATIC!
}
}
for exaple this $name = pulic $wherever;
so i can call like wherever->wherever;
so that i don have to type this name evry time a add som
public $md5;
public $credit;
public $pontaria_time;
public $Credits;
public $airoplayne;
public $city_id;
public $prisao_time;
public $crime2;
public $banck_time;
| php | oop | null | null | null | null | open | php oop is there way to automatically set this variables
===
class User extends DatabaseObject {
protected static $table_name='users';
protected static $db_fields = array();
public function __construct() {
// Get columns from table
global $database;
$result_set = $database->query("SELECT * FROM ".self::$table_name." LIMIT 1");
$num_fields = mysql_num_fields($result_set);
for($i=0; $i<$num_fields; $i++) {
$column_name = mysql_field_name($result_set, $i);
// Set column names as variables
self::$db_fields[] = $column_name; // THIS WORKS
$this->{$column_name}; // THIS IS PROBLEMATIC!
}
}
for exaple this $name = pulic $wherever;
so i can call like wherever->wherever;
so that i don have to type this name evry time a add som
public $md5;
public $credit;
public $pontaria_time;
public $Credits;
public $airoplayne;
public $city_id;
public $prisao_time;
public $crime2;
public $banck_time;
| 0 |
9,525,047 | 03/01/2012 22:16:22 | 991,234 | 10/12/2011 10:19:00 | 58 | 0 | Visual studio 11 installation error | Just wanna know whether anybody has installed VS 11 Beta. I am getting some errors in the installation.
Its just says there is something wrong and close or check a solution online. I wonder whether its something to do with the windows or the installation it self.
| visual-studio | null | null | null | null | 03/02/2012 03:37:07 | not a real question | Visual studio 11 installation error
===
Just wanna know whether anybody has installed VS 11 Beta. I am getting some errors in the installation.
Its just says there is something wrong and close or check a solution online. I wonder whether its something to do with the windows or the installation it self.
| 1 |
6,048,561 | 05/18/2011 17:21:45 | 759,670 | 05/18/2011 17:21:45 | 1 | 0 | Setting onclick to use current value of variable in loop | The title may not make sense and nor would a description alone, so here's a sample of the code:
for(var a=0;a<10;a++) {
var b=document.createElement('b')
b.onclick=function() {
alert(a)
}
b.innerHTML=a
document.body.appendChild(b)
}
What's odd is that when I set innerHTML to a, it uses the current value of a. So, this code creates ten `<b>` elements with the values 0, 1, 2, 3, 4, 5, 6, 7, 8, & 9. This works perfectly. What doesn't, however, is the onclick function. It returns the final value of `a` (10) when any of these elements is clicked. I've tried setting another variable to `a` and then using that other variable in the onclick event, but still it returns the final value of `a`. How would I make it use the value of `a` when onclick is set? | javascript | variables | loops | variable-scope | null | null | open | Setting onclick to use current value of variable in loop
===
The title may not make sense and nor would a description alone, so here's a sample of the code:
for(var a=0;a<10;a++) {
var b=document.createElement('b')
b.onclick=function() {
alert(a)
}
b.innerHTML=a
document.body.appendChild(b)
}
What's odd is that when I set innerHTML to a, it uses the current value of a. So, this code creates ten `<b>` elements with the values 0, 1, 2, 3, 4, 5, 6, 7, 8, & 9. This works perfectly. What doesn't, however, is the onclick function. It returns the final value of `a` (10) when any of these elements is clicked. I've tried setting another variable to `a` and then using that other variable in the onclick event, but still it returns the final value of `a`. How would I make it use the value of `a` when onclick is set? | 0 |
9,092,129 | 02/01/2012 07:09:15 | 403,157 | 07/27/2010 08:48:32 | 147 | 8 | Software analysis patterns - pros and cons | What are pros and cons of using software analysis patterns (in general)? | analysis | analysis-patterns | null | null | null | 02/02/2012 03:35:10 | not constructive | Software analysis patterns - pros and cons
===
What are pros and cons of using software analysis patterns (in general)? | 4 |
10,810,199 | 05/30/2012 04:56:32 | 1,220,350 | 02/20/2012 06:16:50 | 308 | 3 | How to insert retrieved rows into another table using ssis | I have a table and it has 500 rows. I want to retrieve only 10 rows and i want to insert into another table using control flow only. Through data flow task we can use OLEDB source and OLEDB destination. But i want result in such a way that by using execute sql task and for each loop. Is it possible to do in that way? My Idea is, get the set of ten records and and by using foreach loop iterate to every row and insert into the table by using execute sql task. The destination table need to create on the fly. I tried with some approach but not moving towards. Please find the image file.![enter image description here][1]
[1]: http://i.stack.imgur.com/W3sTd.png | sql-server | ssis | null | null | null | null | open | How to insert retrieved rows into another table using ssis
===
I have a table and it has 500 rows. I want to retrieve only 10 rows and i want to insert into another table using control flow only. Through data flow task we can use OLEDB source and OLEDB destination. But i want result in such a way that by using execute sql task and for each loop. Is it possible to do in that way? My Idea is, get the set of ten records and and by using foreach loop iterate to every row and insert into the table by using execute sql task. The destination table need to create on the fly. I tried with some approach but not moving towards. Please find the image file.![enter image description here][1]
[1]: http://i.stack.imgur.com/W3sTd.png | 0 |
4,468,547 | 12/17/2010 07:33:18 | 422,859 | 08/17/2010 12:53:24 | 151 | 1 | To fire an Event when the TimerCountDown gets over | I am working on an application where I need to stat the audio file when the timercountdown gets over. But, how do I get to know that the timer countdown has been over So, that I can start playing the audio file?
Please can anybody tell me!
Thanks,
david,
| android | timer | countdown | null | null | null | open | To fire an Event when the TimerCountDown gets over
===
I am working on an application where I need to stat the audio file when the timercountdown gets over. But, how do I get to know that the timer countdown has been over So, that I can start playing the audio file?
Please can anybody tell me!
Thanks,
david,
| 0 |
10,206,033 | 04/18/2012 08:55:27 | 1,066,021 | 11/25/2011 17:08:33 | 73 | 4 | Search in Fusion Tables and Zoom to results | Hi all here's my situation: [http://www.tamrielma.ps/skyrim/][1]
I've added a search based on this well know example: [https://developers.google.com/fusiontables/docs/samples/autocomplete][2]
But it's not enough :D and I want that the map zooms and centers on the basis of the search results (that's a single markers not a group of, so I imagine that's not a "bound related" solution).
Thanks in advance for any suggestion
[1]: http://www.tamrielma.ps/skyrim/
[2]: https://developers.google.com/fusiontables/docs/samples/autocomplete | google-maps-api-3 | google-fusion-tables | null | null | null | null | open | Search in Fusion Tables and Zoom to results
===
Hi all here's my situation: [http://www.tamrielma.ps/skyrim/][1]
I've added a search based on this well know example: [https://developers.google.com/fusiontables/docs/samples/autocomplete][2]
But it's not enough :D and I want that the map zooms and centers on the basis of the search results (that's a single markers not a group of, so I imagine that's not a "bound related" solution).
Thanks in advance for any suggestion
[1]: http://www.tamrielma.ps/skyrim/
[2]: https://developers.google.com/fusiontables/docs/samples/autocomplete | 0 |
5,515,446 | 04/01/2011 15:25:27 | 683,288 | 03/30/2011 04:48:52 | 1 | 0 | Safe way to combine partition | I have a 250GB HDD, I divided them into 3 parts to run dual OS:
- C: drive NTFS to run Windows
- A Linux drive to run UBuntu
- E: drive FAT32 so that both Windows and Ubuntu can access to
Now I realize that I need a lot more space for C: drive. How do I completely wipe out the Linux drive or take a portion of it to combine with the C: drive? (Safely, without reformatting or erasing the existing C: drive of course).
Thank you. | operating-system | partition | drive | dual | hard | 04/01/2011 15:46:10 | off topic | Safe way to combine partition
===
I have a 250GB HDD, I divided them into 3 parts to run dual OS:
- C: drive NTFS to run Windows
- A Linux drive to run UBuntu
- E: drive FAT32 so that both Windows and Ubuntu can access to
Now I realize that I need a lot more space for C: drive. How do I completely wipe out the Linux drive or take a portion of it to combine with the C: drive? (Safely, without reformatting or erasing the existing C: drive of course).
Thank you. | 2 |
7,058,476 | 08/14/2011 17:29:41 | 894,072 | 08/14/2011 17:29:41 | 1 | 0 | Pythonic iterable difference | I've written some code to find all the items that are in one iterable and not another and vice versa. I was originally using the built in set difference, but the computation was rather slow as there were millions of items being stored in each set. Since I know there will be at most a few thousand differences I wrote the below version:
def differences(a_iter, b_iter):
a_items, b_items = set(), set()
def remove_or_add_if_none(a_item, b_item, a_set, b_set):
if a_item is None:
if b_item in a_set:
a_set.remove(b_item)
else:
b_set.add(b)
def remove_or_add(a_item, b_item, a_set, b_set):
if a in b_set:
b_set.remove(a)
if b in a_set:
a_set.remove(b)
else:
b_set.add(b)
return True
return False
for a, b in itertools.izip_longest(a_iter, b_iter):
if a is None or b is None:
remove_or_add_if_none(a, b, a_items, b_items)
remove_or_add_if_none(b, a, b_items, a_items)
continue
if a != b:
if remove_or_add(a, b, a_items, b_items) or \
remove_or_add(b, a, b_items, a_items):
continue
a_items.add(a)
b_items.add(b)
return a_items, b_items
However, the above code doesn't seem very pythonic so I'm looking for alternatives or suggestions for improvement. | python | python-2.7 | null | null | null | null | open | Pythonic iterable difference
===
I've written some code to find all the items that are in one iterable and not another and vice versa. I was originally using the built in set difference, but the computation was rather slow as there were millions of items being stored in each set. Since I know there will be at most a few thousand differences I wrote the below version:
def differences(a_iter, b_iter):
a_items, b_items = set(), set()
def remove_or_add_if_none(a_item, b_item, a_set, b_set):
if a_item is None:
if b_item in a_set:
a_set.remove(b_item)
else:
b_set.add(b)
def remove_or_add(a_item, b_item, a_set, b_set):
if a in b_set:
b_set.remove(a)
if b in a_set:
a_set.remove(b)
else:
b_set.add(b)
return True
return False
for a, b in itertools.izip_longest(a_iter, b_iter):
if a is None or b is None:
remove_or_add_if_none(a, b, a_items, b_items)
remove_or_add_if_none(b, a, b_items, a_items)
continue
if a != b:
if remove_or_add(a, b, a_items, b_items) or \
remove_or_add(b, a, b_items, a_items):
continue
a_items.add(a)
b_items.add(b)
return a_items, b_items
However, the above code doesn't seem very pythonic so I'm looking for alternatives or suggestions for improvement. | 0 |
4,951,530 | 02/09/2011 22:51:56 | 96,061 | 04/25/2009 22:09:44 | 201 | 5 | Leksah system scope module browser is empty | I have just installed leksah following the [user manual][1]. The manual says that I should do a ghc-pkg recache before starting Leksah for the first time, or I might see an empty module browser at the system scope. My problem is that this is what I am seeing, even though I did the recache.
Basically, my setup process was this: Leksah install -> ghc-pkg recache -> starting Leksah. Then I get to a screen which tells me that Leksah will collect and download metadata for my installed packages, and warns me that it might take long time. Using the recommended defaults there, I see a progress bar for about five seconds, and then Leksah starts. These defaults were:
- No paths for haskell package sources.
- Prebuild metadata URL: http://www.leksah.org.
- Retrieve, then build.
- Server port: 11111.
- End server with last connection.
Reading on in the manual, it says that the location of haskell package sources could be omitted (which was the default), if I just wanted to test, and the location could be filled in later. This leads me to believe that the missing Haskell source paths are the problem, but then I don´t know where my haskell sources are. They don´t seem to be in the Haskell Platform folder. Does anybody know how to solve this?
Other stuff, which might help:
- I have grep on my path as well as wget, as specified in the manual.
- The ghc-pkg recache command takes about a second. I don´t know, if it should be more.
- Doing a Rebuild Metadata, I get a console with a lot of numbers from 0 to 1 for update_toolbar, and then a lot of "starting server" -> "metadata collector has nothing to do" -> "metadata collection has finished".
my setup:
- win xp sp3
- ghc 6.12.3
- Leksah 0.8.0.6
- GNU grep 2.5.4
- GNU wget 1.5.3.1
I´ll be happy to provide more information. Thank you.
[1]: http://leksah.org/leksah_manual.pdf | browser | haskell | module | windows-xp | leksah | null | open | Leksah system scope module browser is empty
===
I have just installed leksah following the [user manual][1]. The manual says that I should do a ghc-pkg recache before starting Leksah for the first time, or I might see an empty module browser at the system scope. My problem is that this is what I am seeing, even though I did the recache.
Basically, my setup process was this: Leksah install -> ghc-pkg recache -> starting Leksah. Then I get to a screen which tells me that Leksah will collect and download metadata for my installed packages, and warns me that it might take long time. Using the recommended defaults there, I see a progress bar for about five seconds, and then Leksah starts. These defaults were:
- No paths for haskell package sources.
- Prebuild metadata URL: http://www.leksah.org.
- Retrieve, then build.
- Server port: 11111.
- End server with last connection.
Reading on in the manual, it says that the location of haskell package sources could be omitted (which was the default), if I just wanted to test, and the location could be filled in later. This leads me to believe that the missing Haskell source paths are the problem, but then I don´t know where my haskell sources are. They don´t seem to be in the Haskell Platform folder. Does anybody know how to solve this?
Other stuff, which might help:
- I have grep on my path as well as wget, as specified in the manual.
- The ghc-pkg recache command takes about a second. I don´t know, if it should be more.
- Doing a Rebuild Metadata, I get a console with a lot of numbers from 0 to 1 for update_toolbar, and then a lot of "starting server" -> "metadata collector has nothing to do" -> "metadata collection has finished".
my setup:
- win xp sp3
- ghc 6.12.3
- Leksah 0.8.0.6
- GNU grep 2.5.4
- GNU wget 1.5.3.1
I´ll be happy to provide more information. Thank you.
[1]: http://leksah.org/leksah_manual.pdf | 0 |
9,162,942 | 02/06/2012 15:55:51 | 258,483 | 01/25/2010 14:19:08 | 510 | 14 | How to handle Remove operation for a portlet with use-default-template=false? | I have a portlet with my own template and which has `<use-default-template>false</use-default-template>` in it's config.
What if I wish to make my own button to remove my portlet from a page? How to handle remove operation? What URL to query? How to know if current user has permission to remove portlets?
| remove | liferay | customization | portlet | null | null | open | How to handle Remove operation for a portlet with use-default-template=false?
===
I have a portlet with my own template and which has `<use-default-template>false</use-default-template>` in it's config.
What if I wish to make my own button to remove my portlet from a page? How to handle remove operation? What URL to query? How to know if current user has permission to remove portlets?
| 0 |
10,468,516 | 05/06/2012 06:01:40 | 1,054,557 | 11/18/2011 20:21:51 | 8 | 0 | Transim.com Navigation | Can someone tell me what was used for the circle navigation on this site please?
http://www.transim.com/DesignWeb.aspx
I have viewed the source code but could not figure it out.
Thank you! | javascript | css | html5 | navigation | null | 05/06/2012 06:30:51 | not a real question | Transim.com Navigation
===
Can someone tell me what was used for the circle navigation on this site please?
http://www.transim.com/DesignWeb.aspx
I have viewed the source code but could not figure it out.
Thank you! | 1 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.