Skip to content

u/fhsm

In this archive from May 2011 to Sep 2011

1
posts
14
comments
0
media
39
score

Top posts

What's your archival photo format of choice?

I've use Nikons so I'm starting at .NEF files. I've been storing them; however, I'm starting to wonder if this is a nearsighted choice. Should I be converting to DNG or TIFF for long term archives instead? I know hard drive space is cheap but I'm not interested in storing multiple versions. I think...

6 points30 comments
Open on Reddit

Top comments

I switched from CI to Yii during the long wait for 2.0.

At this point I've got no intention of going back but wouldn't say I think CI is a bad choice.

On the plus side the docs are great as are the fourms. The hello world story and quick start story is very good.

The licence is a turn off. I'd rather have something that used one of the big four.

This is vague but I think it has a bit of a hangover from the days of php devs only using FTP. For example it's support for bootstrapping from the shell was piss poor. This made it a less ideal tool for use in settings with more control.

I still support to CI apps. I'd say try a hello world in it and something else (Yii) and see what feels right.

4 points

The truth you may not want to hear

I too "work in science", but I know a reasonable amount about PHP. Let me strongly encourage you not to do this without a much clearer handle on what you want to do.

If you are looking to manipulate your data (ie parse a CSV file and work with it) php is the wrong language to use. The right language is debatable but php is wrong. The other huge point is that once you parse the data you become responsible for maintaining data integrity. This is non trivial. If data is money you've got to ask "am I good enough to take responsibility for X $ of data." It took me years of working on data pipelines to answer that question yes and even now I get nervous sometimes.

If you've got it in a good folder structure on a linux box as raw output and you've got a good bash guy then it seems to me all you need is a web server. Point the web root of the web server to /.../data, leave the default indexing on and let people get it that way. This won't be attractive but honestly real science rarely is. You'll waste minimal time setting it up and it will work very reliability.

If you have some more complex publishing need define it very clearly before you try and build it and then build it as pragmatically as you can. Feel free to define it here and we can help you narrow your definition.

I suspect this isn't what you wanted to hear. When I was starting out I was looking for a "real" project to learn on. This is almost never the right answer. It's bad for your skills and bad for your project. Instead get involved in another project where you learning won't harm your team and you'll have a mentor to help you learn faster. REDCap is a php based data collection system. They are funded by the CTSC system. If you are at a university that can join/has joined the consortium you can get involved that way.


The answer you may have wanted

have a similar situation:

  • Data go onto a FeeNAS box in the lab from the instruments
  • That is moved over ssh by a cron job to a debian server on the intranet
  • That server has a python script that rebuilds a nice static index page for all the data and posts it's availability to our internal instance of laconica.

I don't know much about wordpress however if you want to look into it you might start by looking at XML-RPC.

edit: formatting

4 points

PHP is wrong because he's not working on log parsing (or data parsing) or web dev for shared hosts. Given that his task reduces to moving files around I think the "glue" language aspect of Perl c. 1999 may be more relevant than cgi aspect; as such, Python, not php is the relevant spiritual successor to Perl. Additionally, Numpy/Scipy/Pylab and the bridge to R make it the winner for someone who's going to do a mix of data ranging / analysis / system scripting; however, asserting that Python is right for scientific computing is much harder than asserting that php is wrong thus I didn't do it.

I suggested he build it pragmatically because it sounds like he really just needs to move crap around on a *nix box. I agree with you that the word is over used in the practitioner press; however, it still has a real meaning in English that's helpful in this case: specifically that, all of this should be irrelevant because he's got a "bash guy" and just needs to move files around. If he'd asked for book suggestion mine would have been: http://www.amazon.com/Scientific-Programming-Computational-Science-Engineering/dp/3642024742 but he didn't so ...

The real problem with building something pragmatically isn't that the word is over used it's that often time we want to solve imaginary problems because they are fun. Most of science is the result of this exact behavior so I suggested that he look at remote procedure calls as a way of posting to WordPress programmatically. Wrong, maybe, but qualified, and more importantly in the context of a comment the point of which was just write a bash script instead.

Just because php isn't great for numerical computing and seems to have been eclipsed by others as a system glue language doesn't mean it isn't ideal for generating html in response to a web request. So I really had no problem suggesting a WP term he might have some luck googling or suggesting another php application that might be more appropriate for a php dev working in the sciences.

Finally, If you go back you'll notice that I didn't say I transfer files with "ssh" (or even scp), but rather, "over" ssh. So I'd like to pose a question: When you rsync files to a remote server what transport mechanism do you use and how is it superior to ssh?

While I'm asking questions can you comment on the source of your anger? Your's isn't the sort of delightful trolling that keeps reddit honest, it seems to be garden verity paralyzing anger.

3 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.