Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Basi di dati ~ informatica triennale > Social network 2010/2011
Pages (11): « 1 2 [3] 4 5 6 7 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
manux7
.amico.

User info:
Registered: Feb 2007
Posts: 34 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 15:49:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Dopo l'appello di febbraio, il progetto sarà sempre questo o cambierà?

19-02-2011 11:05
Click Here to See the Profile for manux7 Click here to Send manux7 a Private Message Find more posts by manux7 Add manux7 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
CowBoy
.arcimaestro.

User info:
Registered: May 2006
Posts: 294 (0.04 al dì)
Location: Milano
Corso: F49 - Informatica
Anno: Laureato F49
Time Online: 3 Days, 13:40:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Sarà sempre questo.

__________________
.. ±·ø·±-`` MuSiC iS My LanGuAGe ´´-±·ø·± ..

19-02-2011 11:26
Click Here to See the Profile for CowBoy Click here to Send CowBoy a Private Message Find more posts by CowBoy Add CowBoy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Snakethesniper
.consigliere.

User info:
Registered: Sep 2009
Posts: 111 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: 2
Time Online: 7:02:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Premetto che mi sto rimettendo adesso a guardare il progetto, quindi probabilmente sono un po' arrugginito, volevo un parere.
Nel progetto c'è scritto che bisogna avere due liste (giochi provati/posseduti e giochi desiderati) e che per la lista di giochi posseduti l'utente può inserire un voto e una recensione. Ecco, le liste in questo caso vanno gestite come tabelle giusto? Perchè io stavo pensando di fare due tabelle:
- Giochi posseduti : Recensione,Titolo_Gioco(che si collega poi al Titolo dell'entità gioco),Voto.
- Giochi Desiderati: Titolo_Gioco ..ed eventualmente altre cose se mi vengono in mente..

che dite è corretto?

15-03-2011 17:02
Click Here to See the Profile for Snakethesniper Click here to Send Snakethesniper a Private Message Find more posts by Snakethesniper Add Snakethesniper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Chobeat
.illuminato.

User info:
Registered: Sep 2007
Posts: 241 (0.04 al dì)
Location: Alessandria
Corso: Informatica
Anno: 1
Time Online: 1 Day, 6:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

La soluzione più ovvia è in realtà avere una sola tabella con un flag che è true se sono posseduti e false se sono provati, o eventualmente più flag se vuoi implementare più stati come avevamo fatto noi.

15-03-2011 18:12
Click Here to See the Profile for Chobeat Click here to Send Chobeat a Private Message Find more posts by Chobeat Add Chobeat to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Snakethesniper
.consigliere.

User info:
Registered: Sep 2009
Posts: 111 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: 2
Time Online: 7:02:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Chobeat
La soluzione più ovvia è in realtà avere una sola tabella con un flag che è true se sono posseduti e false se sono provati, o eventualmente più flag se vuoi implementare più stati come avevamo fatto noi.

si mi sembra anche questa una buona soluzione, c'è da dire però che appunto oltre a quelli posseduti/provati c'è da fare un elenco di quelli desiderati, certo anche questo si potrebbe implementare con i flag

15-03-2011 18:21
Click Here to See the Profile for Snakethesniper Click here to Send Snakethesniper a Private Message Find more posts by Snakethesniper Add Snakethesniper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
number15
.grande:maestro.

User info:
Registered: Nov 2005
Posts: 652 (0.09 al dì)
Location:
Corso:
Anno:
Time Online: 121 Days, 13:57:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Se l'intersezione dei 3 stati è insieme vuoto, puoi anche fare un unico campo enum(provato, desiderato, posseduto)

__________________
Portale segnalazioni marchi-negozi di abbigliamento
http://www.ovojo.com

15-03-2011 18:29
Click Here to See the Profile for number15 Click here to Send number15 a Private Message Find more posts by number15 Add number15 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Snakethesniper
.consigliere.

User info:
Registered: Sep 2009
Posts: 111 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: 2
Time Online: 7:02:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ho un altro dubbio, la tipologia voi come la state gestendo? Io pensavo di fare un tipo di entità per ogni tipo con i propri attributi...

17-03-2011 10:57
Click Here to See the Profile for Snakethesniper Click here to Send Snakethesniper a Private Message Find more posts by Snakethesniper Add Snakethesniper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
asgar
.primate.

User info:
Registered: Jun 2009
Posts: 78 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 10:31:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

forse qualcuno ha avuto il mio stesso problema:

accedo con una query php al mio database su postgres: ho una tabella test sul database social, ho un utente testrole sul quale faccio questa grant:

GRANT SELECT ON social.test TO testrole;

la grant va a buon fine e fin qui tutto ok;
da php ho la mia connessione al db:

function test_connection_pgsql() {
$connection = "host=localhost dbname=social user=testrole password=miapwd";
return pg_connect ($connection);
}

e faccio la query in questo modo:

if ($db = test_connection_pgsql()) {
print 'Connessione al DBMS riuscita.<br />';
$sql = "SELECT * FROM social.test";
$resource = pg_query($db, $sql);
$row = pg_fetch_array($resource,NULL,PGSQL_ASSOC);
print_r ($row);
pg_free_result($resource);
pg_close($db);
}

la cosa strana è che la connessione va a buon fine, infatti ottengo:

"Connessione al DBMS riuscita."

però a seguire mi dice che l'utente non ha il permesso di select sulla tabella(anche se l'ho precedentemente grantato):

