PostId
int64 13
11.8M
| PostCreationDate
stringlengths 19
19
| OwnerUserId
int64 3
1.57M
| OwnerCreationDate
stringlengths 10
19
| ReputationAtPostCreation
int64 -33
210k
| OwnerUndeletedAnswerCountAtPostTime
int64 0
5.77k
| Title
stringlengths 10
250
| BodyMarkdown
stringlengths 12
30k
| Tag1
stringlengths 1
25
⌀ | Tag2
stringlengths 1
25
⌀ | Tag3
stringlengths 1
25
⌀ | Tag4
stringlengths 1
25
⌀ | Tag5
stringlengths 1
25
⌀ | PostClosedDate
stringlengths 19
19
⌀ | OpenStatus
stringclasses 5
values | unified_texts
stringlengths 47
30.1k
| OpenStatus_id
int64 0
4
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,946,418 | 08/04/2011 18:10:37 | 649,419 | 03/08/2011 07:37:32 | 232 | 23 | Spring Security Plugin Issue | I'm trying to setup spring security for my test application
i installed the plugin , created User and Role classes ;
put this to UrlMappings.groovy;
"/login/$action?"(controller: "login")
"/logout/$action?"(controller: "logout")
then I put a user in the bootstrap as follows,
import org.project.auth.Role
import org.project.auth.User
import org.project.auth.UserRole;
class BootStrap {
def springSecurityService
def init = { servletContext ->
def userRole = Role.findByAuthority('ROLE_USER') ?: new Role(authority: 'ROLE_USER').save(failOnError: true,flush:true)
def adminRole = Role.findByAuthority('ROLE_ADMIN') ?: new Role(authority: 'ROLE_ADMIN').save(failOnError: true,flush:true)
def adminUser = User.findByUsername('admin') ?: new User(
username: 'admin',
password: springSecurityService.encodePassword('admin'),
enabled: true).save(failOnError: true,flush:true)
print User.count()
if (!adminUser.authorities.contains(adminRole)) {
print "TEST"
UserRole.create adminUser, adminRole,true
}
}
def destroy = {
}
}
this print User.count() returns 1 so i know the user is created , print "TEST" works as well so i know that it goes into the if block but when i run the server it fails with
Sorry, we were not able to find a user with that username and password.
I use Grails 2.0.0.M1 , do you think it might be the issue?
| grails | spring-security | null | null | null | null | open | Spring Security Plugin Issue
===
I'm trying to setup spring security for my test application
i installed the plugin , created User and Role classes ;
put this to UrlMappings.groovy;
"/login/$action?"(controller: "login")
"/logout/$action?"(controller: "logout")
then I put a user in the bootstrap as follows,
import org.project.auth.Role
import org.project.auth.User
import org.project.auth.UserRole;
class BootStrap {
def springSecurityService
def init = { servletContext ->
def userRole = Role.findByAuthority('ROLE_USER') ?: new Role(authority: 'ROLE_USER').save(failOnError: true,flush:true)
def adminRole = Role.findByAuthority('ROLE_ADMIN') ?: new Role(authority: 'ROLE_ADMIN').save(failOnError: true,flush:true)
def adminUser = User.findByUsername('admin') ?: new User(
username: 'admin',
password: springSecurityService.encodePassword('admin'),
enabled: true).save(failOnError: true,flush:true)
print User.count()
if (!adminUser.authorities.contains(adminRole)) {
print "TEST"
UserRole.create adminUser, adminRole,true
}
}
def destroy = {
}
}
this print User.count() returns 1 so i know the user is created , print "TEST" works as well so i know that it goes into the if block but when i run the server it fails with
Sorry, we were not able to find a user with that username and password.
I use Grails 2.0.0.M1 , do you think it might be the issue?
| 0 |
3,642,632 | 09/04/2010 14:13:48 | 434,111 | 08/29/2010 07:14:12 | 77 | 9 | sef in joomla for dynamic urls | I have made a joomla component and wise to make the site sef. The problem is that some of the URL from the components put values by get method. so that the next page can do the task accordingly.
say
index.php?option=com_mediaonline&view=mediaonline&task=234&id=837
so that the next page will process the task accordingly, with task = 234 and id = 837. If i try to make it sef urls then nothing will work properly.
Is there any sef components or other extension available to solve this issue. | php | joomla | joomla1.5 | joomla-sef-urls | sef | null | open | sef in joomla for dynamic urls
===
I have made a joomla component and wise to make the site sef. The problem is that some of the URL from the components put values by get method. so that the next page can do the task accordingly.
say
index.php?option=com_mediaonline&view=mediaonline&task=234&id=837
so that the next page will process the task accordingly, with task = 234 and id = 837. If i try to make it sef urls then nothing will work properly.
Is there any sef components or other extension available to solve this issue. | 0 |
770,239 | 04/20/2009 21:44:03 | 73,804 | 03/04/2009 17:14:23 | 117 | 42 | Windows Task Manager Columns - Handles | What is the Windows Task Manager "Handles" column a measure of? File Handles? Or Page File Pointers? Also is it bad for one program to have 8000 handles?
Thanks! | memory-management | pointers | windows-xp | null | null | 05/19/2011 14:24:30 | off topic | Windows Task Manager Columns - Handles
===
What is the Windows Task Manager "Handles" column a measure of? File Handles? Or Page File Pointers? Also is it bad for one program to have 8000 handles?
Thanks! | 2 |
4,840,214 | 01/29/2011 23:48:04 | 544,272 | 12/16/2010 04:33:20 | 23 | 2 | textual substitution in an html template by ${varName} notation | so I was looking at a project and I noted that they had a templating system set up in html files, and I am not too familiar with the whole concept...But when I started browsing the code I was seeing things like: ${varName} which upon execution were being substituted for names out of an nls file which I assume is intended to allow for multiple languages.
I know for a fact that the templating file does not get parsed by a php engine, so I am thinking that maybe the syntax is some type of shorthand for server-side javascript. Which has me intrigued, does anyone have any ideas as to how they are accomplishing this substitution? I cant seem to find info on this in any google search I could think of, so any hints would be helpful. | javascript | dojo | serverside-javascript | shorthand | null | null | open | textual substitution in an html template by ${varName} notation
===
so I was looking at a project and I noted that they had a templating system set up in html files, and I am not too familiar with the whole concept...But when I started browsing the code I was seeing things like: ${varName} which upon execution were being substituted for names out of an nls file which I assume is intended to allow for multiple languages.
I know for a fact that the templating file does not get parsed by a php engine, so I am thinking that maybe the syntax is some type of shorthand for server-side javascript. Which has me intrigued, does anyone have any ideas as to how they are accomplishing this substitution? I cant seem to find info on this in any google search I could think of, so any hints would be helpful. | 0 |
9,339,893 | 02/18/2012 08:50:25 | 1,200,789 | 02/09/2012 22:12:18 | 15 | 0 | Property to return separate month, day, year attributes formatted as XX/XX/XXX? | This one has me stumped, since I don't think this can be done with a simple DateTime method, unless there's something I'm not understanding.
It should be simple like this: format the variables to read in the XX/XX/XXXX format and if one of these integers is 0, a console output should read ~~unspecified~~
namespace TheTime
{
public class Time
{
private int month;
private int day;
private int year;
public int Mont{}
public int Day {}
public int Year {}
| c# | date | null | null | null | 02/19/2012 14:30:09 | not a real question | Property to return separate month, day, year attributes formatted as XX/XX/XXX?
===
This one has me stumped, since I don't think this can be done with a simple DateTime method, unless there's something I'm not understanding.
It should be simple like this: format the variables to read in the XX/XX/XXXX format and if one of these integers is 0, a console output should read ~~unspecified~~
namespace TheTime
{
public class Time
{
private int month;
private int day;
private int year;
public int Mont{}
public int Day {}
public int Year {}
| 1 |
2,928,879 | 05/28/2010 12:22:06 | 345,797 | 05/20/2010 06:41:46 | 16 | 3 | How do i do this : Define/Model Database Online | There are many IDEs to create database schema pictorially. I was wondering as to how I can do it online? Are there open source codes/libraries/applications which already do this?
Basically, what i am looking at is : let the user define a table and the columns - which in common man's term is : define relations etc pictorially.
The picture should then be translated to an xml from where i can get the relations details.
Something similar to this : http://www.zoho.com/creator/lp/easy-online-database.html | javascript | database | database-design | uml | processing.org | null | open | How do i do this : Define/Model Database Online
===
There are many IDEs to create database schema pictorially. I was wondering as to how I can do it online? Are there open source codes/libraries/applications which already do this?
Basically, what i am looking at is : let the user define a table and the columns - which in common man's term is : define relations etc pictorially.
The picture should then be translated to an xml from where i can get the relations details.
Something similar to this : http://www.zoho.com/creator/lp/easy-online-database.html | 0 |
9,814,388 | 03/21/2012 23:34:13 | 528,453 | 12/02/2010 19:05:23 | 101 | 0 | jquery selector not working in IE6 due to uppercase id | I have a hidden input field on a page
<div id="SomeDiv">
<input type="text" name="ID" id="ID" value="Something"/>
</div>
If i use $("#SomeDiv #ID").val() in IE9 i get the value "Something" but in IE6 i'm getting undefined. If i change the id and name to lower case IE6 returns correctly. I.e.
<div id="SomeDiv">
<input type="text" name="id" id="id" value="Something"/>
</div>
Then $("#SomeDiv #id").val() Notice i've not changed the case on the div id only the input.
Anybody else come across this and a possible work around? Client is using IE6 so switching browser is not an option and i keep coming across this. | javascript | jquery | null | null | null | null | open | jquery selector not working in IE6 due to uppercase id
===
I have a hidden input field on a page
<div id="SomeDiv">
<input type="text" name="ID" id="ID" value="Something"/>
</div>
If i use $("#SomeDiv #ID").val() in IE9 i get the value "Something" but in IE6 i'm getting undefined. If i change the id and name to lower case IE6 returns correctly. I.e.
<div id="SomeDiv">
<input type="text" name="id" id="id" value="Something"/>
</div>
Then $("#SomeDiv #id").val() Notice i've not changed the case on the div id only the input.
Anybody else come across this and a possible work around? Client is using IE6 so switching browser is not an option and i keep coming across this. | 0 |
6,842,363 | 07/27/2011 09:48:28 | 775,964 | 05/30/2011 08:47:06 | 11 | 0 | In embedded domain, copying of structure is dangerous. is it true..??? why.?? | In embedded software domain for copying structure of same type people dont use direct assignment and do that by memcpy function or each element copying.
lets have example
struct tag
{
int a;
int b;
};
struct tag exmple1 = {10,20};
struct tag exmple2;
for copying exmple1 into exmple2..
instead of writing direct
exmple2=exmple1;
people use
memcpy(exmple2,exmple1,sizeof(struct tag));
or
exmple2.a=exmple1.a;
exmple2.b=exmple1.b;
why ???? | c++ | c | embedded | embedded-resource | null | null | open | In embedded domain, copying of structure is dangerous. is it true..??? why.??
===
In embedded software domain for copying structure of same type people dont use direct assignment and do that by memcpy function or each element copying.
lets have example
struct tag
{
int a;
int b;
};
struct tag exmple1 = {10,20};
struct tag exmple2;
for copying exmple1 into exmple2..
instead of writing direct
exmple2=exmple1;
people use
memcpy(exmple2,exmple1,sizeof(struct tag));
or
exmple2.a=exmple1.a;
exmple2.b=exmple1.b;
why ???? | 0 |
7,458,241 | 09/17/2011 22:25:50 | 373,721 | 06/22/2010 23:24:15 | 81 | 1 | MVC C# Select Where | I am trying to add filter by ID for the following:
public ActionResult Index()
{
var model = from o in new MainDBContext().OffLinePayments
select new EditOffLinePayment
{
ID = o.ID,
Amount = o.Amount
};
return View(model);
}
What I would like to do is the following:
public ActionResult Index(long? id)
{
if (id != null){
var model = from o in new MainDBContext().OffLinePayments
**Where Assigned_ID == id**
select new EditOffLinePayment
{
ID = o.ID,
Amount = o.Amount
};
return View(model);
}
else {
var model = from o in new MainDBContext().OffLinePayments
select new EditOffLinePayment
{
ID = o.ID,
Amount = o.Amount
};
return View(model);
}
}
Thanks in advance. | asp.net | mvc | null | null | null | null | open | MVC C# Select Where
===
I am trying to add filter by ID for the following:
public ActionResult Index()
{
var model = from o in new MainDBContext().OffLinePayments
select new EditOffLinePayment
{
ID = o.ID,
Amount = o.Amount
};
return View(model);
}
What I would like to do is the following:
public ActionResult Index(long? id)
{
if (id != null){
var model = from o in new MainDBContext().OffLinePayments
**Where Assigned_ID == id**
select new EditOffLinePayment
{
ID = o.ID,
Amount = o.Amount
};
return View(model);
}
else {
var model = from o in new MainDBContext().OffLinePayments
select new EditOffLinePayment
{
ID = o.ID,
Amount = o.Amount
};
return View(model);
}
}
Thanks in advance. | 0 |
11,145,450 | 06/21/2012 19:32:38 | 999,465 | 10/17/2011 15:24:35 | 3 | 0 | external disk dont work on ubuntu | i have problem with in my ubuntu: when i connect external imation apollo disc i dont see a file system. Disk is working because in windows OS on this same computer it works as well.
when i typed dmesg i got following logs
[12913.260078] usb 4-1: new low speed USB device using ohci_hcd and address 15
[12913.440072] usb 4-1: device descriptor read/64, error -62
[12913.730058] usb 4-1: device descriptor read/64, error -62
[12914.020085] usb 4-1: new low speed USB device using ohci_hcd and address 16
[12914.200082] usb 4-1: device descriptor read/64, error -62
[12914.490150] usb 4-1: device descriptor read/64, error -62
[12914.780064] usb 4-1: new low speed USB device using ohci_hcd and address 17
[12915.200070] usb 4-1: device not accepting address 17, error -62
[12915.380081] usb 4-1: new low speed USB device using ohci_hcd and address 18
[12915.800065] usb 4-1: device not accepting address 18, error -62
[12915.800100] hub 4-0:1.0: unable to enumerate USB device on port 1
i trying to fix that by use commands:
cd /sys/bus/pci/drivers/ehci_hcd
echo -n "0000:00:02.1" > unbind
but it did not match the result and i don't have any other idea
| linux | ubuntu | linux-device-driver | disk | externalinterface | 06/29/2012 18:54:08 | off topic | external disk dont work on ubuntu
===
i have problem with in my ubuntu: when i connect external imation apollo disc i dont see a file system. Disk is working because in windows OS on this same computer it works as well.
when i typed dmesg i got following logs
[12913.260078] usb 4-1: new low speed USB device using ohci_hcd and address 15
[12913.440072] usb 4-1: device descriptor read/64, error -62
[12913.730058] usb 4-1: device descriptor read/64, error -62
[12914.020085] usb 4-1: new low speed USB device using ohci_hcd and address 16
[12914.200082] usb 4-1: device descriptor read/64, error -62
[12914.490150] usb 4-1: device descriptor read/64, error -62
[12914.780064] usb 4-1: new low speed USB device using ohci_hcd and address 17
[12915.200070] usb 4-1: device not accepting address 17, error -62
[12915.380081] usb 4-1: new low speed USB device using ohci_hcd and address 18
[12915.800065] usb 4-1: device not accepting address 18, error -62
[12915.800100] hub 4-0:1.0: unable to enumerate USB device on port 1
i trying to fix that by use commands:
cd /sys/bus/pci/drivers/ehci_hcd
echo -n "0000:00:02.1" > unbind
but it did not match the result and i don't have any other idea
| 2 |
10,360,623 | 04/28/2012 04:36:54 | 453,455 | 09/21/2010 04:23:26 | 45 | 0 | Mainline bit torrent DHT implementation library | Would anyone know where I can find a reusable mainline DHT implementation that I could use to connect to the real bittorrent network ?
Preferably java, but any other language would do. | java | bittorrent | dht | null | null | 04/29/2012 01:21:20 | not constructive | Mainline bit torrent DHT implementation library
===
Would anyone know where I can find a reusable mainline DHT implementation that I could use to connect to the real bittorrent network ?
Preferably java, but any other language would do. | 4 |
4,230,698 | 11/20/2010 01:11:50 | 292,291 | 03/12/2010 10:53:07 | 2,117 | 29 | Whats the difference between Dependency Property SetValue() & SetCurrentValue() | The reason why I am asking this is because I was recommended by @Greg D (from [this question][1]) to use `SetCurrentValue()` instead, but a look at the docs and didn't see whats the difference. Or whats does "without changing its value source" mean?
[**`SetValue()`**][2]
Sets the local value of a dependency property, specified by its dependency property identifier.
[**`SetCurrentValue()`**][3]
Sets the value of a dependency property without changing its value source.
[1]: http://stackoverflow.com/questions/4225331/is-there-something-wrong-with-my-dependency-property-content-not-set-with-bindin
[2]: http://msdn.microsoft.com/en-us/library/ms597473.aspx
[3]: http://msdn.microsoft.com/en-us/library/system.windows.dependencyobject.setcurrentvalue.aspx | wpf | dependency-properties | null | null | null | null | open | Whats the difference between Dependency Property SetValue() & SetCurrentValue()
===
The reason why I am asking this is because I was recommended by @Greg D (from [this question][1]) to use `SetCurrentValue()` instead, but a look at the docs and didn't see whats the difference. Or whats does "without changing its value source" mean?
[**`SetValue()`**][2]
Sets the local value of a dependency property, specified by its dependency property identifier.
[**`SetCurrentValue()`**][3]
Sets the value of a dependency property without changing its value source.
[1]: http://stackoverflow.com/questions/4225331/is-there-something-wrong-with-my-dependency-property-content-not-set-with-bindin
[2]: http://msdn.microsoft.com/en-us/library/ms597473.aspx
[3]: http://msdn.microsoft.com/en-us/library/system.windows.dependencyobject.setcurrentvalue.aspx | 0 |
4,476,740 | 12/18/2010 05:06:14 | 339,108 | 05/12/2010 08:40:51 | 684 | 1 | How to design a control which would let an user to put a decimal point at an appropriate position | Introduce the decimal point at the correct place in the product:
2.5 x 9 = 225
17 x 1.17 = 1989
0.04 x 8 = 32
24 x 1.1 = 264
If you look at the above samples, the decimal point can occur anywhere between the numbers. What would be an intuitive way to capture user input selection here (e.g. in the second sentence, he could choose to put a dot between 1 and 9 or 9 and 8 or 8 and 9) | html | design | user-interface | usability | null | null | open | How to design a control which would let an user to put a decimal point at an appropriate position
===
Introduce the decimal point at the correct place in the product:
2.5 x 9 = 225
17 x 1.17 = 1989
0.04 x 8 = 32
24 x 1.1 = 264
If you look at the above samples, the decimal point can occur anywhere between the numbers. What would be an intuitive way to capture user input selection here (e.g. in the second sentence, he could choose to put a dot between 1 and 9 or 9 and 8 or 8 and 9) | 0 |
11,254,322 | 06/28/2012 23:32:43 | 387,121 | 07/08/2010 20:11:27 | 1 | 2 | UI Design / Flow - what should "Save" and "Cancel" do? | I had a discussion with a co-worker earlier today about a design pet peeve of mine, and after some searching regarding UI design principles I can't really find anything regarding this particular scenario.
In many applications (mostly web, but windows as well) I see a form that allows the user to add/edit/delete rows of data. This form has "Save" and "Cancel" buttons that only affect the editable fields - record addition/deletion occurs the instant a user clicks "Add" or "Delete".
See http://imageshack.us/photo/my-images/856/masterdetails.png/ for an example (sorry, I'm not an artist)
In this case, what should the "Save" and "Cancel" buttons do?
- My position is that the "Save" and "Cancel" buttons should affect everything (every editable field and every add/edit/delete action) on the form since contextually there is nothing to indicate that they only affect a particular set of actions and/or fields.
- My co-worker's position is that it's completely understandable that the "Save" and "Cancel" buttons only affect the fields, and that users won't really notice that additions/deletions are persisted without clicking "Save".
I realize some of this may be "what do the users want/need", but I'm curious what other developers think.
[1]: http://i.stack.imgur.com/bmT0R.png | design | user-interface | flow | null | null | 06/28/2012 23:41:46 | off topic | UI Design / Flow - what should "Save" and "Cancel" do?
===
I had a discussion with a co-worker earlier today about a design pet peeve of mine, and after some searching regarding UI design principles I can't really find anything regarding this particular scenario.
In many applications (mostly web, but windows as well) I see a form that allows the user to add/edit/delete rows of data. This form has "Save" and "Cancel" buttons that only affect the editable fields - record addition/deletion occurs the instant a user clicks "Add" or "Delete".
See http://imageshack.us/photo/my-images/856/masterdetails.png/ for an example (sorry, I'm not an artist)
In this case, what should the "Save" and "Cancel" buttons do?
- My position is that the "Save" and "Cancel" buttons should affect everything (every editable field and every add/edit/delete action) on the form since contextually there is nothing to indicate that they only affect a particular set of actions and/or fields.
- My co-worker's position is that it's completely understandable that the "Save" and "Cancel" buttons only affect the fields, and that users won't really notice that additions/deletions are persisted without clicking "Save".
I realize some of this may be "what do the users want/need", but I'm curious what other developers think.
[1]: http://i.stack.imgur.com/bmT0R.png | 2 |
2,348,520 | 02/27/2010 18:54:46 | 231,435 | 12/14/2009 16:36:12 | 316 | 20 | Select and disable each input field within a form, wrapped in a table in jquery | I am disabling a form based on a checkbox...
I am having trouble adding the disabled attribute.
here is what I got so far:
HTML:
<table id="someTable">
<tr>
<td>Name:</td>
<td><input type="text" name="name" /></td>
</tr>
...
</table>
Javascript selector/attribute manipulation(jquery):
$("#shipInfoTable tbody tr td input").each(function(index, item){
item.attr("disabled", true);
});
Chrome Dev Console error:
`Uncaught TypeError: Object #<an HTMLInputElement> has no method 'attr'`
When I alert out the `item` within the `.each()` it alerts `[object HTMLInputElement]`
Not quite sure how to select the input element properly. What am I doing wrong? | jquery | jquery-selectors | jquery-traversing | null | null | null | open | Select and disable each input field within a form, wrapped in a table in jquery
===
I am disabling a form based on a checkbox...
I am having trouble adding the disabled attribute.
here is what I got so far:
HTML:
<table id="someTable">
<tr>
<td>Name:</td>
<td><input type="text" name="name" /></td>
</tr>
...
</table>
Javascript selector/attribute manipulation(jquery):
$("#shipInfoTable tbody tr td input").each(function(index, item){
item.attr("disabled", true);
});
Chrome Dev Console error:
`Uncaught TypeError: Object #<an HTMLInputElement> has no method 'attr'`
When I alert out the `item` within the `.each()` it alerts `[object HTMLInputElement]`
Not quite sure how to select the input element properly. What am I doing wrong? | 0 |
1,494,399 | 09/29/2009 19:13:41 | 4,066 | 09/01/2008 16:06:15 | 1,803 | 76 | How do I Search/Find and Replace in an STL string | Is there a way to replace all occurrences of a substring with another string in std::string?
For instance:
void SomeFunction(std::string& str)
{
str = str.replace("hello", "world"); //< I'm looking for something nice like this
} | c++tl | string | search | replace | find-and-replace | null | open | How do I Search/Find and Replace in an STL string
===
Is there a way to replace all occurrences of a substring with another string in std::string?
For instance:
void SomeFunction(std::string& str)
{
str = str.replace("hello", "world"); //< I'm looking for something nice like this
} | 0 |
8,937,379 | 01/20/2012 06:04:08 | 1,013,414 | 10/25/2011 19:28:59 | 1 | 0 | what does "passing argument 2 of strcmp makes pointer from integer without a cast" error in C language mean? | I am compiling my code in C language in vim text editor and I am getting In function main: two errors one in line 138,143,148 ":warning:passing argument 2 of strcmp makes pointer from integer without a cast" and the other one just in line 143 ":warning: note: expected const char * but argument is of type int"
This my main:
int main(int argc, char *argv[])
{
//check to make sure that the command line arguments are valid
if(argc!=3)
{
printf("invalid function call try again\n");
}
//else to choose the proper command
else
{
//reverse routine A
if(strcmp(argv[2],'a'||'A')==0) //line 138
{
reva(argv[1]);
}
//reverse routine B
else if(strcmp(argv[2],'b'||'B')==0) //line 143
{
revb(argv[1]);
}
//reverse routine C
else if(strcmp(argv[2],'c'||'C')==0) //line 148
{
revc(argv[1]);
}
//unacceptable command line argumant
else
{
printf("unacceptable command line argument for reverse
routine try again:\n");
}
}
}
| strcmp | null | null | null | null | null | open | what does "passing argument 2 of strcmp makes pointer from integer without a cast" error in C language mean?
===
I am compiling my code in C language in vim text editor and I am getting In function main: two errors one in line 138,143,148 ":warning:passing argument 2 of strcmp makes pointer from integer without a cast" and the other one just in line 143 ":warning: note: expected const char * but argument is of type int"
This my main:
int main(int argc, char *argv[])
{
//check to make sure that the command line arguments are valid
if(argc!=3)
{
printf("invalid function call try again\n");
}
//else to choose the proper command
else
{
//reverse routine A
if(strcmp(argv[2],'a'||'A')==0) //line 138
{
reva(argv[1]);
}
//reverse routine B
else if(strcmp(argv[2],'b'||'B')==0) //line 143
{
revb(argv[1]);
}
//reverse routine C
else if(strcmp(argv[2],'c'||'C')==0) //line 148
{
revc(argv[1]);
}
//unacceptable command line argumant
else
{
printf("unacceptable command line argument for reverse
routine try again:\n");
}
}
}
| 0 |
2,868,185 | 05/19/2010 18:14:49 | 345,366 | 05/19/2010 18:14:49 | 1 | 0 | Java threads for the beginner | I've been trying to explain Java threading to a colleague who has never been exposed to multi-threaded applications, but apparently I'm not a very good teacher.
Can anyone recommend a good online or offline resource that can explain threading in a simple, step-by-step manner? I know it's a complex topic, but surely there exists an article, book, or other explanation that can result in an "Aha! I get it, finally!" moment. | java | multithreading | null | null | null | null | open | Java threads for the beginner
===
I've been trying to explain Java threading to a colleague who has never been exposed to multi-threaded applications, but apparently I'm not a very good teacher.
Can anyone recommend a good online or offline resource that can explain threading in a simple, step-by-step manner? I know it's a complex topic, but surely there exists an article, book, or other explanation that can result in an "Aha! I get it, finally!" moment. | 0 |
1,251,799 | 08/09/2009 17:28:47 | 2,424 | 08/22/2008 04:09:40 | 10,951 | 567 | How to determine what row contains a specific decimal is in a sql column | Somewhere in the midst of thousands of records I have a decimal value in a sql column that has an odd value.
Specifically, it has a decimal place of .002.
The actual amount could be pretty much anything like 238.002 or 543.002
So how can I write a query to find that? | sql-server-2008 | null | null | null | null | null | open | How to determine what row contains a specific decimal is in a sql column
===
Somewhere in the midst of thousands of records I have a decimal value in a sql column that has an odd value.
Specifically, it has a decimal place of .002.
The actual amount could be pretty much anything like 238.002 or 543.002
So how can I write a query to find that? | 0 |
4,623,458 | 01/07/2011 07:36:37 | 379,779 | 06/30/2010 07:45:54 | 289 | 37 | Is critical thinking required in software enginnering ? | I'm not sure this is a right place to ask this question. Is critical thinking required/useful in software enginnering ? The two areas I can think of are code reviews and requirement analysis. | code-review | requirements-management | null | null | null | 01/07/2011 08:00:10 | off topic | Is critical thinking required in software enginnering ?
===
I'm not sure this is a right place to ask this question. Is critical thinking required/useful in software enginnering ? The two areas I can think of are code reviews and requirement analysis. | 2 |
11,004,914 | 06/12/2012 21:10:09 | 247,372 | 01/10/2010 05:52:51 | 3,461 | 176 | How can I set `less` or `more` max lines (scrollable height) limit/boundary in linux? | (Sorry for the title. Any suggestions?)
I've set my commandline PS1 to cover 3 lines:
1. white space
2. user, server and pwd
3. `$` or `#` to input
I think `less` (or `more`?) is configured to break after `window's height - 1`, because when I do a `$ git log`, the first two lines are invisible at the top of the window and the rest is scrollable.
I'm not sure who handles this scrolling and its configuration, but I assume GIT uses `less`/`more`.
Where can I configure that my scrollable window is `window height - 3` lines and not `window height - 1`? | linux | command-line | ps1 | null | null | 06/14/2012 04:04:23 | off topic | How can I set `less` or `more` max lines (scrollable height) limit/boundary in linux?
===
(Sorry for the title. Any suggestions?)
I've set my commandline PS1 to cover 3 lines:
1. white space
2. user, server and pwd
3. `$` or `#` to input
I think `less` (or `more`?) is configured to break after `window's height - 1`, because when I do a `$ git log`, the first two lines are invisible at the top of the window and the rest is scrollable.
I'm not sure who handles this scrolling and its configuration, but I assume GIT uses `less`/`more`.
Where can I configure that my scrollable window is `window height - 3` lines and not `window height - 1`? | 2 |
2,817,407 | 05/12/2010 09:19:33 | 266,115 | 02/04/2010 11:10:36 | 432 | 33 | TripleDES in Perl/PHP/ColdFusion | Recently a problem arose regarding hooking up an API with a payment processor who were requesting a string to be encrypted to be used as a token, using the TripleDES standard. Our Applications run using ColdFusion, which has an Encrypt tag - that supports TripleDES - however the result we were getting back was not what the payment processor expected.
First of all, here is the resulting token the payment processor were expecting.
AYOF+kRtg239Mnyc8QIarw==
And below is the snippet of ColdFusion we were using, and the resulting string.
<!--- Coldfusion Crypt (here be monsters) --->
<cfset theKey="123412341234123412341234">
<cfset theString = "username=test123">
<cfset strEncodedEnc = Encrypt(theString, theKey, "DESEDE", "Base64")>
<!---
resulting string(strEncodedEnc): tc/Jb7E9w+HpU2Yvn5dA7ILGmyNTQM0h
--->
As you can see, this was not returning the string we were hoping for. Seeking a solution, we ditched ColdFusion for this process and attempted to reproduce the token in PHP.
Now I'm aware that various languages implement encryption in different ways - for example in the past managing encryption between a C# application and PHP back-end, I've had to play about with padding in order to get the two to talk, but my experience has been that PHP generally behaves when it comes to encryption standards.
Anyway, on to the PHP source we tried, and the resulting string.
/* PHP Circus (here be Elephants) */
$theKey="123412341234123412341234";
$theString="username=test123";
$strEncodedEnc=base64_encode(mcrypt_ecb (MCRYPT_3DES, $theKey, $theString, MCRYPT_ENCRYPT));
/*
resulting string(strEncodedEnc): sfiSu4mVggia8Ysw98x0uw==
*/
As you can plainly see, we've got another string that differs from both the string expected by the payment processor AND the one produced by ColdFusion. Cue head-against-wall integration techniques.
After many to-and-fro communications with the payment processor (lots and lots of reps stating 'we can't help with coding issues, you must be doing it incorrectly, read the manual') we were finally escalated to someone with more than a couple of brain-cells to rub together, who was able to step back and actually look at and diagnose the issue.
He agreed, our CF and PHP attempts were not resulting in the correct string. After a quick search, he also agreed that it was not neccesarily our source, but rather how the two languages implemented their vision of the TripleDES standard.
Coming into the office this morning, we were met by an email with a snippet of source code, in Perl. This is was the code they were directly using on their end to produce the expected token.
#!/usr/bin/perl
# Perl Crypt Calamity (here be...something)
use strict;
use CGI;
use MIME::Base64;
use Crypt::TripleDES;
my $cgi = CGI->new();
my $param = $cgi->Vars();
$param->{key} = "123412341234123412341234";
$param->{string} = "username=test123";
my $des = Crypt::TripleDES->new();
my $enc = $des->encrypt3($param->{string}, $param->{key});
$enc = encode_base64($enc);
$enc =~ s/\n//gs;
# resulting string (enc): AYOF+kRtg239Mnyc8QIarw==
So, there we have it. Three languages, three implementations of what they quote in the documentation as TripleDES Standard Encryption, and three totally different resulting strings.
My question is, from your experience of these three languages and their implementations of the TripleDES algorithm, have you been able to get any two of them to give the same response, and if so what tweaks to the code did you have to make in order to come to the result?
I understand this is a very drawn out question, but I wanted to give clear and precise setting for each stage of testing that we had to perform.
I'll also be performing some more investigatory work on this subject later, and will post any findings that I come up with to this question, so that others may avoid this headache. | tripledes | perl | php | coldfusion | encryption | null | open | TripleDES in Perl/PHP/ColdFusion
===
Recently a problem arose regarding hooking up an API with a payment processor who were requesting a string to be encrypted to be used as a token, using the TripleDES standard. Our Applications run using ColdFusion, which has an Encrypt tag - that supports TripleDES - however the result we were getting back was not what the payment processor expected.
First of all, here is the resulting token the payment processor were expecting.
AYOF+kRtg239Mnyc8QIarw==
And below is the snippet of ColdFusion we were using, and the resulting string.
<!--- Coldfusion Crypt (here be monsters) --->
<cfset theKey="123412341234123412341234">
<cfset theString = "username=test123">
<cfset strEncodedEnc = Encrypt(theString, theKey, "DESEDE", "Base64")>
<!---
resulting string(strEncodedEnc): tc/Jb7E9w+HpU2Yvn5dA7ILGmyNTQM0h
--->
As you can see, this was not returning the string we were hoping for. Seeking a solution, we ditched ColdFusion for this process and attempted to reproduce the token in PHP.
Now I'm aware that various languages implement encryption in different ways - for example in the past managing encryption between a C# application and PHP back-end, I've had to play about with padding in order to get the two to talk, but my experience has been that PHP generally behaves when it comes to encryption standards.
Anyway, on to the PHP source we tried, and the resulting string.
/* PHP Circus (here be Elephants) */
$theKey="123412341234123412341234";
$theString="username=test123";
$strEncodedEnc=base64_encode(mcrypt_ecb (MCRYPT_3DES, $theKey, $theString, MCRYPT_ENCRYPT));
/*
resulting string(strEncodedEnc): sfiSu4mVggia8Ysw98x0uw==
*/
As you can plainly see, we've got another string that differs from both the string expected by the payment processor AND the one produced by ColdFusion. Cue head-against-wall integration techniques.
After many to-and-fro communications with the payment processor (lots and lots of reps stating 'we can't help with coding issues, you must be doing it incorrectly, read the manual') we were finally escalated to someone with more than a couple of brain-cells to rub together, who was able to step back and actually look at and diagnose the issue.
He agreed, our CF and PHP attempts were not resulting in the correct string. After a quick search, he also agreed that it was not neccesarily our source, but rather how the two languages implemented their vision of the TripleDES standard.
Coming into the office this morning, we were met by an email with a snippet of source code, in Perl. This is was the code they were directly using on their end to produce the expected token.
#!/usr/bin/perl
# Perl Crypt Calamity (here be...something)
use strict;
use CGI;
use MIME::Base64;
use Crypt::TripleDES;
my $cgi = CGI->new();
my $param = $cgi->Vars();
$param->{key} = "123412341234123412341234";
$param->{string} = "username=test123";
my $des = Crypt::TripleDES->new();
my $enc = $des->encrypt3($param->{string}, $param->{key});
$enc = encode_base64($enc);
$enc =~ s/\n//gs;
# resulting string (enc): AYOF+kRtg239Mnyc8QIarw==
So, there we have it. Three languages, three implementations of what they quote in the documentation as TripleDES Standard Encryption, and three totally different resulting strings.
My question is, from your experience of these three languages and their implementations of the TripleDES algorithm, have you been able to get any two of them to give the same response, and if so what tweaks to the code did you have to make in order to come to the result?
I understand this is a very drawn out question, but I wanted to give clear and precise setting for each stage of testing that we had to perform.
I'll also be performing some more investigatory work on this subject later, and will post any findings that I come up with to this question, so that others may avoid this headache. | 0 |
7,413,190 | 09/14/2011 08:12:12 | 924,353 | 09/01/2011 22:36:53 | 93 | 0 | Separate two digits first a number with php | How can separate two digits first a number by PHP?
**Like:** if is number this: `1345` =i want this output=> `13` or `1542=output=>15` or `5872=output=>58` or ... | php | php5 | null | null | null | null | open | Separate two digits first a number with php
===
How can separate two digits first a number by PHP?
**Like:** if is number this: `1345` =i want this output=> `13` or `1542=output=>15` or `5872=output=>58` or ... | 0 |
11,027,740 | 06/14/2012 06:24:51 | 861,774 | 07/25/2011 14:35:07 | 41 | 0 | Httpwebrequest not retrieving Cookies | I have created the following code, which as far as Im aware should work fine? It is not receiving any cookies at all, I have double checked with wire shark and the cookies are being returned... this is being developed on Windows Phone 7.
byte[] content = GetLoginRequestContent(username, password);
CookieContainer cookieContainer = new CookieContainer();
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(LoginUri);
httpWebRequest.ContentType = AuthContentType;
httpWebRequest.Method = "POST";
httpWebRequest.Headers["referer"] = LoginRequestReferer;
httpWebRequest.CookieContainer = cookieContainer;
httpWebRequest.Headers[HttpRequestHeader.ContentLength] = content.Length.ToString();
httpWebRequest.BeginGetRequestStream(async1 =>
{
using (Stream stream = httpWebRequest.EndGetRequestStream(async1))
stream.Write(content, 0, content.Length);
httpWebRequest.BeginGetResponse(async2 =>
{
HttpWebResponse rep = (HttpWebResponse)httpWebRequest.EndGetResponse(async2);
CookieCollection cookies = rep.Cookies;
using (Stream stream = rep.GetResponseStream())
using (StreamReader sr = new StreamReader(stream))
{
String contentX = sr.ReadToEnd();
//if blah blah
}
}, null);
}, null); | c# | windows-phone-7 | null | null | null | null | open | Httpwebrequest not retrieving Cookies
===
I have created the following code, which as far as Im aware should work fine? It is not receiving any cookies at all, I have double checked with wire shark and the cookies are being returned... this is being developed on Windows Phone 7.
byte[] content = GetLoginRequestContent(username, password);
CookieContainer cookieContainer = new CookieContainer();
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(LoginUri);
httpWebRequest.ContentType = AuthContentType;
httpWebRequest.Method = "POST";
httpWebRequest.Headers["referer"] = LoginRequestReferer;
httpWebRequest.CookieContainer = cookieContainer;
httpWebRequest.Headers[HttpRequestHeader.ContentLength] = content.Length.ToString();
httpWebRequest.BeginGetRequestStream(async1 =>
{
using (Stream stream = httpWebRequest.EndGetRequestStream(async1))
stream.Write(content, 0, content.Length);
httpWebRequest.BeginGetResponse(async2 =>
{
HttpWebResponse rep = (HttpWebResponse)httpWebRequest.EndGetResponse(async2);
CookieCollection cookies = rep.Cookies;
using (Stream stream = rep.GetResponseStream())
using (StreamReader sr = new StreamReader(stream))
{
String contentX = sr.ReadToEnd();
//if blah blah
}
}, null);
}, null); | 0 |
10,894,433 | 06/05/2012 09:03:27 | 809,807 | 06/22/2011 06:39:37 | 182 | 5 | PF Updating a TextInput according to Calendars | I am getting a starting date and an end day from the user and then counting the weekdays according to these values. These are my components:
<h:outputText value="Starting Date: "/>
<p:calendar pattern="dd/MM/yyyy" value="#{aView.holidays.startingDate}">
<p:ajax listener="#{aView.count}" update="count"/>
<h:outputText value="End Date: "/>
<p:calendar pattern="dd/MM/yyyy" value="#{aView.holidays.endDate}">
<p:ajax listener="#{aView.count}" update="count"/>
</p:calendar>
<h:outputText value="Count of Days: "/>
<p:inputText id="count" value="#{aView.holidays.count}"/>
But it does not update the count. What is wrong with the above code?
| jsf-2.0 | primefaces | null | null | null | null | open | PF Updating a TextInput according to Calendars
===
I am getting a starting date and an end day from the user and then counting the weekdays according to these values. These are my components:
<h:outputText value="Starting Date: "/>
<p:calendar pattern="dd/MM/yyyy" value="#{aView.holidays.startingDate}">
<p:ajax listener="#{aView.count}" update="count"/>
<h:outputText value="End Date: "/>
<p:calendar pattern="dd/MM/yyyy" value="#{aView.holidays.endDate}">
<p:ajax listener="#{aView.count}" update="count"/>
</p:calendar>
<h:outputText value="Count of Days: "/>
<p:inputText id="count" value="#{aView.holidays.count}"/>
But it does not update the count. What is wrong with the above code?
| 0 |
2,413,805 | 03/10/2010 01:03:44 | 269,595 | 02/09/2010 15:38:29 | 211 | 13 | Best books for SQL Server / database design. | I have some really good books for SQL Server, like:
- SQL Server 2008 Bible
- Pro SQL Server 2008 - Relational Database Design and Implementation
- SQL Server 2008 for Developers.
Can you suggest/recommend some other titles, that may address other topics perhaps, that you found truly useful? | sql-server | sql | databases | database-design | database | 09/30/2011 12:26:03 | not constructive | Best books for SQL Server / database design.
===
I have some really good books for SQL Server, like:
- SQL Server 2008 Bible
- Pro SQL Server 2008 - Relational Database Design and Implementation
- SQL Server 2008 for Developers.
Can you suggest/recommend some other titles, that may address other topics perhaps, that you found truly useful? | 4 |
10,884,700 | 06/04/2012 16:27:59 | 1,432,581 | 06/02/2012 15:40:58 | 1 | 0 | How to create a dropdown menu with multiple choice which uses mysql to find the items to display in android 2.3.3? | I have a project I have to do but I am stuck in the design phase. I need to develop an android application which will have a dropdown menu with multiple choice that will display the items it takes from the database. For example the database will contain a table of courses that the user can choose and the dropdown menu will display those courses in the database. Also the user will be able to choose 4-5 courses from approximately 150 courses. My first question is how can i make a multiple choice dropdown menu and the second question is how can i make the dropdown menu to display those 150 courses from the database?
I also considered searching the database with the course names but i only know how to display the results not select them and exclude them from the table.
Any help is appreciated and sorry for the long question. | android | database | drop-down-menu | null | null | null | open | How to create a dropdown menu with multiple choice which uses mysql to find the items to display in android 2.3.3?
===
I have a project I have to do but I am stuck in the design phase. I need to develop an android application which will have a dropdown menu with multiple choice that will display the items it takes from the database. For example the database will contain a table of courses that the user can choose and the dropdown menu will display those courses in the database. Also the user will be able to choose 4-5 courses from approximately 150 courses. My first question is how can i make a multiple choice dropdown menu and the second question is how can i make the dropdown menu to display those 150 courses from the database?
I also considered searching the database with the course names but i only know how to display the results not select them and exclude them from the table.
Any help is appreciated and sorry for the long question. | 0 |
8,332,140 | 11/30/2011 19:57:26 | 105,261 | 05/12/2009 09:54:53 | 356 | 4 | asp to php translate | how to write this code in php?
fld_year = Request.QueryString("year")
fld_month = Request.QueryString("month")
if fld_year = "" then fld_year = year(now())
if fld_month = "" then fld_month = month(now())
if fld_month = 12 then
fld_Ny = fld_year + 1
fld_Nm = 1
fld_Py = fld_year
fld_Pm = 11
else
if fld_month = 1 then
fld_Ny = fld_year
fld_Nm = 2
fld_Py = fld_year - 1
fld_Pm = 12
else
fld_Ny = fld_year
fld_Nm = fld_month + 1
fld_Py = fld_year
fld_Pm = fld_month - 1
end if
end if | php | asp | null | null | null | 11/30/2011 20:03:31 | not a real question | asp to php translate
===
how to write this code in php?
fld_year = Request.QueryString("year")
fld_month = Request.QueryString("month")
if fld_year = "" then fld_year = year(now())
if fld_month = "" then fld_month = month(now())
if fld_month = 12 then
fld_Ny = fld_year + 1
fld_Nm = 1
fld_Py = fld_year
fld_Pm = 11
else
if fld_month = 1 then
fld_Ny = fld_year
fld_Nm = 2
fld_Py = fld_year - 1
fld_Pm = 12
else
fld_Ny = fld_year
fld_Nm = fld_month + 1
fld_Py = fld_year
fld_Pm = fld_month - 1
end if
end if | 1 |
8,272,361 | 11/25/2011 17:21:07 | 476,093 | 10/14/2010 17:41:13 | 1 | 0 | How to display Magento Custom Options Individually | My Magento site has a product which has a few Custom Options, one text, one file upload and four drop down lists.
The design of the site dictates that I need to show these options throughout the product view page and not all in one group.
Is there a function that I can call to return the HTML of a singe Custom Option? | magento | magento-1.4 | null | null | null | null | open | How to display Magento Custom Options Individually
===
My Magento site has a product which has a few Custom Options, one text, one file upload and four drop down lists.
The design of the site dictates that I need to show these options throughout the product view page and not all in one group.
Is there a function that I can call to return the HTML of a singe Custom Option? | 0 |
5,566,877 | 04/06/2011 13:09:51 | 673,260 | 03/23/2011 14:54:10 | 1 | 0 | Regular Expression problem | I need a regular expression for javascript that will get "`jones.com/ca`" from "`Hello we are jones.com/ca in Tampa`". The "`jones.com/ca`" could be any web url extension (example: .net, .co, .gov, etc), and any name. So the regular expression needs to find all instances of say "`.com`" and all the text to the last white space or beginning of line and to the last white space or end of line (minus any ending punctuation).
Right now I have as an example line: "`jones.com/ca some text`", using a javascript regular expression of: "`\\(.+?^\\s).com?([^\\s]+)?\\`", and all I get is "`.com/ca`" as the output. | javascript | null | null | null | null | null | open | Regular Expression problem
===
I need a regular expression for javascript that will get "`jones.com/ca`" from "`Hello we are jones.com/ca in Tampa`". The "`jones.com/ca`" could be any web url extension (example: .net, .co, .gov, etc), and any name. So the regular expression needs to find all instances of say "`.com`" and all the text to the last white space or beginning of line and to the last white space or end of line (minus any ending punctuation).
Right now I have as an example line: "`jones.com/ca some text`", using a javascript regular expression of: "`\\(.+?^\\s).com?([^\\s]+)?\\`", and all I get is "`.com/ca`" as the output. | 0 |
3,032,325 | 06/13/2010 13:09:01 | 252,163 | 01/16/2010 13:34:44 | 506 | 28 | 1120: Why can't it access the variable? | I'm new at as3, maybe thats the reason why i don't understand, why the `setInterval` causes an error.
<mx:Script>
<![CDATA[
import flash.utils.setInterval;
import mx.controls.Alert;
[Bindable]
public var MyInt:int = 500;
setInterval(function():void{ ++MyInt; },1000);
]]>
</mx:Script>
I have a label where the value of `MyInt` gets visible, the bind works perfect, i've tested it several ways, and i i create a button it grows the number, but if i use the `setInterval` function i get an error: `Access of undefined property myInt`.
Why? What does cause this? Please explain it, so I can avoid errors like this. Thanks | flex | actionscript-3 | null | null | null | null | open | 1120: Why can't it access the variable?
===
I'm new at as3, maybe thats the reason why i don't understand, why the `setInterval` causes an error.
<mx:Script>
<![CDATA[
import flash.utils.setInterval;
import mx.controls.Alert;
[Bindable]
public var MyInt:int = 500;
setInterval(function():void{ ++MyInt; },1000);
]]>
</mx:Script>
I have a label where the value of `MyInt` gets visible, the bind works perfect, i've tested it several ways, and i i create a button it grows the number, but if i use the `setInterval` function i get an error: `Access of undefined property myInt`.
Why? What does cause this? Please explain it, so I can avoid errors like this. Thanks | 0 |
1,281,291 | 08/15/2009 06:12:28 | 156,843 | 08/15/2009 06:05:13 | 1 | 0 | what language should an EE major learn? | I want to know which language should I learn or reinforce so that i won't be caught off-guard. Let's assume that I'm an Electrical Engineer major and i want to go into the field of Power Systems ( Electric Power Engineering). Also, how can i become really good at using labVIEW. | electrical-engineering | programming-languages | null | null | null | 08/17/2009 20:20:19 | not a real question | what language should an EE major learn?
===
I want to know which language should I learn or reinforce so that i won't be caught off-guard. Let's assume that I'm an Electrical Engineer major and i want to go into the field of Power Systems ( Electric Power Engineering). Also, how can i become really good at using labVIEW. | 1 |
5,491,536 | 03/30/2011 19:53:44 | 69,080 | 02/20/2009 20:12:39 | 158 | 9 | Favorite/Recommended Webhosts | I'm in search of a new web host. I've been using Dreamhost for the past 4-5 years, and although I have no complaints, I figured there might be better alternatives out there now.
I came across Media Temple, and although their features sound nice, a lot of reviews I read were claiming poor performance.
What do you guys use for your web hosting needs? I'm not looking for anything like Slicehost (I'm using them for experimental purposes) but a shared web host with admin tools (I have little server/IT knowledge)
Sorry if this isn't the right place for this post, I didn't know who else to ask =)
Thanks! | isp | webhost | null | null | null | 03/31/2011 13:06:30 | not constructive | Favorite/Recommended Webhosts
===
I'm in search of a new web host. I've been using Dreamhost for the past 4-5 years, and although I have no complaints, I figured there might be better alternatives out there now.
I came across Media Temple, and although their features sound nice, a lot of reviews I read were claiming poor performance.
What do you guys use for your web hosting needs? I'm not looking for anything like Slicehost (I'm using them for experimental purposes) but a shared web host with admin tools (I have little server/IT knowledge)
Sorry if this isn't the right place for this post, I didn't know who else to ask =)
Thanks! | 4 |
7,054,779 | 08/14/2011 03:21:27 | 852,459 | 07/19/2011 16:49:33 | 13 | 0 | Cisco 7945 - Asterisk - Change features on softkeys and set what they do | I have a Cisco 7945g phone. I want to change the features displayed above the soft keys and change how they behave. By soft key, I'm referring to the 4 buttons beneath the display that say Dial, New Call, ReDial, DND, etc. I have a soft key template file titled SK123.xml, I also have XMLDefault.cnf.xml, dialplan.xml SEP<mac-address>.cnf.xml and I even located and tried implementing featurePolicyDefault.xml. I have to deploy this system by Monday, and due to some last minute changes in phone models, I'm stuck trying to get these to work like the SPA504g's we already have. In the SPA504g it is very simple to do what I'm trying to, as they made a handy web gui, and you just enable and change PSK (programmable soft keys). I have yet to find any documentation on how to do this, so I have resorted here. Also, please note that I am using SIP on Asterisk 1.8.5, so not using Cisco Unified Communications Manager. I'm fairly new to stackoverflow, so I don't know how to properly do this, but I intend to offer a $100 bounty to whomever first delivers working XML files to accomplish this. I will pay the winner via any method he/she prefers. I am listing the above mentioned configuration files below for reference. You may also add me on gTalk (jeff clay >at< g mail >dot< com) no spaces. I have listed this same proposal on both FaceBook and Google+, but I probably won't get anything from either of those.
dialplan.xml
<DIALTEMPLATE>
<TEMPLATE MATCH="*.." TIMEOUT="1"/><!-- *.. Any feature set beginning with * then 2 digits, then Dial immediately -->
<TEMPLATE MATCH="**..." TIMEOUT="1"/><!-- *.. Any feature set beginning with * then 2 digits, then Dial immediately -->
<TEMPLATE MATCH="1..." TIMEOUT="1"/><!-- Internal extensions 100 to 199. Wait 1 second, then dial -->
<TEMPLATE MATCH="1.." TIMEOUT="1"/><!-- Internal extensions 100 to 199. Wait 1 second, then dial -->
<TEMPLATE MATCH="2.." TIMEOUT="1"/><!-- Internal extensions 200 to 299. Wait 1 second, then dial -->
<TEMPLATE MATCH="3.." TIMEOUT="1"/><!-- Internal extensions 300 to 399. Wait 1 second, then dial -->
<TEMPLATE MATCH="4.." TIMEOUT="1"/><!-- Internal extensions 400 to 499. Wait 1 second, then dial -->
<TEMPLATE MATCH="5.." TIMEOUT="1"/><!-- Internal extensions 500 to 599. Wait 1 second, then dial -->
<TEMPLATE MATCH="6.." TIMEOUT="1"/><!-- Internal extensions 600 to 699. Wait 1 second, then dial -->
<TEMPLATE MATCH="7.." TIMEOUT="1"/><!-- Internal extensions 700 to 799. Wait 1 second, then dial -->
<TEMPLATE MATCH="8.." TIMEOUT="1"/><!-- Internal extensions 800 to 899. Wait 1 second, then dial -->
<TEMPLATE MATCH="9.." TIMEOUT="1"/><!-- Internal extensions 900 to 999. Wait 1 second, then dial -->
<TEMPLATE MATCH="......." TIMEOUT="1"/><!-- 7 digits. Wait 1 second, then dial -->
<TEMPLATE MATCH=".........." TIMEOUT="1"/><!-- 10 digits. Dial immediately -->
</DIALTEMPLATE>
SK123.xml
<softKeyCfg>
<versionStamp>11cdf71b-e9bc-4559-be88-94a266766601</versionStamp>
<typeSoftKey>
<softKeyDef keyID="Redial">
<tag>1</tag>
<eventID>1</eventID>
<helpID>301</helpID>
</softKeyDef>
<softKeyDef keyID="Page">
<tag>1234</tag>
<eventID>1234</eventID>
<helpID>1234</helpID>
</softKeyDef>
<softKeyDef keyID="Hold">
<tag>3</tag>
<eventID>3</eventID>
<helpID>303</helpID>
</softKeyDef>
<softKeyDef keyID="Trnsfer">
<tag>4</tag>
<eventID>4</eventID>
<helpID>304</helpID>
</softKeyDef>
<softKeyDef keyID="CfwdAll">
<tag>5</tag>
<eventID>5</eventID>
<helpID>305</helpID>
</softKeyDef>
<softKeyDef keyID="CfwdBusy">
<tag>6</tag>
<eventID>6</eventID>
<helpID>306</helpID>
</softKeyDef>
<softKeyDef keyID="CfwdNoAnswer">
<tag>7</tag>
<eventID>7</eventID>
<helpID>307</helpID>
</softKeyDef>
// back
<softKeyDef keyID="<<">
<tag>8</tag>
<eventID>8</eventID>
<helpID>308</helpID>
</softKeyDef>
<softKeyDef keyID="EndCall">
<tag>9</tag>
<eventID>9</eventID>
<helpID>309</helpID>
</softKeyDef>
<softKeyDef keyID="Resume">
<tag>10</tag>
<eventID>10</eventID>
<helpID>310</helpID>
</softKeyDef>
<softKeyDef keyID="Answer">
<tag>11</tag>
<eventID>11</eventID>
<helpID>311</helpID>
</softKeyDef>
<softKeyDef keyID="Info">
<tag>12</tag>
<eventID>12</eventID>
<helpID>312</helpID>
</softKeyDef>
<softKeyDef keyID="Confrn">
<tag>13</tag>
<eventID>13</eventID>
<helpID>313</helpID>
</softKeyDef>
<softKeyDef keyID="Park">
<tag>14</tag>
<eventID>14</eventID>
<helpID>314</helpID>
</softKeyDef>
<softKeyDef keyID="Join">
<tag>15</tag>
<eventID>15</eventID>
<helpID>315</helpID>
</softKeyDef>
<softKeyDef keyID="MeetMe">
<tag>16</tag>
<eventID>16</eventID>
<helpID>316</helpID>
</softKeyDef>
<softKeyDef keyID="PickUp">
<tag>17</tag>
<eventID>17</eventID>
<helpID>317</helpID>
</softKeyDef>
<softKeyDef keyID="GPickUp">
<tag>18</tag>
<eventID>18</eventID>
<helpID>318</helpID>
</softKeyDef>
// remove last conference party
<softKeyDef keyID="RmLstC">
<tag>57</tag>
<eventID>19</eventID>
<helpID>319</helpID>
</softKeyDef>
<softKeyDef keyID="Barge">
<tag>67</tag>
<eventID>21</eventID>
<helpID>321</helpID>
</softKeyDef>
<softKeyDef keyID="DirTrfr">
<tag>77</tag>
<eventID>28</eventID>
<helpID>328</helpID>
</softKeyDef>
<softKeyDef keyID="Select">
<tag>78</tag>
<eventID>29</eventID>
<helpID>329</helpID>
</softKeyDef>
<softKeyDef keyID="ConfList">
<tag>79</tag>
<eventID>30</eventID>
<helpID>330</helpID>
</softKeyDef>
<softKeyDef keyID="VidMode">
<tag>88</tag>
<eventID>33</eventID>
<helpID>333</helpID>
</softKeyDef>
<softKeyDef keyID="ImmDiv">
<tag>59</tag>
<eventID>65</eventID>
<helpID>365</helpID>
</softKeyDef>
<softKeyDef keyID="Intrcpt">
<tag>60</tag>
<eventID>66</eventID>
<helpID>366</helpID>
</softKeyDef>
<softKeyDef keyID="SetWtch">
<tag>61</tag>
<eventID>67</eventID>
<helpID>367</helpID>
</softKeyDef>
<softKeyDef keyID="TrnsfVM">
<tag>62</tag>
<eventID>68</eventID>
<helpID>368</helpID>
</softKeyDef>
<softKeyDef keyID="DND">
<tag>63</tag>
<eventID>69</eventID>
<helpID>369</helpID>
</softKeyDef>
<softKeyDef keyID="DivAll">
<tag>64</tag>
<eventID>70</eventID>
<helpID>370</helpID>
</softKeyDef>
</typeSoftKey>
<softKeySets>
<softKeySet id="On Hook">
<softKey keyID="Redial"></softKey>
<softKey keyID="PickUp"></softKey>
<softKey keyID="Page"></softKey>
<softKey keyID="DND"></softKey>
<softKey keyID="CfwdAll"></softKey>
</softKeySet>
<softKeySet id="Connected">
<softKey keyID="Hold"></softKey>
<softKey keyID="EndCall"></softKey>
<softKey keyID="Trnsfer"></softKey>
<softKey keyID="TrnsfVM"></softKey>
<softKey keyID="DND"></softKey>
<softKey keyID="Select"></softKey>
<softKey keyID="Join"></softKey>
<softKey keyID="DirTrfr"></softKey>
<softKey keyID="RmLstC"></softKey>
<softKey keyID="Park"></softKey>
</softKeySet>
<softKeySet id="On Hold">
<softKey keyID="Resume"></softKey>
<softKey keyID="NewCall"></softKey>
<softKey keyID="Intrcpt"></softKey>
<softKey keyID="TrnsfVM"></softKey>
<softKey keyID="DND"></softKey>
<softKey keyID="Select"></softKey>
<softKey keyID="Join"></softKey>
<softKey keyID="DirTrfr"></softKey>
</softKeySet>
<softKeySet id="Ring In">
<softKey keyID="Answer"></softKey>
<softKey keyID="ImmDiv"></softKey>
<softKey keyID="CfwdBusy"></softKey>
<softKey keyID="TrnsfVM"></softKey>
<softKey keyID="DivAll"></softKey>
<softKey keyID="DND"></softKey>
</softKeySet>
<softKeySet id="Off Hook">
<softKey keyID="Redial"></softKey>
<softKey keyID="EndCall"></softKey>
<softKey keyID="PickUp"></softKey>
<softKey keyID="MeetMe"></softKey>
</softKeySet>
<softKeySet id="Connected Transfer">
<softKey keyID="Intrcpt"></softKey>
<softKey keyID="EndCall"></softKey>
<softKey keyID="Trnsfer"></softKey>
</softKeySet>
<softKeySet id="Digits After First">
<softKey keyID="<<"></softKey>
<softKey keyID="EndCall"></softKey>
</softKeySet>
<softKeySet id="Connected Conference">
<softKey keyID="Intrcpt"></softKey>
<softKey keyID="EndCall"></softKey>
<softKey keyID="Confrn"></softKey>
</softKeySet>
<softKeySet id="Ring Out">
<softKey keyID="EndCall"></softKey>
<softKey keyID="Intrcpt"></softKey>
</softKeySet>
<softKeySet id="Off Hook With Feature">
<softKey keyID="Redial"></softKey>
<softKey keyID="EndCall"></softKey>
<softKey keyID="Intrcpt"></softKey>
</softKeySet>
<softKeySet id="Remote In Use">
<softKey keyID="Barge"></softKey>
<softKey keyID="NewCall"></softKey>
<softKey keyID="cBarge"></softKey>
</softKeySet>
</softKeySets>
</softKeyCfg>
featurePolicy1.xml
GW231#more flash:featurePolicy1.xml
<featurePolicy name="Feature Policy 1">
<versionStamp></versionStamp>
<featureDef name="Forward All">
<id>1</id>
<enable>true</enable>
</featureDef>
<featureDef name="Park">
<id>2</id>
<enable>true</enable>
</featureDef>
<featureDef name="Speed Dial">
<id>5</id>
<enable>false</enable>
</featureDef>
<featureDef name="Call Back">
<id>6</id>
<enable>false</enable>
</featureDef>
<featureDef name="Redial">
<id>7</id>
<enable>true</enable>
</featureDef>
<featureDef name="Barge">
<id>8</id>
<enable>true</enable>
</featureDef>
<featureDef name="To Voicemail (Connected)">
<id>9</id>
<enable>true</enable>
</featureDef>
</featurePolicy>
SEP<mac>.cnf.xml
<device xsi:type="axl:XIPPhone" ctiid="1000">
<fullConfig>true</fullConfig>
<deviceProtocol>SIP</deviceProtocol>
<sshUserId>jeff</sshUserId>
<sshPassword>clay</sshPassword>
<featurePolicyFile>featurePolicyDefault.xml</featurePolicyFile>
<devicePool>
<name>Dallas 5.0 Beta</name>
<dateTimeSetting>
<dateTemplate>M/D/Ya</dateTemplate>
<timeZone>Central Standard/Daylight Time</timeZone>
<ntps>
<ntp>
<name>0.pool.ntp.org</name>
<ntpMode>Unicast</ntpMode>
</ntp>
<ntp>
<name>1.pool.ntp.org</name>
<ntpMode>Unicast</ntpMode>
</ntp>
</ntps>
</dateTimeSetting>
<callManagerGroup>
<name>5.0 Beta</name>
<tftpDefault>false</tftpDefault>
<members>
<member priority="0">
<callManager>
<ports>
<ethernetPhonePort>2000</ethernetPhonePort>
<sipPort>5060</sipPort>
<securedSipPort>5061</securedSipPort>
</ports>
<processNodeName>sip.starengr.local</processNodeName>
</callManager>
</member>
</members>
</callManagerGroup>
<srstInfo>
<name>Disable</name>
<srstOption>Disable</srstOption>
<userModifiable>true</userModifiable>
<ipAddr1>sip.starengr.local</ipAddr1>
<port1>2000</port1>
<ipAddr2></ipAddr2>
<port2>2000</port2>
<ipAddr3></ipAddr3>
<port3>2000</port3>
<sipIpAddr1>sip.starengr.local</sipIpAddr1>
<sipPort1>5060</sipPort1>
<sipIpAddr2></sipIpAddr2>
<sipPort2>5060</sipPort2>
<sipIpAddr3></sipIpAddr3>
<sipPort3>5060</sipPort3>
<isSecure>false</isSecure>
</srstInfo>
<mlppDomainId>-1</mlppDomainId>
<mlppIndicationStatus>Default</mlppIndicationStatus>
<preemption>Default</preemption>
<connectionMonitorDuration>120</connectionMonitorDuration>
</devicePool>
<sipProfile>
<sipProxies>
<backupProxy>sip.starengr.local</backupProxy>
<backupProxyPort>5060</backupProxyPort>
<emergencyProxy></emergencyProxy>
<emergencyProxyPort>5060</emergencyProxyPort>
<outboundProxy></outboundProxy>
<outboundProxyPort>5060</outboundProxyPort>
<registerWithProxy>true</registerWithProxy>
</sipProxies>
<sipCallFeatures>
<cnfJoinEnabled>true</cnfJoinEnabled>
<callForwardURI>x-cisco-serviceuri-cfwdall</callForwardURI>
<callPickupURI>*20</callPickupURI>
<callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI>
<callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI>
<meetMeServiceURI>*23</meetMeServiceURI>
<abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI>
<rfc2543Hold>false</rfc2543Hold>
<callHoldRingback>2</callHoldRingback>
<localCfwdEnable>true</localCfwdEnable>
<semiAttendedTransfer>true</semiAttendedTransfer>
<anonymousCallBlock>2</anonymousCallBlock>
<callerIdBlocking>2</callerIdBlocking>
<dndControl>1</dndControl>
<remoteCcEnable>false</remoteCcEnable>
</sipCallFeatures>
<sipStack>
<sipInviteRetx>6</sipInviteRetx>
<sipRetx>10</sipRetx>
<timerInviteExpires>180</timerInviteExpires>
<timerRegisterExpires>600</timerRegisterExpires>
<timerRegisterDelta>5</timerRegisterDelta>
<timerKeepAliveExpires>120</timerKeepAliveExpires>
<timerSubscribeExpires>120</timerSubscribeExpires>
<timerSubscribeDelta>5</timerSubscribeDelta>
<timerT1>500</timerT1>
<timerT2>4000</timerT2>
<maxRedirects>70</maxRedirects>
<remotePartyID>true</remotePartyID>
<userInfo>None</userInfo>
</sipStack>
<autoAnswerTimer>0</autoAnswerTimer>
<autoAnswerAltBehavior>false</autoAnswerAltBehavior>
<autoAnswerOverride>true</autoAnswerOverride>
<transferOnhookEnabled>true</transferOnhookEnabled>
<enableVad>false</enableVad>
<preferredCodec>g711ulaw</preferredCodec>
<dtmfAvtPayload>101</dtmfAvtPayload>
<dtmfDbLevel>3</dtmfDbLevel>
<dtmfOutofBand>avt</dtmfOutofBand>
<alwaysUsePrimeLine>false</alwaysUsePrimeLine>
<alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail>
<kpml>3</kpml>
<phoneLabel>Jeff Clay</phoneLabel>
<stutterMsgWaiting>2</stutterMsgWaiting>
<callStats>false</callStats>
<offhookToFirstDigitTimer>15000</offhookToFirstDigitTimer>
<silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts>
<disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig>
<startMediaPort>16384</startMediaPort>
<stopMediaPort>32766</stopMediaPort>
<sipLines>
<line button="1">
<featureID>9</featureID>
<featureLabel>Line 1</featureLabel>
<proxy>USECALLMANAGER</proxy>
<port>5060</port>
<name>jclay</name>
<displayName>Jeff Clay</displayName>
<autoAnswer>
<autoAnswerEnabled>2</autoAnswerEnabled>
</autoAnswer>
<callWaiting>3</callWaiting>
<authName>jclay</authName>
<authPassword>jclay</authPassword>
<sharedLine>true</sharedLine>
<messageWaitingLampPolicy>1</messageWaitingLampPolicy>
<messagesNumber>*25</messagesNumber>
<ringSettingIdle>4</ringSettingIdle>
<ringSettingActive>5</ringSettingActive>
<contact>jclay</contact>
<forwardCallInfoDisplay>
<callerName>true</callerName>
<callerNumber>true</callerNumber>
<redirectedNumber>false</redirectedNumber>
<dialedNumber>true</dialedNumber>
</forwardCallInfoDisplay>
</line>
<line button="2">
<featureID>9</featureID>
<featureLabel>Line 2</featureLabel>
<proxy>USECALLMANAGER</proxy>
<port>5060</port>
<name>jclay</name>
<displayName>Jeff Clay</displayName>
<autoAnswer>
<autoAnswerEnabled>2</autoAnswerEnabled>
</autoAnswer>
<callWaiting>3</callWaiting>
<authName>jclay</authName>
<authPassword>jclay</authPassword>
<sharedLine>true</sharedLine>
<messageWaitingLampPolicy>1</messageWaitingLampPolicy>
<messagesNumber>*25</messagesNumber>
<ringSettingIdle>4</ringSettingIdle>
<ringSettingActive>5</ringSettingActive>
<contact>jclay</contact>
<forwardCallInfoDisplay>
<callerName>true</callerName>
<callerNumber>true</callerNumber>
<redirectedNumber>false</redirectedNumber>
<dialedNumber>true</dialedNumber>
</forwardCallInfoDisplay>
</line>
</sipLines>
<voipControlPort>5060</voipControlPort>
<dscpForAudio>184</dscpForAudio>
<ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy>
<dialTemplate>dialplan.xml</dialTemplate>
<softKeyFile>SK123.xml</softKeyFile>
</sipProfile>
<commonProfile>
<phonePassword></phonePassword>
<backgroundImageAccess>true</backgroundImageAccess>
<callLogBlfEnabled>2</callLogBlfEnabled>
</commonProfile>
<loadInformation>SIP45.9-2-1S</loadInformation>
<vendorConfig>
<disableSpeaker>false</disableSpeaker>
<disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
<pcPort>0</pcPort>
<settingsAccess>1</settingsAccess>
<garp>0</garp>
<voiceVlanAccess>1</voiceVlanAccess>
<videoCapability>1</videoCapability>
<autoSelectLineEnable>0</autoSelectLineEnable>
<webAccess>1</webAccess>
<daysDisplayNotActive>1,7</daysDisplayNotActive>
<displayOnTime>00:00</displayOnTime>
<displayOnDuration>11:15</displayOnDuration>
<displayIdleTimeout>00:30</displayIdleTimeout>
<spanToPCPort>1</spanToPCPort>
</vendorConfig>
<versionStamp></versionStamp>
<userLocale>
<name>English_United_States</name>
<uid>1</uid>
<langCode>en_US</langCode>
<version>1.0.0.0-1</version>
<winCharSet>iso-8859-1</winCharSet>
</userLocale>
<networkLocale>United_States</networkLocale>
<networkLocaleInfo>
<name>United_States</name>
<uid>64</uid>
<version>1.0.0.0-1</version>
</networkLocaleInfo>
<deviceSecurityMode>1</deviceSecurityMode>
<idleTimeout>0</idleTimeout>
<authenticationURL>http://[PUTYOURPBXHOSTNAMEHERE]/cisco_xml/auth.php</authenticationURL>
<directoryURL>http://[PUTYOURPBXHOSTNAMEHERE]/cisco_xml/directory.php</directoryURL>
<idleURL>http://[PUTYOURPBXHOSTNAMEHERE]/cisco_xml/idle.php</idleURL>
<informationURL>http://[PUTYOURPBXHOSTNAMEHERE]/cisco_xml/help.php</informationURL>
<messagesURL></messagesURL>
<proxyServerURL></proxyServerURL>
<servicesURL>http://sip.starengr.local/cisco_xml/services.php</servicesURL>
<dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig>
<dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices>
<dscpForCm2Dvce>96</dscpForCm2Dvce>
<transportLayerProtocol>4</transportLayerProtocol>
<capfAuthMode>0</capfAuthMode>
<joinAcrossLines>1</joinAcrossLines>
<capfList>
<capf>
<phonePort>3804</phonePort>
<processNodeName>sip.starengr.local</processNodeName>
</capf>
</capfList>
<phoneServices>
<phoneService type="2" category="0">
<name>Page</name>
<uri>Dial:*23</uri>
<vendor></vendor>
<version></version>
</phoneService>
</phoneServices
<certHash></certHash>
<encrConfig>false</encrConfig>
</device>
XMLDefault.xml
- <Default>
- <callManagerGroup>
- <members>
- <member priority="0">
- <callManager>
- <ports>
<ethernetPhonePort>2000</ethernetPhonePort>
</ports>
<processNodeName>192.168.0.57</processNodeName>
</callManager>
</member>
</members>
</callManagerGroup>
<loadInformation124 model="Cisco IP Phone 7914 14-Button Line Expansion Module" />
<loadInformation227 model="Cisco IP Phone 7915 12-Button Line Expansion Module" />
<loadInformation228 model="Cisco IP Phone 7915 24-Button Line Expansion Module" />
<loadInformation229 model="Cisco IP Phone 7916 12-Button Line Expansion Module" />
<loadInformation230 model="Cisco IP Phone 7916 24-Button Line Expansion Module" />
<loadInformation30008 model="Cisco IP Phone 7902" />
<loadInformation20000 model="Cisco IP Phone 7905" />
<loadInformation369 model="Cisco IP Phone 7906" />
<loadInformation6 model="Cisco IP Phone 7910" />
<loadInformation307 model="Cisco IP Phone 7911">SCCP11.9-1-1SR1S</loadInformation307>
<loadInformation30007 model="Cisco IP Phone 7912" />
<loadInformation30002 model="Cisco IP Phone 7920" />
<loadInformation365 model="Cisco IP Phone 7921" />
<loadInformation484 model="Cisco IP Phone 7925" />
<loadInformation348 model="Cisco IP Phone 7931" />
<loadInformation9 model="Cisco IP Conference Station 7935" />
<loadInformation30019 model="Cisco IP Phone 7936">cmterm_7936.3-3-20-0</loadInformation30019>
<loadInformation431 model="Cisco IP Conference Station 7937" />
<loadInformation8 model="Cisco IP Phone 7940" />
<loadInformation115 model="Cisco IP Phone 7941" />
<loadInformation309 model="Cisco IP Phone 7941GE" />
<loadInformation434 model="Cisco IP Phone 7942" />
<loadInformation435 model="Cisco IP Phone 7945" />
<loadInformation7 model="Cisco IP Phone 7960">P0S3-07-5-00</loadInformation7>
<loadInformation30018 model="Cisco IP Phone 7961">SIP41.8-5-4S</loadInformation30018>
<loadInformation308 model="Cisco IP Phone 7961GE">SIP41.8-5-4S</loadInformation308>
<loadInformation404 model="Cisco IP Phone 7962" />
<loadInformation436 model="Cisco IP Phone 7945">SIP45.9-2-1S</loadInformation436>
<loadInformation30006 model="Cisco IP Phone 7970">term70.default</loadInformation30006>
<loadInformation119 model="Cisco IP Phone 7971" />
<loadInformation437 model="Cisco IP Phone 7975">SIP45.9-2-1S</loadInformation437>
<loadInformation302 model="Cisco IP Phone 7985" />
<loadInformation12 model="ATA phone emulation for analog phone" />
<loadInformation80000 model="Cisco IP Phone CP-521G" />
<loadInformation80001 model="Cisco IP Phone CP-524G" />
<loadInformation80005 model="Cisco IP Phone CP-525G" />
<loadInformation80002 model="Cisco IP Phone SPA501G" />
<loadInformation80003 model="Cisco IP Phone SPA502G" />
<loadInformation80004 model="Cisco IP Phone SPA504G" />
<loadInformation80006 model="Cisco IP Phone SPA508G" />
<loadInformation80007 model="Cisco IP Phone SPA509G" />
<loadInformation80009 model="Cisco IP Phone CP-525G2" />
<loadInformation80010 model="Cisco IP Phone SPA301" />
<loadInformation80011 model="Cisco IP Phone SPA303" />
<loadInformation495 model="Cisco IP Phone 6921">SCCP69xx.9-0-2-0</loadInformation495>
<loadInformation496 model="Cisco IP Phone 6941" />
<loadInformation497 model="Cisco IP Phone 6961" />
<loadInformation547 model="Cisco IP Phone 6901" />
<loadInformation548 model="Cisco IP Phone 6911" />
</Default>
| xml | voip | sip | asterisk | cisco | 08/14/2011 04:05:34 | off topic | Cisco 7945 - Asterisk - Change features on softkeys and set what they do
===
I have a Cisco 7945g phone. I want to change the features displayed above the soft keys and change how they behave. By soft key, I'm referring to the 4 buttons beneath the display that say Dial, New Call, ReDial, DND, etc. I have a soft key template file titled SK123.xml, I also have XMLDefault.cnf.xml, dialplan.xml SEP<mac-address>.cnf.xml and I even located and tried implementing featurePolicyDefault.xml. I have to deploy this system by Monday, and due to some last minute changes in phone models, I'm stuck trying to get these to work like the SPA504g's we already have. In the SPA504g it is very simple to do what I'm trying to, as they made a handy web gui, and you just enable and change PSK (programmable soft keys). I have yet to find any documentation on how to do this, so I have resorted here. Also, please note that I am using SIP on Asterisk 1.8.5, so not using Cisco Unified Communications Manager. I'm fairly new to stackoverflow, so I don't know how to properly do this, but I intend to offer a $100 bounty to whomever first delivers working XML files to accomplish this. I will pay the winner via any method he/she prefers. I am listing the above mentioned configuration files below for reference. You may also add me on gTalk (jeff clay >at< g mail >dot< com) no spaces. I have listed this same proposal on both FaceBook and Google+, but I probably won't get anything from either of those.
dialplan.xml
<DIALTEMPLATE>
<TEMPLATE MATCH="*.." TIMEOUT="1"/><!-- *.. Any feature set beginning with * then 2 digits, then Dial immediately -->
<TEMPLATE MATCH="**..." TIMEOUT="1"/><!-- *.. Any feature set beginning with * then 2 digits, then Dial immediately -->
<TEMPLATE MATCH="1..." TIMEOUT="1"/><!-- Internal extensions 100 to 199. Wait 1 second, then dial -->
<TEMPLATE MATCH="1.." TIMEOUT="1"/><!-- Internal extensions 100 to 199. Wait 1 second, then dial -->
<TEMPLATE MATCH="2.." TIMEOUT="1"/><!-- Internal extensions 200 to 299. Wait 1 second, then dial -->
<TEMPLATE MATCH="3.." TIMEOUT="1"/><!-- Internal extensions 300 to 399. Wait 1 second, then dial -->
<TEMPLATE MATCH="4.." TIMEOUT="1"/><!-- Internal extensions 400 to 499. Wait 1 second, then dial -->
<TEMPLATE MATCH="5.." TIMEOUT="1"/><!-- Internal extensions 500 to 599. Wait 1 second, then dial -->
<TEMPLATE MATCH="6.." TIMEOUT="1"/><!-- Internal extensions 600 to 699. Wait 1 second, then dial -->
<TEMPLATE MATCH="7.." TIMEOUT="1"/><!-- Internal extensions 700 to 799. Wait 1 second, then dial -->
<TEMPLATE MATCH="8.." TIMEOUT="1"/><!-- Internal extensions 800 to 899. Wait 1 second, then dial -->
<TEMPLATE MATCH="9.." TIMEOUT="1"/><!-- Internal extensions 900 to 999. Wait 1 second, then dial -->
<TEMPLATE MATCH="......." TIMEOUT="1"/><!-- 7 digits. Wait 1 second, then dial -->
<TEMPLATE MATCH=".........." TIMEOUT="1"/><!-- 10 digits. Dial immediately -->
</DIALTEMPLATE>
SK123.xml
<softKeyCfg>
<versionStamp>11cdf71b-e9bc-4559-be88-94a266766601</versionStamp>
<typeSoftKey>
<softKeyDef keyID="Redial">
<tag>1</tag>
<eventID>1</eventID>
<helpID>301</helpID>
</softKeyDef>
<softKeyDef keyID="Page">
<tag>1234</tag>
<eventID>1234</eventID>
<helpID>1234</helpID>
</softKeyDef>
<softKeyDef keyID="Hold">
<tag>3</tag>
<eventID>3</eventID>
<helpID>303</helpID>
</softKeyDef>
<softKeyDef keyID="Trnsfer">
<tag>4</tag>
<eventID>4</eventID>
<helpID>304</helpID>
</softKeyDef>
<softKeyDef keyID="CfwdAll">
<tag>5</tag>
<eventID>5</eventID>
<helpID>305</helpID>
</softKeyDef>
<softKeyDef keyID="CfwdBusy">
<tag>6</tag>
<eventID>6</eventID>
<helpID>306</helpID>
</softKeyDef>
<softKeyDef keyID="CfwdNoAnswer">
<tag>7</tag>
<eventID>7</eventID>
<helpID>307</helpID>
</softKeyDef>
// back
<softKeyDef keyID="<<">
<tag>8</tag>
<eventID>8</eventID>
<helpID>308</helpID>
</softKeyDef>
<softKeyDef keyID="EndCall">
<tag>9</tag>
<eventID>9</eventID>
<helpID>309</helpID>
</softKeyDef>
<softKeyDef keyID="Resume">
<tag>10</tag>
<eventID>10</eventID>
<helpID>310</helpID>
</softKeyDef>
<softKeyDef keyID="Answer">
<tag>11</tag>
<eventID>11</eventID>
<helpID>311</helpID>
</softKeyDef>
<softKeyDef keyID="Info">
<tag>12</tag>
<eventID>12</eventID>
<helpID>312</helpID>
</softKeyDef>
<softKeyDef keyID="Confrn">
<tag>13</tag>
<eventID>13</eventID>
<helpID>313</helpID>
</softKeyDef>
<softKeyDef keyID="Park">
<tag>14</tag>
<eventID>14</eventID>
<helpID>314</helpID>
</softKeyDef>
<softKeyDef keyID="Join">
<tag>15</tag>
<eventID>15</eventID>
<helpID>315</helpID>
</softKeyDef>
<softKeyDef keyID="MeetMe">
<tag>16</tag>
<eventID>16</eventID>
<helpID>316</helpID>
</softKeyDef>
<softKeyDef keyID="PickUp">
<tag>17</tag>
<eventID>17</eventID>
<helpID>317</helpID>
</softKeyDef>
<softKeyDef keyID="GPickUp">
<tag>18</tag>
<eventID>18</eventID>
<helpID>318</helpID>
</softKeyDef>
// remove last conference party
<softKeyDef keyID="RmLstC">
<tag>57</tag>
<eventID>19</eventID>
<helpID>319</helpID>
</softKeyDef>
<softKeyDef keyID="Barge">
<tag>67</tag>
<eventID>21</eventID>
<helpID>321</helpID>
</softKeyDef>
<softKeyDef keyID="DirTrfr">
<tag>77</tag>
<eventID>28</eventID>
<helpID>328</helpID>
</softKeyDef>
<softKeyDef keyID="Select">
<tag>78</tag>
<eventID>29</eventID>
<helpID>329</helpID>
</softKeyDef>
<softKeyDef keyID="ConfList">
<tag>79</tag>
<eventID>30</eventID>
<helpID>330</helpID>
</softKeyDef>
<softKeyDef keyID="VidMode">
<tag>88</tag>
<eventID>33</eventID>
<helpID>333</helpID>
</softKeyDef>
<softKeyDef keyID="ImmDiv">
<tag>59</tag>
<eventID>65</eventID>
<helpID>365</helpID>
</softKeyDef>
<softKeyDef keyID="Intrcpt">
<tag>60</tag>
<eventID>66</eventID>
<helpID>366</helpID>
</softKeyDef>
<softKeyDef keyID="SetWtch">
<tag>61</tag>
<eventID>67</eventID>
<helpID>367</helpID>
</softKeyDef>
<softKeyDef keyID="TrnsfVM">
<tag>62</tag>
<eventID>68</eventID>
<helpID>368</helpID>
</softKeyDef>
<softKeyDef keyID="DND">
<tag>63</tag>
<eventID>69</eventID>
<helpID>369</helpID>
</softKeyDef>
<softKeyDef keyID="DivAll">
<tag>64</tag>
<eventID>70</eventID>
<helpID>370</helpID>
</softKeyDef>
</typeSoftKey>
<softKeySets>
<softKeySet id="On Hook">
<softKey keyID="Redial"></softKey>
<softKey keyID="PickUp"></softKey>
<softKey keyID="Page"></softKey>
<softKey keyID="DND"></softKey>
<softKey keyID="CfwdAll"></softKey>
</softKeySet>
<softKeySet id="Connected">
<softKey keyID="Hold"></softKey>
<softKey keyID="EndCall"></softKey>
<softKey keyID="Trnsfer"></softKey>
<softKey keyID="TrnsfVM"></softKey>
<softKey keyID="DND"></softKey>
<softKey keyID="Select"></softKey>
<softKey keyID="Join"></softKey>
<softKey keyID="DirTrfr"></softKey>
<softKey keyID="RmLstC"></softKey>
<softKey keyID="Park"></softKey>
</softKeySet>
<softKeySet id="On Hold">
<softKey keyID="Resume"></softKey>
<softKey keyID="NewCall"></softKey>
<softKey keyID="Intrcpt"></softKey>
<softKey keyID="TrnsfVM"></softKey>
<softKey keyID="DND"></softKey>
<softKey keyID="Select"></softKey>
<softKey keyID="Join"></softKey>
<softKey keyID="DirTrfr"></softKey>
</softKeySet>
<softKeySet id="Ring In">
<softKey keyID="Answer"></softKey>
<softKey keyID="ImmDiv"></softKey>
<softKey keyID="CfwdBusy"></softKey>
<softKey keyID="TrnsfVM"></softKey>
<softKey keyID="DivAll"></softKey>
<softKey keyID="DND"></softKey>
</softKeySet>
<softKeySet id="Off Hook">
<softKey keyID="Redial"></softKey>
<softKey keyID="EndCall"></softKey>
<softKey keyID="PickUp"></softKey>
<softKey keyID="MeetMe"></softKey>
</softKeySet>
<softKeySet id="Connected Transfer">
<softKey keyID="Intrcpt"></softKey>
<softKey keyID="EndCall"></softKey>
<softKey keyID="Trnsfer"></softKey>
</softKeySet>
<softKeySet id="Digits After First">
<softKey keyID="<<"></softKey>
<softKey keyID="EndCall"></softKey>
</softKeySet>
<softKeySet id="Connected Conference">
<softKey keyID="Intrcpt"></softKey>
<softKey keyID="EndCall"></softKey>
<softKey keyID="Confrn"></softKey>
</softKeySet>
<softKeySet id="Ring Out">
<softKey keyID="EndCall"></softKey>
<softKey keyID="Intrcpt"></softKey>
</softKeySet>
<softKeySet id="Off Hook With Feature">
<softKey keyID="Redial"></softKey>
<softKey keyID="EndCall"></softKey>
<softKey keyID="Intrcpt"></softKey>
</softKeySet>
<softKeySet id="Remote In Use">
<softKey keyID="Barge"></softKey>
<softKey keyID="NewCall"></softKey>
<softKey keyID="cBarge"></softKey>
</softKeySet>
</softKeySets>
</softKeyCfg>
featurePolicy1.xml
GW231#more flash:featurePolicy1.xml
<featurePolicy name="Feature Policy 1">
<versionStamp></versionStamp>
<featureDef name="Forward All">
<id>1</id>
<enable>true</enable>
</featureDef>
<featureDef name="Park">
<id>2</id>
<enable>true</enable>
</featureDef>
<featureDef name="Speed Dial">
<id>5</id>
<enable>false</enable>
</featureDef>
<featureDef name="Call Back">
<id>6</id>
<enable>false</enable>
</featureDef>
<featureDef name="Redial">
<id>7</id>
<enable>true</enable>
</featureDef>
<featureDef name="Barge">
<id>8</id>
<enable>true</enable>
</featureDef>
<featureDef name="To Voicemail (Connected)">
<id>9</id>
<enable>true</enable>
</featureDef>
</featurePolicy>
SEP<mac>.cnf.xml
<device xsi:type="axl:XIPPhone" ctiid="1000">
<fullConfig>true</fullConfig>
<deviceProtocol>SIP</deviceProtocol>
<sshUserId>jeff</sshUserId>
<sshPassword>clay</sshPassword>
<featurePolicyFile>featurePolicyDefault.xml</featurePolicyFile>
<devicePool>
<name>Dallas 5.0 Beta</name>
<dateTimeSetting>
<dateTemplate>M/D/Ya</dateTemplate>
<timeZone>Central Standard/Daylight Time</timeZone>
<ntps>
<ntp>
<name>0.pool.ntp.org</name>
<ntpMode>Unicast</ntpMode>
</ntp>
<ntp>
<name>1.pool.ntp.org</name>
<ntpMode>Unicast</ntpMode>
</ntp>
</ntps>
</dateTimeSetting>
<callManagerGroup>
<name>5.0 Beta</name>
<tftpDefault>false</tftpDefault>
<members>
<member priority="0">
<callManager>
<ports>
<ethernetPhonePort>2000</ethernetPhonePort>
<sipPort>5060</sipPort>
<securedSipPort>5061</securedSipPort>
</ports>
<processNodeName>sip.starengr.local</processNodeName>
</callManager>
</member>
</members>
</callManagerGroup>
<srstInfo>
<name>Disable</name>
<srstOption>Disable</srstOption>
<userModifiable>true</userModifiable>
<ipAddr1>sip.starengr.local</ipAddr1>
<port1>2000</port1>
<ipAddr2></ipAddr2>
<port2>2000</port2>
<ipAddr3></ipAddr3>
<port3>2000</port3>
<sipIpAddr1>sip.starengr.local</sipIpAddr1>
<sipPort1>5060</sipPort1>
<sipIpAddr2></sipIpAddr2>
<sipPort2>5060</sipPort2>
<sipIpAddr3></sipIpAddr3>
<sipPort3>5060</sipPort3>
<isSecure>false</isSecure>
</srstInfo>
<mlppDomainId>-1</mlppDomainId>
<mlppIndicationStatus>Default</mlppIndicationStatus>
<preemption>Default</preemption>
<connectionMonitorDuration>120</connectionMonitorDuration>
</devicePool>
<sipProfile>
<sipProxies>
<backupProxy>sip.starengr.local</backupProxy>
<backupProxyPort>5060</backupProxyPort>
<emergencyProxy></emergencyProxy>
<emergencyProxyPort>5060</emergencyProxyPort>
<outboundProxy></outboundProxy>
<outboundProxyPort>5060</outboundProxyPort>
<registerWithProxy>true</registerWithProxy>
</sipProxies>
<sipCallFeatures>
<cnfJoinEnabled>true</cnfJoinEnabled>
<callForwardURI>x-cisco-serviceuri-cfwdall</callForwardURI>
<callPickupURI>*20</callPickupURI>
<callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI>
<callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI>
<meetMeServiceURI>*23</meetMeServiceURI>
<abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI>
<rfc2543Hold>false</rfc2543Hold>
<callHoldRingback>2</callHoldRingback>
<localCfwdEnable>true</localCfwdEnable>
<semiAttendedTransfer>true</semiAttendedTransfer>
<anonymousCallBlock>2</anonymousCallBlock>
<callerIdBlocking>2</callerIdBlocking>
<dndControl>1</dndControl>
<remoteCcEnable>false</remoteCcEnable>
</sipCallFeatures>
<sipStack>
<sipInviteRetx>6</sipInviteRetx>
<sipRetx>10</sipRetx>
<timerInviteExpires>180</timerInviteExpires>
<timerRegisterExpires>600</timerRegisterExpires>
<timerRegisterDelta>5</timerRegisterDelta>
<timerKeepAliveExpires>120</timerKeepAliveExpires>
<timerSubscribeExpires>120</timerSubscribeExpires>
<timerSubscribeDelta>5</timerSubscribeDelta>
<timerT1>500</timerT1>
<timerT2>4000</timerT2>
<maxRedirects>70</maxRedirects>
<remotePartyID>true</remotePartyID>
<userInfo>None</userInfo>
</sipStack>
<autoAnswerTimer>0</autoAnswerTimer>
<autoAnswerAltBehavior>false</autoAnswerAltBehavior>
<autoAnswerOverride>true</autoAnswerOverride>
<transferOnhookEnabled>true</transferOnhookEnabled>
<enableVad>false</enableVad>
<preferredCodec>g711ulaw</preferredCodec>
<dtmfAvtPayload>101</dtmfAvtPayload>
<dtmfDbLevel>3</dtmfDbLevel>
<dtmfOutofBand>avt</dtmfOutofBand>
<alwaysUsePrimeLine>false</alwaysUsePrimeLine>
<alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail>
<kpml>3</kpml>
<phoneLabel>Jeff Clay</phoneLabel>
<stutterMsgWaiting>2</stutterMsgWaiting>
<callStats>false</callStats>
<offhookToFirstDigitTimer>15000</offhookToFirstDigitTimer>
<silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts>
<disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig>
<startMediaPort>16384</startMediaPort>
<stopMediaPort>32766</stopMediaPort>
<sipLines>
<line button="1">
<featureID>9</featureID>
<featureLabel>Line 1</featureLabel>
<proxy>USECALLMANAGER</proxy>
<port>5060</port>
<name>jclay</name>
<displayName>Jeff Clay</displayName>
<autoAnswer>
<autoAnswerEnabled>2</autoAnswerEnabled>
</autoAnswer>
<callWaiting>3</callWaiting>
<authName>jclay</authName>
<authPassword>jclay</authPassword>
<sharedLine>true</sharedLine>
<messageWaitingLampPolicy>1</messageWaitingLampPolicy>
<messagesNumber>*25</messagesNumber>
<ringSettingIdle>4</ringSettingIdle>
<ringSettingActive>5</ringSettingActive>
<contact>jclay</contact>
<forwardCallInfoDisplay>
<callerName>true</callerName>
<callerNumber>true</callerNumber>
<redirectedNumber>false</redirectedNumber>
<dialedNumber>true</dialedNumber>
</forwardCallInfoDisplay>
</line>
<line button="2">
<featureID>9</featureID>
<featureLabel>Line 2</featureLabel>
<proxy>USECALLMANAGER</proxy>
<port>5060</port>
<name>jclay</name>
<displayName>Jeff Clay</displayName>
<autoAnswer>
<autoAnswerEnabled>2</autoAnswerEnabled>
</autoAnswer>
<callWaiting>3</callWaiting>
<authName>jclay</authName>
<authPassword>jclay</authPassword>
<sharedLine>true</sharedLine>
<messageWaitingLampPolicy>1</messageWaitingLampPolicy>
<messagesNumber>*25</messagesNumber>
<ringSettingIdle>4</ringSettingIdle>
<ringSettingActive>5</ringSettingActive>
<contact>jclay</contact>
<forwardCallInfoDisplay>
<callerName>true</callerName>
<callerNumber>true</callerNumber>
<redirectedNumber>false</redirectedNumber>
<dialedNumber>true</dialedNumber>
</forwardCallInfoDisplay>
</line>
</sipLines>
<voipControlPort>5060</voipControlPort>
<dscpForAudio>184</dscpForAudio>
<ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy>
<dialTemplate>dialplan.xml</dialTemplate>
<softKeyFile>SK123.xml</softKeyFile>
</sipProfile>
<commonProfile>
<phonePassword></phonePassword>
<backgroundImageAccess>true</backgroundImageAccess>
<callLogBlfEnabled>2</callLogBlfEnabled>
</commonProfile>
<loadInformation>SIP45.9-2-1S</loadInformation>
<vendorConfig>
<disableSpeaker>false</disableSpeaker>
<disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
<pcPort>0</pcPort>
<settingsAccess>1</settingsAccess>
<garp>0</garp>
<voiceVlanAccess>1</voiceVlanAccess>
<videoCapability>1</videoCapability>
<autoSelectLineEnable>0</autoSelectLineEnable>
<webAccess>1</webAccess>
<daysDisplayNotActive>1,7</daysDisplayNotActive>
<displayOnTime>00:00</displayOnTime>
<displayOnDuration>11:15</displayOnDuration>
<displayIdleTimeout>00:30</displayIdleTimeout>
<spanToPCPort>1</spanToPCPort>
</vendorConfig>
<versionStamp></versionStamp>
<userLocale>
<name>English_United_States</name>
<uid>1</uid>
<langCode>en_US</langCode>
<version>1.0.0.0-1</version>
<winCharSet>iso-8859-1</winCharSet>
</userLocale>
<networkLocale>United_States</networkLocale>
<networkLocaleInfo>
<name>United_States</name>
<uid>64</uid>
<version>1.0.0.0-1</version>
</networkLocaleInfo>
<deviceSecurityMode>1</deviceSecurityMode>
<idleTimeout>0</idleTimeout>
<authenticationURL>http://[PUTYOURPBXHOSTNAMEHERE]/cisco_xml/auth.php</authenticationURL>
<directoryURL>http://[PUTYOURPBXHOSTNAMEHERE]/cisco_xml/directory.php</directoryURL>
<idleURL>http://[PUTYOURPBXHOSTNAMEHERE]/cisco_xml/idle.php</idleURL>
<informationURL>http://[PUTYOURPBXHOSTNAMEHERE]/cisco_xml/help.php</informationURL>
<messagesURL></messagesURL>
<proxyServerURL></proxyServerURL>
<servicesURL>http://sip.starengr.local/cisco_xml/services.php</servicesURL>
<dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig>
<dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices>
<dscpForCm2Dvce>96</dscpForCm2Dvce>
<transportLayerProtocol>4</transportLayerProtocol>
<capfAuthMode>0</capfAuthMode>
<joinAcrossLines>1</joinAcrossLines>
<capfList>
<capf>
<phonePort>3804</phonePort>
<processNodeName>sip.starengr.local</processNodeName>
</capf>
</capfList>
<phoneServices>
<phoneService type="2" category="0">
<name>Page</name>
<uri>Dial:*23</uri>
<vendor></vendor>
<version></version>
</phoneService>
</phoneServices
<certHash></certHash>
<encrConfig>false</encrConfig>
</device>
XMLDefault.xml
- <Default>
- <callManagerGroup>
- <members>
- <member priority="0">
- <callManager>
- <ports>
<ethernetPhonePort>2000</ethernetPhonePort>
</ports>
<processNodeName>192.168.0.57</processNodeName>
</callManager>
</member>
</members>
</callManagerGroup>
<loadInformation124 model="Cisco IP Phone 7914 14-Button Line Expansion Module" />
<loadInformation227 model="Cisco IP Phone 7915 12-Button Line Expansion Module" />
<loadInformation228 model="Cisco IP Phone 7915 24-Button Line Expansion Module" />
<loadInformation229 model="Cisco IP Phone 7916 12-Button Line Expansion Module" />
<loadInformation230 model="Cisco IP Phone 7916 24-Button Line Expansion Module" />
<loadInformation30008 model="Cisco IP Phone 7902" />
<loadInformation20000 model="Cisco IP Phone 7905" />
<loadInformation369 model="Cisco IP Phone 7906" />
<loadInformation6 model="Cisco IP Phone 7910" />
<loadInformation307 model="Cisco IP Phone 7911">SCCP11.9-1-1SR1S</loadInformation307>
<loadInformation30007 model="Cisco IP Phone 7912" />
<loadInformation30002 model="Cisco IP Phone 7920" />
<loadInformation365 model="Cisco IP Phone 7921" />
<loadInformation484 model="Cisco IP Phone 7925" />
<loadInformation348 model="Cisco IP Phone 7931" />
<loadInformation9 model="Cisco IP Conference Station 7935" />
<loadInformation30019 model="Cisco IP Phone 7936">cmterm_7936.3-3-20-0</loadInformation30019>
<loadInformation431 model="Cisco IP Conference Station 7937" />
<loadInformation8 model="Cisco IP Phone 7940" />
<loadInformation115 model="Cisco IP Phone 7941" />
<loadInformation309 model="Cisco IP Phone 7941GE" />
<loadInformation434 model="Cisco IP Phone 7942" />
<loadInformation435 model="Cisco IP Phone 7945" />
<loadInformation7 model="Cisco IP Phone 7960">P0S3-07-5-00</loadInformation7>
<loadInformation30018 model="Cisco IP Phone 7961">SIP41.8-5-4S</loadInformation30018>
<loadInformation308 model="Cisco IP Phone 7961GE">SIP41.8-5-4S</loadInformation308>
<loadInformation404 model="Cisco IP Phone 7962" />
<loadInformation436 model="Cisco IP Phone 7945">SIP45.9-2-1S</loadInformation436>
<loadInformation30006 model="Cisco IP Phone 7970">term70.default</loadInformation30006>
<loadInformation119 model="Cisco IP Phone 7971" />
<loadInformation437 model="Cisco IP Phone 7975">SIP45.9-2-1S</loadInformation437>
<loadInformation302 model="Cisco IP Phone 7985" />
<loadInformation12 model="ATA phone emulation for analog phone" />
<loadInformation80000 model="Cisco IP Phone CP-521G" />
<loadInformation80001 model="Cisco IP Phone CP-524G" />
<loadInformation80005 model="Cisco IP Phone CP-525G" />
<loadInformation80002 model="Cisco IP Phone SPA501G" />
<loadInformation80003 model="Cisco IP Phone SPA502G" />
<loadInformation80004 model="Cisco IP Phone SPA504G" />
<loadInformation80006 model="Cisco IP Phone SPA508G" />
<loadInformation80007 model="Cisco IP Phone SPA509G" />
<loadInformation80009 model="Cisco IP Phone CP-525G2" />
<loadInformation80010 model="Cisco IP Phone SPA301" />
<loadInformation80011 model="Cisco IP Phone SPA303" />
<loadInformation495 model="Cisco IP Phone 6921">SCCP69xx.9-0-2-0</loadInformation495>
<loadInformation496 model="Cisco IP Phone 6941" />
<loadInformation497 model="Cisco IP Phone 6961" />
<loadInformation547 model="Cisco IP Phone 6901" />
<loadInformation548 model="Cisco IP Phone 6911" />
</Default>
| 2 |
10,577,704 | 05/14/2012 04:59:18 | 1,006,884 | 10/21/2011 10:17:20 | 138 | 1 | Detecting memory leaks in nodejs | Are there some tools for detecting memory leaks in nodejs? And tell me about your experience in testing nodejs applications. | node.js | null | null | null | null | null | open | Detecting memory leaks in nodejs
===
Are there some tools for detecting memory leaks in nodejs? And tell me about your experience in testing nodejs applications. | 0 |
8,592,990 | 12/21/2011 16:22:38 | 999,620 | 10/17/2011 16:56:20 | 17 | 2 | Silverlight on Windows Phone: IValueConverter is never called for a custom property | I have a user control with a property defined as follows:
public partial class ChartEx : UserControl
{
private object _dataSource;
public object DataSource
{
get { return _dataSource; }
set
{
_dataSource = value; //break here
}
}
}
In my xaml, I'm trying to bind it to a collection (from inside data template):
<DataTemplate x:Key="tmplCounter">
<my:ChartEx
DataContext="{Binding Converter={StaticResource convTest}, ConverterParameter='DataContext'}"
DataSource="{Binding Converter={StaticResource convTest}, ConverterParameter='DataSource'}"
</my:ChartEx>
</DataTemplate>
But in debugger I see that value that comes to DataSource setter is of type System.Windows.Data.Binding!
Value converter is _never_ entered with patameter "DataSource", but for "DataContext" it works perfectly. Converter is there merely for debugging purposes, without it things work same way.
How do I make Binding work for properties I defined? | c# | silverlight | binding | null | null | null | open | Silverlight on Windows Phone: IValueConverter is never called for a custom property
===
I have a user control with a property defined as follows:
public partial class ChartEx : UserControl
{
private object _dataSource;
public object DataSource
{
get { return _dataSource; }
set
{
_dataSource = value; //break here
}
}
}
In my xaml, I'm trying to bind it to a collection (from inside data template):
<DataTemplate x:Key="tmplCounter">
<my:ChartEx
DataContext="{Binding Converter={StaticResource convTest}, ConverterParameter='DataContext'}"
DataSource="{Binding Converter={StaticResource convTest}, ConverterParameter='DataSource'}"
</my:ChartEx>
</DataTemplate>
But in debugger I see that value that comes to DataSource setter is of type System.Windows.Data.Binding!
Value converter is _never_ entered with patameter "DataSource", but for "DataContext" it works perfectly. Converter is there merely for debugging purposes, without it things work same way.
How do I make Binding work for properties I defined? | 0 |
9,837,699 | 03/23/2012 10:34:32 | 944,978 | 10/14/2010 06:55:53 | 178 | 21 | Twitter Bootstrap Themeroller | Is there any themeroller application like [jQuery UI Themeroller][1] for [Twitter Bootrap][2]. It would be fun and easy to design and generate custom theme for [Twitter Bootrap][2].
[1]: http://jqueryui.com/themeroller/
[2]: http://twitter.github.com/bootstrap/ | jquery | css | jquery-ui | twitter-bootstrap | themeroller | 03/23/2012 13:29:36 | not a real question | Twitter Bootstrap Themeroller
===
Is there any themeroller application like [jQuery UI Themeroller][1] for [Twitter Bootrap][2]. It would be fun and easy to design and generate custom theme for [Twitter Bootrap][2].
[1]: http://jqueryui.com/themeroller/
[2]: http://twitter.github.com/bootstrap/ | 1 |
9,473,589 | 02/27/2012 22:46:16 | 1,234,392 | 02/26/2012 21:25:00 | 1 | 0 | g++ compile errors | i am trying to compile VS2008 files with g++ and get the following errors.
$ g++ 8-1.cpp
/tmp/ccSyAiju.o:8-1.cpp:(.text+0x2f1): undefined reference to `Employee::loadEmployee(std::basic_ifstream<char, std::char_traits<char> >&)'
collect2: ld returned 1 exit status
| c++ | null | null | null | null | 04/21/2012 14:30:11 | not a real question | g++ compile errors
===
i am trying to compile VS2008 files with g++ and get the following errors.
$ g++ 8-1.cpp
/tmp/ccSyAiju.o:8-1.cpp:(.text+0x2f1): undefined reference to `Employee::loadEmployee(std::basic_ifstream<char, std::char_traits<char> >&)'
collect2: ld returned 1 exit status
| 1 |
4,997,454 | 02/14/2011 21:25:28 | 595,146 | 01/29/2011 17:37:21 | 21 | 2 | iOS Game Size problem | I developed an iOS Universal game and I want to know if 100mb means that the game is very large compared to other games, I really have a problem with those .png images which are over 8mb each | ios | memory | size | null | null | 01/09/2012 13:57:04 | not a real question | iOS Game Size problem
===
I developed an iOS Universal game and I want to know if 100mb means that the game is very large compared to other games, I really have a problem with those .png images which are over 8mb each | 1 |
8,387,868 | 12/05/2011 15:43:12 | 1,051,893 | 11/17/2011 13:32:03 | 3 | 0 | JSF converts to 0x20 space when sending a4j request | I have a problem: when input text contains non-breaking characters they are converted into white-spaces during the ajax request. But i need them to be converted into 0xA0 character. | jsf | null | null | null | null | 12/06/2011 15:45:21 | not a real question | JSF converts to 0x20 space when sending a4j request
===
I have a problem: when input text contains non-breaking characters they are converted into white-spaces during the ajax request. But i need them to be converted into 0xA0 character. | 1 |
7,369,493 | 09/10/2011 03:50:57 | 705,773 | 04/11/2011 12:26:21 | 384 | 29 | Integer to byte casting in Java | In Java we can do
byte b = 5;
But why can't we pass same argument to a function which accepts `byte`
myObject.testByte(5);
public void testByte (byte b)
{
System.out.println("Its byte");
}
It gives following error
The method testByte(byte) in the type Apple is not applicable for the arguments (int)
PS: May be a silly question, I think I need to revise my basics again.
Thanks,
Ajinkya. | java | null | null | null | null | null | open | Integer to byte casting in Java
===
In Java we can do
byte b = 5;
But why can't we pass same argument to a function which accepts `byte`
myObject.testByte(5);
public void testByte (byte b)
{
System.out.println("Its byte");
}
It gives following error
The method testByte(byte) in the type Apple is not applicable for the arguments (int)
PS: May be a silly question, I think I need to revise my basics again.
Thanks,
Ajinkya. | 0 |
238,741 | 10/26/2008 22:47:25 | 31,658 | 10/26/2008 22:47:25 | 1 | 0 | How do I put GIF/PNG/... image on a BitBtn in Delphi? | I'm using Delphi 2007. How can I put a GIF/PNG image on a BitBtn component? | delphi | null | null | null | null | null | open | How do I put GIF/PNG/... image on a BitBtn in Delphi?
===
I'm using Delphi 2007. How can I put a GIF/PNG image on a BitBtn component? | 0 |
5,374,587 | 03/21/2011 06:44:30 | 643,104 | 03/03/2011 14:00:07 | 1 | 0 | i want to know which is the best 'C' compiler which is works with windows 7 ? | Hello friends i m using dev c++ but it has creating some problems while working with windows 7
SO I WAN'T the best compiler which is works with windows 7. | c++ | c | compiler | windows-7 | null | 03/21/2011 06:57:55 | not constructive | i want to know which is the best 'C' compiler which is works with windows 7 ?
===
Hello friends i m using dev c++ but it has creating some problems while working with windows 7
SO I WAN'T the best compiler which is works with windows 7. | 4 |
8,588,187 | 12/21/2011 10:13:13 | 1,095,508 | 12/13/2011 10:21:30 | 1 | 0 | need to parse this RDF!!! just need to parse this file and catch all the 'Data Gather' text | <?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ns1="http://testing.com/seil/v1.3/app/subk#"
xmlns:seil="http://www.testing.com/seil/1.3/seil#"
>
<foaf:Agent rdf:about="http://testing.com/seil/user_9876543210">
<seil:hasAccessed>
<seil:SeilApp rdf:about="http://testing.com/seil/v1.3/app/subk_app/">
<rdfs:label rdf:resource="SubK (Python app)"/>
</seil:SeilApp>
</seil:hasAccessed>
<seil:hasActivityNode>
<rdf:Description rdf:about="http://testing.com/seil/node_114db2b2-beba-4816- a858-ee937d09b9a2">
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_41a897e6-2ff8-40b7-843e-f18ea4ec5100"/>
<dc:date rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2011-12-13T13:09:26</dc:date>
</rdf:Description>
</seil:hasActivityNode>
</foaf:Agent>
<rdf:Description rdf:about="http://testing.com/seil/node_b54a07d3-af1b-49ef-9bf0-e28cf039f709">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_eb3d6c79-f833-4cbb-a107-d5464acd4c52">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_0c594e8d-9ffb-4b4b-bbca-29b6217c1308"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-phone-number</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">7c2373d7-64f3-475f-a3d7-6fff8da3d8e5</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_02c7f438-cc29-445b-abc1-8a1cf56ad3c0">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_4c7fdae2-3d8d-46b8-a811-3da7cf545ed3">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_0965d68d-f00b-47d9-8db9-ccb92c591cac"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">3ffbab13-fc21-4323-a6db-623112f3a983</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-mobile-number</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_03909ff1-5f0a-4519-a0e5-32825c4d12e3">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Data Gather</seil:nodeType>
<ns1:hasOptedForService rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Banking</ns1:hasOptedForService>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_099d578c-c8ec-4be6-9449-b0c9257bbac3">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_fbb91c3c-ae03-41f7-a9ab-2877b81bdcdc"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">please-select-a-bank-you-prefer</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">1</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_0965d68d-f00b-47d9-8db9-ccb92c591cac">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_0f9b1079-1994-4e29-a48e-88efbd588808">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_1f19b932-c1b1-42e7-bcff-0ce10937e292"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">589a1956-d530-4bc6-9e63-eaefc0b17d31</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-village-name</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_383c65b1-9ca7-4917-8c1f-9ef85c99ef05">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_9884cb69-a678-4306-a7ad-564feb2659d4">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_104f532a-066b-452c-9344-359e795513c7"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-father-name</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">b57a4a21-2a67-447f-9611-c4c25925c5b6</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_0c594e8d-9ffb-4b4b-bbca-29b6217c1308">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_02c7f438-cc29-445b-abc1-8a1cf56ad3c0"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">58f62598-2467-4f05-a5b1-e796dce4693f</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_5975e051-088c-46d 6-8281-43236ae15f4d">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Data Gather</seil:nodeType>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_fe40d751-284e-45c0-a9af-c50cc85a5d8a">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_383c65b1-9ca7-4917-8c1f-9ef85c99ef05"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-name</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<dc:language rdf:datatype="http://www.w3.org/2001/XMLSchema#string">English</dc:language>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">1</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_494f41b0-d4b9-4d60-adf6-40801e689068">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_b54a07d3-af1b-49ef-9bf0-e28cf039f709"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-age</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_41a897e6-2ff8-40b7-843e-f18ea4ec5100">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_5975e051-088c-46d6-8281-43236ae15f4d"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-language-do-you-prefer</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_1f19b932-c1b1-42e7-bcff-0ce10937e292">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_03909ff1-5f0a-4519-a0e5-32825c4d12e3"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">kindly-select-services-you-would-prefer</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_b04f5537-e509-42e0-b0a8-b8982280494e">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Data Gather</seil:nodeType>
<ns1:hasOptedForService rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Fund transfer</ns1:hasOptedForService>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_768d0f0d-d8dc-44b3-87c5-64ace8314a3e">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_b04f5537-e509-42e0-b0a8-b8982280494e"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">please-select-a-banking-service-you-want</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_fbb91c3c-ae03-41f7-a9ab-2877b81bdcdc">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Data Gather</seil:nodeType>
<ns1:hasPreferredBank rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Yes Bank</ns1:hasPreferredBank>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_768d0f0d-d8dc-44b3-87c5-64ace8314a3e"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">5</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_104f532a-066b-452c-9344-359e795513c7">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_494f41b0-d4b9-4d60-adf6-40801e689068"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">e513b4c8-f98d-4349-8d03-3bd332cf0f53</seil:hasData>
</rdf:Description>
</rdf:RDF>
I need to parsing only this one file so i dont want to learn and parse as am running out of time. help me parse in java. which ever has the text need to get the text in the element '<seil:hasData>'
tried doing it using Jena API but finding it difficult to understand | java | rdf | jena | null | null | null | open | need to parse this RDF!!! just need to parse this file and catch all the 'Data Gather' text
===
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ns1="http://testing.com/seil/v1.3/app/subk#"
xmlns:seil="http://www.testing.com/seil/1.3/seil#"
>
<foaf:Agent rdf:about="http://testing.com/seil/user_9876543210">
<seil:hasAccessed>
<seil:SeilApp rdf:about="http://testing.com/seil/v1.3/app/subk_app/">
<rdfs:label rdf:resource="SubK (Python app)"/>
</seil:SeilApp>
</seil:hasAccessed>
<seil:hasActivityNode>
<rdf:Description rdf:about="http://testing.com/seil/node_114db2b2-beba-4816- a858-ee937d09b9a2">
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_41a897e6-2ff8-40b7-843e-f18ea4ec5100"/>
<dc:date rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2011-12-13T13:09:26</dc:date>
</rdf:Description>
</seil:hasActivityNode>
</foaf:Agent>
<rdf:Description rdf:about="http://testing.com/seil/node_b54a07d3-af1b-49ef-9bf0-e28cf039f709">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_eb3d6c79-f833-4cbb-a107-d5464acd4c52">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_0c594e8d-9ffb-4b4b-bbca-29b6217c1308"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-phone-number</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">7c2373d7-64f3-475f-a3d7-6fff8da3d8e5</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_02c7f438-cc29-445b-abc1-8a1cf56ad3c0">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_4c7fdae2-3d8d-46b8-a811-3da7cf545ed3">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_0965d68d-f00b-47d9-8db9-ccb92c591cac"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">3ffbab13-fc21-4323-a6db-623112f3a983</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-mobile-number</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_03909ff1-5f0a-4519-a0e5-32825c4d12e3">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Data Gather</seil:nodeType>
<ns1:hasOptedForService rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Banking</ns1:hasOptedForService>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_099d578c-c8ec-4be6-9449-b0c9257bbac3">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_fbb91c3c-ae03-41f7-a9ab-2877b81bdcdc"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">please-select-a-bank-you-prefer</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">1</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_0965d68d-f00b-47d9-8db9-ccb92c591cac">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_0f9b1079-1994-4e29-a48e-88efbd588808">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_1f19b932-c1b1-42e7-bcff-0ce10937e292"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">589a1956-d530-4bc6-9e63-eaefc0b17d31</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-village-name</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_383c65b1-9ca7-4917-8c1f-9ef85c99ef05">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_9884cb69-a678-4306-a7ad-564feb2659d4">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_104f532a-066b-452c-9344-359e795513c7"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-father-name</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">b57a4a21-2a67-447f-9611-c4c25925c5b6</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_0c594e8d-9ffb-4b4b-bbca-29b6217c1308">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_02c7f438-cc29-445b-abc1-8a1cf56ad3c0"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">58f62598-2467-4f05-a5b1-e796dce4693f</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_5975e051-088c-46d 6-8281-43236ae15f4d">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Data Gather</seil:nodeType>
<seil:hasConnectedNode>
<rdf:Description rdf:about="http://testing.com/seil/node_fe40d751-284e-45c0-a9af-c50cc85a5d8a">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_383c65b1-9ca7-4917-8c1f-9ef85c99ef05"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-name</seil:hasData>
</rdf:Description>
</seil:hasConnectedNode>
<dc:language rdf:datatype="http://www.w3.org/2001/XMLSchema#string">English</dc:language>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">1</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_494f41b0-d4b9-4d60-adf6-40801e689068">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_b54a07d3-af1b-49ef-9bf0-e28cf039f709"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-is-your-age</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_41a897e6-2ff8-40b7-843e-f18ea4ec5100">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_5975e051-088c-46d6-8281-43236ae15f4d"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">what-language-do-you-prefer</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_1f19b932-c1b1-42e7-bcff-0ce10937e292">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_03909ff1-5f0a-4519-a0e5-32825c4d12e3"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">kindly-select-services-you-would-prefer</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_b04f5537-e509-42e0-b0a8-b8982280494e">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Data Gather</seil:nodeType>
<ns1:hasOptedForService rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Fund transfer</ns1:hasOptedForService>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_768d0f0d-d8dc-44b3-87c5-64ace8314a3e">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Play Audio</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_b04f5537-e509-42e0-b0a8-b8982280494e"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">please-select-a-banking-service-you-want</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_fbb91c3c-ae03-41f7-a9ab-2877b81bdcdc">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Data Gather</seil:nodeType>
<ns1:hasPreferredBank rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Yes Bank</ns1:hasPreferredBank>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_768d0f0d-d8dc-44b3-87c5-64ace8314a3e"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">5</seil:hasData>
</rdf:Description>
<rdf:Description rdf:about="http://testing.com/seil/node_104f532a-066b-452c-9344-359e795513c7">
<seil:nodeType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Recording</seil:nodeType>
<seil:hasConnectedNode rdf:resource="http://testing.com/seil/node_494f41b0-d4b9-4d60-adf6-40801e689068"/>
<seil:hasData rdf:datatype="http://www.w3.org/2001/XMLSchema#string">e513b4c8-f98d-4349-8d03-3bd332cf0f53</seil:hasData>
</rdf:Description>
</rdf:RDF>
I need to parsing only this one file so i dont want to learn and parse as am running out of time. help me parse in java. which ever has the text need to get the text in the element '<seil:hasData>'
tried doing it using Jena API but finding it difficult to understand | 0 |
8,728,349 | 01/04/2012 14:20:11 | 709,406 | 04/15/2011 07:58:15 | 662 | 72 | App crashes at times in the setcontentview method | hi guys i am facing a strange problem. My app runs fine till this exception occurs
> 01-04 19:23:18.576: ERROR/InputDispatcher(15546): channel '409a24d8 com.sdi.videodate/com.sdi.videodate.LoginPage (server)' ~ Consumer closed input channel or an error occurred. events=0x8
01-04 19:23:18.576: ERROR/InputDispatcher(15546): channel '409a24d8 com.sdi.videodate/com.sdi.videodate.LoginPage (server)' ~ Channel is unrecoverably broken and will be disposed!
01-04 19:23:18.896: ERROR/ActivityManager(15546): fail to set top app changed!
and i am not sure when and why this error occurs. due to this application closes.
Hoping for better responses. Thanks in Advance. | android | null | null | null | null | 03/10/2012 15:19:46 | not a real question | App crashes at times in the setcontentview method
===
hi guys i am facing a strange problem. My app runs fine till this exception occurs
> 01-04 19:23:18.576: ERROR/InputDispatcher(15546): channel '409a24d8 com.sdi.videodate/com.sdi.videodate.LoginPage (server)' ~ Consumer closed input channel or an error occurred. events=0x8
01-04 19:23:18.576: ERROR/InputDispatcher(15546): channel '409a24d8 com.sdi.videodate/com.sdi.videodate.LoginPage (server)' ~ Channel is unrecoverably broken and will be disposed!
01-04 19:23:18.896: ERROR/ActivityManager(15546): fail to set top app changed!
and i am not sure when and why this error occurs. due to this application closes.
Hoping for better responses. Thanks in Advance. | 1 |
8,105,803 | 11/12/2011 16:30:54 | 1,036,634 | 11/08/2011 23:08:06 | 1 | 0 | access to generic form field in template | I have a form with generic fields
forms.py
class OfferForm(forms.ModelForm):
class Meta:
model=Offer
some_views.py
def add_field(request):
form = OfferForm()
#some logic here
for x in list:
form.fields[x]=forms.ModelChoiceField(queryset=some_query)
return render_to_response(template,{'form':form,'list_of_add_field':list}
So , In my template i want to do something like this:
{%for x in list_of_add_field%}
Name add field is {{x}}
Choices:
{%for y in form.{{x}}.choices %}
<input type="checkbox" name="form.{{x}}.html_name">y </input>
{%endfor%}
{%endfor%}
How can do that ? Any idea ?
Thank you !
| python | django | templates | null | null | null | open | access to generic form field in template
===
I have a form with generic fields
forms.py
class OfferForm(forms.ModelForm):
class Meta:
model=Offer
some_views.py
def add_field(request):
form = OfferForm()
#some logic here
for x in list:
form.fields[x]=forms.ModelChoiceField(queryset=some_query)
return render_to_response(template,{'form':form,'list_of_add_field':list}
So , In my template i want to do something like this:
{%for x in list_of_add_field%}
Name add field is {{x}}
Choices:
{%for y in form.{{x}}.choices %}
<input type="checkbox" name="form.{{x}}.html_name">y </input>
{%endfor%}
{%endfor%}
How can do that ? Any idea ?
Thank you !
| 0 |
5,515,280 | 04/01/2011 15:11:34 | 643,092 | 03/03/2011 13:52:30 | 10 | 0 | conection to database in C# | I need to connect with sql server 2008 , i am using C# as a front end application.
Here is my code:
public partial class FlagUser : Form
{
FlagUserConnectionDataContext DAC;
public FlagUser()
{
//code here
DAC = new FlagUserConnectionDataContext();
}
| c# | null | null | null | null | 04/01/2011 15:14:38 | not a real question | conection to database in C#
===
I need to connect with sql server 2008 , i am using C# as a front end application.
Here is my code:
public partial class FlagUser : Form
{
FlagUserConnectionDataContext DAC;
public FlagUser()
{
//code here
DAC = new FlagUserConnectionDataContext();
}
| 1 |
10,779,624 | 05/28/2012 05:12:21 | 1,373,033 | 03/12/2011 20:16:49 | 41 | 1 | Where to upload images (server) | I have 50 millions of images.Which will be used by my 3 website.Prior to making decision about server.Please give me suggestion about servers.
1:-Should i use one server for all images/database.files
2:-Should i use different server for images
3:-If i will put all images on one server (one folder),There is any problem in that
4:-which type of server should i choose
| image | upload | null | null | null | 05/29/2012 05:57:39 | off topic | Where to upload images (server)
===
I have 50 millions of images.Which will be used by my 3 website.Prior to making decision about server.Please give me suggestion about servers.
1:-Should i use one server for all images/database.files
2:-Should i use different server for images
3:-If i will put all images on one server (one folder),There is any problem in that
4:-which type of server should i choose
| 2 |
5,475,108 | 03/29/2011 15:35:38 | 590,083 | 01/26/2011 03:48:47 | 61 | 1 | Why can't we "pipe" other web sites' result? | A few months ago, I saw news that said Bing piped google's search result.
Regardless of whether their did or not, the issue I concern about is: why is it illegal?
I know it's immoral. But in the aspect of law, is it a crime? Accord which law? | website | pipe | law | null | null | 03/29/2011 16:03:21 | off topic | Why can't we "pipe" other web sites' result?
===
A few months ago, I saw news that said Bing piped google's search result.
Regardless of whether their did or not, the issue I concern about is: why is it illegal?
I know it's immoral. But in the aspect of law, is it a crime? Accord which law? | 2 |
4,691,729 | 01/14/2011 13:52:30 | 207,894 | 11/10/2009 15:37:29 | 93 | 4 | Django: How to manipulate a Model object before adding it to DB? | In Python-Django, I've got a Model with a FileField member in it. This member stores video files.
I'd like to "interfere" with the standard "add model row/object/instance" proecdure of Django, and manipulate each video I'm adding, before actually *committing* or adding it to database.
The manipulation is to convert the video to a specific uniform format. Thus, all added videos will eventually be stored in the same format (*WebM*).
How can I do that? I've looked into Django's *custom managers*, but I don't think that's what I'm looking for.
Thanks. :) | python | django | null | null | null | null | open | Django: How to manipulate a Model object before adding it to DB?
===
In Python-Django, I've got a Model with a FileField member in it. This member stores video files.
I'd like to "interfere" with the standard "add model row/object/instance" proecdure of Django, and manipulate each video I'm adding, before actually *committing* or adding it to database.
The manipulation is to convert the video to a specific uniform format. Thus, all added videos will eventually be stored in the same format (*WebM*).
How can I do that? I've looked into Django's *custom managers*, but I don't think that's what I'm looking for.
Thanks. :) | 0 |
11,232,363 | 06/27/2012 18:04:00 | 1,486,311 | 06/27/2012 16:21:11 | 1 | 0 | pointer declaration in header causes the application to crash | I'm having trouble with a class in C++ and Qt.
I'm trying to declare a pointer in the header file (i need the pointer to be global), but when i run the program, it just crashes. I don't have any warnings after compiling.
Here's the .h definition.
1. #include "ui_EditorWindow.h"
2. #include "IconData.h"
3. #include "AsignIdIcon.h"
4. #include "ui_AsignIdIcon.h"
5.
6. class EditorWindow : public QWidget, public Ui::EditorWindow {
7. Q_OBJECT
8.
9. private:
10. AsignIdIcon *_asignIdIcon;
11. };
If i comment the 10th line, the program runs without any problem.
Any help would be usefull.
Thanks! | c++ | qt | pointers | header-files | null | 06/28/2012 10:47:11 | not a real question | pointer declaration in header causes the application to crash
===
I'm having trouble with a class in C++ and Qt.
I'm trying to declare a pointer in the header file (i need the pointer to be global), but when i run the program, it just crashes. I don't have any warnings after compiling.
Here's the .h definition.
1. #include "ui_EditorWindow.h"
2. #include "IconData.h"
3. #include "AsignIdIcon.h"
4. #include "ui_AsignIdIcon.h"
5.
6. class EditorWindow : public QWidget, public Ui::EditorWindow {
7. Q_OBJECT
8.
9. private:
10. AsignIdIcon *_asignIdIcon;
11. };
If i comment the 10th line, the program runs without any problem.
Any help would be usefull.
Thanks! | 1 |
10,364,568 | 04/28/2012 14:48:03 | 1,362,484 | 04/28/2012 06:30:44 | 3 | 1 | Connection timeout error while uploading bulk images | I have to upload 1000 to 1500 images at a time on server.But it gives following error that
The following error was encountered:
Read Timeout
The system returned:
[No Error]
A Timeout occurred while waiting to read data from the network. The network or server may be down or congested. Please retry your request.
Your cache administrator is webmaster.
What should i use? Please help! | c# | asp.net | null | null | null | null | open | Connection timeout error while uploading bulk images
===
I have to upload 1000 to 1500 images at a time on server.But it gives following error that
The following error was encountered:
Read Timeout
The system returned:
[No Error]
A Timeout occurred while waiting to read data from the network. The network or server may be down or congested. Please retry your request.
Your cache administrator is webmaster.
What should i use? Please help! | 0 |
7,379,373 | 09/11/2011 15:51:34 | 939,311 | 09/11/2011 15:51:34 | 1 | 0 | facebook-actionscript-api full source download | http://code.google.com/p/facebook-actionscript-api/source/checkout
is the checkout page however it is not allowed to checkout completely. under trunk->source it should be "actionscript" tab like in http://code.google.com/p/facebook-actionscript-api/source/browse/trunk/source/?r=320#source%2Factionscript but it cannot be checked out. Any ideas about where I can download the complete source? | flash | actionscript-3 | facebook | null | null | 09/12/2011 06:53:15 | too localized | facebook-actionscript-api full source download
===
http://code.google.com/p/facebook-actionscript-api/source/checkout
is the checkout page however it is not allowed to checkout completely. under trunk->source it should be "actionscript" tab like in http://code.google.com/p/facebook-actionscript-api/source/browse/trunk/source/?r=320#source%2Factionscript but it cannot be checked out. Any ideas about where I can download the complete source? | 3 |
1,426,750 | 09/15/2009 12:03:44 | 163,423 | 08/26/2009 10:36:47 | 43 | 3 | Best books on JVM | Every good Java developer (well.. any developer) has his own list of the best books on each technology. Like:
- Core Java — "Thinking In Java" B. Eckel, "Core Java" K. Horstmann;
- Advanced Java — "Effective Java",
"Java Puzzlers" J. Bloch;
- Code Style — "Code Complete" S. Mcconnell;
- Design Patterns — "Design Patterns: Elements of Reusable Object-Oriented Software" GoF;
- ...
- and so on.
So I`d like a really good book, the best book on JVM.
What is it in your opinion? | books | java | jvm | null | null | 09/15/2011 07:23:25 | not constructive | Best books on JVM
===
Every good Java developer (well.. any developer) has his own list of the best books on each technology. Like:
- Core Java — "Thinking In Java" B. Eckel, "Core Java" K. Horstmann;
- Advanced Java — "Effective Java",
"Java Puzzlers" J. Bloch;
- Code Style — "Code Complete" S. Mcconnell;
- Design Patterns — "Design Patterns: Elements of Reusable Object-Oriented Software" GoF;
- ...
- and so on.
So I`d like a really good book, the best book on JVM.
What is it in your opinion? | 4 |
4,283,389 | 11/26/2010 07:49:17 | 264,950 | 02/03/2010 03:58:00 | 174 | 0 | dependent dropdown box with Yii | i have a countries, states, cities tables , and I need 3 dropdown menus
wherein, if i select a country like e.g United States, the states dropdown menu will automatically show only the states that are under United States, and next, if I select a State like e.g California, the Cities drop down menu will only show off the Cities under California
am currently having problem implementing this in yii. I have this _form file
where these 3 dropdown should be included. I have a partial code, but I can't figure out how to make this work out
this is from the Controller
public function actionDynamicstates()
{
$sql = "SELECT StateName FROM gg_t_worldareasstates WHERE CountryID = :countryid";
$command = Yii::app()->createCommand($sql);
$command->bindValue(':countryid', $_POST['CountryID'], PDO::PARAM_INT);
$data = $command->execute();
$data = CHtml::listData($data,'StateID','StateName');
foreach($data as $value=>$name)
{
echo CHtml::tag('option',
array('value'=>$value),CHtml::encode($name),true);
}
}
this is from the _form view file
<div class="row">
<?php
$country = new CDbCriteria;
$country->order = 'CountryName ASC';
echo $form->dropDownList($model,'CountryID',CHtml::listData(Worldareascountries::model()->findAll($country),'CountryID',
array(
'ajax' => array(
'type' => 'POST',
'url' => CController::createUrl('wsmembersdetails/dynamicstates'),
'update' => '#StateID',
)
))
);
echo $form->dropDownList('StateID','', array());
?>
</div>
| php | php5 | yii | null | null | null | open | dependent dropdown box with Yii
===
i have a countries, states, cities tables , and I need 3 dropdown menus
wherein, if i select a country like e.g United States, the states dropdown menu will automatically show only the states that are under United States, and next, if I select a State like e.g California, the Cities drop down menu will only show off the Cities under California
am currently having problem implementing this in yii. I have this _form file
where these 3 dropdown should be included. I have a partial code, but I can't figure out how to make this work out
this is from the Controller
public function actionDynamicstates()
{
$sql = "SELECT StateName FROM gg_t_worldareasstates WHERE CountryID = :countryid";
$command = Yii::app()->createCommand($sql);
$command->bindValue(':countryid', $_POST['CountryID'], PDO::PARAM_INT);
$data = $command->execute();
$data = CHtml::listData($data,'StateID','StateName');
foreach($data as $value=>$name)
{
echo CHtml::tag('option',
array('value'=>$value),CHtml::encode($name),true);
}
}
this is from the _form view file
<div class="row">
<?php
$country = new CDbCriteria;
$country->order = 'CountryName ASC';
echo $form->dropDownList($model,'CountryID',CHtml::listData(Worldareascountries::model()->findAll($country),'CountryID',
array(
'ajax' => array(
'type' => 'POST',
'url' => CController::createUrl('wsmembersdetails/dynamicstates'),
'update' => '#StateID',
)
))
);
echo $form->dropDownList('StateID','', array());
?>
</div>
| 0 |
9,081,832 | 01/31/2012 15:07:51 | 1,155,758 | 01/18/2012 08:46:06 | 1 | 0 | exchange data between Internet Web app (j2ee app) and Android mobile application | I am working on a Android app prototype, where I need to exchange data between internet Web app and Android mobile application. How can I achieve that, any pointers? | java | android | java-ee | null | null | null | open | exchange data between Internet Web app (j2ee app) and Android mobile application
===
I am working on a Android app prototype, where I need to exchange data between internet Web app and Android mobile application. How can I achieve that, any pointers? | 0 |
7,819,933 | 10/19/2011 10:33:01 | 1,002,927 | 10/19/2011 10:24:51 | 1 | 0 | undefined method `announce' for class `Class' (NameError) in rails | I get the following error after i have included octopus gem in my application ...can anybody help me in this?.....
rails console --trace
/usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method `announce' for class `Class' (NameError)
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain'
from /usr/lib/ruby/gems/1.8/gems/ar-octopus-0.3.4/lib/octopus/migration.rb:9:in `extended'
from /usr/lib/ruby/gems/1.8/gems/ar-octopus-0.3.4/lib/octopus/migration.rb:73:in `extend'
from /usr/lib/ruby/gems/1.8/gems/ar-octopus-0.3.4/lib/octopus/migration.rb:73
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /usr/lib/ruby/gems/1.8/gems/ar-octopus-0.3.4/lib/octopus.rb:66
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
from /var/www/scandetails/config/application.rb:7
from /usr/lib/ruby/gems/1.8/gems/railties-3.1.0/lib/rails/commands.rb:38:in `require'
from /usr/lib/ruby/gems/1.8/gems/railties-3.1.0/lib/rails/commands.rb:38
from script/rails:6:in `require'
from script/rails:6
| ruby-on-rails | null | null | null | null | null | open | undefined method `announce' for class `Class' (NameError) in rails
===
I get the following error after i have included octopus gem in my application ...can anybody help me in this?.....
rails console --trace
/usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method `announce' for class `Class' (NameError)
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain'
from /usr/lib/ruby/gems/1.8/gems/ar-octopus-0.3.4/lib/octopus/migration.rb:9:in `extended'
from /usr/lib/ruby/gems/1.8/gems/ar-octopus-0.3.4/lib/octopus/migration.rb:73:in `extend'
from /usr/lib/ruby/gems/1.8/gems/ar-octopus-0.3.4/lib/octopus/migration.rb:73
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /usr/lib/ruby/gems/1.8/gems/ar-octopus-0.3.4/lib/octopus.rb:66
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
from /var/www/scandetails/config/application.rb:7
from /usr/lib/ruby/gems/1.8/gems/railties-3.1.0/lib/rails/commands.rb:38:in `require'
from /usr/lib/ruby/gems/1.8/gems/railties-3.1.0/lib/rails/commands.rb:38
from script/rails:6:in `require'
from script/rails:6
| 0 |
10,171,976 | 04/16/2012 09:53:55 | 608,170 | 02/08/2011 13:15:22 | 21 | 2 | Using Memcached with YII's Query Builder | I'm using [YII's Query builder][1] for SELECT queries in my application. How to use memcached along with the same?
Regards,<br/>
Abhijit
[1]: http://www.yiiframework.com/doc/guide/1.1/en/database.query-builder | memcached | yii | null | null | null | null | open | Using Memcached with YII's Query Builder
===
I'm using [YII's Query builder][1] for SELECT queries in my application. How to use memcached along with the same?
Regards,<br/>
Abhijit
[1]: http://www.yiiframework.com/doc/guide/1.1/en/database.query-builder | 0 |
9,566,515 | 03/05/2012 12:19:08 | 458,930 | 09/26/2010 20:41:55 | 68 | 1 | Why the users of main Domain controller can't logon from child domain in the other site to it's Domain? | I've **A** & **B** site , every site have 1 server , the **A** have main domain **innovation.com** the first domain controller , the other is **alex.innovation.com** the second domain controller . the both server is Windows Server 2008.
the problem is the users of the first domain **innovation.com** can't log on from **B** site except the Administrator of the first site **innovation.com**.
i have been trying to enter [email protected] from **B** site, it send me message like that
> you are not allowed to logon . because you are using logon method is not allowed on this computer
is there way to solve this problem and how?
thanks for every one. | active-directory | windows-server-2008 | user-accounts | null | null | 03/05/2012 19:29:54 | off topic | Why the users of main Domain controller can't logon from child domain in the other site to it's Domain?
===
I've **A** & **B** site , every site have 1 server , the **A** have main domain **innovation.com** the first domain controller , the other is **alex.innovation.com** the second domain controller . the both server is Windows Server 2008.
the problem is the users of the first domain **innovation.com** can't log on from **B** site except the Administrator of the first site **innovation.com**.
i have been trying to enter [email protected] from **B** site, it send me message like that
> you are not allowed to logon . because you are using logon method is not allowed on this computer
is there way to solve this problem and how?
thanks for every one. | 2 |
6,715,065 | 07/16/2011 03:17:18 | 147,601 | 07/30/2009 05:40:08 | 6,336 | 38 | Simple games to program for a beginner? | I am teaching a friend how to program in Python, and I'd like to have some simple games to use as exercises for her. We've already done Hangman and Tic Tac Toe. Any other recommendations?
(To keep things simple, we're working just with the command line for now. Simple ASCII art is possible.) | python | education | null | null | null | 07/17/2011 14:02:42 | not constructive | Simple games to program for a beginner?
===
I am teaching a friend how to program in Python, and I'd like to have some simple games to use as exercises for her. We've already done Hangman and Tic Tac Toe. Any other recommendations?
(To keep things simple, we're working just with the command line for now. Simple ASCII art is possible.) | 4 |
7,292,703 | 09/03/2011 10:56:28 | 241,552 | 12/31/2009 13:53:37 | 361 | 17 | Java RegExp: Which is faster: series of simple ones or one complex? | I am writing a program that has to strip pretty long strings of quite a lot of rubbish. I do that using regular expressions, and as my program is rather sensitive in terms of speed, I need to know which of the solutions is faster: Using a number of consecutive relatively simple regular expressions, or using a single but quite a complex one?
Best regards,
Timofey. | java | regex | performance | null | null | 09/03/2011 16:56:55 | not a real question | Java RegExp: Which is faster: series of simple ones or one complex?
===
I am writing a program that has to strip pretty long strings of quite a lot of rubbish. I do that using regular expressions, and as my program is rather sensitive in terms of speed, I need to know which of the solutions is faster: Using a number of consecutive relatively simple regular expressions, or using a single but quite a complex one?
Best regards,
Timofey. | 1 |
10,881,664 | 06/04/2012 12:53:57 | 1,414,926 | 05/24/2012 11:36:19 | 1 | 0 | location network service | i am developing an app to display all details on network provider ,but i got errors can anyone help me to clear it ?
logcat-file:
D/AndroidRuntime(308): Shutting down VMW/dalvikvm(308):threadid=1: thread exiting with
uncaughtexception(group=0x4001d800)
E/AndroidRuntime(308): FATAL EXCEPTION: main
E/AndroidRuntime(308): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.LocationTest/com.LocationTest.LocationTestActivity}:
java.lang.NullPointerException
E/AndroidRuntime(308):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
E/AndroidRuntime(308):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime(308):at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime(308):at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime(308):at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(308):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(308)at android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime(308):at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(308):at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(308):at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime(308):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime(308):at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime(308): Caused by: java.lang.NullPointerException
E/AndroidRuntime(308):at android.app.Activity.findViewById(Activity.java:1637)
E/AndroidRuntime(308):at com.LocationTest.LocationTestActivity.
<init>(LocationTestActivity.java:18)
E/AndroidRuntime(308):at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime(308):at java.lang.Class.newInstance(Class.java:1429)
E/AndroidRuntime(308):at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime(308):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
E/AndroidRuntime(308): ... 11 more
I/Process(308): Sending signal. PID: 308 SIG: 9
CODE:
public class LocationTestActivity extends Activity implements LocationListener {
/** Called when the activity is first created. */
LocationManager locman;
String best; Location loc; TextView t=(TextView)findViewById(R.id.text);
private static final String[] A = { "invalid" , "n/a" , "fine" , "coarse" };
private static final String[] P = { "invalid" , "n/a" , "low" , "medium" ,
"high" };
private static final String[] S = { "out of service" ,
"temporarily unavailable" , "available" };
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
locman =(LocationManager)getSystemService(LOCATION_SERVICE);
log("location Providers");
dumpproviders();
Criteria criteria=new Criteria();
best=locman.getBestProvider(criteria,true);
log("BestProviders"+best);
log("Starting with last known location");
loc=locman.getLastKnownLocation(best);
dumpLocation(loc);
}
protected void OnResume()
{
super.onPause();
locman.requestLocationUpdates(best, 15000,1,this);
}
protected void Onpause()
{
super.onPause();
locman.removeUpdates(this);
}
private void dumpproviders() {
// TODO Auto-generated method stub
List<String> providers=locman.getAllProviders();
for(String provider:providers){
dumpProvider(provider);
}
}
private void dumpProvider(String providers) {
// TODO Auto-generated method stub
LocationProvider info=locman.getProvider(providers);
StringBuilder buil=new StringBuilder();
buil.append("LocationProvier[")
.append("name=")
.append(info.getName())
.append("provider state")
.append(locman.isProviderEnabled(providers))
.append(",getAccuracy=" )
.append(A[info.getAccuracy() + 1])
.append(",getPowerRequirement=" )
.append(P[info.getPowerRequirement() + 1])
.append(",hasMonetaryCost=" )
.append(info.hasMonetaryCost())
.append(",requiresCell=" )
.append(info.requiresCell())
.append(",requiresNetwork=" )
.append(info.requiresNetwork())
.append(",requiresSatellite=" )
.append(info.requiresSatellite())
.append(",supportsAltitude=" )
.append(info.supportsAltitude())
.append(",supportsBearing=" )
.append(info.supportsBearing())
.append(",supportsSpeed=" )
.append(info.supportsSpeed())
.append("]" );
log(buil.toString());
}
private void log(String string) {
// TODO Auto-generated method stub
t.append(string+"\n");
}
@Override
public void onLocationChanged(Location arg0) {
// TODO Auto-generated method stub
dumpLocation(loc);
}
private void dumpLocation(Location loc) {
// TODO Auto-generated method stub
if (loc == null)
log("\nLocation[unknown]" );
else
log("\n" + loc.toString());
}
@Override
public void onProviderDisabled(String arg0) {
// TODO Auto-generated method stub
log("\nProvider disabled: " + arg0);
}
@Override
public void onProviderEnabled(String arg0) {
// TODO Auto-generated method stub
log("\nProvider enabled: " + arg0);
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
// TODO Auto-generated method stub
log("\nProvider status changed: " + provider + ", status="
+ S[status] + ", extras=" + extras);
}
| android | null | null | null | null | null | open | location network service
===
i am developing an app to display all details on network provider ,but i got errors can anyone help me to clear it ?
logcat-file:
D/AndroidRuntime(308): Shutting down VMW/dalvikvm(308):threadid=1: thread exiting with
uncaughtexception(group=0x4001d800)
E/AndroidRuntime(308): FATAL EXCEPTION: main
E/AndroidRuntime(308): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.LocationTest/com.LocationTest.LocationTestActivity}:
java.lang.NullPointerException
E/AndroidRuntime(308):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
E/AndroidRuntime(308):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime(308):at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime(308):at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime(308):at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(308):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(308)at android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime(308):at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(308):at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(308):at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime(308):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime(308):at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime(308): Caused by: java.lang.NullPointerException
E/AndroidRuntime(308):at android.app.Activity.findViewById(Activity.java:1637)
E/AndroidRuntime(308):at com.LocationTest.LocationTestActivity.
<init>(LocationTestActivity.java:18)
E/AndroidRuntime(308):at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime(308):at java.lang.Class.newInstance(Class.java:1429)
E/AndroidRuntime(308):at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime(308):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
E/AndroidRuntime(308): ... 11 more
I/Process(308): Sending signal. PID: 308 SIG: 9
CODE:
public class LocationTestActivity extends Activity implements LocationListener {
/** Called when the activity is first created. */
LocationManager locman;
String best; Location loc; TextView t=(TextView)findViewById(R.id.text);
private static final String[] A = { "invalid" , "n/a" , "fine" , "coarse" };
private static final String[] P = { "invalid" , "n/a" , "low" , "medium" ,
"high" };
private static final String[] S = { "out of service" ,
"temporarily unavailable" , "available" };
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
locman =(LocationManager)getSystemService(LOCATION_SERVICE);
log("location Providers");
dumpproviders();
Criteria criteria=new Criteria();
best=locman.getBestProvider(criteria,true);
log("BestProviders"+best);
log("Starting with last known location");
loc=locman.getLastKnownLocation(best);
dumpLocation(loc);
}
protected void OnResume()
{
super.onPause();
locman.requestLocationUpdates(best, 15000,1,this);
}
protected void Onpause()
{
super.onPause();
locman.removeUpdates(this);
}
private void dumpproviders() {
// TODO Auto-generated method stub
List<String> providers=locman.getAllProviders();
for(String provider:providers){
dumpProvider(provider);
}
}
private void dumpProvider(String providers) {
// TODO Auto-generated method stub
LocationProvider info=locman.getProvider(providers);
StringBuilder buil=new StringBuilder();
buil.append("LocationProvier[")
.append("name=")
.append(info.getName())
.append("provider state")
.append(locman.isProviderEnabled(providers))
.append(",getAccuracy=" )
.append(A[info.getAccuracy() + 1])
.append(",getPowerRequirement=" )
.append(P[info.getPowerRequirement() + 1])
.append(",hasMonetaryCost=" )
.append(info.hasMonetaryCost())
.append(",requiresCell=" )
.append(info.requiresCell())
.append(",requiresNetwork=" )
.append(info.requiresNetwork())
.append(",requiresSatellite=" )
.append(info.requiresSatellite())
.append(",supportsAltitude=" )
.append(info.supportsAltitude())
.append(",supportsBearing=" )
.append(info.supportsBearing())
.append(",supportsSpeed=" )
.append(info.supportsSpeed())
.append("]" );
log(buil.toString());
}
private void log(String string) {
// TODO Auto-generated method stub
t.append(string+"\n");
}
@Override
public void onLocationChanged(Location arg0) {
// TODO Auto-generated method stub
dumpLocation(loc);
}
private void dumpLocation(Location loc) {
// TODO Auto-generated method stub
if (loc == null)
log("\nLocation[unknown]" );
else
log("\n" + loc.toString());
}
@Override
public void onProviderDisabled(String arg0) {
// TODO Auto-generated method stub
log("\nProvider disabled: " + arg0);
}
@Override
public void onProviderEnabled(String arg0) {
// TODO Auto-generated method stub
log("\nProvider enabled: " + arg0);
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
// TODO Auto-generated method stub
log("\nProvider status changed: " + provider + ", status="
+ S[status] + ", extras=" + extras);
}
| 0 |
10,528,155 | 05/10/2012 05:43:53 | 1,351,560 | 04/23/2012 14:23:52 | 2 | 0 | sending message to a specific ip address via thread in java | I use a thread to serve the login process, after a successful login then I will send the message "login has been successful" back to the client. My question is how to send a message to a specific ip address by using a thread | java | null | null | null | null | 05/10/2012 06:36:11 | not a real question | sending message to a specific ip address via thread in java
===
I use a thread to serve the login process, after a successful login then I will send the message "login has been successful" back to the client. My question is how to send a message to a specific ip address by using a thread | 1 |
11,596,683 | 07/21/2012 23:44:19 | 732,539 | 04/30/2011 16:02:02 | 536 | 26 | "Find More Themes" for Flex - Is this a joke? | So I'm designing a Flex app and saw they that I could change the theme of the application very easily.
I clicked on the Appearances tab, then clicked on my current default theme and saw a wonderful dialog box of themes I could choose that came with Flash Builder 4.6.
I saw the link "Explore More Themes" which redirected to the Adobe site. However, I was saddened to see that there was a grand total of 1 theme that was on the Adobe website.
Every theme I find online doesn't seem to import well. The only ones I could find are from 2007, and they all have a CSS file in their zip rather than a SWC. Importing the CSS never seems to get the fonts or colors they use in their examples.
Has anyone else run into this issue? Is there ANY gallery of themes out there? Am I doing something wrong with importing process? | flash | flex | actionscript | themes | null | 07/22/2012 15:39:36 | off topic | "Find More Themes" for Flex - Is this a joke?
===
So I'm designing a Flex app and saw they that I could change the theme of the application very easily.
I clicked on the Appearances tab, then clicked on my current default theme and saw a wonderful dialog box of themes I could choose that came with Flash Builder 4.6.
I saw the link "Explore More Themes" which redirected to the Adobe site. However, I was saddened to see that there was a grand total of 1 theme that was on the Adobe website.
Every theme I find online doesn't seem to import well. The only ones I could find are from 2007, and they all have a CSS file in their zip rather than a SWC. Importing the CSS never seems to get the fonts or colors they use in their examples.
Has anyone else run into this issue? Is there ANY gallery of themes out there? Am I doing something wrong with importing process? | 2 |
11,475,022 | 07/13/2012 17:01:19 | 1,524,090 | 07/13/2012 16:22:44 | 1 | 0 | Converting C++ to C# - code to work with MPEG-TS (Transport Stream) | *I'M NOT ASKING FOR HELP WITH DEALING WITH PACKETS, JUST PURELY THE CONVERSION*
I need to rewrite some C++ code in C# but am not familiar enough with C# to figure out what to use in place of everything in the original code.
Here's just 1 function from the C++ (it uses a class (BitStream), but I'm not including this here).
I'm not really sure what specific question(s) to ask but any help with this conversion would be greatly appreciated!!
int ParseTxPkt(BYTE *pTxPkt, BYTE **ppPayload, int &payloadLen, int &pid, int &payload_unit_start_indicator,int &continuity_counter,__int64 &pcr,__int64 &offset,bool peek)
{
int transport_error_indicator;
int transport_priority;
int transport_scrambling_control;
int adaptation_field_control;
int adaptation_field_length;
int payloadOffset;
bool pcr_flag;
int ret=QV_FAILURE;
BYTE *txPkt;
BitStream *stream=NULL;
payloadOffset=-1;
payloadLen=0;
*ppPayload=NULL;
pcr=-1;
pcr_flag=false;
txPkt=pTxPkt;
stream=new BitStream(txPkt,TX_PKT_SIZE);
if (stream->GetNextBits(8)!=Sync_Byte) {
delete stream;
return QV_FAILURE;
}
transport_error_indicator=stream->GetNextBit();
payload_unit_start_indicator=stream->GetNextBit();
transport_priority=stream->GetNextBit();
pid=stream->GetNextBits(13);
transport_scrambling_control=stream->GetNextBits(2);
adaptation_field_control=stream->GetNextBits(2);
continuity_counter=stream->GetNextBits(4);
switch (adaptation_field_control) {
case 0: // reserved
break;
case 2: // no payload
*ppPayload=NULL;
payloadLen=0;
adaptation_field_length=stream->GetNextBits(8);
if (adaptation_field_length>0 && pcr<0) {
stream->GetNextBits(3);
pcr_flag=stream->GetNextBits(1);
stream->GetNextBits(4);
if (pcr_flag) {
pcr=stream->GetNextBits(32);
pcr=pcr*2+stream->GetNextBits(1);
}
}
ret=QV_SUCCESS;
break;
case 1: // no adaptation field
payloadOffset=4;
payloadLen=TX_PKT_SIZE-4;
*ppPayload=txPkt+payloadOffset;
ret=QV_SUCCESS;
break;
case 3: // adaptation field and payload
adaptation_field_length=stream->GetNextBits(8);
payloadOffset=4+1+adaptation_field_length;
payloadLen=TX_PKT_SIZE-4-(1+adaptation_field_length);
*ppPayload=txPkt+payloadOffset;
if (adaptation_field_length>0) {
stream->GetNextBits(3);
pcr_flag=stream->GetNextBits(1);
stream->GetNextBits(4);
if (pcr_flag) {
pcr=stream->GetNextBits(32);
pcr=pcr*2+stream->GetNextBits(1);
}
}
ret=QV_SUCCESS;
break;
}
delete stream;
return ret;
} | c# | c++ | convert | null | null | 07/14/2012 05:01:35 | not a real question | Converting C++ to C# - code to work with MPEG-TS (Transport Stream)
===
*I'M NOT ASKING FOR HELP WITH DEALING WITH PACKETS, JUST PURELY THE CONVERSION*
I need to rewrite some C++ code in C# but am not familiar enough with C# to figure out what to use in place of everything in the original code.
Here's just 1 function from the C++ (it uses a class (BitStream), but I'm not including this here).
I'm not really sure what specific question(s) to ask but any help with this conversion would be greatly appreciated!!
int ParseTxPkt(BYTE *pTxPkt, BYTE **ppPayload, int &payloadLen, int &pid, int &payload_unit_start_indicator,int &continuity_counter,__int64 &pcr,__int64 &offset,bool peek)
{
int transport_error_indicator;
int transport_priority;
int transport_scrambling_control;
int adaptation_field_control;
int adaptation_field_length;
int payloadOffset;
bool pcr_flag;
int ret=QV_FAILURE;
BYTE *txPkt;
BitStream *stream=NULL;
payloadOffset=-1;
payloadLen=0;
*ppPayload=NULL;
pcr=-1;
pcr_flag=false;
txPkt=pTxPkt;
stream=new BitStream(txPkt,TX_PKT_SIZE);
if (stream->GetNextBits(8)!=Sync_Byte) {
delete stream;
return QV_FAILURE;
}
transport_error_indicator=stream->GetNextBit();
payload_unit_start_indicator=stream->GetNextBit();
transport_priority=stream->GetNextBit();
pid=stream->GetNextBits(13);
transport_scrambling_control=stream->GetNextBits(2);
adaptation_field_control=stream->GetNextBits(2);
continuity_counter=stream->GetNextBits(4);
switch (adaptation_field_control) {
case 0: // reserved
break;
case 2: // no payload
*ppPayload=NULL;
payloadLen=0;
adaptation_field_length=stream->GetNextBits(8);
if (adaptation_field_length>0 && pcr<0) {
stream->GetNextBits(3);
pcr_flag=stream->GetNextBits(1);
stream->GetNextBits(4);
if (pcr_flag) {
pcr=stream->GetNextBits(32);
pcr=pcr*2+stream->GetNextBits(1);
}
}
ret=QV_SUCCESS;
break;
case 1: // no adaptation field
payloadOffset=4;
payloadLen=TX_PKT_SIZE-4;
*ppPayload=txPkt+payloadOffset;
ret=QV_SUCCESS;
break;
case 3: // adaptation field and payload
adaptation_field_length=stream->GetNextBits(8);
payloadOffset=4+1+adaptation_field_length;
payloadLen=TX_PKT_SIZE-4-(1+adaptation_field_length);
*ppPayload=txPkt+payloadOffset;
if (adaptation_field_length>0) {
stream->GetNextBits(3);
pcr_flag=stream->GetNextBits(1);
stream->GetNextBits(4);
if (pcr_flag) {
pcr=stream->GetNextBits(32);
pcr=pcr*2+stream->GetNextBits(1);
}
}
ret=QV_SUCCESS;
break;
}
delete stream;
return ret;
} | 1 |
10,869,644 | 06/03/2012 10:43:10 | 1,431,452 | 06/01/2012 19:15:13 | 1 | 0 | Allow person I'm designing website for to upload photos | I hope this question isn't too general but I really don't have a clue how to do it or even where to get started!
I'm relatively new to web design and I'm in the process of building a site for a local band. The site is nearly completed however I was wondering if there was a simple way to allow the band to upload their own photos and update their gig dates when the site is done, without either me having to do it or them having to get into the HTML? How would I go about designing a simple interface through which they could do this that would also feature some sort of authentication system! As I said I don't even know where to start when doing this (I don't know PHP but would that be what I would use?) so if anyone could point me in the right direction, or towards some resources that would help I would very much appreciate it.
Cheers! | html | null | null | null | null | 06/03/2012 12:31:45 | off topic | Allow person I'm designing website for to upload photos
===
I hope this question isn't too general but I really don't have a clue how to do it or even where to get started!
I'm relatively new to web design and I'm in the process of building a site for a local band. The site is nearly completed however I was wondering if there was a simple way to allow the band to upload their own photos and update their gig dates when the site is done, without either me having to do it or them having to get into the HTML? How would I go about designing a simple interface through which they could do this that would also feature some sort of authentication system! As I said I don't even know where to start when doing this (I don't know PHP but would that be what I would use?) so if anyone could point me in the right direction, or towards some resources that would help I would very much appreciate it.
Cheers! | 2 |
6,054,461 | 05/19/2011 06:01:22 | 786,954 | 05/04/2011 05:59:14 | 1 | 0 | Add hyperlink on label or textview | I want to open the URL or any emial address by using label or text view instead of button... plz if anyone know about this .....give me the solution... | iphone-sdk-4.0 | null | null | null | null | 05/19/2011 13:33:26 | not a real question | Add hyperlink on label or textview
===
I want to open the URL or any emial address by using label or text view instead of button... plz if anyone know about this .....give me the solution... | 1 |
8,347,219 | 12/01/2011 19:35:27 | 317,975 | 04/15/2010 20:45:27 | 5,878 | 254 | jQuery, A search for a smarter way to Initialize | I'm looking for a better way to manage global component/plugin/widget initialization in a large project. It has many jQuery-powered components that I would like to initialize quickly & efficiently and after scouring the internet, I've only really found short-sighted examples that are only realistic/performant in smaller sites.
The Problem
----
I Want to find a smart & elegant way of getting rid of this:
$(function() { $('.widget-one').widgetOne(); });
$(function() { $('.widget-two').widgetTwo(); });
$(function() { $('.widget-three').widgetThree(); });
$(function() { $('.widget-four').widgetFour(); });
Now before you smack me for it, let me state that I know that in most cases (but not all) `.widget-one` is a bad selector as it will on older browsers get all elements in the dom and check for the class.
The issue is, these widgets are not one-off's, and I may not know about thier existance ahead of time (generated in a web app view, maybe 2-3 times based on logic or a loop of products or something).
So the following solutions are out:
$(function() { $('#WidgetOne').widgetOne(); });
and
<span id="WidgetOne_12345">...</span>
<script type="javascript">
$(function() { $('#WidgetOne_12345').widgetOne(); });
</script>
Thoughts
---
This is not a new problem, It's been around since day one. It still baffles me how this is so difficult to solve with jQuery even at this level of maturity. Either that or I'm missing something blatantly obvious.
Unfortunately google-fu turns out badly on this subject as everyone suggests one of two things:
* jQuery's `.live()` or `.delegate()` catch-all event handlers. This is just scary on a fundamental level. `.delegate()` wouldn't be so bad, but this requires that the plugin/widget/control/whatever be entirely event driven. This would work in a lot of cases for sure, but not in others. It also makes following & organizing the code very complex. I won't even go into `.live()`, for large complex sites, the event bubbling is slow & when you get enough components together, the list of queries to match becomes large making each click/focus/whatever event incrementally slower on the whole for the entire page.
* Work arounds that involve plugins like [liveQuery][0], which is a very cool plugin for sure but it primarily seems to have been designed to solve a different issue (the issue of new items being brought in by ajax/dom creation), and still will get incrementally slower the more queries that stack up that need to be checked against.
Conclusion
---
There _has_ to be a better way, I know there has to be one. I've exhausted my google fu on the subject, and still cannot find ideas/concepts/examples/discussion that is newer than jQuery 1.3.2 or with a grand picture in mind. In a perfect world this wouldn't be a problem because everyone would use intelligent browsers with modern standards & a decent javascript engine, and `.class` queries wouldn't take eons and eons, but unfortunately this is not the case.
I'm looking for ideas on how to tackle this, after going through many SO questions similar to this, and many articles on various jquery techniques I feel that if the information is out there it's buried underneath the many false positives & "101 best jquery plugin" results that turn up in any search with jQuery. I know *someone* out there has ran into this predicament.
Ideas, links, examples, anything is welcome, there just has to be a better way.
[0]: http://docs.jquery.com/Plugins/livequery | javascript | jquery | performance | initialization | null | null | open | jQuery, A search for a smarter way to Initialize
===
I'm looking for a better way to manage global component/plugin/widget initialization in a large project. It has many jQuery-powered components that I would like to initialize quickly & efficiently and after scouring the internet, I've only really found short-sighted examples that are only realistic/performant in smaller sites.
The Problem
----
I Want to find a smart & elegant way of getting rid of this:
$(function() { $('.widget-one').widgetOne(); });
$(function() { $('.widget-two').widgetTwo(); });
$(function() { $('.widget-three').widgetThree(); });
$(function() { $('.widget-four').widgetFour(); });
Now before you smack me for it, let me state that I know that in most cases (but not all) `.widget-one` is a bad selector as it will on older browsers get all elements in the dom and check for the class.
The issue is, these widgets are not one-off's, and I may not know about thier existance ahead of time (generated in a web app view, maybe 2-3 times based on logic or a loop of products or something).
So the following solutions are out:
$(function() { $('#WidgetOne').widgetOne(); });
and
<span id="WidgetOne_12345">...</span>
<script type="javascript">
$(function() { $('#WidgetOne_12345').widgetOne(); });
</script>
Thoughts
---
This is not a new problem, It's been around since day one. It still baffles me how this is so difficult to solve with jQuery even at this level of maturity. Either that or I'm missing something blatantly obvious.
Unfortunately google-fu turns out badly on this subject as everyone suggests one of two things:
* jQuery's `.live()` or `.delegate()` catch-all event handlers. This is just scary on a fundamental level. `.delegate()` wouldn't be so bad, but this requires that the plugin/widget/control/whatever be entirely event driven. This would work in a lot of cases for sure, but not in others. It also makes following & organizing the code very complex. I won't even go into `.live()`, for large complex sites, the event bubbling is slow & when you get enough components together, the list of queries to match becomes large making each click/focus/whatever event incrementally slower on the whole for the entire page.
* Work arounds that involve plugins like [liveQuery][0], which is a very cool plugin for sure but it primarily seems to have been designed to solve a different issue (the issue of new items being brought in by ajax/dom creation), and still will get incrementally slower the more queries that stack up that need to be checked against.
Conclusion
---
There _has_ to be a better way, I know there has to be one. I've exhausted my google fu on the subject, and still cannot find ideas/concepts/examples/discussion that is newer than jQuery 1.3.2 or with a grand picture in mind. In a perfect world this wouldn't be a problem because everyone would use intelligent browsers with modern standards & a decent javascript engine, and `.class` queries wouldn't take eons and eons, but unfortunately this is not the case.
I'm looking for ideas on how to tackle this, after going through many SO questions similar to this, and many articles on various jquery techniques I feel that if the information is out there it's buried underneath the many false positives & "101 best jquery plugin" results that turn up in any search with jQuery. I know *someone* out there has ran into this predicament.
Ideas, links, examples, anything is welcome, there just has to be a better way.
[0]: http://docs.jquery.com/Plugins/livequery | 0 |
11,689,167 | 07/27/2012 13:50:31 | 1,435,712 | 06/04/2012 17:47:21 | 481 | 13 | Convert a single byte to a string? | This is simply to error check my code, but I would like to convert a single byte out of a byte array to a string. Does anyone know how to do this? This is what I have so far:
recBuf = read( 5 );
Log.i( TAG, (String)recBuf[0] );
But of course this doesn't work.
I have googled around a bit but have only found ways to convert an entire byte[] array to a string...
new String( recBuf );
I know I could just do that, and then sift through the string, but it would make my task easier if I knew how to operate this way. | java | android | type-conversion | null | null | null | open | Convert a single byte to a string?
===
This is simply to error check my code, but I would like to convert a single byte out of a byte array to a string. Does anyone know how to do this? This is what I have so far:
recBuf = read( 5 );
Log.i( TAG, (String)recBuf[0] );
But of course this doesn't work.
I have googled around a bit but have only found ways to convert an entire byte[] array to a string...
new String( recBuf );
I know I could just do that, and then sift through the string, but it would make my task easier if I knew how to operate this way. | 0 |
1,887,655 | 12/11/2009 12:07:58 | 137,055 | 07/12/2009 16:28:54 | 18 | 0 | iPhone SDK - NSDateFormatter day + month | I would like to display only the day and month of a date. Basically the NSDateFormatterLongStyle but without the year.
The problem I'm facing is the localization. In the english version it has to show for example 'January 14' and in french '14 Janvier'.
Is there an easy way to print such dates? Or do I have use ifelse statements for checking the current locale and set the day before or after the month?
Thanks in advance for your help. | iphone | nsdateformatter | null | null | null | null | open | iPhone SDK - NSDateFormatter day + month
===
I would like to display only the day and month of a date. Basically the NSDateFormatterLongStyle but without the year.
The problem I'm facing is the localization. In the english version it has to show for example 'January 14' and in french '14 Janvier'.
Is there an easy way to print such dates? Or do I have use ifelse statements for checking the current locale and set the day before or after the month?
Thanks in advance for your help. | 0 |
7,725,695 | 10/11/2011 11:58:44 | 597,981 | 02/01/2011 06:38:55 | 29 | 0 | Map Quick Search android | have a simple Android application that has a TabBar and one of the tabs displays a list. When the user hits the "Search" Button on the phone, a new search should be triggered.
My problem now is that the result will be displayed in a new instance of the results intent. This also makes the TabBar on the top go away. Is there any possibility to display the search result in the intent that was active when the user triggered the search?
I tried messing with the android:launchMode in the manifest file but cant?
here is code
@Override
public void onNewIntent(Intent intent) { Log.e(TAG,"In onNewIntent");
if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
Log.e(TAG,"SearchQuery: " + intent.getStringExtra(SearchManager.QUERY));
Toast.makeText(this,"Get Location", Toast.LENGTH_LONG).show();
/* Perform search and display the list to User for selection */
Intent getLocation = new Intent(this, ShowList.class);
getLocation.putExtra("query", intent.getStringExtra(SearchManager.QUERY));
this.startActivityForResult(getLocation, GET_LOCATION);
}
}
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (GET_LOCATION == requestCode) {
switch (resultCode) {
/*My map marker code is here*/
}
}
Help? | android | search | map | android-intent | null | null | open | Map Quick Search android
===
have a simple Android application that has a TabBar and one of the tabs displays a list. When the user hits the "Search" Button on the phone, a new search should be triggered.
My problem now is that the result will be displayed in a new instance of the results intent. This also makes the TabBar on the top go away. Is there any possibility to display the search result in the intent that was active when the user triggered the search?
I tried messing with the android:launchMode in the manifest file but cant?
here is code
@Override
public void onNewIntent(Intent intent) { Log.e(TAG,"In onNewIntent");
if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
Log.e(TAG,"SearchQuery: " + intent.getStringExtra(SearchManager.QUERY));
Toast.makeText(this,"Get Location", Toast.LENGTH_LONG).show();
/* Perform search and display the list to User for selection */
Intent getLocation = new Intent(this, ShowList.class);
getLocation.putExtra("query", intent.getStringExtra(SearchManager.QUERY));
this.startActivityForResult(getLocation, GET_LOCATION);
}
}
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (GET_LOCATION == requestCode) {
switch (resultCode) {
/*My map marker code is here*/
}
}
Help? | 0 |
5,975,037 | 05/12/2011 08:01:09 | 683,424 | 03/30/2011 06:51:27 | 11 | 0 | how to place selected phonebook contacts into an array or list array etc... | hi i have imported all my phonebook contacts into my application with checkboxes each row.now i want put those selected contacts information like Name,phone number,email id into the my sql server.for that how should i approach pls help me out... | android | mysql | null | null | null | 05/12/2011 10:06:58 | not a real question | how to place selected phonebook contacts into an array or list array etc...
===
hi i have imported all my phonebook contacts into my application with checkboxes each row.now i want put those selected contacts information like Name,phone number,email id into the my sql server.for that how should i approach pls help me out... | 1 |
565,471 | 02/19/2009 14:12:59 | 16,487 | 09/17/2008 17:36:29 | 52 | 10 | Logging for ASP.NET - Best Practices | What is the best way to write minimal error logs in an ASP.NET 2.0 web page or web service? For my purposes it'd be best if this was vanilla, and the implementation would work through IIS's virtual directories. I'm currently using the standard TextWriterTraceListener, but it doesn't seem to write to the virtual directory.
FYI - the TextWriterTraceListener's configuration follows:
<system.diagnostics>
<trace autoflush="true">
<listeners>
<add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData=".\VirtualDirectory\SomeLog.log" />
</listeners>
</trace>
</system.diagnostics>
I appreciate your help! | .net-2.0 | asp.net | iis | logging | null | 05/29/2012 13:05:11 | not constructive | Logging for ASP.NET - Best Practices
===
What is the best way to write minimal error logs in an ASP.NET 2.0 web page or web service? For my purposes it'd be best if this was vanilla, and the implementation would work through IIS's virtual directories. I'm currently using the standard TextWriterTraceListener, but it doesn't seem to write to the virtual directory.
FYI - the TextWriterTraceListener's configuration follows:
<system.diagnostics>
<trace autoflush="true">
<listeners>
<add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData=".\VirtualDirectory\SomeLog.log" />
</listeners>
</trace>
</system.diagnostics>
I appreciate your help! | 4 |
7,334,849 | 09/07/2011 13:41:13 | 932,793 | 09/07/2011 13:24:02 | 1 | 0 | Language recomendation for new project, Python or Scala | I'm 8 years in Enterprice development in Java(JavaEE, ESB, Oracle atc). Now I would like to start my private project. Taking in accout my kind of "dissapoinment" with Java and mainly that I have cca 3hours per day for private project I have decided to make it in some more productive enviroment. Gui is Flex to avoid browser related HTML/CSS etc issues. CUI will do xml-rpc call to backend. And the backed is <...>
I have to mention that I have no experiende with Scala or Python. Project can get quite large in functionality during development. Making a small prototype is not a help here cause possible language issues can be far away from simple prototype.
Type safety is not an issue for me. Nearly 80% of my code is always unit tested and code is mostly well layed out.
One way to think about is to startup with Python go get results quickly and if project will be accepted by target community it could be possibly rewriten to Scala for example. I'm not sure for now. Can you some point to take in consideration?
Many Thanks | python | flex | scala | xml-rpc | null | 09/07/2011 13:55:38 | not constructive | Language recomendation for new project, Python or Scala
===
I'm 8 years in Enterprice development in Java(JavaEE, ESB, Oracle atc). Now I would like to start my private project. Taking in accout my kind of "dissapoinment" with Java and mainly that I have cca 3hours per day for private project I have decided to make it in some more productive enviroment. Gui is Flex to avoid browser related HTML/CSS etc issues. CUI will do xml-rpc call to backend. And the backed is <...>
I have to mention that I have no experiende with Scala or Python. Project can get quite large in functionality during development. Making a small prototype is not a help here cause possible language issues can be far away from simple prototype.
Type safety is not an issue for me. Nearly 80% of my code is always unit tested and code is mostly well layed out.
One way to think about is to startup with Python go get results quickly and if project will be accepted by target community it could be possibly rewriten to Scala for example. I'm not sure for now. Can you some point to take in consideration?
Many Thanks | 4 |
7,264,981 | 09/01/2011 00:28:17 | 894,291 | 08/14/2011 22:30:13 | 19 | 1 | Icon in java programs | How can I have a icon for my program in java? I've tried searching all over the web ,but I cant find anything | java | icons | null | null | null | null | open | Icon in java programs
===
How can I have a icon for my program in java? I've tried searching all over the web ,but I cant find anything | 0 |
11,520,050 | 07/17/2012 09:52:43 | 1,531,233 | 07/17/2012 09:08:28 | 1 | 0 | NSTextField becomes unselectable by rightmouse click | I have NSTextField that processes some mouse events and it could be selected and copied by right mouse click only one time during application execution. How can it be fixed? | objective-c | xcode | nstextfield | null | null | 07/18/2012 00:02:38 | not a real question | NSTextField becomes unselectable by rightmouse click
===
I have NSTextField that processes some mouse events and it could be selected and copied by right mouse click only one time during application execution. How can it be fixed? | 1 |
9,822,741 | 03/22/2012 12:57:32 | 1,104,118 | 12/18/2011 03:08:48 | 31 | 0 | How can I take a picture with a webcam, after seeing a preview, using Java (not javascript) | I know there are several questions similar to mine. I've been trying and trying to find something that works. I can't get any of the suggestions to work. I tried the JMF, FMJ, JMyron, the Marvin Framework, Minimalist Example of Video Capture Using Java (http://www.codeproject.com/Articles/81824/Minimalist-Example-of-Video-Capture-Using-Java), javaCV, etc...
The best answer possible would be code i can copy and paste in eclipse and it runs. It needs to be free.
Thanks a lot! | java | frameworks | webcam | capture | null | 03/23/2012 13:13:21 | not constructive | How can I take a picture with a webcam, after seeing a preview, using Java (not javascript)
===
I know there are several questions similar to mine. I've been trying and trying to find something that works. I can't get any of the suggestions to work. I tried the JMF, FMJ, JMyron, the Marvin Framework, Minimalist Example of Video Capture Using Java (http://www.codeproject.com/Articles/81824/Minimalist-Example-of-Video-Capture-Using-Java), javaCV, etc...
The best answer possible would be code i can copy and paste in eclipse and it runs. It needs to be free.
Thanks a lot! | 4 |
11,222,430 | 06/27/2012 08:42:37 | 557,105 | 12/29/2010 12:11:30 | 1 | 0 | Increase django view execution time | How can I increase django execution time of a view. Some views of my app do very long tasks that timeout. So I want to increase execution time of my django application | python | django | null | null | null | null | open | Increase django view execution time
===
How can I increase django execution time of a view. Some views of my app do very long tasks that timeout. So I want to increase execution time of my django application | 0 |
1,518,566 | 10/05/2009 06:58:44 | 184,189 | 10/05/2009 06:58:44 | 1 | 0 | rdlc Globalisation | I have a globalstrings.resx resource file in my solution which contains all of my key/value pairs for all static labels and tooltips. Everything in my web application has been globalized excepting for my .rdlc files. I've had a look at this solution - [RDLC_Localization][1] - but it does not solve the problem of globalizing the paging, filtering and exporting text and tooltips.
Your assistance would be greatly appreciated.
[1]: http://www.codeproject.com/KB/aspnet/RDLC_Localization.aspx | rdlc | null | null | null | null | null | open | rdlc Globalisation
===
I have a globalstrings.resx resource file in my solution which contains all of my key/value pairs for all static labels and tooltips. Everything in my web application has been globalized excepting for my .rdlc files. I've had a look at this solution - [RDLC_Localization][1] - but it does not solve the problem of globalizing the paging, filtering and exporting text and tooltips.
Your assistance would be greatly appreciated.
[1]: http://www.codeproject.com/KB/aspnet/RDLC_Localization.aspx | 0 |
9,133,990 | 02/03/2012 18:58:31 | 828,559 | 07/04/2011 18:10:59 | 1,009 | 59 | Create a user without having root privileges | Is it possible to create a non-root linux user account without being logged as a root user? | linux | null | null | null | null | 02/03/2012 19:08:45 | off topic | Create a user without having root privileges
===
Is it possible to create a non-root linux user account without being logged as a root user? | 2 |
10,701,945 | 05/22/2012 12:21:45 | 701,904 | 04/11/2011 09:42:26 | 82 | 1 | two different dynamic variables in foreach | I have two variables $items and $stuff[0]
I want to loop each variable through an foreach loop like this
foreach($items as $i)
// do stuff
foreach($stuff[0] as $i)
// do same stuff as above
Is it possible to set de foreach variable dynamic like
foreach(($items = isset($items) ? $items : $stuff[0]) as $key) {
So i won't have to write the 'do stuff' 2 times...
| php | null | null | null | null | 05/23/2012 12:42:51 | not a real question | two different dynamic variables in foreach
===
I have two variables $items and $stuff[0]
I want to loop each variable through an foreach loop like this
foreach($items as $i)
// do stuff
foreach($stuff[0] as $i)
// do same stuff as above
Is it possible to set de foreach variable dynamic like
foreach(($items = isset($items) ? $items : $stuff[0]) as $key) {
So i won't have to write the 'do stuff' 2 times...
| 1 |
302,376 | 11/19/2008 15:56:33 | 38,986 | 11/19/2008 15:56:32 | 1 | 0 | How to relearn programming the right way | Before I took programming courses in high school and college (which did not teach me much besides new syntax for new languages), I started out with a Python tutorial that served as a general introduction to programming. It included variables, if statements, loops, etc. At that point I was so excited about programming that I picked up [Learning PHP][1]
and I put my first web application together.
The problem I think I have is that I started out too quickly and consequently the quality of my code suffered. In fact, I would rather not look at the code I wrote 2 years ago ever again.
In summer I read [Code Complete][2] and [The Pragmatic Programmer][3]. Although I found them somewhat useful, these books seem to be targeted at developers with much more experience than I have. I did start using source control and try to adhere to the DRY principle, but basically what I am looking for are some resources (books, preferably) that would help me quit being a hacker and become a developer who is proud of the code he writes.
[1]: http://www.amazon.com/Learning-PHP-5-David-Sklar/dp/0596005601/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1227109166&sr=8-1
[2]: http://www.amazon.com/Code-Complete-Practical-Handbook-Construction/dp/0735619670/ref=sr_1_1?ie=UTF8&s=books&qid=1227109451&sr=1-1
[3]: http://www.amazon.com/Pragmatic-Programmer-Journeyman-Master/dp/020161622X/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1227109483&sr=8-1 | self-improvement | null | null | null | null | 03/01/2012 19:22:57 | not constructive | How to relearn programming the right way
===
Before I took programming courses in high school and college (which did not teach me much besides new syntax for new languages), I started out with a Python tutorial that served as a general introduction to programming. It included variables, if statements, loops, etc. At that point I was so excited about programming that I picked up [Learning PHP][1]
and I put my first web application together.
The problem I think I have is that I started out too quickly and consequently the quality of my code suffered. In fact, I would rather not look at the code I wrote 2 years ago ever again.
In summer I read [Code Complete][2] and [The Pragmatic Programmer][3]. Although I found them somewhat useful, these books seem to be targeted at developers with much more experience than I have. I did start using source control and try to adhere to the DRY principle, but basically what I am looking for are some resources (books, preferably) that would help me quit being a hacker and become a developer who is proud of the code he writes.
[1]: http://www.amazon.com/Learning-PHP-5-David-Sklar/dp/0596005601/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1227109166&sr=8-1
[2]: http://www.amazon.com/Code-Complete-Practical-Handbook-Construction/dp/0735619670/ref=sr_1_1?ie=UTF8&s=books&qid=1227109451&sr=1-1
[3]: http://www.amazon.com/Pragmatic-Programmer-Journeyman-Master/dp/020161622X/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1227109483&sr=8-1 | 4 |
2,657,545 | 04/17/2010 06:48:20 | 98,810 | 04/30/2009 17:27:41 | 266 | 13 | Where a developer can sell / donate his time? | Recently business isn't good and was wondering what are your favourite places where
- you can sell your time working on a projects (you get specification / idea -> you crank code -> you get paid :) ) (I don't mean selling your own apps, just working for someone else)
or
- where you can donate your time (you get specification -> you crank code -> you feel good
:D) (I've heard about cranking code on weekends for charities in US but I'm from Poland so I was thinking about something not location specific) | selling-software | null | null | null | null | 04/17/2010 16:27:52 | off topic | Where a developer can sell / donate his time?
===
Recently business isn't good and was wondering what are your favourite places where
- you can sell your time working on a projects (you get specification / idea -> you crank code -> you get paid :) ) (I don't mean selling your own apps, just working for someone else)
or
- where you can donate your time (you get specification -> you crank code -> you feel good
:D) (I've heard about cranking code on weekends for charities in US but I'm from Poland so I was thinking about something not location specific) | 2 |
551,932 | 02/16/2009 00:42:25 | 48,705 | 12/23/2008 17:57:58 | 183 | 6 | Is it possible to use WPF and Delphi 2007/09 win32? | Is it?! Possible? | delphi | wpf | null | null | null | null | open | Is it possible to use WPF and Delphi 2007/09 win32?
===
Is it?! Possible? | 0 |
9,979,326 | 04/02/2012 15:38:02 | 552,671 | 12/23/2010 18:06:25 | 442 | 16 | Python: How to create simple web pages without a huge framework? | I would like to know if there is a way to create web pages without a huge framework in python.
I think of something like PHP/Apache, which comes just as a language and not with to much overhead (but I don't like PHP...). In PHP there is no ORM, no template engine, etc. But it is very very easy to just print a `Hello World` to the browser.
I know about Django and really like it, but it is a bit too big for simple web portals (5-10 pages).
I really like something simple, without installing too much. | python | frameworks | web-frameworks | null | null | 04/02/2012 18:21:42 | not constructive | Python: How to create simple web pages without a huge framework?
===
I would like to know if there is a way to create web pages without a huge framework in python.
I think of something like PHP/Apache, which comes just as a language and not with to much overhead (but I don't like PHP...). In PHP there is no ORM, no template engine, etc. But it is very very easy to just print a `Hello World` to the browser.
I know about Django and really like it, but it is a bit too big for simple web portals (5-10 pages).
I really like something simple, without installing too much. | 4 |
1,727,305 | 11/13/2009 05:30:52 | 144,356 | 07/24/2009 09:03:51 | 125 | 7 | Post back complex object from clent side | I'm using ASP.NET MVC and Entity Framework. I'm going to pass a complex entity to the clent side and alow the user to modify it, and post it back to the controller. But I don't know how to do that and whether the client side entity will lost relationship tracking of EF as it is detached from object context.
Any ideas? Thanks in advance!
| entity-framework | asp.net-mvc | null | null | null | null | open | Post back complex object from clent side
===
I'm using ASP.NET MVC and Entity Framework. I'm going to pass a complex entity to the clent side and alow the user to modify it, and post it back to the controller. But I don't know how to do that and whether the client side entity will lost relationship tracking of EF as it is detached from object context.
Any ideas? Thanks in advance!
| 0 |
8,363,478 | 12/02/2011 22:26:27 | 1,055,637 | 11/19/2011 19:18:36 | 8 | 0 | load from a file object Enum | I would load from a file a string and put in in a object enum.
I create into a class this:
public Passenger{
private String pass_name;
public enum State{
b,c,d;
};
....
State reser;
public Passenger(String n,State r)
pass_name=n;
reser=r;
}
in another file I want read a file and put the string in the way i can create an object passenger such:
Passenger p=new Passenger(p_name,What should i put here)?
| java | homework | null | null | null | null | open | load from a file object Enum
===
I would load from a file a string and put in in a object enum.
I create into a class this:
public Passenger{
private String pass_name;
public enum State{
b,c,d;
};
....
State reser;
public Passenger(String n,State r)
pass_name=n;
reser=r;
}
in another file I want read a file and put the string in the way i can create an object passenger such:
Passenger p=new Passenger(p_name,What should i put here)?
| 0 |
5,317,293 | 03/15/2011 19:59:20 | 657,476 | 03/13/2011 12:31:38 | 34 | 1 | Choice of Software for bug tracking/changes for Mathematica Application Package Development CVS Vs. Bugzilla? | I am developing an application package in mathematica with workbench and it is starting to get complex with multpiple versions and components. I read in some mathematica documentation ([http://reference.wolfram.com/mathematica/tutorial/BuildingLargeSoftwareSystemsInMathematica.html][1] Paragraph:Use Source Control )that CVS was a good system, but I have checked it ([http://www.nongnu.org/cvs/][2]) and it does not seem to be under very active development and the download page is kind of cryptic.
On a different project I managed many years ago, the developers used bugzilla and were quite happpy with it. I went to the bugzilla page and it seems to be a better choice ([http://www.bugzilla.org/download/#howtoget][3]).
Any advice from active Mathematica developers?
[1]: http://reference.wolfram.com/mathematica/tutorial/BuildingLargeSoftwareSystemsInMathematica.html
[2]: http://www.nongnu.org/cvs/
[3]: http://www.bugzilla.org/download/#howtoget | cvs | mathematica | tracking | bugzilla | null | null | open | Choice of Software for bug tracking/changes for Mathematica Application Package Development CVS Vs. Bugzilla?
===
I am developing an application package in mathematica with workbench and it is starting to get complex with multpiple versions and components. I read in some mathematica documentation ([http://reference.wolfram.com/mathematica/tutorial/BuildingLargeSoftwareSystemsInMathematica.html][1] Paragraph:Use Source Control )that CVS was a good system, but I have checked it ([http://www.nongnu.org/cvs/][2]) and it does not seem to be under very active development and the download page is kind of cryptic.
On a different project I managed many years ago, the developers used bugzilla and were quite happpy with it. I went to the bugzilla page and it seems to be a better choice ([http://www.bugzilla.org/download/#howtoget][3]).
Any advice from active Mathematica developers?
[1]: http://reference.wolfram.com/mathematica/tutorial/BuildingLargeSoftwareSystemsInMathematica.html
[2]: http://www.nongnu.org/cvs/
[3]: http://www.bugzilla.org/download/#howtoget | 0 |
6,871,839 | 07/29/2011 10:34:47 | 228,660 | 12/10/2009 09:42:32 | 116 | 5 | Text box value issue | I insert a text box into my page with jquery .html("<input type="text>")
Once I click a button, I loop through ($("input[type=text]).each) and then need to get the value of each text box.
When I try to get that val() of that text box it returns empty string, although I have typed something in there
console.log($(v).val()) = "empty string" | jquery | null | null | null | null | 12/09/2011 23:24:47 | too localized | Text box value issue
===
I insert a text box into my page with jquery .html("<input type="text>")
Once I click a button, I loop through ($("input[type=text]).each) and then need to get the value of each text box.
When I try to get that val() of that text box it returns empty string, although I have typed something in there
console.log($(v).val()) = "empty string" | 3 |
8,237,320 | 11/23/2011 04:24:12 | 1,061,117 | 11/23/2011 04:00:12 | 1 | 0 | swing application issue in authentication using javax.mail.authenticator | I am developing an swing application for sending the mail using authentication.
The Issue I am facing is when i enter wrong username and password it is giving AuthenticationException after that when i enter correct userid and password again it is giving same exception. if i close whole application and start again and enter correct uid and password than it is working perfectly.
what i wanted is when it throw the AuthenticationException i want to show the message to user and allow them to change the password and user id without restarting whole application again
I am trying it from last 3 days without success please help me. | java | swing | null | null | null | null | open | swing application issue in authentication using javax.mail.authenticator
===
I am developing an swing application for sending the mail using authentication.
The Issue I am facing is when i enter wrong username and password it is giving AuthenticationException after that when i enter correct userid and password again it is giving same exception. if i close whole application and start again and enter correct uid and password than it is working perfectly.
what i wanted is when it throw the AuthenticationException i want to show the message to user and allow them to change the password and user id without restarting whole application again
I am trying it from last 3 days without success please help me. | 0 |
3,883,215 | 10/07/2010 15:25:40 | 463,045 | 09/30/2010 16:29:28 | 1 | 6 | How to send sms by cSharp??? | I am making acool software for the LIC insurabce agents for free, i wanna integrate the sms service with it so that they could send sms by it to their clients.... | c# | null | null | null | null | 10/07/2010 17:44:27 | not a real question | How to send sms by cSharp???
===
I am making acool software for the LIC insurabce agents for free, i wanna integrate the sms service with it so that they could send sms by it to their clients.... | 1 |
1,125,116 | 07/14/2009 12:42:34 | 138,039 | 07/14/2009 12:30:11 | 1 | 0 | Using JavaScript to scroll through a list of items in ASP.NET MVC | I'm new to ASP.NET MVC and also to JavaScript. What I've got currently is a simple webpage that displays information about employees that is read from a database. Part of the information regarding an employee are his paychecks. Currently I receive this information in an array from the site controller. What I want to do is to use JavaScript to scroll through each paycheck displaying one at a time.
Thanks in advance. | javascript | asp.net | mvc | null | null | null | open | Using JavaScript to scroll through a list of items in ASP.NET MVC
===
I'm new to ASP.NET MVC and also to JavaScript. What I've got currently is a simple webpage that displays information about employees that is read from a database. Part of the information regarding an employee are his paychecks. Currently I receive this information in an array from the site controller. What I want to do is to use JavaScript to scroll through each paycheck displaying one at a time.
Thanks in advance. | 0 |
10,966,251 | 06/10/2012 03:54:40 | 1,425,733 | 05/30/2012 09:59:07 | 110 | 2 | SQLSTATE[HY093]: Invalid parameter number: parameter was not defined | // BUILD VALUES
$count = count($matches);
for($i = 0; $i < $count; ++$i) {
$values[] = '(?)';
}
// INSERT INTO DATABASE
$q = $this -> dbc -> prepare("INSERT INTO hashes (hash) VALUES " . implode(', ', $values) . " ON DUPLICATE KEY UPDATE hash = hash");
$q -> execute($matches);
The code above fails with the following error
**SQLSTATE[HY093]: Invalid parameter number: parameter was not defined**
Although when `count($matches) == count($values)` just before execute is called?
What is going on here? | php | mysql | pdo | null | null | null | open | SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
===
// BUILD VALUES
$count = count($matches);
for($i = 0; $i < $count; ++$i) {
$values[] = '(?)';
}
// INSERT INTO DATABASE
$q = $this -> dbc -> prepare("INSERT INTO hashes (hash) VALUES " . implode(', ', $values) . " ON DUPLICATE KEY UPDATE hash = hash");
$q -> execute($matches);
The code above fails with the following error
**SQLSTATE[HY093]: Invalid parameter number: parameter was not defined**
Although when `count($matches) == count($values)` just before execute is called?
What is going on here? | 0 |
8,683,867 | 12/30/2011 20:39:52 | 1,049,565 | 11/16/2011 11:43:45 | 1 | 0 | nginx required modules under specific circumstances | i want to install nginx with only **required** modules according to my condition.
well i have a typical php, mysql website. so fastcgi is needed, no SSL,no load balancing.
so what modules are **essential** and what modules i can disable without having problem ?
**speed** & **security** are very important! | module | nginx | required | null | null | 01/01/2012 05:41:36 | off topic | nginx required modules under specific circumstances
===
i want to install nginx with only **required** modules according to my condition.
well i have a typical php, mysql website. so fastcgi is needed, no SSL,no load balancing.
so what modules are **essential** and what modules i can disable without having problem ?
**speed** & **security** are very important! | 2 |
11,436,512 | 07/11/2012 15:50:03 | 1,361,315 | 04/27/2012 14:12:23 | 160 | 0 | Do you set an index on JOIN clauses or where clauses, or both? | Say my query looks like:
SELECT t1, t2
FROM t1
LEFT JOIN t2 ON (t1.id = t2.id AND t2.userid = @userid)
WHERE t1.enabled = 1 AND
t1.startDate <= ??? AND
(t1.counter = -1 OR
t2.counter IS NULL OR
(t1.counter > t2.counter)
Now this table might have a few hundred thousand rows in it.
Would you suggest I put an index on the JOIN clause only like this?
t2.id t2.userid
What about the where clause? Or is the join clause more important?
I realize testing is important, but in theory what should be done?
(this is sql 2000)
| sql-server | indexes | null | null | null | 07/12/2012 17:10:19 | off topic | Do you set an index on JOIN clauses or where clauses, or both?
===
Say my query looks like:
SELECT t1, t2
FROM t1
LEFT JOIN t2 ON (t1.id = t2.id AND t2.userid = @userid)
WHERE t1.enabled = 1 AND
t1.startDate <= ??? AND
(t1.counter = -1 OR
t2.counter IS NULL OR
(t1.counter > t2.counter)
Now this table might have a few hundred thousand rows in it.
Would you suggest I put an index on the JOIN clause only like this?
t2.id t2.userid
What about the where clause? Or is the join clause more important?
I realize testing is important, but in theory what should be done?
(this is sql 2000)
| 2 |
9,899,968 | 03/28/2012 01:25:31 | 937,429 | 09/09/2011 19:19:19 | 10 | 0 | flash object not displaying in safari | I have a flash object embedded in my website with the embed code that I got from a website. It does not show up in Safari, it's just a blank area where the flash object is supposed to be. What can I do to get the object to show up in Safari? Thanks.
Here is the embedded code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" height="250" width="258" id="sn_player" align="middle">
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="wmode" value="transparent" />
<param name="allownetworking" value="all" />
<param name="bgcolor" value="#000000" />
<param name="movie" value="http://sermonplayer.com/swf/player45.swf">
<PARAM name="flashvars" value="file=http://sermonplayer.com/build_xml_wzd_sn.php?player=12031-recent-.xml&skin=http://sermonplayer.com/swf/modieus_arial_ond.swf&backcolor=#111111&frontcolor=#2ea0aa&lightcolor=#2ea0aa&=Save&player_name=name (no punctuation)&controlbar=bottom&autostart=false&displayclick=play&icons=true&mute=false&repeat=none&shuffle=false&stretching=fill&plugins=&viral.onpause=false" />
<embed src="http://sermonplayer.com/swf/player45.swf" quality="high" height="250" width="260" id="sn_player" align="middle" allowScriptAccess="always" allowfullscreen="true" bgcolor="#000000" wmode="opaque" type="application/x-shockwave-flash" flashvars="file=http://sermonplayer.com/build_xml_wzd_sn.php?player=12031-recent-.xml&skin=http://sermonplayer.com/swf/modieus_arial_ond.swf&backcolor=#000000&frontcolor=#888888&lightcolor=#2ea0aa&=Save&player_name=name (no punctuation)&controlbar=bottom&autostart=false&displayclick=play&icons=true&mute=false&repeat=none&shuffle=false&stretching=fill&plugins=&viral.onpause=false" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed></object><a href="http://www.sermonplayer.com" border="01"> <img src="http://www.sermonplayer.com/images/poweredby.gif" border="0" height="1px" width="1px"></a> | ruby-on-rails | flash | safari | cross-browser | null | null | open | flash object not displaying in safari
===
I have a flash object embedded in my website with the embed code that I got from a website. It does not show up in Safari, it's just a blank area where the flash object is supposed to be. What can I do to get the object to show up in Safari? Thanks.
Here is the embedded code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" height="250" width="258" id="sn_player" align="middle">
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="wmode" value="transparent" />
<param name="allownetworking" value="all" />
<param name="bgcolor" value="#000000" />
<param name="movie" value="http://sermonplayer.com/swf/player45.swf">
<PARAM name="flashvars" value="file=http://sermonplayer.com/build_xml_wzd_sn.php?player=12031-recent-.xml&skin=http://sermonplayer.com/swf/modieus_arial_ond.swf&backcolor=#111111&frontcolor=#2ea0aa&lightcolor=#2ea0aa&=Save&player_name=name (no punctuation)&controlbar=bottom&autostart=false&displayclick=play&icons=true&mute=false&repeat=none&shuffle=false&stretching=fill&plugins=&viral.onpause=false" />
<embed src="http://sermonplayer.com/swf/player45.swf" quality="high" height="250" width="260" id="sn_player" align="middle" allowScriptAccess="always" allowfullscreen="true" bgcolor="#000000" wmode="opaque" type="application/x-shockwave-flash" flashvars="file=http://sermonplayer.com/build_xml_wzd_sn.php?player=12031-recent-.xml&skin=http://sermonplayer.com/swf/modieus_arial_ond.swf&backcolor=#000000&frontcolor=#888888&lightcolor=#2ea0aa&=Save&player_name=name (no punctuation)&controlbar=bottom&autostart=false&displayclick=play&icons=true&mute=false&repeat=none&shuffle=false&stretching=fill&plugins=&viral.onpause=false" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed></object><a href="http://www.sermonplayer.com" border="01"> <img src="http://www.sermonplayer.com/images/poweredby.gif" border="0" height="1px" width="1px"></a> | 0 |
10,702,660 | 05/22/2012 13:08:07 | 1,386,023 | 05/10/2012 02:38:42 | 15 | 1 | Lyx: Change vertical space between numbered Formula in Lyx | I have inserted serveral (20) Numbered formulas directly behind eachother in Lyx 2.0.3.
If I export these formulas to the final version in PDF, there is a large vertical space between the formulas.
Is there a way to solve this by changing a setting in the document preamble ?
Thanks in Advance. | math | latex | equations | lyx | null | 05/22/2012 22:52:01 | off topic | Lyx: Change vertical space between numbered Formula in Lyx
===
I have inserted serveral (20) Numbered formulas directly behind eachother in Lyx 2.0.3.
If I export these formulas to the final version in PDF, there is a large vertical space between the formulas.
Is there a way to solve this by changing a setting in the document preamble ?
Thanks in Advance. | 2 |
10,663,405 | 05/19/2012 07:54:56 | 339,753 | 05/12/2010 21:26:09 | 584 | 3 | A linux distro to use inside an existing environment | At work i am forced to use an old version RedHat enterprise. This is okay for most purposes, but there are some applications where I _really_ want to use a newer version (vim, ctag, git, tmux, etc...).
As I am not root on the system, I have overcome this problem by creating a "myroot" folder, where i have installed all the application and libraries I need. To activate those I set the PATH, LD_LIBRARY_PATH, PKG_PATH ( and others) environment variables.
This is working fine, and my system administrator is happy with the solution (it does not course extra work for him). The problem is that I want more and more demanding applications with more dependencies, which make this solution hard to maintain.
The system is build around a set of shell scripts, but I am considering to convert it to bitbake files.
My question is now if there exists an existing tool/distro which allready fits my needs. | linux | unix | null | null | null | 05/19/2012 20:10:42 | off topic | A linux distro to use inside an existing environment
===
At work i am forced to use an old version RedHat enterprise. This is okay for most purposes, but there are some applications where I _really_ want to use a newer version (vim, ctag, git, tmux, etc...).
As I am not root on the system, I have overcome this problem by creating a "myroot" folder, where i have installed all the application and libraries I need. To activate those I set the PATH, LD_LIBRARY_PATH, PKG_PATH ( and others) environment variables.
This is working fine, and my system administrator is happy with the solution (it does not course extra work for him). The problem is that I want more and more demanding applications with more dependencies, which make this solution hard to maintain.
The system is build around a set of shell scripts, but I am considering to convert it to bitbake files.
My question is now if there exists an existing tool/distro which allready fits my needs. | 2 |
11,030,912 | 06/14/2012 10:09:35 | 1,389,106 | 05/11/2012 09:35:45 | 163 | 2 | String.split() JavaScript method is not working in firefox | I am trying to split a string in javascript . it works fine in chrome, but it is not working in firefox
code
var a="1#abc";
var b=a.split('#');
The error on cole is `There is no method split()` | javascript | string | firefox | google-chrome | string-split | 06/14/2012 12:18:42 | not a real question | String.split() JavaScript method is not working in firefox
===
I am trying to split a string in javascript . it works fine in chrome, but it is not working in firefox
code
var a="1#abc";
var b=a.split('#');
The error on cole is `There is no method split()` | 1 |
9,488,546 | 02/28/2012 19:40:49 | 1,033,668 | 11/07/2011 11:49:46 | 360 | 16 | Extremely dynamic queries with MyBatis for remote grid filtering/pagination/sorting | A project I'm working on makes heavy use of the ExtJS framework. We have a lot of data to display and we do so via grids, which all have a standard set of paging, sorting, and filtering features.
Currently, our backend is in PHP and we are using straight SQL. I wrote a SQL wrapper in PHP that would accept a query, a list of filters, sort info, and page info and output a query that had the appropriate WHERE, ORDER BY, and pagination features by using the original query as a subquery. I should note that our project is tied to Oracle.
Filters can come in the form of comparisons (=, <, <=, >=, >, IS NULL) or lists ( IN () ) and sorting is simply a single column with a direction. Pagination is start and end rownumbers.
Longish story short, we are moving toward a java-based architecture using Spring and MyBatis. I'm having a hard time figuring out how to implement the same functionality using MyBatis in an easy way. The nice thing about the wrapper was that we only had to write our base query once and then it would morph into whatever query the grid needed. Since we are talking about potentially tens of thousands of records and we need pagination, pulling things back to the server and doing java-based filtering/sorting isn't really an option.
Has anyone solved this (or a similar) problem before? I've seen the Dynamic SQL capabilities of MyBatis (briefly) but it doesn't seem to offer quite the flexibility and power that I need. Am I wrong?
Any guidance from seasoned MyBatis users would be greatly appreciated.
I should note that we are exploratory right now and that using an ORM isn't entirely off the table. Is this something more easily accomplished using, say, Hibernate? | extjs | mybatis | null | null | null | null | open | Extremely dynamic queries with MyBatis for remote grid filtering/pagination/sorting
===
A project I'm working on makes heavy use of the ExtJS framework. We have a lot of data to display and we do so via grids, which all have a standard set of paging, sorting, and filtering features.
Currently, our backend is in PHP and we are using straight SQL. I wrote a SQL wrapper in PHP that would accept a query, a list of filters, sort info, and page info and output a query that had the appropriate WHERE, ORDER BY, and pagination features by using the original query as a subquery. I should note that our project is tied to Oracle.
Filters can come in the form of comparisons (=, <, <=, >=, >, IS NULL) or lists ( IN () ) and sorting is simply a single column with a direction. Pagination is start and end rownumbers.
Longish story short, we are moving toward a java-based architecture using Spring and MyBatis. I'm having a hard time figuring out how to implement the same functionality using MyBatis in an easy way. The nice thing about the wrapper was that we only had to write our base query once and then it would morph into whatever query the grid needed. Since we are talking about potentially tens of thousands of records and we need pagination, pulling things back to the server and doing java-based filtering/sorting isn't really an option.
Has anyone solved this (or a similar) problem before? I've seen the Dynamic SQL capabilities of MyBatis (briefly) but it doesn't seem to offer quite the flexibility and power that I need. Am I wrong?
Any guidance from seasoned MyBatis users would be greatly appreciated.
I should note that we are exploratory right now and that using an ORM isn't entirely off the table. Is this something more easily accomplished using, say, Hibernate? | 0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.