Any idea what i could do to make these work on the iPad??
You seemed knowledgeable about this from your comments so I thought you'd be a good person to ask.
Thanks.
Philip
Los Angeles
Hello,
Can somebody give me a resource (or just explanation? :-) of what "prototype" is and how it works in Javascript. May be comparison with something in Java? (not really necessary).
But it should be as simple/easy as possible so inexperienced person just learning Javascript would understand (need to explain this to jr designer who is proficient with CSS/HTML, but not with Javascript).
Thank you!
I have a link, which links to domain.com , when a person clicks, I want it to do an ajax call to counter.php and post 2 variables to it, so it can add 1 to the views for that link.
I have a link:
Link Title
How would I do this with jquery?
Hi,
I have the following models
class Employee(Person):
job = model.Charfield(max_length=200)
class Address(models.Model):
street = models.CharField(max_length=200)
city = models.CharField(max_length=200)
class EmpAddress(Address):
date_occupied = models.DateField()
date_vacated = models.DateField()
employee = models.ForeignKey()
When I build a json data structure for an EmpAddress object using the django serialzer it does not include the inherited fields only the EmpAddress fields. I know the fields are available in the object in my view as I can print them but they are not built into the json structure.
Does anyone know how to overcome this?
Thanks
Andrew
I have a tooltip that has a link to an anchor but it seems like it is not going to the right anchor. Rollover the person and click on the "[+]" inside the tooltip.
To view the sample click here
With an XML configured Spring bean factory, I can easily instantiate multiple instances of the same class with different parameters. How can I do the same with annotations? I would like something like this:
@Component(firstName=”joe”, lastName=”smith)
@Component(firstName=”mary”, lastName=”Williams”)
public class Person { /* blah blah */ }
Step into the confessional. Now's your time to come clean.
What's the worst code you personally have
ever written?
Why was it so bad?
What did you learn from it?
Don't tell us about code you inherited or from some co-worker. This is about your personal growth as a programmer and as a person.
I've got a serious performance problem with a hierarchical query that I can't seem to fix.
I am modeling several organization charts in my database, each representing a virtual organization within our company. For example, we have several temporary committees that are created from time to time and there may be a Committee Organizer role at the top of this virtual hierarchy, with several people assigned to the Committee Member role beneath the organizer. Some of our virtual organizations have many levels and several branches at each level.
I have a single table in which I represent all the role assignments. i.e. a ROLE_ID column and a PARENT_ROLE_ID column which is a foreign key to the ROLE_ID column. For each assignment we also store as a column the location in the company where this person has the assignment. For example, the Committee Organizer would have a company-level/ CEO assignment, while the committee members would have department-level assignments such as ACCOUNTING, MARKETING, etc.
So to model the organizer/member relationship for two individuals we would have:
ROLE_ID = 4
PARENT_ROLE_ID = NULL
EMPLOYEE_NUMBER = 213423
COMPANY_LOCATION = CEO
ROLE_ID = 5
PARENT_ROLE_ID = 4
EMPLOYEE_NUMBER = 838221
COMPANY_LOCATION = ACCOUNTING
Here's where things get tricky. I have an application that every person in the organization can log in to. When they log in they should be able to view all the virtual organizations in our company. e.g. the committee members should be able to see the committee organizer and vice-versa. However, only the committee organizer should be able to edit the committee members.
The difficulty is in determining whether an individual (who can have multiple role assignments) has edit access for each other assignment.
While this seems simple in the example, consider a virtual organization in which we have
President at the top, 5 departments directly beneath him, 2 subdepartments below each department. We only want people in the Accounting department to be able to edit individuals in the subdepartments belonging to the Accounting department. They should not have edit access to anybody in the Marketing department or its subdepartments.
To determine edit access when a user views a virtual organization in our company I run a query that executes two inline views: A) Hierarchically query for all assignments in this virtual organization and using SYS_CONNECT_BY_PATH to store the entire path to each user/role/company_location and B) Hierarchically retrieve all the assignments the individual logged in has and using the SYS_CONNECT_BY_PATH to store the entire path to each of these assignments.
The result of the query is all the records from A) plus a boolean determined by joining with B) which flags whether the logged in user has edit access for each record.
Indexes don't seem to be helping... it simply appears that there is too much processing going on to separate all the records and then determine edit access. One issue is that I can't store the SYS_CONNECT_BY_PATH and index it... determining whether an individual record has edit access consists of comparing if: test_record_sys_path LIKE individual_record_sys_path || '%'
Is a materialized view the answer?
Hello, Actually I'm trying to capture person's current and permanent address. In this case if d current and permanent address same means no need to enter twise. Here I'm using a checkbox. If d checkbox s checked the current address plased in permanent address too. Help me to do tat.
Hi,
I just installed PC Tools Anti-Virus and my ASP.NET website recompiles everything before every page load.
Which folder are asp.net website files in, so that i can prevent this from happening?
And, i'm probly not the first person with this kind of error, so is there a common solution for this?
Thank you,
-Theo
i have security problems with the macs, they can auto login on the server when i want it to ask for a user name and password. anyone can just get on the computer and sign into the last person who was using it. any help?
Hello,
I have an ecommerce website that works in a classical way: people sign up, buy a product with their CC.
It uses the default Django auth system for users and registration and session framework.
Now I want to implement a referral system to my system where people can invite other people by giving their referral link (ie mysite.com/referral/123123/ ) and if a person signs up AND buys an item, the inviter gets 5$.
How can this the implemented ?
Say i have the following class:
class Person {
@BeanProperty
var firstName: String = _
}
Is it possible to get the String representation of "firstName" in a type-safe way, by reflection or something? Or the String representation of the generated "getFirstName"-Function?
Does JavaScript have a mascot, logo, insignia or otherwise stylistically engaging representation or alias? If not, who would be the best person/organization to get some momentum behind this kind of thing? Doug Crockford?
I have a website where I need to have data that is ID'd by user. For example, they enter their favorite food:
userid favorite food
------ -------------
1 french fries
2 tacos
3 fish sticks
4 chipotle
When I use Facebook Authentication, what identifier will I use for the userid? I'm assuming it's not name, since this would create duplicates. Is it just the person's Facebook ID?
Also is the correct API to use for 3rd party websites 'Facebook Connect' or 'Facebook Authorization' or something else?
Hello,
My requirement is that there are 2 parties
1. User (who creates the item)
2.Approvers who approve the item
When the user creates the item then they should see only their created item in the list (This is easily possible)...the approvers should have only read access and they can see all the items ...when i select the option that only person who creates the item can see the item then approvers are not able to see the items...can somebody plz help that how to work with this...maybe i am missing some simple stuff so can anybody just point me out to the solution..
Thanks
Granted he didn't show us actual code here, just mentioned it, I found it extremely bizarre.
For example, according to what he said this is valid Java:
public class Person
{
String Name;
int Age;
{
//These two braces just chilling together - VALID? :O
}
}
Background information: - There are nearly 7000 individuals and there is data about their performances in one, two or three tests.
Every individual has taken the 1st test (let's call it Test M). Some of those who have taken Test M have also taken Test I, and some of those who have taken Test I have also taken Test B.
For the first two tests (M and I), students can score grades I, II, or III. Depending on the grades they are awarded points -- 3 for grade I, 2 for II, 1 for III.
The last Test B is just a pass or a fail result with no grades. Those passing this test get 1 point, with no points for failure. (Well actually, grades are awarded, but all grades are given a common 1 point).
An amateur has entered data to represent these students and their grades in an Excel file. Problem is, this person has done the worst thing possible - he has developed his own notation and entered all test information in a single cell --- and made my life hell.
The file originally had two text columns, one for individual's id, and the second for test info, if one could call it that.
It's horrible, I know, and I am suffering. In the image, if you see "M-II-2 I-III-1" it means the person got grade II in Test M for 2 points and grade III in Test I for 1 point. Some have taken only one test, some two, and some three.
When the file came to me for processing and analyzing the performance of students, I sent it back with instructions to insert 3 additional columns with only the grades for the three tests. The file now looks as follows. Columns C and D represent grades I, II, and III using 1,2 and 3 respectively. Column C is for Test M, column D for Test I. Column E says BA (B Achieved!) if the individual has passed Test B.
Now that you have the above information, let's get to the problem. I don't trust this and want to check whether data in column B matches with data in columns C,D and E.
That is, I want to examine the string in column B and find out whether the figures in columns C,D and E are correct.
All help is really appreciated.
P.S. - I had exported this to MySQL via ODBC and that is why you are seeing those NULLs. I tried doing this in MySQL too, and really will accept a MySQL or an Excel solution, I don't have a preference.
Edit : - See file with sample data
How to initialize variables in ActiveRecord class?
Variables here is the variables that are outside the scope of database
such as:
class Product
attr_accessor :used
end
I want to initially assign @used initially to false, later if some person access the product, i will change @used to true
First i thought of putting @used=false in initialize method, but it does not get called.
One of my web services returns the list of ids of the the projects a person is owner of. That is, when I GET http://example.com/wsListProjects?user=eric I get back xml with the list of projects. However, when I specify user=xxx, who doesn't exist, I currently return a 404 response? Is this the correct response to return?
Thanks.
how do people view encrypted pictures like on this wiki page? is there a special program to do it, or did someone decide to do some silly xor just make a point about ECB? im not a graphics person, so if there are programs to view encrypted pictures, what are they?
Hello
I wanted to know if there are any paid or free named entity recognition web services available.
Basically I'm looking for something - where if I pass a text like:
"John had french fries at Burger King"
It should be identify - something along the lines:
Person: John
Organization: Burger King
I've heard of Annie from GATE - but I dont think it has a web service available.
Thanks
def mailTo(subject,msg,folks)
begin
Net::SMTP.start('localhost', 25) do |smtp|
smtp.send_message "MIME-Version: 1.0\nContent-type: text/html\nSubject: #{subject}\n#{msg}\n#{DateTime.now}\n", '[email protected]', folks
end
rescue => e
puts "Emailing Sending Error - #{e}"
end
end
when the HTML is VERY large I get this exception
Emailing Sending Error - 552 5.6.0 Headers too large (32768 max)
how can i get a larger html above max to work with Net::SMTP in Ruby
If I have a plist which I have put into and array, which looks something like this
-Root
-Item 0 Dictionary
Name String Henry
Kids Array
-Item 0 String Lindy
-Item 1 String Paul
-Item 1 Dictionary
Name String Janet
Pets Array
-Item 0 String Snoopy
-Item 1 String Pebbles
How can find out whether each person has kids or pets?
I'm using JQuery as such:
$(window).resize(function() { ... });
However, it appears that if the person manually resizes their browser windows by dragging the window edge to make it larger/smaller, the .resize event above fires multiple times.
Question: How to I call a function AFTER the browser window resize completed (so that the event only fires once)?