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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,084,169 | 01/18/2010 06:05:18 | 71,505 | 02/26/2009 17:58:33 | 82 | 3 | Choosing a Java Web Framework now? | we are in the planning stage of migrating a large website which is built on a custom developed mvc framework to a java based web framework which provides built-in support for ajax, rich media content, mashup, templates based layout, validation, maximum html/java code separation. Grails looked like a good choice, however, we do not want to use a scripting language. We want to continue using java. Template based layout is a primary concern as we intend to use this web application with multiple web sites with similar functionality but radically different look and feel.
Is portal based solution a good fit to this problem?
Any insights on using "Spring Roo" or "Play" will be very helpful.
I did find similar posts like [this][1], but it is more than a year old. Things have surely changed in the mean time!
[1]: http://stackoverflow.com/questions/24596/what-web-application-framework-for-java-is-recommended | java | web | framework | null | null | 09/03/2011 12:01:05 | not constructive | Choosing a Java Web Framework now?
===
we are in the planning stage of migrating a large website which is built on a custom developed mvc framework to a java based web framework which provides built-in support for ajax, rich media content, mashup, templates based layout, validation, maximum html/java code separation. Grails looked like a good choice, however, we do not want to use a scripting language. We want to continue using java. Template based layout is a primary concern as we intend to use this web application with multiple web sites with similar functionality but radically different look and feel.
Is portal based solution a good fit to this problem?
Any insights on using "Spring Roo" or "Play" will be very helpful.
I did find similar posts like [this][1], but it is more than a year old. Things have surely changed in the mean time!
[1]: http://stackoverflow.com/questions/24596/what-web-application-framework-for-java-is-recommended | 4 |
6,994,280 | 08/09/2011 09:49:54 | 883,900 | 10/29/2010 12:20:29 | 1 | 0 | Microsoft.Office.Interop.Excel.Application() Visible property not working | new Microsoft.Office.Interop.Excel.Application() Visible property not working..
I am using Microsoft.Office.Interop.Excel.Application for new Excel File.
I want to visible to user.
when i set the property .Visible = True
it is not set.. It remain the false.
Thanks in advance. | c# | null | null | null | null | null | open | Microsoft.Office.Interop.Excel.Application() Visible property not working
===
new Microsoft.Office.Interop.Excel.Application() Visible property not working..
I am using Microsoft.Office.Interop.Excel.Application for new Excel File.
I want to visible to user.
when i set the property .Visible = True
it is not set.. It remain the false.
Thanks in advance. | 0 |
9,141,643 | 02/04/2012 14:43:03 | 1,189,457 | 02/04/2012 14:38:16 | 1 | 0 | Open GL ubuntu build error | I am trying to do something with Ogre and Opengl. I find code in the internet and now I want to use it but I have this problem:
I use this two lines:
HGLRC ogreHGLRC;
HDC ogreHDC;
and I have build errors:
1. error: ‘ogreHGLRC’ was not declared in this scope
2. error: ‘ogreHDC’ was not declared in this scope
I understood that these I can use in Windows but I have Ubuntu...
What do I have to do?
Thanks!! | opengl | null | null | null | null | 02/06/2012 02:09:40 | too localized | Open GL ubuntu build error
===
I am trying to do something with Ogre and Opengl. I find code in the internet and now I want to use it but I have this problem:
I use this two lines:
HGLRC ogreHGLRC;
HDC ogreHDC;
and I have build errors:
1. error: ‘ogreHGLRC’ was not declared in this scope
2. error: ‘ogreHDC’ was not declared in this scope
I understood that these I can use in Windows but I have Ubuntu...
What do I have to do?
Thanks!! | 3 |
4,704,388 | 01/16/2011 08:04:13 | 388,341 | 07/10/2010 07:42:37 | 454 | 10 | Using equal operators in C# | In a If Statement When should I use =, == operators. Is there a === operator ?
What is the difference between these operators ?
| c# | null | null | null | null | null | open | Using equal operators in C#
===
In a If Statement When should I use =, == operators. Is there a === operator ?
What is the difference between these operators ?
| 0 |
8,026,049 | 11/06/2011 09:05:06 | 627,005 | 02/21/2011 16:58:57 | 2,971 | 68 | Using `void main` in D | I've seen D code that uses `void main`. Is this legal? If yes, is returning non-`void` (`int`) also legal? Why is this allowed in the language? | d | null | null | null | null | null | open | Using `void main` in D
===
I've seen D code that uses `void main`. Is this legal? If yes, is returning non-`void` (`int`) also legal? Why is this allowed in the language? | 0 |
11,640,033 | 07/24/2012 22:06:09 | 1,123,905 | 12/31/2011 03:30:39 | 33 | 0 | How can I remove the malicious site/security warning from my CNAME'd heroku app? | I have a domain name tradespring.net, and www.tradespring.net that redirect to my heroku app with a CNAME record. However when I first try to access these sites it gives me a malicious warning
This is probably not the site you are looking for! blah blah blah then "proceed anyways" or "back to safety"
Its because my browser realizes that it is redirecting. How can I make sure anyones browser (not just my browser) trusts this site and my heroku app?
I wondered if I need an SSL certificate, but there is no purchasing/credit card info so I dont think I need to pay for that | heroku | dns | cname | null | null | 07/24/2012 22:13:17 | off topic | How can I remove the malicious site/security warning from my CNAME'd heroku app?
===
I have a domain name tradespring.net, and www.tradespring.net that redirect to my heroku app with a CNAME record. However when I first try to access these sites it gives me a malicious warning
This is probably not the site you are looking for! blah blah blah then "proceed anyways" or "back to safety"
Its because my browser realizes that it is redirecting. How can I make sure anyones browser (not just my browser) trusts this site and my heroku app?
I wondered if I need an SSL certificate, but there is no purchasing/credit card info so I dont think I need to pay for that | 2 |
8,490,888 | 12/13/2011 14:31:18 | 1,018,792 | 10/28/2011 17:02:04 | 22 | 0 | Hosting for Ruby on Rails | Since two or three month I'm learning to programm in Ruby and also website developpement with Ruby on Rails.
I worked on a small website for me and my friends and it is now operational (localy on my computer ^^).
My question is the following :
What webhosting services should I purchase ?
I'm really confused on wich one to choose...Heroku ? Slice ? Site5 ? LunarPages ?
My requirements would be :
- Ruby on Rails support (obviously ^^).
- SQLite Database support (like I said I'm only beginning and I use the default Ruby on Rails database, plus I don't really know anything about MySQL).
- Eventually the possibility to have a subdomain or a part of my website in PhP (I have PhP classes next semester).
- Good server uptime & client service
- Bonus points would be to have SSH.
I have a small budget so say something from free to 5Euros / month.
Share your experience !
Thanks you very much in advance !
--Awake
| ruby-on-rails | ruby | sqlite | hosting | uptime | 12/13/2011 16:27:38 | off topic | Hosting for Ruby on Rails
===
Since two or three month I'm learning to programm in Ruby and also website developpement with Ruby on Rails.
I worked on a small website for me and my friends and it is now operational (localy on my computer ^^).
My question is the following :
What webhosting services should I purchase ?
I'm really confused on wich one to choose...Heroku ? Slice ? Site5 ? LunarPages ?
My requirements would be :
- Ruby on Rails support (obviously ^^).
- SQLite Database support (like I said I'm only beginning and I use the default Ruby on Rails database, plus I don't really know anything about MySQL).
- Eventually the possibility to have a subdomain or a part of my website in PhP (I have PhP classes next semester).
- Good server uptime & client service
- Bonus points would be to have SSH.
I have a small budget so say something from free to 5Euros / month.
Share your experience !
Thanks you very much in advance !
--Awake
| 2 |
11,385,958 | 07/08/2012 19:21:53 | 1,510,447 | 07/08/2012 19:05:47 | 1 | 0 | Save position of element with Jquery, PHP and MySQL | On the whole, I want to save position of the element, when it has dropped (for example, it's a link) :
<a class="icon" style="left:20px;top:20px;" href="some_href">
<img src="some_src" />
name
</a>
Elements with this class are draggable. I think,that here must be ajax, but how to do this correctly - don't know.
I am a php - mysql programmer, and so noob in jQuery and JS :(
Thank for all answers and sorry for my bad English! :) | php | jquery | mysql | ajax | null | 07/08/2012 21:09:15 | not a real question | Save position of element with Jquery, PHP and MySQL
===
On the whole, I want to save position of the element, when it has dropped (for example, it's a link) :
<a class="icon" style="left:20px;top:20px;" href="some_href">
<img src="some_src" />
name
</a>
Elements with this class are draggable. I think,that here must be ajax, but how to do this correctly - don't know.
I am a php - mysql programmer, and so noob in jQuery and JS :(
Thank for all answers and sorry for my bad English! :) | 1 |
3,719,143 | 09/15/2010 15:23:48 | 416,445 | 08/10/2010 17:32:08 | 1 | 0 | How to use SSL on AWS EC2 | I have an AWS EC2 account and I am running an instance that serves as a web host for my PHP website... This is a private website that has no UI but only URLs to be requested by my other software to get some response from the server...
I want the requests (that I send to the server) to be secured so I want to use https instead of http... so what should I do to achieve that?
Thanks in advance
Good luck | php | ssl | https | amazon-ec2 | amazon-web-services | 09/15/2010 17:43:38 | off topic | How to use SSL on AWS EC2
===
I have an AWS EC2 account and I am running an instance that serves as a web host for my PHP website... This is a private website that has no UI but only URLs to be requested by my other software to get some response from the server...
I want the requests (that I send to the server) to be secured so I want to use https instead of http... so what should I do to achieve that?
Thanks in advance
Good luck | 2 |
3,387,229 | 08/02/2010 11:24:09 | 386,545 | 07/08/2010 10:57:16 | 25 | 1 | how to generate link for unsubscribing from email | I have a simple rails app where user can send a mass email to 10+ people. In this email I'd like to always have a link at the bottom which the end user can click to unsubscribe himself from the notifications. I don't have much idea how I should tackle this.
can there be just a generic link in the email which users click then enter their email address to unsubscribe themselves? But problem with this is that some other user could unsubscribe someone else.
I would like to generate a specific unique link for each email so that when user clicks it, it automatically removes that user from the list rather than user having to do some extra work.
Where should I start in order to implement this? | ruby-on-rails | email | null | null | null | null | open | how to generate link for unsubscribing from email
===
I have a simple rails app where user can send a mass email to 10+ people. In this email I'd like to always have a link at the bottom which the end user can click to unsubscribe himself from the notifications. I don't have much idea how I should tackle this.
can there be just a generic link in the email which users click then enter their email address to unsubscribe themselves? But problem with this is that some other user could unsubscribe someone else.
I would like to generate a specific unique link for each email so that when user clicks it, it automatically removes that user from the list rather than user having to do some extra work.
Where should I start in order to implement this? | 0 |
7,962,092 | 11/01/2011 03:16:23 | 992,618 | 10/13/2011 03:04:07 | 51 | 0 | Find textbox in a datagrid | I have a datagrid which contains four columns.
So from this datagrid on the C# side, i want to find the particular textbox with name = "headBox"
How I go about doing this? my xaml for the column goes as below. This section is within Datagrid.Columns which is inside the datagrid tag with name = dgrid
<DataGridTemplateColumn Header="Header">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBox Name="HeadBox"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn> | c# | wpf | null | null | null | null | open | Find textbox in a datagrid
===
I have a datagrid which contains four columns.
So from this datagrid on the C# side, i want to find the particular textbox with name = "headBox"
How I go about doing this? my xaml for the column goes as below. This section is within Datagrid.Columns which is inside the datagrid tag with name = dgrid
<DataGridTemplateColumn Header="Header">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBox Name="HeadBox"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn> | 0 |
5,067,917 | 02/21/2011 15:39:57 | 27,404 | 10/13/2008 12:40:47 | 333 | 6 | Websphere: security-constraint in web.xml doesn't work | I'd like to protect a single .jsp-page from anonymous access. I'm trying to do that the following way:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
t-webapp</display-name>
<servlet>
<servlet>
<description>
</description>
<display-name>
ZServlet</display-name>
<servlet-name>ZServlet</servlet-name>
<servlet-class>
a.b.c.d.application.t.ZServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ZServlet</servlet-name>
<url-pattern>/ZServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<display-name>
TTests</display-name>
<web-resource-collection>
<web-resource-name>TTests</web-resource-name>
<url-pattern>/ttests.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
<http-method>HEAD</http-method>
<http-method>TRACE</http-method>
<http-method>POST</http-method>
<http-method>DELETE</http-method>
<http-method>OPTIONS</http-method>
</web-resource-collection>
<auth-constraint>
<description>
TServletRoles</description>
<role-name>role_admin1</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/error.html</form-error-page>
</form-login-config>
</login-config>
<security-role>
<description>
role_admin1</description>
<role-name>role_admin1</role-name>
</security-role>
</web-app>
But whenever I'm accessing ttests.jsp, I'm getting access immediately - without having to fill username/password... what am I missing?
Thanks a lot! | websphere | web.xml | null | null | null | null | open | Websphere: security-constraint in web.xml doesn't work
===
I'd like to protect a single .jsp-page from anonymous access. I'm trying to do that the following way:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
t-webapp</display-name>
<servlet>
<servlet>
<description>
</description>
<display-name>
ZServlet</display-name>
<servlet-name>ZServlet</servlet-name>
<servlet-class>
a.b.c.d.application.t.ZServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ZServlet</servlet-name>
<url-pattern>/ZServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<display-name>
TTests</display-name>
<web-resource-collection>
<web-resource-name>TTests</web-resource-name>
<url-pattern>/ttests.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
<http-method>HEAD</http-method>
<http-method>TRACE</http-method>
<http-method>POST</http-method>
<http-method>DELETE</http-method>
<http-method>OPTIONS</http-method>
</web-resource-collection>
<auth-constraint>
<description>
TServletRoles</description>
<role-name>role_admin1</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/error.html</form-error-page>
</form-login-config>
</login-config>
<security-role>
<description>
role_admin1</description>
<role-name>role_admin1</role-name>
</security-role>
</web-app>
But whenever I'm accessing ttests.jsp, I'm getting access immediately - without having to fill username/password... what am I missing?
Thanks a lot! | 0 |
10,967,006 | 06/10/2012 07:22:40 | 1,293,931 | 03/26/2012 20:05:52 | 84 | 0 | looking for a "smart" js obfuscator/minifier/compressor | I have one global js file that declares all the major variables and functions that are used throughout the site as well as small secondary scripts that are loaded later. However these secondary scripts have dependencies on the global namespace created in the global js. Are there any js programs where you can:
<br/>
<ul>
<li><p>feed it multiple js files and it still outputs them separately (I don't want to combine them)</p></li>
<li><p>does <i>complete</i> obfuscation (including globals) while making sure that all files given to the program have their global references updated to point to the new obfuscated symbol</p></li>
</ul>
<br/>
Unfortunately the minifier I'm using now is not obfuscating my globals. | javascript | obfuscation | null | null | null | 06/10/2012 22:49:21 | not constructive | looking for a "smart" js obfuscator/minifier/compressor
===
I have one global js file that declares all the major variables and functions that are used throughout the site as well as small secondary scripts that are loaded later. However these secondary scripts have dependencies on the global namespace created in the global js. Are there any js programs where you can:
<br/>
<ul>
<li><p>feed it multiple js files and it still outputs them separately (I don't want to combine them)</p></li>
<li><p>does <i>complete</i> obfuscation (including globals) while making sure that all files given to the program have their global references updated to point to the new obfuscated symbol</p></li>
</ul>
<br/>
Unfortunately the minifier I'm using now is not obfuscating my globals. | 4 |
11,326,898 | 07/04/2012 10:07:23 | 425,049 | 08/19/2010 09:54:03 | 380 | 4 | Can Linq.Contains throw "Collection was modified; enumeration operation may not execute." exception? | I have following code that adds some values to the dictionary. Can `Linq.Contains` methods throw `System.InvalidOperationException` `"Collection was modified; enumeration operation may not execute."` when item will be adding to the dictionary?
private static object _lock = new object();
private static Dictionary<Type, A> _dic = new Dictionary<Type, A>();
public static AddNewValue(Type t, A value)
{
if ( !_dic.Keys.Contains( t ) )
{
lock ( _lock )
{
if ( !_dic.Keys.Contains( t ) )
{
_dic.Add( t, value );
}
}
}
} | c# | linq | exception | collections | dictionary | null | open | Can Linq.Contains throw "Collection was modified; enumeration operation may not execute." exception?
===
I have following code that adds some values to the dictionary. Can `Linq.Contains` methods throw `System.InvalidOperationException` `"Collection was modified; enumeration operation may not execute."` when item will be adding to the dictionary?
private static object _lock = new object();
private static Dictionary<Type, A> _dic = new Dictionary<Type, A>();
public static AddNewValue(Type t, A value)
{
if ( !_dic.Keys.Contains( t ) )
{
lock ( _lock )
{
if ( !_dic.Keys.Contains( t ) )
{
_dic.Add( t, value );
}
}
}
} | 0 |
3,647,255 | 09/05/2010 18:37:30 | 342,559 | 05/16/2010 20:10:53 | 28 | 1 | How do I copy-protect my Java application? | I want to sell my Java application using PayPal. When a payment is received, the customer is mailed a one-time download link to my application.
My question is, how do I prevent people from sending the .jar file to their friends/uploading it on the internet?
Obviously I need some kind of check in the application which only allows it to run on one computer. And that's another problem, I don't want a customer to have limitations on one computer, they should be able to run it at home and work etc.
Maybe some kind of cd-key would do the trick? Is there any cd-key resources for Java out there? Or should i build my own algorithm? Here comes yet another problem, reverse engineering..
Please help me solve this :) | java | licensing | reverse-engineering | copy-protection | cracking | null | open | How do I copy-protect my Java application?
===
I want to sell my Java application using PayPal. When a payment is received, the customer is mailed a one-time download link to my application.
My question is, how do I prevent people from sending the .jar file to their friends/uploading it on the internet?
Obviously I need some kind of check in the application which only allows it to run on one computer. And that's another problem, I don't want a customer to have limitations on one computer, they should be able to run it at home and work etc.
Maybe some kind of cd-key would do the trick? Is there any cd-key resources for Java out there? Or should i build my own algorithm? Here comes yet another problem, reverse engineering..
Please help me solve this :) | 0 |
392,118 | 12/24/2008 19:37:01 | 48,725 | 12/23/2008 19:25:48 | 31 | 0 | ZFS vdev naming? | I have no idea what is the rationale behind naming the vdev (virtual devices) used while creating zfs pools in Solaris. Suppose, I have a disk c4d0, what is meant by c4d0p0 and c4d0s0? And, how would I know what to use with ZFS commands. I am terribly confused since I keep getting "invalid vdev specified". Any pointers?
| zfs | open-solaris | solaris | null | null | null | open | ZFS vdev naming?
===
I have no idea what is the rationale behind naming the vdev (virtual devices) used while creating zfs pools in Solaris. Suppose, I have a disk c4d0, what is meant by c4d0p0 and c4d0s0? And, how would I know what to use with ZFS commands. I am terribly confused since I keep getting "invalid vdev specified". Any pointers?
| 0 |
1,179,874 | 07/24/2009 20:00:58 | 141,346 | 07/20/2009 11:42:32 | 28 | 4 | PDO: bindParam versus bindValue | What is the difference between bindParam and bindValue for PDO in PHP?
[http://www.php.net/manual/en/pdostatement.bindparam.php][1]
[http://www.php.net/manual/en/pdostatement.bindvalue.php][2]
[1]: http://www.php.net/manual/en/pdostatement.bindparam.php
[2]: http://www.php.net/manual/en/pdostatement.bindvalue.php | php | pdo | null | null | null | null | open | PDO: bindParam versus bindValue
===
What is the difference between bindParam and bindValue for PDO in PHP?
[http://www.php.net/manual/en/pdostatement.bindparam.php][1]
[http://www.php.net/manual/en/pdostatement.bindvalue.php][2]
[1]: http://www.php.net/manual/en/pdostatement.bindparam.php
[2]: http://www.php.net/manual/en/pdostatement.bindvalue.php | 0 |
3,803,165 | 09/27/2010 11:02:29 | 61,156 | 02/01/2009 08:52:01 | 1,358 | 18 | Good starting point to be a professional developer? | First of all, sorry for my poor english.
Having some years of experience in developing legacy applications like vb6.0, ASP, .... and some experiences in .NET,
I feel that I should do more better.
Now, my question is: Where's a good starting point? How? which books?
Thanks in advance
| career-development | null | null | null | null | 01/26/2012 18:41:26 | off topic | Good starting point to be a professional developer?
===
First of all, sorry for my poor english.
Having some years of experience in developing legacy applications like vb6.0, ASP, .... and some experiences in .NET,
I feel that I should do more better.
Now, my question is: Where's a good starting point? How? which books?
Thanks in advance
| 2 |
8,605,254 | 12/22/2011 14:27:13 | 806,763 | 06/20/2011 13:49:03 | 104 | 3 | power shell active directory script | I need a power shell script that will move OU's based on a xlsx file.
Also I was wondering if there is a way to remove a member of the OU and to add a member below it with out knowing it's name.
Example after I do the moving of the OU's I need to give the TOP OU control of all the OU's under it by making it a member of the OU's. | scripting | powershell | active-directory | null | null | 12/23/2011 14:14:16 | not a real question | power shell active directory script
===
I need a power shell script that will move OU's based on a xlsx file.
Also I was wondering if there is a way to remove a member of the OU and to add a member below it with out knowing it's name.
Example after I do the moving of the OU's I need to give the TOP OU control of all the OU's under it by making it a member of the OU's. | 1 |
6,947,212 | 08/04/2011 19:11:20 | 9,903 | 09/15/2008 20:22:33 | 487 | 41 | Is there a module for Freeswitch integration with SugarCRM? | I've found a whole bunch of Asterisk modules on SugarForge, but nothing for Freeswitch | sugarcrm | freeswitch | null | null | null | 08/06/2011 04:36:33 | off topic | Is there a module for Freeswitch integration with SugarCRM?
===
I've found a whole bunch of Asterisk modules on SugarForge, but nothing for Freeswitch | 2 |
888,807 | 05/20/2009 15:59:05 | 66,158 | 02/13/2009 17:10:53 | 386 | 32 | How to determine the accuracy of Pi (π) | Optimizing a game we're developing, we're running into the phase where every CPU cycle won counts. We using radians for position calculations of objects circling around other objects and I want to cut the needless accuracy in my lookup tables. For that, we make heavy use of a predefined Pi. **How accurate should this Pi be?**
So, my question is:
- **How accurate is accurate enough?**
- Or even better, **how to determine the needed accuracy?** | optimization | c | trigonometry | lookup-tables | floating-accuracy | null | open | How to determine the accuracy of Pi (π)
===
Optimizing a game we're developing, we're running into the phase where every CPU cycle won counts. We using radians for position calculations of objects circling around other objects and I want to cut the needless accuracy in my lookup tables. For that, we make heavy use of a predefined Pi. **How accurate should this Pi be?**
So, my question is:
- **How accurate is accurate enough?**
- Or even better, **how to determine the needed accuracy?** | 0 |
709,376 | 04/02/2009 11:45:43 | 76,777 | 03/11/2009 16:58:41 | 77 | 10 | Which CMS would you recommend to be integrated with a Tomcat application? | I'm looking for a CMS (content management system), where users can manage, create and edit online articles, as a part of an application to be developed. The application to develop is a web application running on Tomcat, with a PostgreSQL connection and using the Spring web framework. I'm looking for a CMS, which can be seamlessly integrated into our own application, without the user noticing where the CMS ends and our application starts, and vice versa.
So far I've seen that OpenCMS (http://www.opencms.org/en/index.html) looks like a good candidate, as you can display content with a custom tag library. There is also a good list of options on Wikipedia page at http://en.wikipedia.org/wiki/List_of_content_management_systems
I would like to hear personal experiences and recommendations for a CMS integrated with a Java-based web application. | content-management-system | opencms | java | tomcat | null | 06/20/2012 14:57:36 | not constructive | Which CMS would you recommend to be integrated with a Tomcat application?
===
I'm looking for a CMS (content management system), where users can manage, create and edit online articles, as a part of an application to be developed. The application to develop is a web application running on Tomcat, with a PostgreSQL connection and using the Spring web framework. I'm looking for a CMS, which can be seamlessly integrated into our own application, without the user noticing where the CMS ends and our application starts, and vice versa.
So far I've seen that OpenCMS (http://www.opencms.org/en/index.html) looks like a good candidate, as you can display content with a custom tag library. There is also a good list of options on Wikipedia page at http://en.wikipedia.org/wiki/List_of_content_management_systems
I would like to hear personal experiences and recommendations for a CMS integrated with a Java-based web application. | 4 |
180,586 | 10/07/2008 21:46:58 | 11,530 | 09/16/2008 08:57:05 | 229 | 14 | Does anyone have experience with ZFS? | I am considering to adopt [ZFS](http://opensolaris.org/os/community/zfs/) and I would be happy to know your experience in both production and testing environment. | zfs | filesystems | linux | unix | solaris | 04/05/2012 13:17:07 | not constructive | Does anyone have experience with ZFS?
===
I am considering to adopt [ZFS](http://opensolaris.org/os/community/zfs/) and I would be happy to know your experience in both production and testing environment. | 4 |
10,177,701 | 04/16/2012 16:06:28 | 450,706 | 09/17/2010 14:48:03 | 11 | 2 | Can anyone reccommend a more readable default font for gVIM on Windows? | I find the default font used in gVim on windows to look primitive and unreadable in comparison with other editors. I am keen to stick with vim, as it is my editor of choice in the *nix world, so can anyone recommend a better font? | vim | fonts | vi | gvimrc | null | 04/16/2012 16:18:45 | off topic | Can anyone reccommend a more readable default font for gVIM on Windows?
===
I find the default font used in gVim on windows to look primitive and unreadable in comparison with other editors. I am keen to stick with vim, as it is my editor of choice in the *nix world, so can anyone recommend a better font? | 2 |
8,110,262 | 11/13/2011 07:30:33 | 1,043,937 | 11/13/2011 07:22:06 | 1 | 0 | Windows System Programming books which covers the non gui part | I'm a newbie for Windows Programming and while I was searching for ebooks and tutorials many of them that I found were covering the GUI part like msg boxex etc. I found only one book that actually covers non gui windows programming.
***Windows System Programming Third Edition
By Johnson M. Hart***
So are there any other books available (free or to buy..) which cover the non gui and the core of windows system programing ? | windows | system-programming | null | null | null | 11/13/2011 14:50:42 | not constructive | Windows System Programming books which covers the non gui part
===
I'm a newbie for Windows Programming and while I was searching for ebooks and tutorials many of them that I found were covering the GUI part like msg boxex etc. I found only one book that actually covers non gui windows programming.
***Windows System Programming Third Edition
By Johnson M. Hart***
So are there any other books available (free or to buy..) which cover the non gui and the core of windows system programing ? | 4 |
8,833,002 | 01/12/2012 09:51:04 | 1,101,378 | 12/16/2011 06:30:49 | 3 | 3 | Flex Bitmapimage tooltip? | I am using Bitmapimage in my code.After a lot of seach on google i could not find How tooltip can be used with Bitmapimage.Any suggestion will be appreiciated.
Thanks in advace!!!
| actionscript-3 | flex4 | flex4.5 | bitmapimage | null | null | open | Flex Bitmapimage tooltip?
===
I am using Bitmapimage in my code.After a lot of seach on google i could not find How tooltip can be used with Bitmapimage.Any suggestion will be appreiciated.
Thanks in advace!!!
| 0 |
8,868,457 | 01/15/2012 08:34:09 | 1,150,185 | 01/15/2012 08:31:29 | 1 | 0 | Consultation on APEX and Cloud | I am glad to be with you guys here today
I am given a project which is very small project for small clinic which may be contains of five departments reception or registration and billing,pharmacy,store,laboratory,payroll so far ,
and as you know most of the operations for this project would be like CRUD operations if we will take first module as example :
for the first department "Registration and billing "
there will be form which contains the details of the patient and then the billing part will contain the entry fee and then if the patient goes to Dr then goes to pharmacy his details should be there in the pharmacy page where the medicine that he is going to buy will be added to his profile and then print the receipt .
My questions now are :
1. Can apex do this project .
2. Can I use the bar code to get the product details.
3. Can I add figure print machine for the employees attendance .
4. Can I integrate apex with some pages from JSP in case if I have dynamic module needs more control driven mechanisms.
Questions related to apex with 11g XE and cloud :
1. Can I use apex and 11g xe for free and install them in server in my organization? If yes, so What are the limitations ?
2. If am going to deploy it on cloud shall they will use Oracle 11g XE or Oracle SE or EE, or it depends on my request ?
3. If I greed to start apex and I would like to deploy it on cloud is there any requirements , like Do I have to first contact Oracle and ask them to give me the login to apex on cloud and work remotely , Or
Can first develop it here in my machine and then contact oracle and deploy it on cloud .
If apex is not recommended for such projects please tell me before I start , and I will replace it with Java EE6
Thanks dear friends I hope the post is clear and if someone got doubt about it I can clear it . | oracle | oracle-apex | null | null | null | 01/15/2012 19:54:56 | not a real question | Consultation on APEX and Cloud
===
I am glad to be with you guys here today
I am given a project which is very small project for small clinic which may be contains of five departments reception or registration and billing,pharmacy,store,laboratory,payroll so far ,
and as you know most of the operations for this project would be like CRUD operations if we will take first module as example :
for the first department "Registration and billing "
there will be form which contains the details of the patient and then the billing part will contain the entry fee and then if the patient goes to Dr then goes to pharmacy his details should be there in the pharmacy page where the medicine that he is going to buy will be added to his profile and then print the receipt .
My questions now are :
1. Can apex do this project .
2. Can I use the bar code to get the product details.
3. Can I add figure print machine for the employees attendance .
4. Can I integrate apex with some pages from JSP in case if I have dynamic module needs more control driven mechanisms.
Questions related to apex with 11g XE and cloud :
1. Can I use apex and 11g xe for free and install them in server in my organization? If yes, so What are the limitations ?
2. If am going to deploy it on cloud shall they will use Oracle 11g XE or Oracle SE or EE, or it depends on my request ?
3. If I greed to start apex and I would like to deploy it on cloud is there any requirements , like Do I have to first contact Oracle and ask them to give me the login to apex on cloud and work remotely , Or
Can first develop it here in my machine and then contact oracle and deploy it on cloud .
If apex is not recommended for such projects please tell me before I start , and I will replace it with Java EE6
Thanks dear friends I hope the post is clear and if someone got doubt about it I can clear it . | 1 |
6,736,878 | 07/18/2011 17:36:11 | 418,745 | 08/12/2010 18:12:42 | 64 | 0 | Site hacked, who wants to figure out what this encoded string says (ROT13, eval, base64_decode, and gzinflate used)? | In several files, I found injected code in my PHP files. I attempted to Pastebin the code, but Pastebin actually wouldn't accept the code. I tried various Pastebin alternatives as well, none of them would accept the code as-is, not even StackOverflow.
So what I've done is uploaded the to my own personal server and am hosting it from a *.txt file. If someone knows a better way, please let me know. I know it seems fishy (at least, my actions seem fishy even to me) and I apologize for that.
Also, there are three "paragraphs" of code, each paragraph was found on a different page, injected at the top of all 3. The first block of code is rather small, only about 5 or so lines after wordwrap. The other two blocks of code are quite lengthy, and in the 3rd block of code exists a 4th inline encoded string.
The injected code:
http://184.172.138.95/~smgwebd/code.txt | php | null | null | null | null | 07/18/2011 19:19:45 | too localized | Site hacked, who wants to figure out what this encoded string says (ROT13, eval, base64_decode, and gzinflate used)?
===
In several files, I found injected code in my PHP files. I attempted to Pastebin the code, but Pastebin actually wouldn't accept the code. I tried various Pastebin alternatives as well, none of them would accept the code as-is, not even StackOverflow.
So what I've done is uploaded the to my own personal server and am hosting it from a *.txt file. If someone knows a better way, please let me know. I know it seems fishy (at least, my actions seem fishy even to me) and I apologize for that.
Also, there are three "paragraphs" of code, each paragraph was found on a different page, injected at the top of all 3. The first block of code is rather small, only about 5 or so lines after wordwrap. The other two blocks of code are quite lengthy, and in the 3rd block of code exists a 4th inline encoded string.
The injected code:
http://184.172.138.95/~smgwebd/code.txt | 3 |
11,278,848 | 07/01/2012 01:03:02 | 803,387 | 06/17/2011 14:22:01 | 20 | 2 | select query even if exists display all records | i have a table(acc_branch) structure like this
ID BRANCH_NAME BRANCH_CODE IFSC_CODE INST_CODE CREATED_ON CRATED_BY
-- ------------ ------------ ---------- ----------- ------------ ------------
49 pradeep1 368 ACCSYS368 99 28-06-12 setupadmin
48 pradeep 125 ACCSYS125 99 28-06-12 superuser
2 Ramurthinagar 99102 ACSY0099102 99 28-06-12 setupadmin
13 Kasturinagar 98104 ACSY0098104 98 28-06-12 setupadmin
23 Manam Branch 999 ACSY0098104 99 28-06-12 superuser
and i am selecting a query like this
select acc_branch.branch_name from acc_branch where acc_branch.created_by='setupadmin'
and the result is
BRANCH_NAME
-------------
pradeep1
Ramurthinagar
Kasturinagar
**but i want a query even if setupadmin i want get all list in my table**, what i have to write a query, can i use **sub queries** or **when matched then queries** or **self joins** or what else i have to do to get all results even if ***created_by='setupadmin'***
any suggestions
Thanks
pradeep | sql | oracle | query | null | null | 07/01/2012 13:09:16 | not a real question | select query even if exists display all records
===
i have a table(acc_branch) structure like this
ID BRANCH_NAME BRANCH_CODE IFSC_CODE INST_CODE CREATED_ON CRATED_BY
-- ------------ ------------ ---------- ----------- ------------ ------------
49 pradeep1 368 ACCSYS368 99 28-06-12 setupadmin
48 pradeep 125 ACCSYS125 99 28-06-12 superuser
2 Ramurthinagar 99102 ACSY0099102 99 28-06-12 setupadmin
13 Kasturinagar 98104 ACSY0098104 98 28-06-12 setupadmin
23 Manam Branch 999 ACSY0098104 99 28-06-12 superuser
and i am selecting a query like this
select acc_branch.branch_name from acc_branch where acc_branch.created_by='setupadmin'
and the result is
BRANCH_NAME
-------------
pradeep1
Ramurthinagar
Kasturinagar
**but i want a query even if setupadmin i want get all list in my table**, what i have to write a query, can i use **sub queries** or **when matched then queries** or **self joins** or what else i have to do to get all results even if ***created_by='setupadmin'***
any suggestions
Thanks
pradeep | 1 |
10,267,046 | 04/22/2012 10:09:02 | 478,593 | 10/17/2010 15:18:36 | 1 | 0 | Choosing SQL Server data types for maximum speed | I'm designing a database that will need to be optimized for maximum speed.
All the database data is generated once from something I call an input database (which holds the data I'm editing, mainly some polylines, markers, etc for google maps).
So the database is not subject to editing, but it needs to hold as many data as it can for quickly displaying results to the user (routes across town, custom polylines, etc).
The question is: choosing smaller data types for example like smallint over int will improve performance or it will affect it? Space is not quite a problem, after some quick calculations, the database will not exceed 200mb, and there will not be tables with more than 100.000 rows (average will be around 5000).
I'm asking this because I read some articles around the internet and some say that smaller data types improve performance others say that it affects it because additional processing must be done. I'm aware that for smaller databases probably results are not noticeable, but I'm interested in every bit because I'm expecting many requests which will trigger a lot more queries.
The hosting environment is gonna be Windows Server 2008 R2 with SQL Server 2008 R2. | sql-server | database-design | types | sql-server-2008-r2 | null | null | open | Choosing SQL Server data types for maximum speed
===
I'm designing a database that will need to be optimized for maximum speed.
All the database data is generated once from something I call an input database (which holds the data I'm editing, mainly some polylines, markers, etc for google maps).
So the database is not subject to editing, but it needs to hold as many data as it can for quickly displaying results to the user (routes across town, custom polylines, etc).
The question is: choosing smaller data types for example like smallint over int will improve performance or it will affect it? Space is not quite a problem, after some quick calculations, the database will not exceed 200mb, and there will not be tables with more than 100.000 rows (average will be around 5000).
I'm asking this because I read some articles around the internet and some say that smaller data types improve performance others say that it affects it because additional processing must be done. I'm aware that for smaller databases probably results are not noticeable, but I'm interested in every bit because I'm expecting many requests which will trigger a lot more queries.
The hosting environment is gonna be Windows Server 2008 R2 with SQL Server 2008 R2. | 0 |
10,365,919 | 04/28/2012 17:36:48 | 45,365 | 12/11/2008 14:45:23 | 2,359 | 49 | MonoTouch random crash on device, not on simulator | I am thinking this is somehow memory related, but I have done everything I can think of. I have made sure classes are disposed property. Maintained hard references at the class level instead of function scope, for things that might be getting GC'd while I am using them, etc.
Basically the app works fine in the simulator, but crashes at the same spot on a real device. Seems like I get a few different stacks, but they are all around the same place.
I am using a large amount of events in my application. Too many threads?
> Stacktrace:
>
> at Newtonsoft.Json.JsonWriter.WriteValue (object) <IL 0x00020,
> 0x003e7> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x00081, 0x0045b> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.WriteMemberInfoProperty
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000d8, 0x006af> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonObjectContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000fe, 0x006f7> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000c1, 0x006bb> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList
> (Newtonsoft.Json.JsonWriter,Newtonsoft.Json.Utilities.IWrappedCollection,Newtonsoft.Json.Serialization.JsonArrayContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x00160, 0x009d7> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x00115, 0x009b3> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.WriteMemberInfoProperty
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000d8, 0x006af> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonObjectContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000fe, 0x006f7> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000c1, 0x006bb> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize
> (Newtonsoft.Json.JsonWriter,object) <IL 0x0001d, 0x00163> at
> Newtonsoft.Json.JsonSerializer.SerializeInternal
> (Newtonsoft.Json.JsonWriter,object) <IL 0x00015, 0x0012b> at
> Newtonsoft.Json.JsonSerializer.Serialize
> (Newtonsoft.Json.JsonWriter,object) <IL 0x00003, 0x0009b> at
> RestSharp.Serializers.JsonSerializer.Serialize (object) [0x0001c] in
> /Users/sonmez56/Projects/TrackAbout.Mono/RestSharp/RestSharp/Serializers/JsonSerializer.cs:64
> at RestSharp.RestRequest.AddBody (object,string) [0x00019] in
> /Users/sonmez56/Projects/TrackAbout.Mono/RestSharp/RestSharp/RestRequest.cs:203
> at RestSharp.RestRequest.AddBody (object) [0x00000] in
> /Users/sonmez56/Projects/TrackAbout.Mono/RestSharp/RestSharp/RestRequest.cs:232
> at
> TrackAboutMonoCore.Services.TrackAboutAPIRequestBuilder/TARestRequest.WithBody<T>
> (T) <0x00097> at
> TrackAboutMonoCore.Services.ActionsService.CustomerSetVolume
> (int,System.Collections.Generic.List`1<TrackAboutMonoCore.Models.Asset>,System.Action`1<RestSharp.RestResponse`1<TrackAbout.Rest.Models.TARestResponse>>)
> [0x00000] in
> /Users/sonmez56/Projects/TrackAbout.Mono/TrackAboutMonoCore/Services/ActionsService.cs:24
> at TrackAboutMonoCore.Controllers.LocateController.Save
> (object,System.EventArgs) [0x00055] in
> /Users/sonmez56/Projects/TrackAbout.Mono/TrackAboutMonoCore/Controllers/LocateController.cs:64
> at MonoTouch.UIKit.UIBarButtonItem/Callback.Call
> (MonoTouch.Foundation.NSObject) [0x00010] in
> /Developer/MonoTouch/Source/monotouch/src/UIKit/UIBarButtonItem.cs:23
> at (wrapper runtime-invoke) object.runtime_invoke_dynamic
> (intptr,intptr,intptr,intptr) <0xffffffff> at
> MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c]
> in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
> at TrackAboutIOS.Application.Main (string[]) [0x00000] in
> /Users/sonmez56/Projects/TrackAbout.Mono/TrackAboutIOS/TrackAboutIOS/Main.cs:16
> at (wrapper runtime-invoke) object.runtime_invoke_dynamic
> (intptr,intptr,intptr,intptr) <0xffffffff>
>
> Native stacktrace:
>
> 0 TrackAboutIOS 0x01d20618
> mono_handle_native_sigsegv + 280 1 TrackAboutIOS
> 0x01d45bd4 sigabrt_signal_handler + 180 2 libsystem_c.dylib
> 0x376647ed _sigtramp + 48 3 libsystem_c.dylib
> 0x3765a20f pthread_kill + 54 4 libsystem_c.dylib
> 0x3765329f abort + 94 5 TrackAboutIOS
> 0x01e394ac monoeg_g_log + 208 6 TrackAboutIOS
> 0x01d11664 get_numerous_trampoline + 160 7 TrackAboutIOS
> 0x01d11aac mono_aot_get_imt_thunk + 56 8 TrackAboutIOS
> 0x01dbdc50 initialize_imt_slot + 112 9 TrackAboutIOS
> 0x01dbf1c4 build_imt_slots + 1124 10 TrackAboutIOS
> 0x01dbf32c mono_vtable_build_imt_slot + 120 11 TrackAboutIOS
> 0x01d236fc mono_convert_imt_slot_to_vtable_slot + 292 12
> TrackAboutIOS 0x01d23974 common_call_trampoline
> + 284 13 TrackAboutIOS 0x01d21c60 mono_vcall_trampoline + 228 14 TrackAboutIOS
> 0x00934198 generic_trampoline_vcall + 136 15 TrackAboutIOS
> 0x00b9fec4
> Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1116 16 TrackAboutIOS 0x00ba13bc Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_WriteMemberInfoProperty_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1712 17 TrackAboutIOS 0x00ba2a70 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeObject_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonObjectContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1784 18 TrackAboutIOS 0x00ba0124 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1724 19 TrackAboutIOS 0x00ba3ec0 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeList_Newtonsoft_Json_JsonWriter_Newtonsoft_Json_Utilities_IWrappedCollection_Newtonsoft_Json_Serialization_JsonArrayContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 2520 20 TrackAboutIOS 0x00ba041c Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 2484 21 TrackAboutIOS 0x00ba13bc Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_WriteMemberInfoProperty_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1712 22 TrackAboutIOS 0x00ba2a70 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeObject_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonObjectContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1784 23 TrackAboutIOS 0x00ba0124 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1724 24 TrackAboutIOS 0x00b9f70c Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_Serialize_Newtonsoft_Json_JsonWriter_object
> + 356 25 TrackAboutIOS 0x00b2c52c Newtonsoft_Json_JsonSerializer_SerializeInternal_Newtonsoft_Json_JsonWriter_object
> + 300 26 TrackAboutIOS 0x00b2c3b4 Newtonsoft_Json_JsonSerializer_Serialize_Newtonsoft_Json_JsonWriter_object
> + 156 27 TrackAboutIOS 0x012010c0 RestSharp_Serializers_JsonSerializer_Serialize_object + 452 28
> TrackAboutIOS 0x011f8ad0
> RestSharp_RestRequest_AddBody_object_string + 396 29 TrackAboutIOS
> 0x011f8e4c RestSharp_RestRequest_AddBody_object + 152 30
> TrackAboutIOS 0x011d3c64
> TrackAboutMonoCore_Services_TrackAboutAPIRequestBuilder_TARestRequest_WithBody_T_T
> + 152 31 TrackAboutIOS 0x011d22d4 TrackAboutMonoCore_Services_ActionsService_CustomerSetVolume_int_System_Collections_Generic_List_1_TrackAboutMonoCore_Models_Asset_System_Action_1_RestSharp_RestResponse_1_TrackAbout_Rest_Models_TARestResponse
> + 328 32 TrackAboutIOS 0x011ce3bc TrackAboutMonoCore_Controllers_LocateController_Save_object_System_EventArgs
> + 960 33 TrackAboutIOS 0x0139003c MonoTouch_UIKit_UIBarButtonItem_Callback_Call_MonoTouch_Foundation_NSObject
> + 96 34 TrackAboutIOS 0x008b0450 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
> + 200 35 TrackAboutIOS 0x01d05834 mono_jit_runtime_invoke + 1644 36 TrackAboutIOS
> 0x01dbd09c mono_runtime_invoke + 128 37 TrackAboutIOS
> 0x01e4c054 monotouch_trampoline + 3436 38 CoreFoundation
> 0x30c7f3fd -[NSObject performSelector:withObject:withObject:] + 52 39
> UIKit 0x3353efaf -[UIApplication
> sendAction:to:from:forEvent:] + 62 40 UIKit
> 0x3360476b -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 118
> 41 CoreFoundation 0x30c7f3fd -[NSObject
> performSelector:withObject:withObject:] + 52 42 UIKit
> 0x3353efaf -[UIApplication sendAction:to:from:forEvent:] + 62 43
> UIKit 0x3353ef6b -[UIApplication
> sendAction:toTarget:fromSender:forEvent:] + 30 44 UIKit
> 0x3353ef49 -[UIControl sendAction:to:forEvent:] + 44 45 UIKit
> 0x3353ecb9 -[UIControl(Internal) _sendActionsForEvents:withEvent:] +
> 492 46 UIKit 0x3353f5f1 -[UIControl
> touchesEnded:withEvent:] + 476 47 UIKit
> 0x3353dad3 -[UIWindow _sendTouchesForEvent:] + 318 48 UIKit
> 0x3353d4c1 -[UIWindow sendEvent:] + 380 49 UIKit
> 0x3352383d -[UIApplication sendEvent:] + 356 50 UIKit
> 0x335230e3 _UIApplicationHandleEvent + 5826 51 GraphicsServices
> 0x33e1322b PurpleEventCallback + 882 52 CoreFoundation
> 0x30cf9523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
> + 38 53 CoreFoundation 0x30cf94c5 __CFRunLoopDoSource1 + 140 54 CoreFoundation 0x30cf8313 __CFRunLoopRun + 1370 55 CoreFoundation
> 0x30c7b4a5 CFRunLoopRunSpecific + 300 56 CoreFoundation
> 0x30c7b36d CFRunLoopRunInMode + 104 57 GraphicsServices
> 0x33e12439 GSEventRunModal + 136 58 UIKit
> 0x33551e7d UIApplicationMain + 1080 59 TrackAboutIOS
> 0x01696c74
> wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr
> + 240 60 TrackAboutIOS 0x00098420 TrackAboutIOS_Application_Main_string__ + 152 61 TrackAboutIOS
> 0x008b0450
> wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
> + 200 62 TrackAboutIOS 0x01d05834 mono_jit_runtime_invoke + 1644 63 TrackAboutIOS
> 0x01dbd09c mono_runtime_invoke + 128 64 TrackAboutIOS
> 0x01dc16b4 mono_runtime_exec_main + 436 65 TrackAboutIOS
> 0x01dc1a74 mono_runtime_run_main + 756 66 TrackAboutIOS
> 0x01d0c744 mono_jit_exec + 140 67 TrackAboutIOS
> 0x01e41110 main + 2288 68 TrackAboutIOS
> 0x0009826c start + 52 | ios | monotouch | null | null | null | null | open | MonoTouch random crash on device, not on simulator
===
I am thinking this is somehow memory related, but I have done everything I can think of. I have made sure classes are disposed property. Maintained hard references at the class level instead of function scope, for things that might be getting GC'd while I am using them, etc.
Basically the app works fine in the simulator, but crashes at the same spot on a real device. Seems like I get a few different stacks, but they are all around the same place.
I am using a large amount of events in my application. Too many threads?
> Stacktrace:
>
> at Newtonsoft.Json.JsonWriter.WriteValue (object) <IL 0x00020,
> 0x003e7> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x00081, 0x0045b> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.WriteMemberInfoProperty
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000d8, 0x006af> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonObjectContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000fe, 0x006f7> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000c1, 0x006bb> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList
> (Newtonsoft.Json.JsonWriter,Newtonsoft.Json.Utilities.IWrappedCollection,Newtonsoft.Json.Serialization.JsonArrayContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x00160, 0x009d7> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x00115, 0x009b3> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.WriteMemberInfoProperty
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000d8, 0x006af> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonObjectContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000fe, 0x006f7> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue
> (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract)
> <IL 0x000c1, 0x006bb> at
> Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize
> (Newtonsoft.Json.JsonWriter,object) <IL 0x0001d, 0x00163> at
> Newtonsoft.Json.JsonSerializer.SerializeInternal
> (Newtonsoft.Json.JsonWriter,object) <IL 0x00015, 0x0012b> at
> Newtonsoft.Json.JsonSerializer.Serialize
> (Newtonsoft.Json.JsonWriter,object) <IL 0x00003, 0x0009b> at
> RestSharp.Serializers.JsonSerializer.Serialize (object) [0x0001c] in
> /Users/sonmez56/Projects/TrackAbout.Mono/RestSharp/RestSharp/Serializers/JsonSerializer.cs:64
> at RestSharp.RestRequest.AddBody (object,string) [0x00019] in
> /Users/sonmez56/Projects/TrackAbout.Mono/RestSharp/RestSharp/RestRequest.cs:203
> at RestSharp.RestRequest.AddBody (object) [0x00000] in
> /Users/sonmez56/Projects/TrackAbout.Mono/RestSharp/RestSharp/RestRequest.cs:232
> at
> TrackAboutMonoCore.Services.TrackAboutAPIRequestBuilder/TARestRequest.WithBody<T>
> (T) <0x00097> at
> TrackAboutMonoCore.Services.ActionsService.CustomerSetVolume
> (int,System.Collections.Generic.List`1<TrackAboutMonoCore.Models.Asset>,System.Action`1<RestSharp.RestResponse`1<TrackAbout.Rest.Models.TARestResponse>>)
> [0x00000] in
> /Users/sonmez56/Projects/TrackAbout.Mono/TrackAboutMonoCore/Services/ActionsService.cs:24
> at TrackAboutMonoCore.Controllers.LocateController.Save
> (object,System.EventArgs) [0x00055] in
> /Users/sonmez56/Projects/TrackAbout.Mono/TrackAboutMonoCore/Controllers/LocateController.cs:64
> at MonoTouch.UIKit.UIBarButtonItem/Callback.Call
> (MonoTouch.Foundation.NSObject) [0x00010] in
> /Developer/MonoTouch/Source/monotouch/src/UIKit/UIBarButtonItem.cs:23
> at (wrapper runtime-invoke) object.runtime_invoke_dynamic
> (intptr,intptr,intptr,intptr) <0xffffffff> at
> MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c]
> in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
> at TrackAboutIOS.Application.Main (string[]) [0x00000] in
> /Users/sonmez56/Projects/TrackAbout.Mono/TrackAboutIOS/TrackAboutIOS/Main.cs:16
> at (wrapper runtime-invoke) object.runtime_invoke_dynamic
> (intptr,intptr,intptr,intptr) <0xffffffff>
>
> Native stacktrace:
>
> 0 TrackAboutIOS 0x01d20618
> mono_handle_native_sigsegv + 280 1 TrackAboutIOS
> 0x01d45bd4 sigabrt_signal_handler + 180 2 libsystem_c.dylib
> 0x376647ed _sigtramp + 48 3 libsystem_c.dylib
> 0x3765a20f pthread_kill + 54 4 libsystem_c.dylib
> 0x3765329f abort + 94 5 TrackAboutIOS
> 0x01e394ac monoeg_g_log + 208 6 TrackAboutIOS
> 0x01d11664 get_numerous_trampoline + 160 7 TrackAboutIOS
> 0x01d11aac mono_aot_get_imt_thunk + 56 8 TrackAboutIOS
> 0x01dbdc50 initialize_imt_slot + 112 9 TrackAboutIOS
> 0x01dbf1c4 build_imt_slots + 1124 10 TrackAboutIOS
> 0x01dbf32c mono_vtable_build_imt_slot + 120 11 TrackAboutIOS
> 0x01d236fc mono_convert_imt_slot_to_vtable_slot + 292 12
> TrackAboutIOS 0x01d23974 common_call_trampoline
> + 284 13 TrackAboutIOS 0x01d21c60 mono_vcall_trampoline + 228 14 TrackAboutIOS
> 0x00934198 generic_trampoline_vcall + 136 15 TrackAboutIOS
> 0x00b9fec4
> Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1116 16 TrackAboutIOS 0x00ba13bc Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_WriteMemberInfoProperty_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1712 17 TrackAboutIOS 0x00ba2a70 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeObject_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonObjectContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1784 18 TrackAboutIOS 0x00ba0124 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1724 19 TrackAboutIOS 0x00ba3ec0 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeList_Newtonsoft_Json_JsonWriter_Newtonsoft_Json_Utilities_IWrappedCollection_Newtonsoft_Json_Serialization_JsonArrayContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 2520 20 TrackAboutIOS 0x00ba041c Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 2484 21 TrackAboutIOS 0x00ba13bc Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_WriteMemberInfoProperty_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1712 22 TrackAboutIOS 0x00ba2a70 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeObject_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonObjectContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1784 23 TrackAboutIOS 0x00ba0124 Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_SerializeValue_Newtonsoft_Json_JsonWriter_object_Newtonsoft_Json_Serialization_JsonContract_Newtonsoft_Json_Serialization_JsonProperty_Newtonsoft_Json_Serialization_JsonContract + 1724 24 TrackAboutIOS 0x00b9f70c Newtonsoft_Json_Serialization_JsonSerializerInternalWriter_Serialize_Newtonsoft_Json_JsonWriter_object
> + 356 25 TrackAboutIOS 0x00b2c52c Newtonsoft_Json_JsonSerializer_SerializeInternal_Newtonsoft_Json_JsonWriter_object
> + 300 26 TrackAboutIOS 0x00b2c3b4 Newtonsoft_Json_JsonSerializer_Serialize_Newtonsoft_Json_JsonWriter_object
> + 156 27 TrackAboutIOS 0x012010c0 RestSharp_Serializers_JsonSerializer_Serialize_object + 452 28
> TrackAboutIOS 0x011f8ad0
> RestSharp_RestRequest_AddBody_object_string + 396 29 TrackAboutIOS
> 0x011f8e4c RestSharp_RestRequest_AddBody_object + 152 30
> TrackAboutIOS 0x011d3c64
> TrackAboutMonoCore_Services_TrackAboutAPIRequestBuilder_TARestRequest_WithBody_T_T
> + 152 31 TrackAboutIOS 0x011d22d4 TrackAboutMonoCore_Services_ActionsService_CustomerSetVolume_int_System_Collections_Generic_List_1_TrackAboutMonoCore_Models_Asset_System_Action_1_RestSharp_RestResponse_1_TrackAbout_Rest_Models_TARestResponse
> + 328 32 TrackAboutIOS 0x011ce3bc TrackAboutMonoCore_Controllers_LocateController_Save_object_System_EventArgs
> + 960 33 TrackAboutIOS 0x0139003c MonoTouch_UIKit_UIBarButtonItem_Callback_Call_MonoTouch_Foundation_NSObject
> + 96 34 TrackAboutIOS 0x008b0450 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
> + 200 35 TrackAboutIOS 0x01d05834 mono_jit_runtime_invoke + 1644 36 TrackAboutIOS
> 0x01dbd09c mono_runtime_invoke + 128 37 TrackAboutIOS
> 0x01e4c054 monotouch_trampoline + 3436 38 CoreFoundation
> 0x30c7f3fd -[NSObject performSelector:withObject:withObject:] + 52 39
> UIKit 0x3353efaf -[UIApplication
> sendAction:to:from:forEvent:] + 62 40 UIKit
> 0x3360476b -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 118
> 41 CoreFoundation 0x30c7f3fd -[NSObject
> performSelector:withObject:withObject:] + 52 42 UIKit
> 0x3353efaf -[UIApplication sendAction:to:from:forEvent:] + 62 43
> UIKit 0x3353ef6b -[UIApplication
> sendAction:toTarget:fromSender:forEvent:] + 30 44 UIKit
> 0x3353ef49 -[UIControl sendAction:to:forEvent:] + 44 45 UIKit
> 0x3353ecb9 -[UIControl(Internal) _sendActionsForEvents:withEvent:] +
> 492 46 UIKit 0x3353f5f1 -[UIControl
> touchesEnded:withEvent:] + 476 47 UIKit
> 0x3353dad3 -[UIWindow _sendTouchesForEvent:] + 318 48 UIKit
> 0x3353d4c1 -[UIWindow sendEvent:] + 380 49 UIKit
> 0x3352383d -[UIApplication sendEvent:] + 356 50 UIKit
> 0x335230e3 _UIApplicationHandleEvent + 5826 51 GraphicsServices
> 0x33e1322b PurpleEventCallback + 882 52 CoreFoundation
> 0x30cf9523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
> + 38 53 CoreFoundation 0x30cf94c5 __CFRunLoopDoSource1 + 140 54 CoreFoundation 0x30cf8313 __CFRunLoopRun + 1370 55 CoreFoundation
> 0x30c7b4a5 CFRunLoopRunSpecific + 300 56 CoreFoundation
> 0x30c7b36d CFRunLoopRunInMode + 104 57 GraphicsServices
> 0x33e12439 GSEventRunModal + 136 58 UIKit
> 0x33551e7d UIApplicationMain + 1080 59 TrackAboutIOS
> 0x01696c74
> wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr
> + 240 60 TrackAboutIOS 0x00098420 TrackAboutIOS_Application_Main_string__ + 152 61 TrackAboutIOS
> 0x008b0450
> wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
> + 200 62 TrackAboutIOS 0x01d05834 mono_jit_runtime_invoke + 1644 63 TrackAboutIOS
> 0x01dbd09c mono_runtime_invoke + 128 64 TrackAboutIOS
> 0x01dc16b4 mono_runtime_exec_main + 436 65 TrackAboutIOS
> 0x01dc1a74 mono_runtime_run_main + 756 66 TrackAboutIOS
> 0x01d0c744 mono_jit_exec + 140 67 TrackAboutIOS
> 0x01e41110 main + 2288 68 TrackAboutIOS
> 0x0009826c start + 52 | 0 |
8,179,780 | 11/18/2011 08:45:01 | 1,053,398 | 11/18/2011 08:32:44 | 1 | 0 | Editing Collection in Collection using MVC 3 | I am trying to create a Edit View for the following scenario:
Profile class { String profileName, IList<Phase> phases; //plus there getter setter}
Phase class { String phaseName, IList<SubPhase> subPhases; //plus there getter setter}
SubPhase class { String subPhaseName // plus there getter setter}
I have created Profile View with @model CollectionEditing.Models.Profile and two partial view as PhaseEditor and SubPhaseEditor
I profile view I am using partial view:
//iteration the phases
for (int i = 0; i < Model.Phases.Count; i++)
{
//rendering the partial view for Phases
Html.RenderPartial("PhaseEditor", Model.Phases[i]);
//iteration the SubPhases
for (int j = 0; j < Model.Phases[i].SubPhases.Count; j++)
{
//rendering the partial view for SubPhases
Html.RenderPartial("SubPhaseEditor", Model.Phases[i].SubPhases[j]);
}
}
The Editable View is created successfully.
When I click the Submit button In my action I getting the values for Profile and its list of Phases and I am not getting the list of Subphase in Phase class. list of subphases is set to null.
I have also tried putting Html.RenderPartial("SubPhaseEditor", Model.Phases[i].SubPhases[j]); in partial view PhaseEditor but still it does not work.
Please help... How I can get the list of SubPhases also.
Thank you very much for your help.
Sushil | .net | mvc | null | null | null | null | open | Editing Collection in Collection using MVC 3
===
I am trying to create a Edit View for the following scenario:
Profile class { String profileName, IList<Phase> phases; //plus there getter setter}
Phase class { String phaseName, IList<SubPhase> subPhases; //plus there getter setter}
SubPhase class { String subPhaseName // plus there getter setter}
I have created Profile View with @model CollectionEditing.Models.Profile and two partial view as PhaseEditor and SubPhaseEditor
I profile view I am using partial view:
//iteration the phases
for (int i = 0; i < Model.Phases.Count; i++)
{
//rendering the partial view for Phases
Html.RenderPartial("PhaseEditor", Model.Phases[i]);
//iteration the SubPhases
for (int j = 0; j < Model.Phases[i].SubPhases.Count; j++)
{
//rendering the partial view for SubPhases
Html.RenderPartial("SubPhaseEditor", Model.Phases[i].SubPhases[j]);
}
}
The Editable View is created successfully.
When I click the Submit button In my action I getting the values for Profile and its list of Phases and I am not getting the list of Subphase in Phase class. list of subphases is set to null.
I have also tried putting Html.RenderPartial("SubPhaseEditor", Model.Phases[i].SubPhases[j]); in partial view PhaseEditor but still it does not work.
Please help... How I can get the list of SubPhases also.
Thank you very much for your help.
Sushil | 0 |
5,793,084 | 04/26/2011 16:03:54 | 92,679 | 04/19/2009 05:23:14 | 833 | 20 | How to I have several haml lines appear on the same line? | I have the following haml:
9 %strong Asked by:
10 = link_to @user.full_name, user_path(@user)
11 .small= "(#{@question.created_at.strftime("%B %d, %Y")})"
This currently puts the link and the date on separate lines, when it should look like "link (date)" and date has a class span of small..... | ruby | haml | null | null | null | null | open | How to I have several haml lines appear on the same line?
===
I have the following haml:
9 %strong Asked by:
10 = link_to @user.full_name, user_path(@user)
11 .small= "(#{@question.created_at.strftime("%B %d, %Y")})"
This currently puts the link and the date on separate lines, when it should look like "link (date)" and date has a class span of small..... | 0 |
10,595,024 | 05/15/2012 06:09:11 | 1,378,680 | 05/06/2012 22:26:38 | 32 | 0 | How to make Remember Me more secured | I'm trying to do "Remember Me" on my website and have added the code below to my login script.
The password is run through sha1() function and the username was trimmed and run through mysql_real_escape_string() before assigning it to a SESSION.
How can I make this more secured, against hijacking.
Thanks.
if($_POST['remember']) {
setcookie("CookieUser", $_SESSION ['usrename'], time() + 60 * 60 * 24 100, "/");
setcookie("CookiePass", $_SESSION ['password'], time() + 60 * 60 * 24 100);
} | php | session | cookies | passwords | hacking | null | open | How to make Remember Me more secured
===
I'm trying to do "Remember Me" on my website and have added the code below to my login script.
The password is run through sha1() function and the username was trimmed and run through mysql_real_escape_string() before assigning it to a SESSION.
How can I make this more secured, against hijacking.
Thanks.
if($_POST['remember']) {
setcookie("CookieUser", $_SESSION ['usrename'], time() + 60 * 60 * 24 100, "/");
setcookie("CookiePass", $_SESSION ['password'], time() + 60 * 60 * 24 100);
} | 0 |
7,575,574 | 09/27/2011 20:56:37 | 880,601 | 08/05/2011 12:50:30 | 20 | 1 | When to use Nhibernate <version>? | I was looking at ayende blog http://ayende.com/blog/3946/nhibernate-mapping-concurrency about NHibernate concurrency and i still not very clear when to use <version> . It seems like it is a solution to solve StaleObjectException.
Can anyone explain to me in what scenario you will use a <version> and why ?
Thanks. | nhibernate | null | null | null | null | null | open | When to use Nhibernate <version>?
===
I was looking at ayende blog http://ayende.com/blog/3946/nhibernate-mapping-concurrency about NHibernate concurrency and i still not very clear when to use <version> . It seems like it is a solution to solve StaleObjectException.
Can anyone explain to me in what scenario you will use a <version> and why ?
Thanks. | 0 |
11,014,715 | 06/13/2012 12:21:17 | 1,406,479 | 05/20/2012 16:32:23 | 1 | 0 | passing data while navigation between pages onNavigatedTo no suitable method found to override in Windows Phone 7 | I'm try to pass a parameter while navigate between pages..
in the firs page I have:
private void companyGrid_Tap(object sender, GestureEventArgs e)
{
String tempVal = "";
tempVal = "PassVal";
NavigationService.Navigate(new Uri("/ComPage.xaml?comID=" + tempVal, UriKind.Relative));
}
and in the next page i have:
protected override void onNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedTo(e);
String strId = NavigationContext.QueryString["comID"];
}
but I get an error about the override "onNavigatedTo" mathod say: "no suitable method found to override"
i check and all the Examples show the same way to pass the parameter...
Maybe someone know what the reason it's not working??? | windows-phone-7 | navigation | parameter-passing | method-overriding | null | 06/13/2012 16:29:16 | too localized | passing data while navigation between pages onNavigatedTo no suitable method found to override in Windows Phone 7
===
I'm try to pass a parameter while navigate between pages..
in the firs page I have:
private void companyGrid_Tap(object sender, GestureEventArgs e)
{
String tempVal = "";
tempVal = "PassVal";
NavigationService.Navigate(new Uri("/ComPage.xaml?comID=" + tempVal, UriKind.Relative));
}
and in the next page i have:
protected override void onNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedTo(e);
String strId = NavigationContext.QueryString["comID"];
}
but I get an error about the override "onNavigatedTo" mathod say: "no suitable method found to override"
i check and all the Examples show the same way to pass the parameter...
Maybe someone know what the reason it's not working??? | 3 |
10,462,238 | 05/05/2012 13:17:10 | 1,274,894 | 03/16/2012 20:24:41 | 10 | 1 | What are the plugins installed on Joomla script on this site | What are the plugins installed on Joomla script on this site:
http://www.josourmagazine.ae/english/
( style , models , extentions , plug-ins ... etc. )
thanks for any help
zuhair | plugins | joomla | script | extension | null | null | open | What are the plugins installed on Joomla script on this site
===
What are the plugins installed on Joomla script on this site:
http://www.josourmagazine.ae/english/
( style , models , extentions , plug-ins ... etc. )
thanks for any help
zuhair | 0 |
7,180,878 | 08/24/2011 19:04:34 | 910,360 | 08/24/2011 19:04:34 | 1 | 0 | What happened to Open Resource in PHP Projects? | I used to be able to use Ctrl-Shift-R to "Open Resource" when I was in a PHP file while using Aptana 2. Now, in Aptana 3, that feature seems disabled. I found it great to navigate frameworks quickly because I could just type in a class name and I could go right there! Now, I have to what, type in the name of a class and then hit F3? Where's the wildcard search? Where's the "type only the upper case acronym of a class to find it"? Boo! :( | php | navigation | aptana | null | null | 08/24/2011 23:33:39 | off topic | What happened to Open Resource in PHP Projects?
===
I used to be able to use Ctrl-Shift-R to "Open Resource" when I was in a PHP file while using Aptana 2. Now, in Aptana 3, that feature seems disabled. I found it great to navigate frameworks quickly because I could just type in a class name and I could go right there! Now, I have to what, type in the name of a class and then hit F3? Where's the wildcard search? Where's the "type only the upper case acronym of a class to find it"? Boo! :( | 2 |
3,753,346 | 09/20/2010 16:14:22 | 452,925 | 09/20/2010 16:14:22 | 1 | 0 | Passing from Form to Query in Access/SQL/VB | Access 2007 / SQL / VB
I have a query:
SELECT Count(*) AS CountOfCR1
FROM PData
WHERE (((PData.DestID)='CR1') And (((PData.AnswerTime)>=Starting)<Ending+1));
I am trying to pass the variables Starting and Ending to the above query from the below form:
Starting = StartDate & " " & StartTime
Ending = EndDate & " " & EndTime
On Error GoTo Err_Command5_Click
Dim stDocName As String
stDocName = "CountOfCR1 : Query"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command5_Click:
Exit Sub
Err_Command5_Click:
MsgBox Err.Description
Resume Exit_Command5_Click
How can I pass Starting and Ending from my form to my query? | sql | vb | access | null | null | null | open | Passing from Form to Query in Access/SQL/VB
===
Access 2007 / SQL / VB
I have a query:
SELECT Count(*) AS CountOfCR1
FROM PData
WHERE (((PData.DestID)='CR1') And (((PData.AnswerTime)>=Starting)<Ending+1));
I am trying to pass the variables Starting and Ending to the above query from the below form:
Starting = StartDate & " " & StartTime
Ending = EndDate & " " & EndTime
On Error GoTo Err_Command5_Click
Dim stDocName As String
stDocName = "CountOfCR1 : Query"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command5_Click:
Exit Sub
Err_Command5_Click:
MsgBox Err.Description
Resume Exit_Command5_Click
How can I pass Starting and Ending from my form to my query? | 0 |
11,584,634 | 07/20/2012 18:03:01 | 1,130,687 | 01/04/2012 19:37:00 | 8 | 0 | Please suggest best dual WAN router for a small business? | I am looking for a dual WAN router for a small business. After searching I found that there are some products from CISCO and other companies but another suggestion was to design BSD dual WAN router using pfSense and a computer.
Can anyone suggest which option is good?
If your answer is option 1 (buy router off the shelf) then which one should I buy?
if your answer is option 2 then please send me some links which can help me to accomplish this?
Thank you in advance! | router | wan | dual | null | null | 07/20/2012 18:11:47 | off topic | Please suggest best dual WAN router for a small business?
===
I am looking for a dual WAN router for a small business. After searching I found that there are some products from CISCO and other companies but another suggestion was to design BSD dual WAN router using pfSense and a computer.
Can anyone suggest which option is good?
If your answer is option 1 (buy router off the shelf) then which one should I buy?
if your answer is option 2 then please send me some links which can help me to accomplish this?
Thank you in advance! | 2 |
4,307,490 | 11/29/2010 19:56:32 | 406,059 | 07/29/2010 18:48:58 | 55 | 0 | Is there another tool out there for building oracle reports other then oracle reports builder? | I cant stand oracle reports builder. Its constantly crashing and sucking in general. Copying and pasting stuff only sometimes works. Elements visualy look selected after you unselect them. AARRRRRRRRGGHHHHHHHHHHHH I need another tool. Are their any alternatives for designing the report jsps? | oracle | reporting | report | oraclereports | null | 05/16/2012 16:50:50 | not constructive | Is there another tool out there for building oracle reports other then oracle reports builder?
===
I cant stand oracle reports builder. Its constantly crashing and sucking in general. Copying and pasting stuff only sometimes works. Elements visualy look selected after you unselect them. AARRRRRRRRGGHHHHHHHHHHHH I need another tool. Are their any alternatives for designing the report jsps? | 4 |
422,539 | 01/07/2009 22:59:20 | 48,705 | 12/23/2008 17:57:58 | 81 | 0 | Energy efficient application development | Are there any to build more energy efficient applications
Are there any articles, rules or best practices for green programming?
| delphi | performance | energy | null | null | 07/28/2012 01:46:13 | not constructive | Energy efficient application development
===
Are there any to build more energy efficient applications
Are there any articles, rules or best practices for green programming?
| 4 |
9,726,272 | 03/15/2012 18:55:07 | 979,053 | 10/04/2011 18:15:51 | 16 | 1 | iOS: NSTimers not invalidating or stopping correctly | I'm having a bit of trouble with some timers in my project. Our project has been on hold for a while, and we recently upgraded from XCode 3.2.6 to XCode 4.2.1. This is one of the issues that has emerged from that migration. This code appeared to function correctly before the switch... now the timers are not being invalidated correctly for some reason which is resulting in two errors.
+ The chime continues to play at all times after it's started, even on other screens of the game.
+ Each time the screen appears, another instance of the timer is created and not destroyed, causing the countup and chime speed to happen faster than before.
This behavior is taking place in a View Controller which is used for an end of level screen. In ViewWillAppear I create a timer
EOLWinCountupTimer = [[NSTimer scheduledTimerWithTimeInterval: 0.10
target: self
selector: @selector(countUpSequence)
userInfo: nil
repeats: YES]retain];
This timer calls a selector that sequences some score countups on labels and plays a chime, and turns on and off a few views. At the end of the sequence I do this to stop the timer. This code also is repeated in ViewWillDisappear to make sure the timers stop if the player moves on before the sequence is finished.
if (EOLWinCountupTimer != nil && [EOLWinCountupTimer isValid])
{
[EOLWinCountupTimer invalidate];
if(![EOLWinCountupTimer isValid])
{
[EOLWinCountupTimer release];
EOLWinCountupTimer = nil;
}
}
| ios | nstimer | null | null | null | null | open | iOS: NSTimers not invalidating or stopping correctly
===
I'm having a bit of trouble with some timers in my project. Our project has been on hold for a while, and we recently upgraded from XCode 3.2.6 to XCode 4.2.1. This is one of the issues that has emerged from that migration. This code appeared to function correctly before the switch... now the timers are not being invalidated correctly for some reason which is resulting in two errors.
+ The chime continues to play at all times after it's started, even on other screens of the game.
+ Each time the screen appears, another instance of the timer is created and not destroyed, causing the countup and chime speed to happen faster than before.
This behavior is taking place in a View Controller which is used for an end of level screen. In ViewWillAppear I create a timer
EOLWinCountupTimer = [[NSTimer scheduledTimerWithTimeInterval: 0.10
target: self
selector: @selector(countUpSequence)
userInfo: nil
repeats: YES]retain];
This timer calls a selector that sequences some score countups on labels and plays a chime, and turns on and off a few views. At the end of the sequence I do this to stop the timer. This code also is repeated in ViewWillDisappear to make sure the timers stop if the player moves on before the sequence is finished.
if (EOLWinCountupTimer != nil && [EOLWinCountupTimer isValid])
{
[EOLWinCountupTimer invalidate];
if(![EOLWinCountupTimer isValid])
{
[EOLWinCountupTimer release];
EOLWinCountupTimer = nil;
}
}
| 0 |
10,871,225 | 06/03/2012 14:42:06 | 1,238,712 | 10/13/2011 22:09:22 | 13 | 4 | Which Linux distribution is recommended? | bit of quick background - I am looking at changing from a shared hosting solution to a dedicated server offering.
I have a choice between Red Hat 5.5, Ubuntu 10.04 or CentOS 5.5
I've been doing some research online regarding the differences, but I was wondering if anyone had any first hand experience / recommendations, and could offer comparisons?
The server will be used for a combination of php websites/applications, rails sites/applications, email hosting, ftp, ssh etc etc
Thanks in advance | linux | ubuntu | centos | redhat | null | 06/03/2012 14:47:17 | not constructive | Which Linux distribution is recommended?
===
bit of quick background - I am looking at changing from a shared hosting solution to a dedicated server offering.
I have a choice between Red Hat 5.5, Ubuntu 10.04 or CentOS 5.5
I've been doing some research online regarding the differences, but I was wondering if anyone had any first hand experience / recommendations, and could offer comparisons?
The server will be used for a combination of php websites/applications, rails sites/applications, email hosting, ftp, ssh etc etc
Thanks in advance | 4 |
3,658,060 | 09/07/2010 11:05:14 | 244,413 | 01/06/2010 02:46:19 | 854 | 0 | What programming language are used for these websites ? |
What programming language or web Framework are used for these websites ?
Google
Amazon
MySpace
Yahoo
Flickr
PayPal
Ebay
Python
If you know only one of this, please comment :) !! | php | python | google | frameworks | null | 09/07/2010 11:06:45 | not a real question | What programming language are used for these websites ?
===
What programming language or web Framework are used for these websites ?
Google
Amazon
MySpace
Yahoo
Flickr
PayPal
Ebay
Python
If you know only one of this, please comment :) !! | 1 |
1,701,546 | 11/09/2009 14:58:07 | 110,105 | 05/20/2009 18:24:41 | 609 | 29 | FilterAttribute Order not working | I have 2 attributes that I use within the controllers of my MVC application. AttributeA extends [System.Web.Mvc.AuthorizeAttribute][1] and AttributeB extends [System.Web.Mvc.ActionFilterAttribute][2]. I want AttributeB to always be run first.
I have tried all possible combinations of Order based on [this article][3], but AttributeA is **always** run before AttributeB. Can anyone help?
[1]: http://msdn.microsoft.com/en-us/library/system.web.mvc.authorizeattribute.aspx
[2]: http://msdn.microsoft.com/en-us/library/system.web.mvc.actionfilterattribute.aspx
[3]: http://msdn.microsoft.com/en-us/library/system.web.mvc.filterattribute.order.aspx | attributes | asp.net-mvc | null | null | null | null | open | FilterAttribute Order not working
===
I have 2 attributes that I use within the controllers of my MVC application. AttributeA extends [System.Web.Mvc.AuthorizeAttribute][1] and AttributeB extends [System.Web.Mvc.ActionFilterAttribute][2]. I want AttributeB to always be run first.
I have tried all possible combinations of Order based on [this article][3], but AttributeA is **always** run before AttributeB. Can anyone help?
[1]: http://msdn.microsoft.com/en-us/library/system.web.mvc.authorizeattribute.aspx
[2]: http://msdn.microsoft.com/en-us/library/system.web.mvc.actionfilterattribute.aspx
[3]: http://msdn.microsoft.com/en-us/library/system.web.mvc.filterattribute.order.aspx | 0 |
4,368,355 | 12/06/2010 16:06:35 | 532,534 | 12/06/2010 16:06:35 | 1 | 0 | What are the c++ commands for case speaker? | I'm trying to make a MIDI song using c++. What are the commands? | c++ | c | case | midi | null | 12/06/2010 16:17:44 | not a real question | What are the c++ commands for case speaker?
===
I'm trying to make a MIDI song using c++. What are the commands? | 1 |
10,100,542 | 04/11/2012 05:49:46 | 1,307,322 | 04/02/2012 06:05:35 | 22 | 0 | XML XCode Attribute | I am using Google's API to retrieve the current weather.
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName
namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName
attributes:(NSDictionary *)attributeDict {
if([elementName isEqualToString:@"condition"]) {
NSString* string = [attributeDict objectForKey:@"data"];
NSLog(@"The weather is now %@", string);
}
[self setUIState:ACTIVE_STATE];
}
With the above, I am getting 3 conditions. All I need is the current, how do I solve this? Here is the xml code `http://www.google.com/ig/api?weather=singapore`. I am trying to retrieve only the "condition" which is nested inside "current_conditions". Thanks! | xml | xcode | null | null | null | null | open | XML XCode Attribute
===
I am using Google's API to retrieve the current weather.
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName
namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName
attributes:(NSDictionary *)attributeDict {
if([elementName isEqualToString:@"condition"]) {
NSString* string = [attributeDict objectForKey:@"data"];
NSLog(@"The weather is now %@", string);
}
[self setUIState:ACTIVE_STATE];
}
With the above, I am getting 3 conditions. All I need is the current, how do I solve this? Here is the xml code `http://www.google.com/ig/api?weather=singapore`. I am trying to retrieve only the "condition" which is nested inside "current_conditions". Thanks! | 0 |
10,376,688 | 04/29/2012 22:46:22 | 1,364,759 | 04/29/2012 22:40:18 | 1 | 0 | Template causing every line in function to look for declaration | I am currently trying to convert my binary tree class into a template, but after putting it in this form, I keep getting declaration errors on everything:
template <class Type>
void BinTree<Type>::Print(bool numbered, BinNode<CategorizedContact>* cursor, int& num)
{
if(cursor == NULL)
return;
// in order traversal
// left
Print(numbered, cursor->left, num);
// process
if(numbered)
cout << num << ". ";
num++;
cout << cursor->data;
if(debug)
cout << "\t" << cursor << endl;
// right
Print(numbered, cursor->right, num);
} | c++ | templates | declaration | null | null | 04/30/2012 16:08:49 | not a real question | Template causing every line in function to look for declaration
===
I am currently trying to convert my binary tree class into a template, but after putting it in this form, I keep getting declaration errors on everything:
template <class Type>
void BinTree<Type>::Print(bool numbered, BinNode<CategorizedContact>* cursor, int& num)
{
if(cursor == NULL)
return;
// in order traversal
// left
Print(numbered, cursor->left, num);
// process
if(numbered)
cout << num << ". ";
num++;
cout << cursor->data;
if(debug)
cout << "\t" << cursor << endl;
// right
Print(numbered, cursor->right, num);
} | 1 |
9,476,291 | 02/28/2012 04:16:25 | 692,020 | 04/05/2011 00:14:07 | 68 | 3 | How to open file in default application. Ruby | How to open file in its default application using Ruby scripts?
Let us say, I have folder with files .txt .doc .rb and I would like open them with Notepad, Word, and RubyMine respectively. I assume that all files have their default applications to open. | ruby | file | open | null | null | null | open | How to open file in default application. Ruby
===
How to open file in its default application using Ruby scripts?
Let us say, I have folder with files .txt .doc .rb and I would like open them with Notepad, Word, and RubyMine respectively. I assume that all files have their default applications to open. | 0 |
10,367,806 | 04/28/2012 21:43:57 | 655,577 | 03/11/2011 15:30:07 | 23 | 2 | jQuery broken href | I've a jQuery Mobile app. The app pulls JSON data from the backend and presents it to the user.
From last 2 days i'm stuck with a weird issue. While presenting the data to the user, I'm trying to make use of `<a href="url"></a>` tag. It's a very simple line of code and I just don't understand what is the issue with something so simple.
Code Snippet
-------
$.each(obj, function(entryIndex, entry) {
//some code
html += '<a href="retrieveDetails.jsp?reference=' + entry.reference + '"><h3 class="term">' + entry['name'] + '</h3></a>';
//some more code
});
Issue
------
When I try to click on the hyperlink, I see the following error in FireBug console.
j.data("page") is undefined
animationComplete()jquery....min.js (line 54)
error()
What am I using?
---------------
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.js"></script>
I will appreciate if someone can guide me.
Thanks | jquery | jquery-mobile | null | null | null | 04/30/2012 15:38:52 | not a real question | jQuery broken href
===
I've a jQuery Mobile app. The app pulls JSON data from the backend and presents it to the user.
From last 2 days i'm stuck with a weird issue. While presenting the data to the user, I'm trying to make use of `<a href="url"></a>` tag. It's a very simple line of code and I just don't understand what is the issue with something so simple.
Code Snippet
-------
$.each(obj, function(entryIndex, entry) {
//some code
html += '<a href="retrieveDetails.jsp?reference=' + entry.reference + '"><h3 class="term">' + entry['name'] + '</h3></a>';
//some more code
});
Issue
------
When I try to click on the hyperlink, I see the following error in FireBug console.
j.data("page") is undefined
animationComplete()jquery....min.js (line 54)
error()
What am I using?
---------------
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.js"></script>
I will appreciate if someone can guide me.
Thanks | 1 |
2,505,042 | 03/24/2010 02:54:18 | 212,555 | 11/17/2009 02:25:04 | 673 | 53 | How to parse a tar file in C++ | What I want to do is download a .tar file with multiple directories with 2 files each. The problem is I can't find a way to read the tar file without actually extracting the files (using `tar`).
The perfect solution would be something like:
#include <easytar>
Tarfile tar("somefile.tar");
std::string currentFile, currentFileName;
for(int i=0; i<tar.size(); i++){
file = tar.getFileText(i);
currentFileName = tar.getFileName(i);
// do stuff with it
}
I'm probably going to have to write this myself, but any ideas would be appreciated.. | tar | c++ | null | null | null | null | open | How to parse a tar file in C++
===
What I want to do is download a .tar file with multiple directories with 2 files each. The problem is I can't find a way to read the tar file without actually extracting the files (using `tar`).
The perfect solution would be something like:
#include <easytar>
Tarfile tar("somefile.tar");
std::string currentFile, currentFileName;
for(int i=0; i<tar.size(); i++){
file = tar.getFileText(i);
currentFileName = tar.getFileName(i);
// do stuff with it
}
I'm probably going to have to write this myself, but any ideas would be appreciated.. | 0 |
10,552,749 | 05/11/2012 13:53:40 | 1,065,825 | 11/25/2011 14:46:27 | 22 | 1 | Why is isset() returning FALSE for a boolean variable that is set and is TRUE? | I have spent the last 20 minutes trying to work out the cause for this issue.
Firstly I will do
$this->is_csu = TRUE;
In a separate class I call isset, isset returns FALSE, if I immediately echo the variable it will return TRUE.
echo var_dump(isset($this->is_csu));
echo var_dump($this->is_csu);
die();
Results in an output of
bool(false) bool(true)
I'm sure there is some technical reason to why this is happening, but it is beyond me right now.
Hopefully someone can shed some light on this.
| php | null | null | null | null | null | open | Why is isset() returning FALSE for a boolean variable that is set and is TRUE?
===
I have spent the last 20 minutes trying to work out the cause for this issue.
Firstly I will do
$this->is_csu = TRUE;
In a separate class I call isset, isset returns FALSE, if I immediately echo the variable it will return TRUE.
echo var_dump(isset($this->is_csu));
echo var_dump($this->is_csu);
die();
Results in an output of
bool(false) bool(true)
I'm sure there is some technical reason to why this is happening, but it is beyond me right now.
Hopefully someone can shed some light on this.
| 0 |
7,647,225 | 10/04/2011 11:33:27 | 807,873 | 06/21/2011 06:05:39 | 1 | 0 | Using Oracle AQ as a JMS in JBoss5 | I'm looking for a full example or detail tutorial how to set Oracle AQ as a JMSProvider. I would like to create MDB which would be executed by the messages from queue defined in Oracle AQ. I'm using JBoss AS 5.1 and Oracle 11 | oracle | jms | mdb | null | null | null | open | Using Oracle AQ as a JMS in JBoss5
===
I'm looking for a full example or detail tutorial how to set Oracle AQ as a JMSProvider. I would like to create MDB which would be executed by the messages from queue defined in Oracle AQ. I'm using JBoss AS 5.1 and Oracle 11 | 0 |
5,227,683 | 03/08/2011 02:34:53 | 634,239 | 02/25/2011 13:54:53 | 76 | 0 | Setting logic within servlet and showing results in android | I was wandering if there is an easy way to access a servlet which contains logic to jumble a word. I have the logic to jumble a word and would like to put this within a servlet.
I already have Tomcat set up on eclipse.
Within the android application will be an Onclick method and when clicked will jumble the word through the servlet. I have looked at HttpConnection but not sure how to implement this easily.
Any ideas on how to do this.
Thanks | android | servlets | null | null | null | null | open | Setting logic within servlet and showing results in android
===
I was wandering if there is an easy way to access a servlet which contains logic to jumble a word. I have the logic to jumble a word and would like to put this within a servlet.
I already have Tomcat set up on eclipse.
Within the android application will be an Onclick method and when clicked will jumble the word through the servlet. I have looked at HttpConnection but not sure how to implement this easily.
Any ideas on how to do this.
Thanks | 0 |
6,508,823 | 06/28/2011 15:18:33 | 650,157 | 03/08/2011 16:36:15 | 422 | 33 | Layout problem (floats) specyfic to Opera | I have a forum title bar (with forum name and thread title). Forum name, when long, is clipped and revealed on `:hover`. The objective is to have the thread title to begin next to forum name, hovered or not, and also clipped, when too long.
The following [reduced test case](http://jsfiddle.net/wkA7q/3/) works in Chrome and FF but not in Opera (tested on 11.50 alpha, and latest stable, both on mac).
**Correct behaviour:** thread title (the one with red outline) is in line with forum name.
**What I get in Opera:** the text is gone - actually hidden by `overflow:hidden` on `.nav_bar`, it gets moved to next line. | css | float | opera | null | null | null | open | Layout problem (floats) specyfic to Opera
===
I have a forum title bar (with forum name and thread title). Forum name, when long, is clipped and revealed on `:hover`. The objective is to have the thread title to begin next to forum name, hovered or not, and also clipped, when too long.
The following [reduced test case](http://jsfiddle.net/wkA7q/3/) works in Chrome and FF but not in Opera (tested on 11.50 alpha, and latest stable, both on mac).
**Correct behaviour:** thread title (the one with red outline) is in line with forum name.
**What I get in Opera:** the text is gone - actually hidden by `overflow:hidden` on `.nav_bar`, it gets moved to next line. | 0 |
9,157,991 | 02/06/2012 09:26:45 | 82,047 | 03/24/2009 14:29:35 | 529 | 24 | AppDomain.UnhandledException in unit test | In the code snippet below, why wouldn't the attached handler (of `AppDomain.CurrentDomain.UnhandledException` event) fire up when an exception is thrown in the unit test?
I'm using NUnit 2.5.10 with TestDriven.NET 3.0 on VS2010.
[TestFixture]
public class Test2 {
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) {
Console.WriteLine("Gotcha!");
}
[Test]
public void ExceptionTest1() {
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
throw new Exception("ExceptionInTest");
}
}
Output: (No gotchas)
------ Test started: Assembly: WcfQueue.Test.dll ------
Test 'WcfQueue.Test.Test2.ExceptionTest1' failed: System.Exception : ExceptionInTest
ProgramTests.cs(83,0): at WcfQueue.Test.Test2.ExceptionTest1()
0 passed, 1 failed, 0 skipped, took 1.98 seconds (NUnit 2.5.5). | c# | testing | exception-handling | nunit | null | null | open | AppDomain.UnhandledException in unit test
===
In the code snippet below, why wouldn't the attached handler (of `AppDomain.CurrentDomain.UnhandledException` event) fire up when an exception is thrown in the unit test?
I'm using NUnit 2.5.10 with TestDriven.NET 3.0 on VS2010.
[TestFixture]
public class Test2 {
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) {
Console.WriteLine("Gotcha!");
}
[Test]
public void ExceptionTest1() {
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
throw new Exception("ExceptionInTest");
}
}
Output: (No gotchas)
------ Test started: Assembly: WcfQueue.Test.dll ------
Test 'WcfQueue.Test.Test2.ExceptionTest1' failed: System.Exception : ExceptionInTest
ProgramTests.cs(83,0): at WcfQueue.Test.Test2.ExceptionTest1()
0 passed, 1 failed, 0 skipped, took 1.98 seconds (NUnit 2.5.5). | 0 |
2,250,747 | 02/12/2010 09:25:39 | 269,495 | 02/09/2010 13:11:15 | 1 | 0 | Rewriting php in Grails - Totally stuck!!! | I have to re-write a few php pages in in Grails (don't ask why!). I have never done any php, so it's proving a little tricky.
Basically I have a html page which has a function in it that is executed every 60 seconds, and that .js creates a new XMLHttpRequest which then does xmlHttp.open("GET", "myphpfile.php", true);
I can get the .js to be called from the gsp no problem at all - but what on earth do I do with the php? I assume I could create a service which would do something similar, but can that be accessed from the .js?
Please help - I am totally stuck! | grails | php | javascript | null | null | 12/20/2011 06:18:29 | not a real question | Rewriting php in Grails - Totally stuck!!!
===
I have to re-write a few php pages in in Grails (don't ask why!). I have never done any php, so it's proving a little tricky.
Basically I have a html page which has a function in it that is executed every 60 seconds, and that .js creates a new XMLHttpRequest which then does xmlHttp.open("GET", "myphpfile.php", true);
I can get the .js to be called from the gsp no problem at all - but what on earth do I do with the php? I assume I could create a service which would do something similar, but can that be accessed from the .js?
Please help - I am totally stuck! | 1 |
9,060,804 | 01/30/2012 07:48:08 | 857,420 | 07/22/2011 06:52:10 | 1 | 0 | Column Level Locking in SQL SERVER 2008 | In SQL server i have a Table having 10 columns, i want to update a perticular column value,
& i want to put lock before updating by which others can not update same time. | sql | sql-server-2008 | null | null | null | 01/30/2012 10:31:27 | not a real question | Column Level Locking in SQL SERVER 2008
===
In SQL server i have a Table having 10 columns, i want to update a perticular column value,
& i want to put lock before updating by which others can not update same time. | 1 |
10,491,972 | 05/08/2012 02:56:46 | 1,295,057 | 03/27/2012 09:06:19 | 8 | 0 | How to configure ipv6 policy table in Linux | As we know, getaddrinfo() will return a set of addresses the system possesses. Policy table is used to sorting the address set, then the bind() will select the first one in the sorted address set.<br/><br/>
Solaris provides the command ***ipaddrsel*** for administrator to manage the policy table for customizing the address sorting. <br/><br/>
Is there any this sort of command in Linux? Or is there any other way for me to manage the policy table in Linux, like, where does the file of policy table locate? | linux | ipv6 | policy | null | null | 05/24/2012 03:47:07 | off topic | How to configure ipv6 policy table in Linux
===
As we know, getaddrinfo() will return a set of addresses the system possesses. Policy table is used to sorting the address set, then the bind() will select the first one in the sorted address set.<br/><br/>
Solaris provides the command ***ipaddrsel*** for administrator to manage the policy table for customizing the address sorting. <br/><br/>
Is there any this sort of command in Linux? Or is there any other way for me to manage the policy table in Linux, like, where does the file of policy table locate? | 2 |
10,979,928 | 06/11/2012 12:15:54 | 1,051,927 | 11/17/2011 13:48:43 | 1,015 | 50 | Decompiling Android apk | I have already compiled android application(.apk file).
I want to change it, to show splash screen before starting.
Can I do this without any source code? | android | reverse-engineering | null | null | null | 06/12/2012 12:41:46 | not a real question | Decompiling Android apk
===
I have already compiled android application(.apk file).
I want to change it, to show splash screen before starting.
Can I do this without any source code? | 1 |
9,042,516 | 01/28/2012 02:46:33 | 868,935 | 07/29/2011 07:55:08 | 29 | 0 | Java: How do I rewrite a latex formula to a format Java can understand? | An example is shown here:
https://encrypted-tbn2.google.com/images?q=tbn:ANd9GcQIfX05Ry1eGxqeNr8lkIuEaJyQHoYlQ_eLVXsJv7m2nI320p1V
Any tutorials/books on how to translate? | java | latex | formula | equation | null | 01/28/2012 02:57:56 | not a real question | Java: How do I rewrite a latex formula to a format Java can understand?
===
An example is shown here:
https://encrypted-tbn2.google.com/images?q=tbn:ANd9GcQIfX05Ry1eGxqeNr8lkIuEaJyQHoYlQ_eLVXsJv7m2nI320p1V
Any tutorials/books on how to translate? | 1 |
3,186,082 | 07/06/2010 12:17:34 | 324,831 | 04/24/2010 08:29:17 | 292 | 9 | javascript checking path already exists | how would i check if the file path already exists in javascript | asp.net | javascript | mvc | null | null | 07/06/2010 12:39:20 | not a real question | javascript checking path already exists
===
how would i check if the file path already exists in javascript | 1 |
10,842,684 | 05/31/2012 23:38:01 | 649,482 | 03/08/2011 08:23:16 | 415 | 5 | How to reproduce Flash effect with jQuery? | I'd like to reproduce [this flash effect][1] with jQuery. Could you please point me to some good tutorials or give me some pointers?
Thanks!
[1]: http://www.sopranowebdesign.com/animation/ | jquery | css | null | null | null | 06/05/2012 12:28:43 | not a real question | How to reproduce Flash effect with jQuery?
===
I'd like to reproduce [this flash effect][1] with jQuery. Could you please point me to some good tutorials or give me some pointers?
Thanks!
[1]: http://www.sopranowebdesign.com/animation/ | 1 |
1,240,970 | 08/06/2009 19:47:36 | 44,084 | 12/07/2008 12:12:53 | 9,151 | 263 | C : Why do you specify the size when using malloc ? | Take the following code :
int *p = malloc(2 * sizeof *p);
p[0] = 10; p[1] = 20; p[3] = 30;
printf("%d", *(p+2)); //Correctly prints 20
printf("%d", *(p+3)); //Also, correctly prints 30
//although I didn't allocate space for it
With the line `malloc(2 * sizeof *p)` I am allocating space for two integers, right ? But if I add an `int` to the third position, I still gets allocated correctly and retrievable.
So my question is, **why do you specify a size when you use `malloc`** ? | c | malloc | memory-management | memory-allocation | null | null | open | C : Why do you specify the size when using malloc ?
===
Take the following code :
int *p = malloc(2 * sizeof *p);
p[0] = 10; p[1] = 20; p[3] = 30;
printf("%d", *(p+2)); //Correctly prints 20
printf("%d", *(p+3)); //Also, correctly prints 30
//although I didn't allocate space for it
With the line `malloc(2 * sizeof *p)` I am allocating space for two integers, right ? But if I add an `int` to the third position, I still gets allocated correctly and retrievable.
So my question is, **why do you specify a size when you use `malloc`** ? | 0 |
11,668,562 | 07/26/2012 11:45:00 | 201,601 | 11/03/2009 11:33:55 | 1,175 | 32 | Devise integration with Facebook AppCenter | I have an application which integrates with facebook via oauth2 devise/warden/omniauth. Everything works find and I am happy with it.
Now I'm trying to integrate the app with the new facebook appcenter, which basically seems to resolve into getting the user _pre_ authenticated before he gest to my site.
Basically, the user ends on a url like
/?fb_appcenter=1&code=xxxxxx
but devise' omniauthcontroller is waiting on a different url, namely
/users/auth/facebook/callback
I tried to perform a simple redirect carrying over the code query parameter to the callback url, but I get an "invalid credentials" error.
I believe the issue may be that the redirect_uri used in the call to get an access_token within the oauth2 facebook strategy does not correspond to the one used by facebook itself to generate the initial code, but I have no idea on how I am supposed to change that.
Anyone has suggestions or has solved this in the past?
For what is worth, I'm using an old version of devise (1.4) and omniauth (0.3) but a hint of what the general direction should be, even if with newer versions, would be good enough. | ruby-on-rails | facebook | devise | omniauth | null | null | open | Devise integration with Facebook AppCenter
===
I have an application which integrates with facebook via oauth2 devise/warden/omniauth. Everything works find and I am happy with it.
Now I'm trying to integrate the app with the new facebook appcenter, which basically seems to resolve into getting the user _pre_ authenticated before he gest to my site.
Basically, the user ends on a url like
/?fb_appcenter=1&code=xxxxxx
but devise' omniauthcontroller is waiting on a different url, namely
/users/auth/facebook/callback
I tried to perform a simple redirect carrying over the code query parameter to the callback url, but I get an "invalid credentials" error.
I believe the issue may be that the redirect_uri used in the call to get an access_token within the oauth2 facebook strategy does not correspond to the one used by facebook itself to generate the initial code, but I have no idea on how I am supposed to change that.
Anyone has suggestions or has solved this in the past?
For what is worth, I'm using an old version of devise (1.4) and omniauth (0.3) but a hint of what the general direction should be, even if with newer versions, would be good enough. | 0 |
102,623 | 09/19/2008 15:08:58 | 18,939 | 09/19/2008 15:05:41 | 1 | 0 | How would you get the Sql Command objects for a Given TableAdaptor and SqlDataAdaptor in C# (.NET 2.0) | I am creating a generic error handling / logging class for our applications. The goal is to log the exception info, info about the class and function (as well as parameters) and if relevant, the information about the System.Data.SqlClient.SqlCommand object.
I would like to be able to handle passing in SqlCommands, TableAdaptors, and SqlDataAdaptors.
I am new to using reflection and I know that it is possible to do this, I am just not sure how to go about it. Please advise.
Thanks! | c# | sql | reflection | error-handling | exception | null | open | How would you get the Sql Command objects for a Given TableAdaptor and SqlDataAdaptor in C# (.NET 2.0)
===
I am creating a generic error handling / logging class for our applications. The goal is to log the exception info, info about the class and function (as well as parameters) and if relevant, the information about the System.Data.SqlClient.SqlCommand object.
I would like to be able to handle passing in SqlCommands, TableAdaptors, and SqlDataAdaptors.
I am new to using reflection and I know that it is possible to do this, I am just not sure how to go about it. Please advise.
Thanks! | 0 |
4,699,270 | 01/15/2011 11:20:52 | 188,398 | 10/12/2009 12:22:37 | 1 | 0 | How can i copy and paste slides as a picture in powerpoint using VBA? | I want to cut one slide and paste it as a picture in same presentation file(ppt).
I know that following VBA code are worked for copy&paste single slide.
ActivePresentation.Slides(1).Copy ''copy first slide into clipboard
ActivePresentation.Slides.Paste ''paste above slide as a last slide
What i want to know is paste slide as a "picture".
Is there any suggestion for this??
| vba | powerpoint | powerpoint-vba | null | null | null | open | How can i copy and paste slides as a picture in powerpoint using VBA?
===
I want to cut one slide and paste it as a picture in same presentation file(ppt).
I know that following VBA code are worked for copy&paste single slide.
ActivePresentation.Slides(1).Copy ''copy first slide into clipboard
ActivePresentation.Slides.Paste ''paste above slide as a last slide
What i want to know is paste slide as a "picture".
Is there any suggestion for this??
| 0 |
10,567,261 | 05/12/2012 20:40:44 | 418,366 | 08/12/2010 11:58:57 | 196 | 3 | How to access mosquitto server hosted on my pc | I am trying to Install Mosquitto server for MQTT on my windows system and then access it through my website. I followed the instructions given here http://tokudu.com/2010/how-to-implement-push-notifications-for-android/ and http://michaelconnors.net/article/462/hello-mqtt.
So far I can deploy the example for android using the tokudu's server and I have also managed to install mosquitto server on my local. When I try to start a Mosquitto_sub it works.
My problem is when I change the ip in send_mqqt.php to my ip to access the MQQT on my system, I get this error - fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to 82.35.160.123:1883 (Connection timed out).
I am not sure which IP I should use.
Apologies If I am not making any sense or my question is unclear. | ip | null | null | null | null | 05/13/2012 04:12:42 | off topic | How to access mosquitto server hosted on my pc
===
I am trying to Install Mosquitto server for MQTT on my windows system and then access it through my website. I followed the instructions given here http://tokudu.com/2010/how-to-implement-push-notifications-for-android/ and http://michaelconnors.net/article/462/hello-mqtt.
So far I can deploy the example for android using the tokudu's server and I have also managed to install mosquitto server on my local. When I try to start a Mosquitto_sub it works.
My problem is when I change the ip in send_mqqt.php to my ip to access the MQQT on my system, I get this error - fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to 82.35.160.123:1883 (Connection timed out).
I am not sure which IP I should use.
Apologies If I am not making any sense or my question is unclear. | 2 |
7,817,996 | 10/19/2011 07:38:47 | 943,793 | 04/22/2011 08:15:39 | 1 | 0 | Delphi & Fastreport | In CodeGear™ Delphi® 2009 Version 12.0.3170.16989 I install Fast Report 4.8 ,and create some repoerts, In My application I use these reports like this:
myfrxReport.ShowReport();
Now Some users want to edit report page,So I use frxDesigner.
But my problem is this : "How can I save users changes ?"
(Excuse me for My bad English writting) | delphi | fastreport | null | null | null | null | open | Delphi & Fastreport
===
In CodeGear™ Delphi® 2009 Version 12.0.3170.16989 I install Fast Report 4.8 ,and create some repoerts, In My application I use these reports like this:
myfrxReport.ShowReport();
Now Some users want to edit report page,So I use frxDesigner.
But my problem is this : "How can I save users changes ?"
(Excuse me for My bad English writting) | 0 |
6,459,726 | 06/23/2011 19:43:55 | 754,161 | 05/15/2011 02:45:20 | 36 | 1 | Java; NIO - reading large amounts of data from a SocketChannel | I am writing a very simple networking library that I can use for my other projects in the future. Right now, I am having trouble handling reading operations. I have a class that is responsible for handling events from SocketChannels, and it also contains the input and output buffers. To initialize a buffer, you need to define the size of it. So by default, all the buffers are 1024 bytes in size.
The problem that I have is, if I read a packet that is larger than 1024 bytes, I will get an exception. This could be fixed by allocating an even larger buffer by default (2048 bytes, instead of 1024, for example) but that seems like the easy way out, and I particularly don't like that solution.
The solution that I came up with was creating a very large, direct, static buffer (it is Short.MAX_VALUE large). All data from SocketChannels would be read into the large buffer, and then copied over into the smaller buffers (and the buffers are expanded, if they cannot fit the data).
I am just worried that there might be a large cost of constantly clearing and putting data into the large 'carry-over' buffer. I would love it if there was something like SocketChannel.available(), but the only closest alternative is Socket.getInputStream().available(), but that method blocks. That way I would expand the input buffer (not the large one) if there is more available data than the buffer can fit. Unfortunately, I cannot - so the only solution that I can think of is the one I mentioned above.
I have come here to ask ... do any of you wise people have a possibly better solution to the problem? Also, I don't want to use an external library - it's just personal preference.
Thanks a lot in advance! | java | nio | socketchannel | null | null | 06/24/2011 02:12:47 | not a real question | Java; NIO - reading large amounts of data from a SocketChannel
===
I am writing a very simple networking library that I can use for my other projects in the future. Right now, I am having trouble handling reading operations. I have a class that is responsible for handling events from SocketChannels, and it also contains the input and output buffers. To initialize a buffer, you need to define the size of it. So by default, all the buffers are 1024 bytes in size.
The problem that I have is, if I read a packet that is larger than 1024 bytes, I will get an exception. This could be fixed by allocating an even larger buffer by default (2048 bytes, instead of 1024, for example) but that seems like the easy way out, and I particularly don't like that solution.
The solution that I came up with was creating a very large, direct, static buffer (it is Short.MAX_VALUE large). All data from SocketChannels would be read into the large buffer, and then copied over into the smaller buffers (and the buffers are expanded, if they cannot fit the data).
I am just worried that there might be a large cost of constantly clearing and putting data into the large 'carry-over' buffer. I would love it if there was something like SocketChannel.available(), but the only closest alternative is Socket.getInputStream().available(), but that method blocks. That way I would expand the input buffer (not the large one) if there is more available data than the buffer can fit. Unfortunately, I cannot - so the only solution that I can think of is the one I mentioned above.
I have come here to ask ... do any of you wise people have a possibly better solution to the problem? Also, I don't want to use an external library - it's just personal preference.
Thanks a lot in advance! | 1 |
4,404,541 | 12/10/2010 00:24:58 | 191,083 | 02/11/2009 21:04:26 | 774 | 35 | Multiple asterisks in wildcard certificate | Is it possible to get a wildcard certificate with more than one asterisk?
For example, would this work?
- \*.\*.example.com
Or can we generate a certificate with only one leading asterisk, such as \*.example.com?
| ssl | ssl-certificate | wildcard | wildcard-subdomain | null | 01/19/2011 14:20:27 | off topic | Multiple asterisks in wildcard certificate
===
Is it possible to get a wildcard certificate with more than one asterisk?
For example, would this work?
- \*.\*.example.com
Or can we generate a certificate with only one leading asterisk, such as \*.example.com?
| 2 |
9,372,643 | 02/21/2012 05:29:01 | 334,133 | 05/06/2010 06:20:41 | 82 | 2 | Backbone-localstorage doesn't work with require.js | I'm trying to add localstorage to my collections in backbone.js, but for some reason, require.js wont load it.
Here's what is in the main.js file that require.js loads:
require.config({
paths: {
'jquery': 'libs/jquery/jquery-1.7.1.min',
'underscore': 'libs/underscore/underscore-min',
'backbone': 'libs/backbone/backbone-min',
'backbone-localstorage': 'libs/backbone-localstorage/backbone-localstorage-min',
'text': 'libs/require/text'
}
});
You can see the full source at https://github.com/tominated/Vendotron. I can tell it's not loading because when I put the localstorage snippet into my collection, it errors out in chrome's console saying that Store isn't defined.
Any idea what I'm doing wrong? | backbone.js | requirejs | null | null | null | null | open | Backbone-localstorage doesn't work with require.js
===
I'm trying to add localstorage to my collections in backbone.js, but for some reason, require.js wont load it.
Here's what is in the main.js file that require.js loads:
require.config({
paths: {
'jquery': 'libs/jquery/jquery-1.7.1.min',
'underscore': 'libs/underscore/underscore-min',
'backbone': 'libs/backbone/backbone-min',
'backbone-localstorage': 'libs/backbone-localstorage/backbone-localstorage-min',
'text': 'libs/require/text'
}
});
You can see the full source at https://github.com/tominated/Vendotron. I can tell it's not loading because when I put the localstorage snippet into my collection, it errors out in chrome's console saying that Store isn't defined.
Any idea what I'm doing wrong? | 0 |
8,998,662 | 01/25/2012 06:19:41 | 1,168,358 | 01/25/2012 02:14:24 | 1 | 0 | CMS or no CMS — Advice Needed | I’m building a website for a restaurant. HTML5, CSS3/SASS, some light jQuery stuff for animations, etc. It’s all hand-coded and very lean and clean.
The menu and the music schedule change quite frequently, so naturally the client wants to be able to edit that stuff themselves. This is where I run into a dilemma. While I’m very comfortable with HTML and CSS I am not a developer. I tried hacking together a PHP thing that would get data from an XML file and spit out pretty HTML. The idea was to write an extremely minimalist CMS that would let them edit the XML data values, but not the structure. So they would be able to, for example, change the price on a menu item, edit the description, add a new dish to the menu or remove an old one, but they wouldn’t be able to change the way any of it looked or even the way the XML file was structured.
I asked a question on here as to whether that would be possible and got two answers suggesting I go with a CMS like Drupal, given that my solution involved too many unanticipated issues like versioning, authentication, bad XML and unsafe data. I really wouldn’t need versioning, and I was planning on handling authentication via .htpasswd on a subdomain, but the latter two do present real problems.
Before I go ahead and dive into cramming PHP and losing sleep over the next week, is it really better to go with a CMS?
My primary concern is, like I said, I really don’t want the client to have **any** control over the presentation, or even the structure of the data. I just want them to be able to easily and quickly edit the values. That’s it. My secondary concern is that the website has its own internal structure that is clean, logical, and streamlined. I don’t want to make it conform to the confines of a platform like WordPress or Drupal, and I certainly don’t want the overhead and clutter of all the ‘features’ that these platforms force upon you. There will be no blogs, and my agreement with the client is such that I would take care of any updates that go beyond editing prices, musicians’ names and dates of performances, etc.
Which way should I go:
1. Try and hack together a proprietary solution? If so, is XML and PHP the best way to go?
2. Go with a CMS? Which is the most dictator-like ;) with regards to its attitude to the client, in line with what I mentioned above? | php | content-management-system | null | null | null | 01/25/2012 07:31:43 | not constructive | CMS or no CMS — Advice Needed
===
I’m building a website for a restaurant. HTML5, CSS3/SASS, some light jQuery stuff for animations, etc. It’s all hand-coded and very lean and clean.
The menu and the music schedule change quite frequently, so naturally the client wants to be able to edit that stuff themselves. This is where I run into a dilemma. While I’m very comfortable with HTML and CSS I am not a developer. I tried hacking together a PHP thing that would get data from an XML file and spit out pretty HTML. The idea was to write an extremely minimalist CMS that would let them edit the XML data values, but not the structure. So they would be able to, for example, change the price on a menu item, edit the description, add a new dish to the menu or remove an old one, but they wouldn’t be able to change the way any of it looked or even the way the XML file was structured.
I asked a question on here as to whether that would be possible and got two answers suggesting I go with a CMS like Drupal, given that my solution involved too many unanticipated issues like versioning, authentication, bad XML and unsafe data. I really wouldn’t need versioning, and I was planning on handling authentication via .htpasswd on a subdomain, but the latter two do present real problems.
Before I go ahead and dive into cramming PHP and losing sleep over the next week, is it really better to go with a CMS?
My primary concern is, like I said, I really don’t want the client to have **any** control over the presentation, or even the structure of the data. I just want them to be able to easily and quickly edit the values. That’s it. My secondary concern is that the website has its own internal structure that is clean, logical, and streamlined. I don’t want to make it conform to the confines of a platform like WordPress or Drupal, and I certainly don’t want the overhead and clutter of all the ‘features’ that these platforms force upon you. There will be no blogs, and my agreement with the client is such that I would take care of any updates that go beyond editing prices, musicians’ names and dates of performances, etc.
Which way should I go:
1. Try and hack together a proprietary solution? If so, is XML and PHP the best way to go?
2. Go with a CMS? Which is the most dictator-like ;) with regards to its attitude to the client, in line with what I mentioned above? | 4 |
9,657,535 | 03/11/2012 18:13:24 | 1,262,671 | 03/11/2012 18:12:17 | 1 | 0 | Lucene.NET search from multi indexes | I am still very new to Lucene.Net, so I will be pleased if you can help me get started.
I am aware that Lucene is working with index, and index might similar to table in mysql fashion (is this correct?)
So, if this is correct from what i am understanding, how can i search within multiple indexes?
for sql query:
SELECT u.blog_name
FROM users AS e, blogs AS b
WHERE b.user_id = e.user_id
how can i do this in Lucene.Net?
| lucene.net | null | null | null | null | 03/12/2012 20:34:01 | not a real question | Lucene.NET search from multi indexes
===
I am still very new to Lucene.Net, so I will be pleased if you can help me get started.
I am aware that Lucene is working with index, and index might similar to table in mysql fashion (is this correct?)
So, if this is correct from what i am understanding, how can i search within multiple indexes?
for sql query:
SELECT u.blog_name
FROM users AS e, blogs AS b
WHERE b.user_id = e.user_id
how can i do this in Lucene.Net?
| 1 |
2,422,277 | 03/11/2010 03:13:20 | 264,912 | 02/03/2010 02:37:44 | 11 | 0 | what reasons could there be for converting perl to java | I've seen some jobs around that revolve around converting perl scripts to Java. what are the benefits of this? | perl | null | null | null | null | null | open | what reasons could there be for converting perl to java
===
I've seen some jobs around that revolve around converting perl scripts to Java. what are the benefits of this? | 0 |
11,274,256 | 06/30/2012 12:59:26 | 1,276,473 | 03/18/2012 03:14:08 | 280 | 0 | Inline assembly errors: junk `-4(%ebp)' after register | GCC tells junk `-4(%ebp)' after register errors for my following codes:
static __inline__ int xchg_asm(int* lock, int val)
{
int ret;
__asm__ __volatile__(
LOCK "movl %1,%%eax; xchg (%1),%2 ; movl %%eax %0"
:"=m" (ret)
:"d"(lock), "c"(val));
return ret;
}
I can't see how to modify it. | assembly | linux-kernel | kernel | inline-assembly | null | null | open | Inline assembly errors: junk `-4(%ebp)' after register
===
GCC tells junk `-4(%ebp)' after register errors for my following codes:
static __inline__ int xchg_asm(int* lock, int val)
{
int ret;
__asm__ __volatile__(
LOCK "movl %1,%%eax; xchg (%1),%2 ; movl %%eax %0"
:"=m" (ret)
:"d"(lock), "c"(val));
return ret;
}
I can't see how to modify it. | 0 |
1,982,051 | 12/30/2009 19:44:40 | 177,883 | 09/23/2009 15:35:15 | 482 | 32 | Book Recommendation on Graph Theory | I m sorry this obviously is not a programming questions, hope it s fine.
Can you please recommend a book on graph theory?
Not a very complicated book, with good explanations and examples.
I have already read CLRS and Algorithm Manual.
Thanks. | algorithm | graph | null | null | null | 09/17/2011 22:44:08 | off topic | Book Recommendation on Graph Theory
===
I m sorry this obviously is not a programming questions, hope it s fine.
Can you please recommend a book on graph theory?
Not a very complicated book, with good explanations and examples.
I have already read CLRS and Algorithm Manual.
Thanks. | 2 |
11,344,201 | 07/05/2012 12:18:58 | 147,058 | 07/29/2009 12:17:48 | 818 | 22 | Grails: What causes ArrayIndexOutOfBoundsException in NameRegistry.getIdFor? | I get the following stacktrace in a Grails 2.0.4 Application:
java.lang.ArrayIndexOutOfBoundsException: 6170
at com.springsource.loaded.NameRegistry.getIdFor(NameRegistry.java:44)
at com.springsource.loaded.NameRegistry.getIdOrAllocateFor(NameRegistry.java:59)
at com.springsource.loaded.TypeRegistry.getTypeIdFor(TypeRegistry.java:756)
at com.springsource.loaded.MethodInvokerRewriter$RewriteClassAdaptor$RewritingMethodAdapter.rewritePUTSTATIC(MethodInvokerRewriter.java:789)
at com.springsource.loaded.MethodInvokerRewriter$RewriteClassAdaptor$RewritingMethodAdapter.visitFieldInsn(MethodInvokerRewriter.java:708)
at sl.org.objectweb.asm.ClassReader.accept(Unknown Source)
at sl.org.objectweb.asm.ClassReader.accept(Unknown Source)
at com.springsource.loaded.MethodInvokerRewriter.rewrite(MethodInvokerRewriter.java:280)
at com.springsource.loaded.MethodInvokerRewriter.rewrite(MethodInvokerRewriter.java:83)
at com.springsource.loaded.TypeRegistry.methodCallRewrite(TypeRegistry.java:767)
at com.springsource.loaded.agent.ModifyDefineInClassLoaderForClassArtifactsType.modify(ModifyDefineInClassLoaderForClassArtifactsType.java:77)
at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.define(ClassLoaderForClassArtifacts.java)
at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:86)
at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:84)
at java.security.AccessController.doPrivileged(Native Method)
at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.defineClassAndGetConstructor(ClassLoaderForClassArtifacts.java:84)
at org.codehaus.groovy.runtime.callsite.CallSiteGenerator.compilePogoMethod(CallSiteGenerator.java:217)
at org.codehaus.groovy.reflection.CachedMethod.createPogoMetaMethodSite(CachedMethod.java:228)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createCachedMethodSite(PogoMetaMethodSite.java:207)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createPogoMetaMethodSite(PogoMetaMethodSite.java:183)
at groovy.lang.MetaClassImpl.createPogoCallCurrentSite(MetaClassImpl.java:3022)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallCurrentSite(CallSiteArray.java:95)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
< actual call site in my code, some method call to the same service the original method is in>
Apparently my google-Fu has lost me, or nobody has ever had that problem before. Not even searching for just `com.springsource.loaded.NameRegistry` yields any results.
The problem usually goes away after trying the same operation a few times more, but that is hardly a solution.
Any hints on what I could look for?
My wild guess is that Spring is proxying the method I am trying to call, and somehow fails to look it up in its own registry. How can that be my fault? | java | spring | grails | groovy | null | null | open | Grails: What causes ArrayIndexOutOfBoundsException in NameRegistry.getIdFor?
===
I get the following stacktrace in a Grails 2.0.4 Application:
java.lang.ArrayIndexOutOfBoundsException: 6170
at com.springsource.loaded.NameRegistry.getIdFor(NameRegistry.java:44)
at com.springsource.loaded.NameRegistry.getIdOrAllocateFor(NameRegistry.java:59)
at com.springsource.loaded.TypeRegistry.getTypeIdFor(TypeRegistry.java:756)
at com.springsource.loaded.MethodInvokerRewriter$RewriteClassAdaptor$RewritingMethodAdapter.rewritePUTSTATIC(MethodInvokerRewriter.java:789)
at com.springsource.loaded.MethodInvokerRewriter$RewriteClassAdaptor$RewritingMethodAdapter.visitFieldInsn(MethodInvokerRewriter.java:708)
at sl.org.objectweb.asm.ClassReader.accept(Unknown Source)
at sl.org.objectweb.asm.ClassReader.accept(Unknown Source)
at com.springsource.loaded.MethodInvokerRewriter.rewrite(MethodInvokerRewriter.java:280)
at com.springsource.loaded.MethodInvokerRewriter.rewrite(MethodInvokerRewriter.java:83)
at com.springsource.loaded.TypeRegistry.methodCallRewrite(TypeRegistry.java:767)
at com.springsource.loaded.agent.ModifyDefineInClassLoaderForClassArtifactsType.modify(ModifyDefineInClassLoaderForClassArtifactsType.java:77)
at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.define(ClassLoaderForClassArtifacts.java)
at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:86)
at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:84)
at java.security.AccessController.doPrivileged(Native Method)
at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.defineClassAndGetConstructor(ClassLoaderForClassArtifacts.java:84)
at org.codehaus.groovy.runtime.callsite.CallSiteGenerator.compilePogoMethod(CallSiteGenerator.java:217)
at org.codehaus.groovy.reflection.CachedMethod.createPogoMetaMethodSite(CachedMethod.java:228)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createCachedMethodSite(PogoMetaMethodSite.java:207)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.createPogoMetaMethodSite(PogoMetaMethodSite.java:183)
at groovy.lang.MetaClassImpl.createPogoCallCurrentSite(MetaClassImpl.java:3022)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallCurrentSite(CallSiteArray.java:95)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
< actual call site in my code, some method call to the same service the original method is in>
Apparently my google-Fu has lost me, or nobody has ever had that problem before. Not even searching for just `com.springsource.loaded.NameRegistry` yields any results.
The problem usually goes away after trying the same operation a few times more, but that is hardly a solution.
Any hints on what I could look for?
My wild guess is that Spring is proxying the method I am trying to call, and somehow fails to look it up in its own registry. How can that be my fault? | 0 |
3,580,063 | 08/26/2010 22:29:11 | 408,089 | 08/01/2010 19:31:03 | 48 | 0 | How to center a textarea using CSS? | Forgive me for asking such a simple question, I'm new to both HTML and CSS.
Is there an easy way to center a textarea? I figured I'd just try using
textarea{
margin-left: auto;
margin-right: auto;
}
but it (obviously?) didn't work.
Help would be much appreciated :-) | html | css | textarea | center | null | null | open | How to center a textarea using CSS?
===
Forgive me for asking such a simple question, I'm new to both HTML and CSS.
Is there an easy way to center a textarea? I figured I'd just try using
textarea{
margin-left: auto;
margin-right: auto;
}
but it (obviously?) didn't work.
Help would be much appreciated :-) | 0 |
1,733,464 | 11/14/2009 06:18:50 | 210,927 | 11/14/2009 06:18:50 | 1 | 0 | What does this mean exactly? $_SESSION['sessionName '][$item['rowName ']] | And how does it translate to in C#?
$item holds the results from mysql_fetch_array()
I'm not really familiar with PHP so this is all new to me. Thanks. | c# | asp.net | php | session | null | null | open | What does this mean exactly? $_SESSION['sessionName '][$item['rowName ']]
===
And how does it translate to in C#?
$item holds the results from mysql_fetch_array()
I'm not really familiar with PHP so this is all new to me. Thanks. | 0 |
8,868,903 | 01/15/2012 10:05:52 | 876,603 | 08/03/2011 12:31:34 | 1 | 0 | Android - can low rating on one app affect other apps from same developer | If a developer published 2 apps on the android market, and one of them has very (very) low rating on the market, can that affect the SEO of the second app? | android | application | seo | rating | null | 01/15/2012 12:17:08 | off topic | Android - can low rating on one app affect other apps from same developer
===
If a developer published 2 apps on the android market, and one of them has very (very) low rating on the market, can that affect the SEO of the second app? | 2 |
9,139,346 | 02/04/2012 07:51:28 | 931,986 | 09/07/2011 04:37:40 | 165 | 19 | how to get parent and child id from mysql | i have table tbl_page:
id (int)
page_name (varchar)
parent_id (int)
now i want to display tree like that. . .
First parent
- fchild
- schild
second parent
- fchild
so, how to query, and after that how to display in php
| php | treeview | null | null | null | 03/15/2012 16:13:01 | not a real question | how to get parent and child id from mysql
===
i have table tbl_page:
id (int)
page_name (varchar)
parent_id (int)
now i want to display tree like that. . .
First parent
- fchild
- schild
second parent
- fchild
so, how to query, and after that how to display in php
| 1 |
7,429,870 | 09/15/2011 11:15:17 | 946,602 | 09/15/2011 10:52:25 | 1 | 0 | set up inbound routing on Windows 2003 server | I have a problem I thought I will find a lot of answers for, but at the end it seems that somehow this topic is nowhere covered.
Here is what I want to achieve:<br>
I have a Mac running VMWare Fusion, and in this VMW environment I installed and started several machines. They all are in VMW defined with host only NIC, which means that they "live" in a separated network environment (192.168.0.0).
My Mac is in net 192.168.1.0<br>
What I wanted is to setup one virtual Machine as a router between two networks so that the virtual machines can go "out" and my Mac can go "in", because I want to ssh into some of the virtual Linuxes.<br>
So I took one Windows2003, added another NIC to it, set that new NIC into the 192.168.1.0 net with IP 192.168.1.59 and ran the "routing and remote access" setup, and managed to make the "way out" work, so all the machines from the virtual env can use this router Machine as a gateway to the 192.168.1.0 net and on.<br>
On my mac I added a new route with "route add" and set for net 192.168.0.0 the gateway address to the second NIC of the Windows2003 (192.168.1.59). And when I ping something on the 192.168.0.0 I see the 192.168.1.59 NIC receiving the packets, but these do not get forwarded to NIC 192.168.0.1, so I guess the inbound routing is not active. Can somebody point me to an article which would explain me how to activate it? I found many RAS and VPN article, with dial up lines and such, but nothing for simple LAN-LAN routing. Thanks in advance, Zsolt | windows | routing | vmware-fusion | null | null | 09/15/2011 22:21:58 | off topic | set up inbound routing on Windows 2003 server
===
I have a problem I thought I will find a lot of answers for, but at the end it seems that somehow this topic is nowhere covered.
Here is what I want to achieve:<br>
I have a Mac running VMWare Fusion, and in this VMW environment I installed and started several machines. They all are in VMW defined with host only NIC, which means that they "live" in a separated network environment (192.168.0.0).
My Mac is in net 192.168.1.0<br>
What I wanted is to setup one virtual Machine as a router between two networks so that the virtual machines can go "out" and my Mac can go "in", because I want to ssh into some of the virtual Linuxes.<br>
So I took one Windows2003, added another NIC to it, set that new NIC into the 192.168.1.0 net with IP 192.168.1.59 and ran the "routing and remote access" setup, and managed to make the "way out" work, so all the machines from the virtual env can use this router Machine as a gateway to the 192.168.1.0 net and on.<br>
On my mac I added a new route with "route add" and set for net 192.168.0.0 the gateway address to the second NIC of the Windows2003 (192.168.1.59). And when I ping something on the 192.168.0.0 I see the 192.168.1.59 NIC receiving the packets, but these do not get forwarded to NIC 192.168.0.1, so I guess the inbound routing is not active. Can somebody point me to an article which would explain me how to activate it? I found many RAS and VPN article, with dial up lines and such, but nothing for simple LAN-LAN routing. Thanks in advance, Zsolt | 2 |
8,933,195 | 01/19/2012 21:00:07 | 682,485 | 03/29/2011 16:44:18 | 16 | 0 | Charge distribution in a lattice | I'm given a lattice with particles having charges which have known magnitude but unknown signs.The primary aim is to stabilize the lattice(or decrease the force acting on the system) by assigning signs to the charges so that the sum of the products of neighboring charges is minimum , ie i'll take products of charges of each particle with its neighbor and take the sum across the whole crystal (a pair is considered only once) . So my aim is to assign +ve/-ve signs to the charges in crystal to minimize the total force on the crystal . the smaller the value of force(in negative side as well), the more stabilised the crystal . For simplification i've assumed a square lattice represented by a matrix , where north,south,east and west particles are neighbors | matrix | mathematical-optimization | null | null | null | 01/20/2012 17:33:37 | off topic | Charge distribution in a lattice
===
I'm given a lattice with particles having charges which have known magnitude but unknown signs.The primary aim is to stabilize the lattice(or decrease the force acting on the system) by assigning signs to the charges so that the sum of the products of neighboring charges is minimum , ie i'll take products of charges of each particle with its neighbor and take the sum across the whole crystal (a pair is considered only once) . So my aim is to assign +ve/-ve signs to the charges in crystal to minimize the total force on the crystal . the smaller the value of force(in negative side as well), the more stabilised the crystal . For simplification i've assumed a square lattice represented by a matrix , where north,south,east and west particles are neighbors | 2 |
284,709 | 11/12/2008 17:39:34 | 6,399 | 09/15/2008 09:03:18 | 133 | 11 | Error 4005 Forms authentication failed - ticket supplied has expired | Aloha
I'm running a website using ASP.NET 2.0. Every now and then (10+ times per day on 100+ users daily) I receive this error: Forms authentication failed - ticket supplied has expired.
Here's my web.config snippet:
<authentication mode="Forms">
<forms name=".CLLSAUTH" loginUrl="login.aspx" protection="All" path="/" timeout="60" />
</authentication>
I've looked at several solutions, someone mentioned the session timeout, but it's also 60 minutes in my config. Two more things, I'm not running a webfarm, and the app is not being recycled around the time the error occurs.
Any clues?
-Edoode | asp.net | forms | authentication | asp.net-2.0 | null | 12/02/2008 14:07:59 | off topic | Error 4005 Forms authentication failed - ticket supplied has expired
===
Aloha
I'm running a website using ASP.NET 2.0. Every now and then (10+ times per day on 100+ users daily) I receive this error: Forms authentication failed - ticket supplied has expired.
Here's my web.config snippet:
<authentication mode="Forms">
<forms name=".CLLSAUTH" loginUrl="login.aspx" protection="All" path="/" timeout="60" />
</authentication>
I've looked at several solutions, someone mentioned the session timeout, but it's also 60 minutes in my config. Two more things, I'm not running a webfarm, and the app is not being recycled around the time the error occurs.
Any clues?
-Edoode | 2 |
11,463,013 | 07/13/2012 01:39:00 | 1,318,135 | 04/06/2012 19:33:11 | 13 | 0 | Are any HTML preprocessors worth it? | Haml doesn't seem like it would save time really. I find LESS amazing for CSS, and would love something that included variables like LESS does but for HTML. | html | html5 | preprocessor | null | null | 07/13/2012 01:41:59 | not constructive | Are any HTML preprocessors worth it?
===
Haml doesn't seem like it would save time really. I find LESS amazing for CSS, and would love something that included variables like LESS does but for HTML. | 4 |
4,865,046 | 02/01/2011 16:18:26 | 438,168 | 09/02/2010 16:14:38 | 137 | 0 | what's the fastest winforms datagrid? | I'm currently using a Infragistic UltraGrid and it struggles to handle 500 cell updates per second i.e. the GUI is jerky and slow.
What's the fastest winforms grid on the market? I need a grid that can handle 1000 cell updates per second on a high-spec quad-core 32-bit xp machine with 4 gb on RAM.
Thanks
| c# | winforms | datagrid | infragistics | null | 02/02/2011 14:49:31 | not a real question | what's the fastest winforms datagrid?
===
I'm currently using a Infragistic UltraGrid and it struggles to handle 500 cell updates per second i.e. the GUI is jerky and slow.
What's the fastest winforms grid on the market? I need a grid that can handle 1000 cell updates per second on a high-spec quad-core 32-bit xp machine with 4 gb on RAM.
Thanks
| 1 |
8,841,379 | 01/12/2012 19:52:28 | 1,002,972 | 10/19/2011 10:52:29 | 229 | 3 | What to store on SVN? | What do you think has to be kept on SVN when working in Java with Eclipse and Maven?
Why?
I'm talking about the Eclipse specific files, Maven files, and other files.
This question is general and applies to all version control system.
Thanks | svn | version-control | null | null | null | 01/13/2012 03:14:29 | not a real question | What to store on SVN?
===
What do you think has to be kept on SVN when working in Java with Eclipse and Maven?
Why?
I'm talking about the Eclipse specific files, Maven files, and other files.
This question is general and applies to all version control system.
Thanks | 1 |
5,806,758 | 04/27/2011 15:41:31 | 627,330 | 02/21/2011 21:35:07 | 1 | 0 | Delegate methods not fired | Any problems I can think of is checked out, but still the delegate methods won't fire. I have declared a protocol called SocketDelegate in `Socket.h`:
@protocol SocketDelegate <NSObject>
@optional
- (void)socket:(Socket *)socket handleNewConnection:(NSString *)test;
- (void)socket:(Socket *)socket didSend:(BOOL)didSend;
- (void)socket:(Socket *)socket didReceive:(BOOL)didReceive;
@end
@interface Socket {
id<SocketDelegate> delegate;
}
@property(nonatomic,assign) id<SocketDelegate> delegate;
@end
Now, in `Socket.m`, the delegate is notified with success/error of a sent/received file:
@implementation Socket
- (void)stopSendWithStatus:(NSString *)statusString {
[self.delegate socket:self didSend:isSent];
}
- (void)stopReceiveWithStatus:(NSString *)statusString {
[self.delegate socket:self didReceive:isReceived];
}
@end
`ViewController.h` conforms to the delegate:
@interface ViewController <SocketDelegate>
and in `ViewController.m`, I set the delegate through a `NetController` class that link Socket and ViewController together. and I implement the delegate methods:
@implementation ViewController
- (void)viewDidLoad {
netController = [[NetController alloc] init];
[[netController socket] setDelegate:self];
}
@end
@implementation ViewController (SocketDelegate)
- (void)socket:(Socket *)socket didSend:(BOOL)didSend {
NSLog(@"didSend %@", didSend); // Nothing happens...
}
- (void)socket:(Socket *)socket didReceive:(BOOL)didReceive {
NSLog(@"didReceive %@", didReceive); // Nothing happens...
}
@end
Also, I have tried to set the delegate other places than viewDidLoad inside ViewController.m, but it have no effect. Ofcourse I have no compiler errors, and no runtime errors... What is going wrong in my code? | cocoa | cocoa-touch | delegates | null | null | null | open | Delegate methods not fired
===
Any problems I can think of is checked out, but still the delegate methods won't fire. I have declared a protocol called SocketDelegate in `Socket.h`:
@protocol SocketDelegate <NSObject>
@optional
- (void)socket:(Socket *)socket handleNewConnection:(NSString *)test;
- (void)socket:(Socket *)socket didSend:(BOOL)didSend;
- (void)socket:(Socket *)socket didReceive:(BOOL)didReceive;
@end
@interface Socket {
id<SocketDelegate> delegate;
}
@property(nonatomic,assign) id<SocketDelegate> delegate;
@end
Now, in `Socket.m`, the delegate is notified with success/error of a sent/received file:
@implementation Socket
- (void)stopSendWithStatus:(NSString *)statusString {
[self.delegate socket:self didSend:isSent];
}
- (void)stopReceiveWithStatus:(NSString *)statusString {
[self.delegate socket:self didReceive:isReceived];
}
@end
`ViewController.h` conforms to the delegate:
@interface ViewController <SocketDelegate>
and in `ViewController.m`, I set the delegate through a `NetController` class that link Socket and ViewController together. and I implement the delegate methods:
@implementation ViewController
- (void)viewDidLoad {
netController = [[NetController alloc] init];
[[netController socket] setDelegate:self];
}
@end
@implementation ViewController (SocketDelegate)
- (void)socket:(Socket *)socket didSend:(BOOL)didSend {
NSLog(@"didSend %@", didSend); // Nothing happens...
}
- (void)socket:(Socket *)socket didReceive:(BOOL)didReceive {
NSLog(@"didReceive %@", didReceive); // Nothing happens...
}
@end
Also, I have tried to set the delegate other places than viewDidLoad inside ViewController.m, but it have no effect. Ofcourse I have no compiler errors, and no runtime errors... What is going wrong in my code? | 0 |
9,216,093 | 02/09/2012 17:52:21 | 440,611 | 09/06/2010 12:01:52 | 731 | 17 | Align text in the middle vertically and put divs next to eachother | I just want to align my text vertically relative to the picture and put all the content inline instead of block-like. I've been using fixed position and margin-top to achieve that but it is very bad method, I think there should be way better.
Since jsFiddle is down here is some other similar site with my code.
http://www.cssdesk.com/muEnL | html | css | null | null | null | null | open | Align text in the middle vertically and put divs next to eachother
===
I just want to align my text vertically relative to the picture and put all the content inline instead of block-like. I've been using fixed position and margin-top to achieve that but it is very bad method, I think there should be way better.
Since jsFiddle is down here is some other similar site with my code.
http://www.cssdesk.com/muEnL | 0 |
6,302,533 | 06/10/2011 05:57:41 | 670,834 | 03/22/2011 08:32:38 | 573 | 31 | How to develop a online game for android? | <br> I want to develop a simple tic tac toe application which enables two player option using internet. Simply saying that a online Tic tac toe game. <br><br> Now all i want to know is **How can i start with it?** <br><br> **Wat should i use?** Any tutorials or sample available?.
<br><br> **Either TCP/UDP or HTTP connection.** I dont have clear knowledge about tat. I heard something about *GoogleAppEngine*. How can i use that..<br><br> Some tutorials and samples will be very useful..
<br><br>Thanks a ton | android | online | null | null | null | 06/10/2011 09:10:25 | not a real question | How to develop a online game for android?
===
<br> I want to develop a simple tic tac toe application which enables two player option using internet. Simply saying that a online Tic tac toe game. <br><br> Now all i want to know is **How can i start with it?** <br><br> **Wat should i use?** Any tutorials or sample available?.
<br><br> **Either TCP/UDP or HTTP connection.** I dont have clear knowledge about tat. I heard something about *GoogleAppEngine*. How can i use that..<br><br> Some tutorials and samples will be very useful..
<br><br>Thanks a ton | 1 |
11,062,540 | 06/16/2012 10:09:52 | 1,322,296 | 04/09/2012 16:41:24 | 37 | 0 | mapply over two lists | I recentely asked a question about using an `apply` function over two lists. Each list is a list of data frames. For each time the function runs I want to take vectors from the first element (a dataframe) in `mylist1` and some vectors from the first element (a dataframe) in `mylist2` and regress them against each other. Then move onto the next `mylist1` element and `mylist2` element. Effectively the function takes two lists with the same number of elements and takes a pair (one from each list) and plays about with them.
I tried the following, but the results I get are bot what I want:
a1<-c(1:5,rep(0,5))
a2<-c(1:5,10:6)
b2<-c(rep(100,5),rep(50,5))
z<-c(rep("part1",5),rep("part2",5))
df1<-data.frame(a1,z)
df2<-data.frame(a2,b2,z)
mylist1<-split(df1,z)
mylist2<-split(df2,z)
myfunction<-function(x,y)
{
meana <- mean(x$a)
meanb <- mean(y$b)
model<-lm((x$a)~(y$a))
return(c(model$coefficients[2],meana=meana,meanb=meanb))
}
result <- mapply(myfunction,x=mylist,y=mylist2)
#result
# x y
#y$a 1 -1
#meana 3 8
#meanb 100 50
What I want is:
#y$a 1 0
#meana 3 0
#meanb 100 50
#e.g. the results in the first row are lm((mylist1[[1]][,1])~(mylist2[[1]][,1])) and lm((x[[2]][,1])~(y[[2]][,1])) | r | list | apply | null | null | 06/16/2012 16:56:02 | too localized | mapply over two lists
===
I recentely asked a question about using an `apply` function over two lists. Each list is a list of data frames. For each time the function runs I want to take vectors from the first element (a dataframe) in `mylist1` and some vectors from the first element (a dataframe) in `mylist2` and regress them against each other. Then move onto the next `mylist1` element and `mylist2` element. Effectively the function takes two lists with the same number of elements and takes a pair (one from each list) and plays about with them.
I tried the following, but the results I get are bot what I want:
a1<-c(1:5,rep(0,5))
a2<-c(1:5,10:6)
b2<-c(rep(100,5),rep(50,5))
z<-c(rep("part1",5),rep("part2",5))
df1<-data.frame(a1,z)
df2<-data.frame(a2,b2,z)
mylist1<-split(df1,z)
mylist2<-split(df2,z)
myfunction<-function(x,y)
{
meana <- mean(x$a)
meanb <- mean(y$b)
model<-lm((x$a)~(y$a))
return(c(model$coefficients[2],meana=meana,meanb=meanb))
}
result <- mapply(myfunction,x=mylist,y=mylist2)
#result
# x y
#y$a 1 -1
#meana 3 8
#meanb 100 50
What I want is:
#y$a 1 0
#meana 3 0
#meanb 100 50
#e.g. the results in the first row are lm((mylist1[[1]][,1])~(mylist2[[1]][,1])) and lm((x[[2]][,1])~(y[[2]][,1])) | 3 |
3,586,373 | 08/27/2010 16:45:25 | 263,922 | 02/01/2010 22:48:42 | 15 | 1 | Compile C++ code for AIX on Ubuntu? | Question in one sentence: How can I compile code for AIX using G++ on Ubuntu? (Assuming it is possible)
I hope that it is as simple as adding an option to the make file to specify target processor. I am a novice when it comes to most things compiler related.
Thank you in advance. | c++ | linux | g++ | aix | null | null | open | Compile C++ code for AIX on Ubuntu?
===
Question in one sentence: How can I compile code for AIX using G++ on Ubuntu? (Assuming it is possible)
I hope that it is as simple as adding an option to the make file to specify target processor. I am a novice when it comes to most things compiler related.
Thank you in advance. | 0 |
8,742,764 | 01/05/2012 12:51:30 | 490,998 | 10/29/2010 07:29:13 | 16 | 1 | Multiline gnu regex | I want to match an expression right after a new line. I´m using gnu.regexp and with flag REG_MULTILINE.
Here´s the String I want to check
Hello
Dude
My approach is using this regex to match.
String strRegExp = "^[Dd][Uu][Dd]";
But it does not work. Can´t see where the problem is.
I´m running all this in a simple unit test:
@Test
public void testREMatchAtStartOfNewLine()
throws Exception {
String strRegExp = "^[Dd][Uu][Dd]";
int flags = RE.REG_MULTILINE;
String strText ="Hello\nDude";
RE re = new RE(strRegExp, flags, RESyntax.RE_SYNTAX_PERL5);
REMatch match = re.getMatch (strText);
String strResult = "";
if (match != null) {
strResult = match.substituteInto ("$0");
}
assertEquals("Match at start of new line ", "Dud", strResult); // FAILS
}
Thanks in advance. | java | regex | gnu | null | null | null | open | Multiline gnu regex
===
I want to match an expression right after a new line. I´m using gnu.regexp and with flag REG_MULTILINE.
Here´s the String I want to check
Hello
Dude
My approach is using this regex to match.
String strRegExp = "^[Dd][Uu][Dd]";
But it does not work. Can´t see where the problem is.
I´m running all this in a simple unit test:
@Test
public void testREMatchAtStartOfNewLine()
throws Exception {
String strRegExp = "^[Dd][Uu][Dd]";
int flags = RE.REG_MULTILINE;
String strText ="Hello\nDude";
RE re = new RE(strRegExp, flags, RESyntax.RE_SYNTAX_PERL5);
REMatch match = re.getMatch (strText);
String strResult = "";
if (match != null) {
strResult = match.substituteInto ("$0");
}
assertEquals("Match at start of new line ", "Dud", strResult); // FAILS
}
Thanks in advance. | 0 |
8,626,845 | 12/24/2011 20:59:16 | 911,930 | 08/25/2011 11:20:53 | 389 | 1 | How to restrict users to access a file on a web server? | Hi I have a file which updates database. I use it for a cron job, but it also works if someone accesses it like this: http://myweb.com/files/file.php
And I concerned tha users can access it and mess with a database. Is there a way to hide it from users, but keep it so I can edit it and cron job can execute it? | php | mysql | security | permissions | file-permissions | 12/26/2011 21:37:13 | off topic | How to restrict users to access a file on a web server?
===
Hi I have a file which updates database. I use it for a cron job, but it also works if someone accesses it like this: http://myweb.com/files/file.php
And I concerned tha users can access it and mess with a database. Is there a way to hide it from users, but keep it so I can edit it and cron job can execute it? | 2 |
3,355,988 | 07/28/2010 18:09:15 | 289,956 | 03/09/2010 19:56:46 | 424 | 38 | How long should reset-your-password links be available? | In a web application, if the user forgets his password, its fairly common practice to send an email to the user with a temporary link or password that expires after a given amount of time. Most of the posts I read on SO suggested expiring the link after 24 to 72 hours, but it seems to me that it would really only be needed for about 10 minutes. My question is, to improve security is there a good reason to allow such a link to remain active for longer than 10 minutes? | email | web-applications | website | web-security | null | 07/29/2010 12:32:13 | off topic | How long should reset-your-password links be available?
===
In a web application, if the user forgets his password, its fairly common practice to send an email to the user with a temporary link or password that expires after a given amount of time. Most of the posts I read on SO suggested expiring the link after 24 to 72 hours, but it seems to me that it would really only be needed for about 10 minutes. My question is, to improve security is there a good reason to allow such a link to remain active for longer than 10 minutes? | 2 |
45,179 | 09/05/2008 03:19:57 | 3,349 | 08/28/2008 04:01:37 | 1 | 1 | Are there benefits to Classic ASP over ASP.net | Having worked with Classic ASP for about 2 years now by creating a few 100 simple web forms I can't see a good reason for switching to .net; however, I'm not that versed in .net so I'm sure I could be missing a few things.
An over view of why I feel this way is best found here: <a href="http://www.packtpub.com/article/Classic-ASP">http://www.packtpub.com/article/Classic-ASP</a>
I'm very interested to hear what others have to say on this matter. | asp.net | comparison | asp-classic | interpreted | compiled | 04/05/2012 13:06:07 | not constructive | Are there benefits to Classic ASP over ASP.net
===
Having worked with Classic ASP for about 2 years now by creating a few 100 simple web forms I can't see a good reason for switching to .net; however, I'm not that versed in .net so I'm sure I could be missing a few things.
An over view of why I feel this way is best found here: <a href="http://www.packtpub.com/article/Classic-ASP">http://www.packtpub.com/article/Classic-ASP</a>
I'm very interested to hear what others have to say on this matter. | 4 |
10,767,152 | 05/26/2012 14:39:06 | 1,417,933 | 05/25/2012 17:13:14 | 19 | 0 | Grabbing a simple string from the first tag | I'm honestly finding `BeautifulSoup` too difficult, the documentation doesn't explain the basics I'm looking for.
I am trying to return the string inside a tag that has an attribute:
<span class="on">6220</span>
But running this:
def fetch_online():
users = page('span', {'class' : 'on'})
return str(users)
Gives me `[<span class="on">6220</span>]`. So I figured I'm doing it all wrong, what is the way to just get a simple string out of a tag? | python | beautifulsoup | null | null | null | null | open | Grabbing a simple string from the first tag
===
I'm honestly finding `BeautifulSoup` too difficult, the documentation doesn't explain the basics I'm looking for.
I am trying to return the string inside a tag that has an attribute:
<span class="on">6220</span>
But running this:
def fetch_online():
users = page('span', {'class' : 'on'})
return str(users)
Gives me `[<span class="on">6220</span>]`. So I figured I'm doing it all wrong, what is the way to just get a simple string out of a tag? | 0 |
4,286,941 | 11/26/2010 16:21:41 | 502,230 | 11/09/2010 17:46:47 | 81 | 2 | [C++] Irc Server | anyone interested in joining me in making it? Ive pretty much done alot in it and wasted alot of time doing these things. We can get to know each others via irc and/or msn :), just leave a message here and ill get back to you.
My english is not my main language, so execuse me if i spelled something wrong. | c++ | null | null | null | null | 11/26/2010 16:30:11 | not a real question | [C++] Irc Server
===
anyone interested in joining me in making it? Ive pretty much done alot in it and wasted alot of time doing these things. We can get to know each others via irc and/or msn :), just leave a message here and ill get back to you.
My english is not my main language, so execuse me if i spelled something wrong. | 1 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.