I'm profiling an app that has a boat load of functions in many files and I'm trying to isolate functions that don't get called ever.
Any ideas before I proceed?
I'm trying to to use this class
http://robbyonrails.com/articles/2005/05/11/parsing-a-rss-feed
but am not sure where to place the file so that it functions like a helper.
Hi,
I would like to create a simple XMPP client in java that shares his location (XEP-0080) with other clients.
I already know I can use the smack library for XMPP and that it supports PEP, which is needed for XEP-0080.
Does anyone have an example how to implement this or any pointers, i don't find anything using google.
thanks in advance.
I extended the User model in django to include several other variables, such as location, and employer. Now I'm trying to create a form that has the following fields:
First name (from User)
Last name (from User)
Location (from UserProfile, which extends User via a foreign key)
Employer (also from UserProfile)
I have created a modelform:
from…
Hi everyone,
I have a system where I need to login three user types: customers, companies, and vendors from one login form on the home page.
I have created one User table that works according to AuthLogic's example app at http://github.com/binarylogic/authlogic_example. I have added a field called "User Type" that currently contains either…
Hi,
I am trying to implement a min heap in c++ for a struct type that I created. I created a vector of the type, but it crashed when I used make_heap on it, which is understandable because it doesn't know how to compare the items in the heap. How do I create a min-heap (that is, the top element is always the smallest one in the heap) for a…
I've done this using a regular .cs file that just extends System.Web.UI.UserControl and then included the assembly of the project that contains the control into other projects. I've also created .ascx files in one project then copied all ascx files from a specified folder in the properties-Build Events-Pre-build event.
Now what I want to…
A normal UserControl looks like this in XAML:
<UserControl x:Class="mynamespace.foo" ...namespaces...>
<!-- content -->
</UserControl>
I'd like to be able to define my own top level object, along the lines of:
<MyControl x:Class="mynamespace.mycontrol" ...namespaces...>
<!-- content -->…
I am trying to check whether client opening the page is using iOS6 or not.
var startIndex = navigator.userAgent.search(/OS/i) + 2;
var endIndex = navigator.userAgent.search(/like/i);
var iOSVersion = parseInt(navigator.userAgent.substr(startIndex,endIndex - startIndex).trim());
this.iOSVersion = true;
…
Hi.
I want to access a usercontrol in my class file not in aspx.cs.i need to typecast it using ASP.usercontrol_ascx type but i cant access ASP namespace from my .cs file..how to typecast the usercontrol??
Thnx....
I've been working on a website, and we've managed to reduce the total content for a page load from 13.7MiB's to 2.4, but the page still takes forever to load.
It's a joomla site (ick), and it has a lot of redundant DOM elements (2000+ for the home page), and make 60+ HttpRequest's per page load, counting all the css,…
What is the best way to design a system where users can create their own criterias to search data ? By "design" i mean, data storage, data access layer and search structure.
We will actually refactor an existing application which is written in C# and ASP .NET and we don't want to change the infrastructure. Our main…
I have this type I defined myself:
data Item =
Book String String String Int -- Title, Author, Year, Qty
| Movie String String String Int -- Title, Director, Year, Qty
| CD String String String Int deriving Show -- Title, Artist, Year, Qty
I've created an empty list
all_Items = []
With the following…
Hi,
I am developing a web application, which is still in initial stages.I have put it on web for public to use.Should I use uservoice for feedback(free account)? What are the alternatives?
I've to implement a char device, a LKM.
I know some basics about OS, but I feel I don't have the big picture.
In a C programm, when I call a syscall what I think it happens is that the CPU is changed to ring0, then goes to the syscall vector and jumps to a kernel memmory space function that handle it. (I think…
I am having I hope only two issues currently. I have had help on this on a previous question that I have asked but now I am running into different issues. My current issues now is that I need to print out into a JTextField a sorted array. I do not have questions about how to sort the array I just would like help…
I am trying to load oracle webservice client jars to my schema. I did set the PATH to inlcude:
/u01/app/oracle/product/10.2.0/db_1/bin
When I try to run loadjava as "loadjava -u myschema/myscehmapwd -r -v -f -genmissing dbwsclientws.jar dbwsclientdb102.jar"
I am getting error:
Exception in thread "main"…
Need suggestions on implementing associating single or many objects to an entity.
All soccer team players are registered individually (e.g. they are part of 'players' table)
A soccer team has many players. The click sequence is like this:-
a] Soccer team owner provides a name and brief description of…
If you have to build a flow of a Use-case by drawing each Interface Diagram.
Then you would start with a Diagram like say "login".
But after the login page, no mather wich page you choose except the "logout" page,
you always have your navigation bar right ? So all the options in the navigation bar?
…
I notice that some programs (e.g. sqlite, mysql client) provide a command-line prompt that is very similar in capabilities to the bash's, including:
line editing with left and right arrows, delete, insert, ^K, etc.
history browsing with up and down arrows
^R for reverse i-search in command history
…
I'm wondering how Instapaper (bookmarklet that saves text) might generate URLs for their bookmarklet.
Mine has a script src of something similar to www.instapaper.com/j/AnJHrfoDTRia
The quality of these URLs is that they need to never collide, and not be really guessable (so other people can't save…
In our cluster, RedHat4 & 5 machines, if someone locks the computer and walks away no body can use it. Is there a feature in RedHat5, Gnome, KDE etc that would allow for the option of switching users at the lock screen, so more than one person can be logged in?
Thanks,
rd42
I want my users to be logged out automatically after X minutes of inactivity. I also want to have all sessions destroyed.
How can this be done? How can I check for inactivity then perform a function to log them out???