Jump to content


Photo

Xrns-php


  • This topic is locked This topic is locked
90 replies to this topic

#26 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 23 August 2007 - 23:02

The most important thing to know about CVS revisions is that in general you should never pay attention to them at all. CVS revisions are the version numbers that CVS assigns to files. All files in CVS have a corresponding revision, and whenever you commit a change, the revision number of the changed files is incremented. By default, revision numbers start at 1.1, and the second digit is incremented with each commit (becoming 1.2, 1.3, and so on). CVS will never by default increment the first digit; it will happily go on to revisions like 1.134.

I've never used CVS to do versions. Versions happens in packaging (zipping the file and releasing it), it is arbitrarily based on whatever you call it at the time. We could use tags, but I usually just roll back by date.

http://www.eyrie.org.../revisions.html
http://durak.org/cvs...cvs/node34.html

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#27 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 23 August 2007 - 23:29

Yes, I can see the logic now. Specifically, most likely there will be discrepancy of revisisions of the separate files for XRNS2MIDI. There is no telling the revision of xrns2midi.php always matches the one of xrns2midi_classes.php.

A different subject: I have added a Tasks sub-project for XRNS2MIDI, so everyone can see the todo-list and its progress.

Edit: oh should that be in the Feature Requests tracker?

#28 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 24 August 2007 - 04:52

I went ahead and packaged 1.02, uploaded it to source-forge, we're OFFICIALLY LAUNCHED:

http://xrns-php.sourceforge.net/

Send in those donations to Bantai, Beatslauhter and myself people :)

Freshmeat announcement pending approval from the moderation queue.

I packaged blindly (on OS X) and had Mushen in IRC test, if there are any problems feel free to shoot me.

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#29 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 24 August 2007 - 16:33

I had a look at the 1.02 package I made last night on OS X on a Windows machine.

Unfortunately, a directory named __MACOSX containing meta data came along for the ride.

I don't think it's that big a deal but it's kind of dirty as a release. But yeah, sorry. In the future I will leave packaging to those with Windows machines. I was just eager to get it official I guess.

For future packages, two downloads should be made available:

xrns-scripts-version.zip
XRNS-SCRIPTS is for users of OS X, Linux, and any other PHP5 compatible operating system with a command prompt, users who don't want to download XRNS-SF.

xrns-sf-version.zip
XRNS-SF is the XRNS Script Frontend. Windows users who want an easy GUI and ready to use PHP5 scripting environment with all the required third party utilities are *encouraged* to download this package.

Paste the taglines above in the Release Notes when adding the files. Also add the Changes, if any, to changes.

Make sure to put the gpl.txt in the /utils/ directory. Currently, it's there.

If anyone wants to package 1.03, maybe change the licensing if Public Domain is not suitable, add a few more docs, then by all means. If not, I think this 1.02 is "good enough" until some actual changes happen. Although, it would be nice to have a clean release.

Freshmeat announcement:
http://freshmeat.net/releases/260411/

Webpage:
http://xrns-php.sourceforge.net/

Sourceforge page with downloads:
http://sourceforge.n...jects/xrns-php/

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#30 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 26 August 2007 - 19:34

1.03 now available:

xrns-sf-1.03.zip
XRNS-SF is the XRNS Script Frontend. Windows users who want an easy GUI and ready to use PHP5 scripting environment with all the required third party utilities are *encouraged* to download this package.

xrns-scripts-1.03.zip
XRNS-SCRIPTS is for users of OS X, Linux, and any other PHP5 compatible operating system with a command prompt, users who don't want to download XRNS-SF.

http://xrns-php.sourceforge.net/

Bugfix: xrns_randomizer always defaulted to chaos mode, fixed
Bugfix: Tick-based effects bug fixed (1781503)
Bugfix: scripts can now accept any output path, not just cwd
Bugfix: xsd checking based on Renoise doc_version (1781697)
Bugfix: removed ugly __MACOSX directories

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#31 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 31 August 2007 - 03:18

Who's napodano? You butchered the CVS, please clean up your mess.

http://xrns-php.cvs....e.net/xrns-php/

