Quick Sign In:  

Forum: General Discussion

Topic: History of songs played

This topic is old and might contain outdated or incorrect information.

Pat_DJPRO InfinityMember since 2007
Hi,
I was wondering in VDJ, is there a place where you can see a history list of played songs.

Before I turned to VDJ, I was using PCDJ, and in PCDJ, they is a place where you see all the dates and all the tracks that has been played, and I was wondering if this can be found in VDJ also.

Kind Regards,
Pat
 

Posted Wed 04 Jul 07 @ 5:56 pm
goto C:\Program Files\VirtualDJ
usually you will find this file(history.txt)

cheers,
matt
 

Posted Wed 04 Jul 07 @ 7:26 pm
Pat_DJPRO InfinityMember since 2007
Thanks will check that out, when I'll get home
 

Posted Wed 04 Jul 07 @ 8:58 pm
k_onePRO InfinityMember since 2006
Thanks Matt!
I totally had NO CLUE about this! And I've been wanting a feature like this since I started using the software...
AN excelent piece of software just got even better...hehe
 

Posted Wed 04 Jul 07 @ 9:12 pm
djfsPRO InfinityMember since 2007
its also stored in the playlist folder.
 

Posted Thu 05 Jul 07 @ 1:56 am
k_onePRO InfinityMember since 2006
I'm learning new stuff every day:)
 

Posted Thu 05 Jul 07 @ 2:15 am
thanks again ....i didn't know that

Matt i'm puttin' you in fer a raise !...... can you right click and print ?
 

Posted Thu 05 Jul 07 @ 4:26 am
little lost ... here ...
right click & print ?
 

Posted Thu 05 Jul 07 @ 6:15 am
JeremKPRO InfinityModeratorMember since 2004
It's a txt file. Of course you can print it.

But considering the time most users spend on VDJ, you might need to refill your printer with paper if you want to print the hole file!

(which would be pretty useless).

I wish i knew how to code a program, i would make something to give statistics on the most played file!
 

Posted Thu 05 Jul 07 @ 10:06 am
k_onePRO InfinityMember since 2006
copy and paste the text into Microsoft Word and use the word counter. That would tell you how many times each track has been used :)
 

Posted Thu 05 Jul 07 @ 10:43 am
JeremKPRO InfinityModeratorMember since 2004
lol, that's a workaround that most users wouldn't want to take the time to do!
 

Posted Thu 05 Jul 07 @ 11:13 am
bogartPRO InfinityMember since 2004
k_one
I like the idea of a word counter. CAn you explain where it is? I have looked in MS word, and can't seem to locate it.
 

Posted Thu 05 Jul 07 @ 6:12 pm
Pat_DJPRO InfinityMember since 2007
Because its a text file... if someone wanted to use PHP, they could retreive all the information at once by importing the text file and show all the stats, etc...
 

Posted Thu 05 Jul 07 @ 7:19 pm
I don't think everyone is running a php capable webserver on their machines. You could probably even do it in javascript by renaming the text to a .js but it's still impracticle.
 

Posted Thu 05 Jul 07 @ 7:22 pm
thanks JeremK ...... i don't wanna seem lazy but to test the printing i would have to install a printer and then once i did that to make it worth my while i would have printed my playlists (virtual folders) in Traktor so i was trying to avoid all that ...... i literally install stuff (like Adobe ) , use it , then uninstall to keep my lappy ( 32 processes ) a clean machine ....... my backup system sits in the van ......... i need a 3rd system for personal use for miscellaneous regular crud .......or just testing stuff
 

Posted Thu 05 Jul 07 @ 9:13 pm
k_onePRO InfinityMember since 2006
bogart wrote :
k_one
I like the idea of a word counter. CAn you explain where it is? I have looked in MS word, and can't seem to locate it.


It' under "Tools" and "Word count".
But I don't think this is the best idea though...hehe...it was more a joke actually:P
Counting the word by highliteing sentences in word takes ages..hehe
But I'm sure that there is a software which could do this properly out there somewhere...
 

Posted Fri 06 Jul 07 @ 12:03 am
Pat_DJPRO InfinityMember since 2007
Andrew87 wrote :

I don't think everyone is running a php capable webserver on their machines. You could probably even do it in javascript by renaming the text to a .js but it's still impracticle.


Although, If I get the chance, I could try to make one, and give you guys the link to it, and once in a while upload your text file.. and get a STATISTIC file, where you could see all the tracks, etc..
 

Posted Fri 06 Jul 07 @ 3:59 am
I was having a go at putting a java applet together which will let you select a file and then display the information, but I don't know how to make an applet display itself properly? Appletviewer.exe loads the class file fine, but a webbrowser won't.

Quote :
import java.awt.BorderLayout;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;

import javax.swing.JApplet;
import javax.swing.JPanel;
import javax.swing.JTable;

public class TextReader extends JApplet {

private static final long serialVersionUID = -5217600257250871124L;
private ArrayList<String> hist;
private JPanel contentPane;

public void init() {
setContentPane(getContentPane());
}

public TextReader() {

}

public JPanel getContentPane() {
contentPane = new JPanel(new BorderLayout());
contentPane.add(getJTable(), BorderLayout.SOUTH);
return contentPane;
}

private void loadHistory(String filename) {
hist = new ArrayList<String>();

try {
BufferedReader in = new BufferedReader(new FileReader(filename));
String line = in.readLine();
while(line != null) {
if(!line.equals("") && !line.startsWith("V") &&
!line.startsWith("-")) {
hist.add(line.substring(8,line.length()));
}
line = in.readLine();
}
in.close();
}
catch(IOException e) {
System.out.println("Error reading histionary file: " + e);
}
}

private Object[][] getSortedList() {
loadHistory("history.txt");
Collections.sort(hist);
ArrayList<Object[]> list = new ArrayList<Object[]>();
int count = 1;
for(int i=0;i<hist.size()-1;) {
String current = hist.get(i);
String next = hist.get(i+1);
if(current.equals(next)) {
hist.remove(next);
count++;
}
else {
list.add(new Object[] { current, count });
i++;
count = 1;
}
}
Object[][] obj = new Object[list.size()][];
for(int i =0; i<list.size(); i++) {
obj = list.get(i);
}
return obj;
}

private JTable getJTable() {
JTable table = new JTable(getSortedList(),
new String[] { "Filename", "Playcount" });
table.getColumnModel().getColumn(1).setMaxWidth(50);
return table;
}

}


I know your idea was php, but doing it server side would be more resource intensive - however ultimately more compatible because I don't know how many people actually have a java jre installed. There's what I had written anyway if you know anything about applets.
 

Posted Fri 06 Jul 07 @ 4:21 am
Pat_DJPRO InfinityMember since 2007
At the moment, I don't have any applet viewer.. so I couldn't test it... although, I know JAVA & javascript pretty well..
 

Posted Fri 06 Jul 07 @ 1:31 pm


(Old topics and forums are automatically closed)