Recording which articles are being read

I want to create a cloud tag of popular topics
What i need to work out
1. How to record which articles are being read
2. How to display these in a tag cloud
3. Then when a user clicks on a tag - all the articles which
similar
tag are displayed
What i have done so far (how am i going?)
Db called tags
Tables
tag, article title, article url, article description
# each article has a few different tags
e.g
article for preventing std has the following tags
std, sex, safe sex, HIV
# the article itself doesnt exist in the database as i read
this
wasn't good for SEO. so the article itself exists on a static
page.
I have close to 100 medicla articles and add about 4 or 5 a
month
so i would love to get this working to save me time and
effort.
Many thanks
Mark Holloway
coordinator
www.healthhokkaido.com

Have been using this code from the pete frei tutorial - cloud
tags -. It is working fine.
In the case of my database, each article has 3 tags
associated.
So there are 3 fields as opposed to 1 from which to count the
tags.
How could I adjust the code to take accountfor this?
Also I am a begineer so if you had the time to provide a
short explanation that would also be great.
<cfquery datasource="cart" name="tags">
SELECT COUNT(tag) AS tagCount, tag
FROM list
GROUP BY tag
</cfquery>
<cfset tagValueArray =
ListToArray(ValueList(tags.tagCount))>
<cfset max = ArrayMax(tagValueArray)>
<cfset min = ArrayMin(tagValueArray)>
<cfset diff = max - min>
<cfset distribution = diff / 3>
<style type="text/css">
<!--
.smallestTag { font-size: xx-small; }
.smallTag { font-size: small; }
.mediumTag { font-size: medium; }
.largeTag { font-size: large; }
.largestTag { font-size: xx-large; }
-->
</style>
<cfoutput query="tags">
<cfif tags.tagCount EQ min>
<cfset class="smallestTag">
<cfelseif tags.tagCount EQ max>
<cfset class="largestTag">
<cfelseif tags.tagCount GT (min + (distribution*2))>
<cfset class="largeTag">
<cfelseif tags.tagCount GT (min + distribution)>
<cfset class="mediumTag">
<cfelse>
<cfset class="smallTag">
</cfif>
<a href="/tag/#tags.tag#"
class="#class#">#tags.tag#</a>
</cfoutput>

