473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Any idea how to do this in Python?

Lad
In a web application users can post some information. I would like to
link each posting with a "weight of importance" for a user, depending
on a keywords in the posting.
For example, I know that a user A is interested in Nokia mobiles while
user B in Siemens mobiles.
So, if a user A is signed, he would see postings with more Nokia
information FIRST, while B user will see FIRST information about
Siemens mobiles
How can be that done in Python?
Thank you for any idea.
L.

Oct 17 '06 #1
3 1146
Lad

Dennis,
Thank you for your reply
You say:
>Pretend you are the computer/application/etc. How would YOU
perform such a ranking?
That is what I do not know , how to perform such ranking.
Do you have any idea?

Regards,
Lad.

Oct 17 '06 #2

Lad wrote:
Dennis,
Thank you for your reply
You say:
Pretend you are the computer/application/etc. How would YOU
perform such a ranking?
That is what I do not know , how to perform such ranking.
Do you have any idea?

Regards,
Lad.
take a piece of paper to *play* the use-case you wrote about.

Do things one step at a time, and figure what is needed,

Example:
1- a user is on a web page # ok I need a web page
2- a user sends info to the server # ok the web page needs a input
widget of sorts AND I need a server app
3- analyse (or decide ) what type of info the user may send (selected
choices, free text, etc)
4- the user must be identified in some way (so to discriminate him from
others), so the also must be that type of input...

etc, etc
At the end you will have a better picture of things required - then you
build them ;-)

Jean-Marc

Oct 17 '06 #3
On 17 Oct 2006 02:56:45 -0700, Lad <py****@hope.czwrote:
>
Dennis,
Thank you for your reply
You say:
Pretend you are the computer/application/etc. How would YOU
perform such a ranking?
That is what I do not know , how to perform such ranking.
Do you have any idea?
The details are very sketchy, but if it's just one item in particular
that's being favored, you could just have something like 'Google
sponsored ads', where there's a small box with links to everything
related to Siemens Mobile at the top.

(keke, he said 'Siemens', lol)

-- Theerasak
Oct 17 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris McKeever | last post by:
I am trying to modify the Mailman Python code to stop mapping MIME-types and use the extension of the attachment instead. I am pretty much clueless as to what I need to do here, but I think I have...
24
by: Andrew Koenig | last post by:
PEP 315 suggests that a statement such as do: x = foo() while x != 0: bar(x) be equivalent to while True:
34
by: SeeBelow | last post by:
I see the value of a class when two or more instances will be created, but Python programmers regularly use a class when there will only be one instance. What is the benefit of this? It has a...
7
by: winlinchu | last post by:
Hi! I use Python, and writing some extension modules I think which could be written an C compiler, useful only to compile extension modules (I not think an GCC!!!!), so that the user not have to...
35
by: Will Stuyvesant | last post by:
Here is a question about list comprehensions . The question is dumb because I can do without ; but I am posing the question because I am curious. This: >>> data = ,,] >>> result = >>> for...
3
by: Chris Perkins | last post by:
Random idea of the day: How about having syntax support for currying/partial function application, like this: func(..., a, b) func(a, ..., b) func(a, b, ...) That is: 1) Make an Ellipsis...
59
by: seberino | last post by:
I've heard 2 people complain that word 'global' is confusing. Perhaps 'modulescope' or 'module' would be better? Am I the first peope to have thought of this and suggested it? Is this a...
161
by: Dan Lenski | last post by:
Hi all, I'm a recent, belated convert from Perl. I work in a physics lab and have been using Python to automate a lot of measurement equipment lately. It works fabulously for this purpose. ...
32
by: Matias Jansson | last post by:
I come from a background of Java and C# where it is common practise to have one class per file in the file/project structure. As I have understood it, it is more common practice to have many...
4
by: itcecsa | last post by:
Hi, I am implementing a small Python project, what I am going to do is to open Matlab and run some M-files, and get some output from Matlab command prompt. I have no idea how to open Matlab...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.