Warning: pg_query(): Query failed: ERROR: permission denied for schema social LINE 1: SELECT * FROM social.test ^

dove sbaglio?

ubuntu 10.10
postgresql 8.4
php 5

18-03-2011 14:40
Click Here to See the Profile for asgar Click here to Send asgar a Private Message Find more posts by asgar Add asgar to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Stefano2912
.consigliere.

User info:
Registered: Sep 2008
Posts: 101 (0.02 al dì)
Location: San Donato Milanese
Corso: Informatica
Anno: II
Time Online: 3 Days, 1:59:19 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Guarda io non ho creato gruppi utenti e permessi (non erq richiesto) e ho preso +3.. Non stare a complicarti la vita.. :D

18-03-2011 14:52
Click Here to See the Profile for Stefano2912 Click Here to See the Blog of Stefano2912 Click here to Send Stefano2912 a Private Message Find more posts by Stefano2912 Add Stefano2912 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
asgar
.primate.

User info:
Registered: Jun 2009
Posts: 78 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 10:31:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Stefano2912
Guarda io non ho creato gruppi utenti e permessi (non erq richiesto) e ho preso +3.. Non stare a complicarti la vita.. :D

cioè ti connettevi sempre col tuo utente postgres?

18-03-2011 17:43
Click Here to See the Profile for asgar Click here to Send asgar a Private Message Find more posts by asgar Add asgar to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Stefano2912
.consigliere.

User info:
Registered: Sep 2008
Posts: 101 (0.02 al dì)
Location: San Donato Milanese
Corso: Informatica
Anno: II
Time Online: 3 Days, 1:59:19 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Si. Tanto era in localhost :D

19-03-2011 08:04
Click Here to See the Profile for Stefano2912 Click Here to See the Blog of Stefano2912 Click here to Send Stefano2912 a Private Message Find more posts by Stefano2912 Add Stefano2912 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
asgar
.primate.

User info:
Registered: Jun 2009
Posts: 78 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 10:31:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ottimo allora.. mi risparmio di salvare il tipo utente nella sessione e di controllarlo :)

19-03-2011 09:29
Click Here to See the Profile for asgar Click here to Send asgar a Private Message Find more posts by asgar Add asgar to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Stefano2912
.consigliere.

User info:
Registered: Sep 2008
Posts: 101 (0.02 al dì)
Location: San Donato Milanese
Corso: Informatica
Anno: II
Time Online: 3 Days, 1:59:19 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

:D

19-03-2011 12:23
Click Here to See the Profile for Stefano2912 Click Here to See the Blog of Stefano2912 Click here to Send Stefano2912 a Private Message Find more posts by Stefano2912 Add Stefano2912 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Chobeat
.illuminato.

User info:
Registered: Sep 2007
Posts: 241 (0.04 al dì)
Location: Alessandria
Corso: Informatica
Anno: 1
Time Online: 1 Day, 6:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

idem, anche noi +3. se fai bene il resto, quello non serve.

19-03-2011 14:11
Click Here to See the Profile for Chobeat Click here to Send Chobeat a Private Message Find more posts by Chobeat Add Chobeat to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Snakethesniper
.consigliere.

User info:
Registered: Sep 2009
Posts: 111 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: 2
Time Online: 7:02:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Qualcuno sa darmi una mano riguardo la tipologia? Sto cercando di capire come implementarla nello schema ER. Cioè in linea di massima ho già trovato come metterle, il problema mi viene quando penso poi alla realizzazione, in particolare se viene eseguita una query che richiede le informazioni di un gioco e bisogna segnalarne la tipologia.
Una soluzione sarebbe quella di inserire un attributo "tipo" in gioco che si collegherà all'attributo "nome_tipo" in tipologia dove ci saranno tutti gli attributi delle varie tipologie con cardinalità (0,1). Però questa non mi sembra la soluzione ideale, più che altro perchè penso che in una query come quella descritta sopra poi compaiano campi vuoti con gli attributi che non c'entrano niente con la tipologia selezionata, io preferivo avere una cosa più "pulita" e avere solo gli attributi di quel determinato tipo.
L'altra soluzione era appunto tenere sotto le sottoclassi di tipologia e quindi avere 3 entità : videogioco, giochi da tavolo, giochi di carte. Il problema però sarebbe poi visualizzare in una query il nome del tipo, per il semplice fatto che mi sembra stupido inserire in queste entità un attributo "nome_tipo" che si ripete per ogni tipo di entità (ovvero in Videogioco, nome_tipo sarà sempre videogioco ecc.).
Qualcuno può aiutarmi a chiarirmi le idee? Anche perchè ho la sensazione che sto facendo parecchia confusione xD

20-03-2011 16:57
Click Here to See the Profile for Snakethesniper Click here to Send Snakethesniper a Private Message Find more posts by Snakethesniper Add Snakethesniper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 16:10.    Post New Thread    Post A Reply
Pages (11): « 1 2 [3] 4 5 6 7 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.094 seconds (51.32% PHP - 48.68% MySQL) con 24 query.