Similar Messages

  • Can you view which apps are being downloaded to iphone

    Can you view which Apps are being downloaded to an iphone?  Like a history?

    Tap App Store > Updates (bottom icons on right)

  • How to find out which queries are being used ?

    We have a number of InfoSet Queries which the users are calling from SQ00. Some of them are very old.
    I would like to find out which queries are being used, so we can have the idle queries decommissioned.
    How can this be done ?
    Best regards,
    Peter

    Hi,
    It's been a while since I've done this but one method is to use ST03N & look for the execution of programs with an AQ* prefix.  The general structure is AQZZ/<query user group><query name>.
    You could probably get the same info from the audit log but I've not checked that.
    Cheers,

  • Using Pro Logic X to record. I have several tracks and I'm trying to record an audio track. I have the mic connect to Avalon 737 then into apollo interface. When I record all track are being recorded into that track. I can't just get the audio to record.

    Using Pro Logic X to record. I have several tracks and I'm trying to record an audio track. I have the mic connect to Avalon 737 then into apollo interface. When I record all track are being recorded into that track. I can't just get the audio to record.

    Thanks for responding. Everything seems to work right except for the when I plug into the 737. Ok let me see if I can be more clear. I had this set up done with two representatives of Neumann, and DBox. Here it is I hope this helps. 32 Channel snake (24 Inputs 8 outputs) Channels 1-8 from snake to my Octopre for Drums. From Octropre output quarter inch lines into the Apollo 2, quarter inch input. This is so that the Apollo 2 is taking the drum tracks. Snake Channel 9-12 into Apollo 1 channels 1-4 xlr. Snake Channel 13-16 into Apollo 2 Channels 1-4 xlr. Snake Channel 17 into the 737, output of 737 into Channel 5 of the Apollo 1 quarter inch.
    Ok The Dbox. Sum output L&R into channel input 7&8 of Apollo 1. Apollo 1 output channels 1-8 into summing input channel 1-8 of Dbox. Apollo 1 main L&R going to main analog input L&R of Dbox. Spid out to DAW input of Dbox. I have both ADAT of both Apollos connected by optical wire. Also have port 2 of Apollo 1 into port 1 of Apollo 2 connected by Firewire.  Let me know. Hope I got it right. Thanks for responding.

  • When i do a backup to my computer, which things are being saved and which aren't?

    When i do a backup to my computer, which things are being saved and which aren't?

    You need more than one backup. Hard drives do fail. You can also try a clone.
    Clone  - Carbon Copy Cloner          (Often recommended as it has more features than some others)
    Clone – Data Backup
    Clone – Deja Vu
    Clone  - SuperDuper
    Clone - Synk
    Clone Software – 6 Applications Tested
    Commonly Used Backup Methods

  • How to get which tables are being updated by running any transaction code

    Hi experts,
    please tell me how to find which system table are being updated after running any transaction code .
    please tell me the procedure to find that.
    Thanks & Regards,
    Yogesh

    Hi yogesh patil,
    for the dbtable..
    goto technical settings and activate the log...
    it will tells u..
    transaction...Table history (SCU3)
    Log data changes
    The logging flag defines whether changes to the data records of a table
    should be logged. If logging is activated, every change (with UPDATE,
    DELETE) to an existing data record by a user or an application program
    is recorded in a log table in the database.
    Note: Activating logging slows down accesses that change the table.
    First of all, a record must be written in the log table for each change.
    Secondly, many users access this log table in parallel. This could cause
    lock situations even though the users are working with different
    application tables.
    Dependencies
    Logging only takes place if parameter rec/client in the system profile
    is set correctly. Setting the flag on its own does not cause the table
    changes to be logged.
    The existing logs can be displayed with Transaction Table history (SCU3)
    Reward points if helpful

  • SharePoint Databases - How to determine which ones are being used and which ones aren't

    I am not sure where to exactly post this question.  On the SQL Server side or on a SharePoint side.
    I am a SQL Server Database Administrator who is monitoring some SharePoint databases.  On a daily basis it seems that they are creating new databases but don't delete the databases that they are no longer using.  For example, they might be testing
    on a development server and if things aren't working properly instead of asking that the databases be deleted they just go ahead and create new databases to do what ever they need to do.  Is there a way on the SQL Server side to determine which SharePoint
    databases are being used and which ones aren't being used?  Or does one determine this information through the SharePoint Central Administration console?
    lcerni

    Hello,
    The following query gives you the databases now in use.
    SELECT
    DISTINCT d.name
    FROM
    sys.dm_tran_locks
    tl INNER
    JOIN sys.databases
    d
    ON
    tl.resource_database_id
    = d.database_id
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Way to find which tables are being accessed

    Hi Guys
    I have a large database and i want to find which tables are not being accessed (even select) from a specific period of time. is there any way to find out . I am using oracke 10g release 1
    Regards
    Khurana
    Edited by: Khurana on Sep 8, 2009 4:29 PM

    select sp.object_owner,sp.object_name,
    (select sql_text from v$sqlarea sa
    where sa.address = sp.address
    and sa.hash_value =sp.hash_value) sqltext,
    (select executions from v$sqlarea sa
    where sa.address = sp.address
    and sa.hash_value =sp.hash_value) no_of_full_scans,
    (select lpad(nvl(trim(to_char(num_rows)),' '),15,' ')||' | '||lpad(nvl(trim(to_char(blocks)),' '),15,' ')||' | '||buffer_pool
    from dba_tables where table_name = sp.object_name
    and owner = sp.object_owner) "rows|blocks|pool"
    from v$sql_plan sp
    where operation='TABLE ACCESS'
    and object_owner IN ('YOUR_USER_NAME')
    order by 1,2
    It will tell you that currently "OBJECT_NAME" is being accessed; but i think it is for full table scan.
    Source:http://www.oracle.com/technology/oramag/code/tips2005/032105.html
    Regards
    Girish Sharma

  • Which tables are being used to extract the data for the materi Extractors

    Hi
    please advise which tables are used to extract the data for the extarctors
    0MAT_SALES_ATTR,
    0MATERIAL_ATTR,
    0MAT_PLANT_ATTR
    0PLANT_ATTR
    ,Many thanks.

    Hi,
    Activate a database trace using ST01. Then perform the MM03 operation and goto the SD Texts tab. Now stop the trace and see if you can locate either a table or program which you can utilize in the log.
    http://help.sap.com/saphelp_47x200/helpdata/en/dd/55f993545a11d1a7020000e829fd11/frameset.htm
    Hope this helps..
    Rgs,
    Ravikanth.

  • How do i see which parameters are being passed to wwv_flow.accept?

    Greetings everyone,
    After submiting a page i get this error:
    "The requested URL /pls/apex/wwv_flow.accept was not found on this server."
    I placed some inserts inside my page process to check and i found out the process isn t even being executed.
    This post seems to have some similarities to what is happening to me:
    doSubmit in javascript
    But all the items i need to change are being changed with javascript in the same page, after submiting they get the new values.
    What gets weirder is that it works properly in firefox and google chrome browser, however it is company politics that all aplications work in internet explorer and in internet explorer it doesn't work.
    So i would like to know how to see what is being passed to wwv_flow.accept so i can discard that option?
    Regards Pedro

    Greetings,
    I am working with Pedro Mendez in the same project.
    To give you more information about the problem, here is an example of the html structure in the page, just the div wich is causing problems:
    <div id="empresas">
    <form id="empresas_form" method="POST" action="" name="empresas_form">
    <input type="checkbox" name="empresas" value="DEMO2"/>
    Empresa Demonstração ( Demo 2)
    <input type="checkbox" name="empresas" value="SPA"/>
    SPA
    <input type="checkbox" name="empresas" value="GRH2"/>
    GRH2 - Brodheim
    <input type="checkbox" name="empresas" value="DEMO3"/>
    DEMO3 DEMONSTRAÇÂO
    <input type="checkbox" name="empresas" value="GRH"/>
    GRH - IMO
    <input type="checkbox" name="empresas" value="OK"/>
    OK
    <input type="checkbox" name="empresas" value="VALSAN"/>
    Valentim Santos
    </form>
    </div>
    To my understanding the variable that shoudl cause problems would be empresas_form and not empresas, since empresas is just a div.
    I need the checkboxes to be inside a form or i can t access them and i need to perform operations on them, any suggestions?
    best regards

  • Code to determine which jobs are being run in the database

    Hello
    I'm using Oracle 9
    If it is possible I would like to write an SQL statement that determines what DBMS_JOB's are stored and being run in the database.
    Thanks
    Doug

    you can try this code:
    SELECT r.sid,
           r.job,
           r.this_date,
           r.this_sec,
           SUBSTR(what,1,40) what
      FROM dba_jobs_running r,
                   dba_jobs j
    WHERE r.job = j.job;hope this helps.

  • New Records in DB are being corrupted after insertion

    PROBLEM:
    I am having a database (AW6.2.9) problem noted in previous, archived topics.
    I have a DB with only 659 records, but have spent months compiling it. It is essential to my business. When adding a record the previous record is corrupted. Empty records appear at times. I have tried the various fixes; saving as AW5, opening as AW6, etc.
    Potential causes:
    a> have a bad record; or many bad records as I tend to copy records to create new ones (its partially an inventory db).
    b> many colors used to make dataentry easier, reporting more fun.
    c> adding/deleting/changing database fields QUITE A BIT as data is entered to develope the perfect layout
    QUESTIONS:
    1. Is the DB fixable? How to detect errors?
    2. Should I open the pocketbook a little further and purchase a more reliable, more robust DB program? If so, which one. { I am an old COBOL dinosaur so have managed to use the AW6 flat file in a way that is robust enough for my business. (remember QSAM anyone....?)}
    Thank you in advance,
    Meg

    Hello
    Yes, the database is scriptable but some features aren't.
    If you want, you may attach your base to a mail and send it to:
    koenig then a dot then yvan then an @ then tele2 then a dot then fr
    I would be able to look at it (taking care of confidentiality of course) and to try to identify possible corrupted record(s).
    Yvan KOENIG (from FRANCE lundi 16 octobre 2006 09:24:10)

  • How to find which tables are being used by a workbook.

    I was asked by the client to generate a report which will show the Workbook name and it's corresponding tables/views.
    Any idea on how to use the EUL tables for this purpose. I know the SQL query to find the tables in case the workbook was run at least once. But I want to show the Workbook and it's table details even the report was never run.
    Advanced thanks,
    Lokesh.

    Hi Jay
    While we're on the subject of scripts, here's a couple more you might like:
    Script 1:
    =========
    This one shows you how many times an item has been used. It is useful for determining how often users make use of items in a folder. It could be used as research for a materialized view, for dropping items which are not used, or for understanding usage.
    SELECT
    OBJ.OBJ_NAME FOLDER,
    EXP.EXP_NAME ITEM,
    COUNT(QPP.QS_ID) USAGE
    FROM
    EUL5_OBJS OBJ,
    EUL5_QPP_STATS QPP,
    EUL5_EXPRESSIONS EXP
    WHERE
    OBJ.OBJ_NAME = <Folder Name>
    AND OBJ.OBJ_ID = EXP.IT_OBJ_ID
    AND INSTR(QPP.QS_OBJECT_USE_KEY,OBJ.OBJ_ID) > 0
    AND INSTR(EUL5_GET_ITEM_NAME(QPP.QS_ID),EXP.EXP_ID) > 0
    GROUP BY
    OBJ.OBJ_NAME,
    EXP.EXP_NAME;
    Script 2:
    =========
    This one examines the whole EUL and displays a count of the number of times a worksheet has been run by folder. It also shows the date and time of the last run. This one is useful to determine the most and / or least popular worksheets. Adjusting the ORDER BY clause can throw up some interesting results.
    SELECT
    OBJ.OBJ_NAME FOLDER,
    MAX(QPP.QS_CREATED_DATE) LAST_DATE,
    QPP.QS_DOC_OWNER OWNER,
    QPP.QS_DOC_NAME WORKBOOK_NAME,
    QPP.QS_DOC_DETAILS SHEET_NAME,
    COUNT(QPP.QS_ID) USAGE
    FROM
    DRAKE.EUL5_OBJS OBJ,
    DRAKE.EUL5_QPP_STATS QPP
    WHERE
    INSTR(QPP.QS_OBJECT_USE_KEY,OBJ.OBJ_ID) > 0
    GROUP BY
    OBJ.OBJ_NAME,
    QPP.QS_DOC_OWNER,
    QPP.QS_DOC_DETAILS,
    QPP.QS_DOC_NAME
    ORDER BY
    OBJ.OBJ_NAME,
    COUNT(QPP.QS_ID) DESC;
    I'm considering a blog entry of useful EUL scripts. Anyone interested? Yes - either reply here or drop me a line.
    Best wishes
    Michael

  • XML files are being read as PBEM game file format!!

    Hello,
    I am trying to edit some .xml files in Script Editor but everytime I try to open them I am told :
    'Script Editor cannot open files in the "PBEM game file" format'
    (Double clicking the .xml file opens up the Big Bang game)
    Does anyone know how to get round this? also is Script Editor the best application to use? I want to use an editor that has colours.
    Many thanks, rob

    Script Editor has one purpose - editing and compiling AppleScript.
    I can't account for the wording of the error message, but for sure I wouldn't expect it to handle XML files directly.
    You could use AppleScript to manipulate the XML data, but that's probably not ideal either.
    What you need is a text editor. BBEdit would be my first choice, or its cheaper (read: free) sibling TextWrangler.
    Both can handle any type of text file, including syntax highlighting for many structured files including programming source code.

  • How to check which views are not read only

    Hi, I need to run a script in order to get the views that were not created with the read only option. Where can I get that info? It doesn't seem to be in dba_views.
    Thanks and regards

    Join it with DBA_CONSTRAINTS (CONTRAINT_TYPE = 'O') :
    SYS@db102 SQL> select view_name, text from dba_views where owner = 'U1';
    VIEW_NAME                      TEXT
    V_EMP_RO                       select empno,ename,job from myemp with read only
    V_EMP                          select empno,ename from myemp
    SYS@db102 SQL> select view_name, decode(constraint_type,'O','RO','RW')
      2  from dba_views v, dba_constraints c
      3  where v.owner = c.owner(+)
      4  and view_name = table_name(+)
      5  and v.owner = 'U1';
    VIEW_NAME                      DE
    V_EMP_RO                       RO
    V_EMP                          RW
    SYS@db102 SQL>                                                                 

Maybe you are looking for

  • 3050A Deskjet all in one Scans in all purple

    Help!! I have let this problem go for a whiole and I can't seem to find the answer. One day my scanner just started scanning everything with a purple haze. I have seen threads to attempt to fix other models from scanning in purple, but I don't have t

  • How do I update iTunes 10.1 version on my iPad

    How do I update iTunes 10.1 on my iPad 2

  • Buying TV Shows in Canada

    I thought i would give downloading a few TV shows a try but when i opened my iTunes Store there was no option for TV shows. I have the option for Music, Music videos, Audiobooks, Podcasts, iPod Games, and Pixar Shot Films, but no TV Shows. Anyone kno

  • BSPs for Performance Management - Response Appreciated.

    Hi All: We are trying to use the standard delivered BSPs that are generated for creating, maintaining a performance review form in ECC.  We are currently in ECC 5.0 and Netweaver' 04. My question: For ESS just like the standard delivered workset call

  • Missing mail accounts

    my 3 mail accounts and all that is within have disappeared and been replaced with a single mobile me account. bad timing! please can you give me a remedy for restoring my mail to how it was. thanks bruce