You recursively recreated the xrns-php module into a directory. :( Or am I missing something in development procedures? Please, do not create new directories unless they are approved here first. Please, do not overwite other peoples files unless you made changes, if you don't know what you are doing, please read some docs and practice/ask before doing a mass commit like this.

I haven't cared about this, or even brought up the issue, but will now proceed to.

In my opinion, this is an example of why it's a bad idea to distribute xrns-sf as a scriptless binary that pulls from CVS. CVS is for dev. If i'm working on a a script and it takes me 48 hours, I will commit every time I leave the computer, as a checkpoint, this does not guarantee the user a working script. I'm open to discussion.

I still think it's really cool that CVS updates happen automatically like that and I applaud the idea and implementation. Right on. But if someone were to update now, it would be a mess. And I think this will happen often, as it is normal to make mistakes during development.

Edited by Conner_Bw, 31 August 2007 - 03:35.

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#32 Beatslaughter

Beatslaughter

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2276 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:Music, Blu-ray, PC Games

Posted 31 August 2007 - 11:54

Ok, you've convinced me to drop that idea, i'll change it, so that it opens the download page of the project instead. The php and utils folder in the xrns-sf dir can be deleted btw, Bantai uploaded it already, before he had the chance to read the mail i've forwarded for you. The question is now... should the update still be possible and i put a warning in the docs or better remove it complete?

#33 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 31 August 2007 - 12:24

I already removed the files in those dirs, and the dirs themselves should have been removed automatically..

The way that you remove a directory is to remove all the files in it. You don't remove the directory itself; there is no way to do that. Instead you specify the `-P' option to cvs update, cvs checkout, or cvs export, which will cause CVS to remove empty directories from working directories. Probably the best way to do this is to always specify `-P'; if you want an empty directory then put a dummy file (for example `.keepme') in it to prevent `-P' from removing it.

Note that `-P' is implied by the `-r' or `-D' options of checkout and export. This way CVS will be able to correctly create the directory or not depending on whether the particular version you are checking out contains any files in that directory.


Indeed, in my local sandbox the dirs are gone, but not on the server.


About the auto-update: would be better if it downloaded the latest release on the download page instead, but as I understand that is a multitude more difficult to do. If so, the next best option is to remove the auto-CVS feature. As you can see, it is already a mess in the CVS...

#34 Beatslaughter

Beatslaughter

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2276 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:Music, Blu-ray, PC Games

Posted 31 August 2007 - 12:37

I haven't found an easy way to get the latest from the download page, so i guess opening the webbrowser instead and pointing to that page would be the quickest solution.

I could rename the "update_scripts.cmd" file to "get_cvs_dev_version.cmd" or similar and add a note in the docs with a warning. Or just remove it?

#35 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 31 August 2007 - 12:54

I could rename the "update_scripts.cmd" file to "get_cvs_dev_version.cmd" or similar and add a note in the docs with a warning.


Yeah, that seems more appropriate. Cool for people who want a quick-start devving scripts. For regular users, auto-update should be disabled. For checking out CVS, one should be able to opt-in to auto-updates.

When does XRNS-SF execute the update_scripts.cmd? On startup?

After I removed all the subdirs, XRNS-SF started with a question: "No configuration files found! Do you want to look online for scripts?", then silently quit.

#36 Beatslaughter

Beatslaughter

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2276 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:Music, Blu-ray, PC Games

Posted 31 August 2007 - 12:58

Yeah, that seems more appropriate. Cool for people who want a quick-start devving scripts.

When does XRNS-SF execute the update_scripts.cmd? On startup?

After I removed all the subdirs, XRNS-SF started with a question: "No configuration files found! Do you want to look online for scripts?", then silently quit.


That was the only point the program executed the update automatically. The reason is probably, that you've removed the utils folder completely. I had the CVS util included in that folder, since it's used by the "update_scripts.cmd".

#37 taktik

taktik

    Renoise Developer

  • Admins
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 15040 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:füße waschen

Posted 31 August 2007 - 14:11

I could rename the "update_scripts.cmd" file to "get_cvs_dev_version.cmd" or similar and add a note in the docs with a warning. Or just remove it?


Shouldn't update_scripts.cmd simply check/update out a "stable", "distribution" however called branch?

#38 Beatslaughter

Beatslaughter

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2276 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:Music, Blu-ray, PC Games

Posted 31 August 2007 - 14:56

Shouldn't update_scripts.cmd simply check/update out a "stable", "distribution" however called branch?


That was kinda the idea i had including any binary files, but it's not allowed to host these at the CVS server it seems. Maybe we could add a stable dir and place all working scripts in there. Sounds like a nice idea.

Anyway, i've updated my frontend already to version 1.03, which redirects to the SourceForge download page now.

#39 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 31 August 2007 - 15:54

Technically, you can delete files and dirs, but it requires access to the CVS path and the risky usage of the rm command.

We can't do it on Sourceforge due to permissions. However:

http://sourceforge.net/docs/E04/

16
Repository Upkeep and Management

File and Directory Deletion: CVS provides no mechanism to fully delete a file or directory from the CVS repository. If a file or directory needs to be removed, a Support Request will need to be submitted. As interactive access is not provided, a project cannot delete or move content without intervention. A specific file revision (based on CVS revision identifiers) can be removed using the CVS admin command's '-o' option.


Can someone compile a list of unwanted files/dirs and do the honors of contacting support with a list of things we don't want?

Thanks.

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#40 Beatslaughter

Beatslaughter

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2276 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:Music, Blu-ray, PC Games

Posted 31 August 2007 - 16:22

For the xrns-sf module the following isn't needed:

xrns-sf/php/* (empty currently, but has dead files in it)
xrns-sf/utils/* (empty currently, but has dead files in it)
xrns-sf/update_scripts.cmd
xrns-sf/xrns-sf.exe

I've sent Bantai the updated files for 1.03, as i'm not going to mess around with CVS currently.

#41 It-Alien

It-Alien

    Probably More God or Borg Than Human Member

  • Moderator
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 9593 posts
  • Gender:Male
  • Location:Avellino, Italy
  • Interests:trackers, basketball, chess, tabletennis, programming, writing, drumming, burping

Posted 31 August 2007 - 21:27

I'm sorry for having caused that mess. It was due to an inaccurate command line CVS action performed by me under Linux.

Anyway, I'm using a GUI (Cervisia) now, so this should never happen again.
my specs:
cpu:Intel Core2 Quad Q9550 (4x2.83Ghz, FSB 1333Mhz)
os:Win7 Home Premium 64bit - OSX 10.9.1 64bit
audio: M-Audio Audiophile 24/96 PCI


Unschemed, hypertechnical tracked music. Sounding different since 1993.

my latest song: Lavender Town Syndrome (11'33", Psychedelic Beast)


where to find more music by me: soundcloud , jamendo , last.fm , napodano.com , facebook

RTFM.gif

("Lavender Town Syndrome, 11'33" Psychedelic Beast)

#42 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 01 September 2007 - 00:04

CVS Best Practices

http://tldp.org/REF/...devsandbox.html

#43 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 02 September 2007 - 04:55

The power of Freshmeat and the SourceForge INC network:

http://www.google.co...arch?q=xrns-php

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#44 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 02 September 2007 - 19:42

I made a few changes to the ZipAllFiles() function in xrns_functions.php

Specifying any path wasn't working if the path was absolute. I fixed this.

In fixing this, I accidently overwrote one of my modules (but luckily, was able to save it with a xrns_ogg.php version in the un-emptied trash :wacko: ). So to prevent this, zipAllFiles now dies if the file already exists.

The fix might be an inconvenience but I figure better safe than humiliated.

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#45 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 03 September 2007 - 11:12

Technically, you can delete files and dirs, but it requires access to the CVS path and the risky usage of the rm command.


We already bumped into the limitations of CVS. Maybe we should think about migrating to SVN (which unfortunately, is not without its own problems)?

In fixing this, I accidently overwrote one of my modules (but luckily, was able to save it with a xrns_ogg.php version in the un-emptied trash :wacko: ). So to prevent this, zipAllFiles now dies if the file already exists.


May I suggest using a virtual partition system such as Returnil (free personal version available) or Sandboxie?

#46 Marc Shake

Marc Shake

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1589 posts

Posted 03 September 2007 - 12:37

I made a simple HP for that. If the "admin-panel" is up and running, I will post the URL to some guys here :)

#47 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 03 September 2007 - 17:02

I don't think we should migrate to Subversion. CVS does the job. The only limitations we have run into is our lack of organization and experience.

I have put in a support request to delete the problematic files.

I have created a mailing list which tracks all CVS changes.

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#48 Conner_Bw

Conner_Bw

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7043 posts
  • Gender:Male
  • Location:Montreal, Quebec, Canada

Posted 08 September 2007 - 17:41

XRNS-PHP 1.04
http://xrns-php.sourceforge.net/
http://sourceforge.n...group_id=203983


xrns-scripts-1.04.zip
XRNS-SCRIPTS is for users of OS X, Linux, and any other PHP5 compatible operating system with a command prompt. Additionally, this package is the stable compliment to XRNS-SF.

New script xrns_searchandreplace replaces every occurance of specific note in the song to another one. RenoiseSong8.xsd checked into /schemas/. Scripts now automatically handle schema validation based on Renoise doc_version. xrns2midi bug-fixes related to tick-based timing, volume and panning column effects. xrns_merge bug-fix for the change between VstiProperties to PluginProperties between Renoise 1.8 and Renoise 1.9. xrns_ogg now skips files smaller than 4096 bytes. xrns_ogg bug-fix for filenames with dots being skipped. Etc.


xrns-sf-1.04.zip
XRNS-SF is the XRNS Script Frontend. Windows users who want an easy GUI and ready to use PHP5 scripting environment with all the required third party utilities are *encouraged* to download this package.

XRNS-SF no longer includes scripts, instead the user is redirected to the SourceForge download page. The file "update_scripts.cmd" was renamed to "get_cvs_dev_version_scripts.cmd" so that it's more clear that these are works in progress. New keyword "text", to accept any text input from the user. PHP CLI updated to version to 5.2.4.


@bantai
chmod 664 /home/groups/x/xr/xrns-php/htdocs/xrns-sf.html
update the file with the latest currently located the in xrns-sf CVS module

Good times!

:w00t:

cpu Lenovo X220, Intel i7-2640M @ 2.80GHz ×4 os Windows 10 / Ubuntu 16.04 LTS
My Homepage » : My Renoise Tools » : Normalize Your Sig » : One million clicks! »


#49 Guest_Bantai_*

Guest_Bantai_*
  • Guests

Posted 08 September 2007 - 17:47

@bantai
chmod 664


Hehe, yeah, I keep forgetting about that :P

#50 zuran

zuran

    New Member

  • Normal Members
  • Pip
  • 8 posts
  • Location:Stockholm, Sweden

Posted 18 September 2007 - 13:44

As I was browsing this forum, I had to leave a note :) Working with CVS can be hell sometimes, mostly because of permission issues. By setting a different umask you won't have to chmod stuff before being able to update files.

file permission 777
umask 002

Will give 777 - 002 = 775 for new files.