Slashdot Mirror


User: fprog

fprog's activity in the archive.

Stories
0
Comments
87
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 87

  1. Re:I don't use em unless I have to on Stored Procedures - Good or Bad? · · Score: 0

    From my experience...

    1. Create the application with SQL within
    the code inside some custom DBI object layer.

    2. When the query are stabilized inside your DBI functions, morph them to be "prepared" or morph them into stored procedure as needed.

    3. This means that your DBA is not the weakest link and tight deadlines can be met.

    4. It is better before going in full production to have stored procedure, but it's not required.
    You can perform some query analysis to see
    if you can improve performance, by adding indexes, sorting, limits, paging, etc.

    5. It is better for long term maintenance to have everything in stored procedure.

    6. The reason is you know that if you make changes, you won't break any SQL code, since you have access to everything. In big companies,
    sometimes this golden rule is broken and you
    have to patch tables with some white gloves
    and retest everything crossing fingers.

    7. Security should be implemented many ways.

    8. You should think of a good compromise between getting the app out of the door, having good performance and long term maintenance and security.

    9. I've seen too many companies which have a DBA weakest link that if that guy is sick for few weeks the entire IT department collapse.

    10. Like I said it's good if you can use stored procedures but don't go crazy about it.

  2. Re:Perl still sucks? Really!? on CPAN: $677 Million of Perl · · Score: 1, Informative

    Clean syntax...
    You can write some pretty clean syntax in perl just:

    #!/usr/local/bin/perl -Tw

    use warning;
    use strict;
    use diagnostics;
    use vars qw{ ... };

    main();
    exit;

    # Your perl code.

    1;

    portable libraries?!
    What the heck are you smoking dude? I want some!
    It works on more platforms than any other language,
    including C because it wraps libc platform weirdness into "you don't have to know or care" equivalent.
    Think about EBCDIC, incomplete , endianess, file systems
    that don't have all unixes attributes.

    A decent GUI library?
    There's a Perl/Tk. okay it sux.
    There's a wrapper for GTK and Windows API.
    okay it sux too.

    There's an HTML API, where you can write
    your entire program in HTML/JavaScript/Perl,
    and just install some Apache, with mod_xmlrpc
    and mod_perl thing that runs whatever you want locally on the machine. --> "good portable compromise".

    You could also use something like C++ Builder
    an embed your perl program within your C/C++ application.

  3. New MasterCard ad... on Abused, But Working Hardware Stories? · · Score: 1, Funny

    1. Burning an old motherboard... 150$
    2. Going to the store to buy a new one... 10$
    3. Making the front page of Slashdot telling how you were proud to have an half-working motherboard after burning it up and asking if other people did similar stuff... priceless.

  4. Sorry Typo: Sinke I kan't attend the Konferenke... on aKademy Team Announces International Lineup · · Score: 0

    I kan't attend the konferenke, but I kertainly am looking forward to the simultaneous release of KDE 3.3. It promises to be great, with lots of bugfixes and new features, like groupware support for kontakt.

  5. Yeah that's why DOS was so great can't screw it up on What Was Your Worst Computer Accident? · · Score: 0

    Seriously, that's what I love with DOS and FAT/FAT32, you cannot screw up a system! Using Norton uneraser/unformat for DOS on a floppy disk: C:\>format c: A:\>unformat c: C:\>diskcopy A: C: won't work C:\>deltree /y . A:\>uneraser C:\ (have to guess the first letter of every file but still, it even recognized deleted directory, the only catch is not overwritting the file entries) And some people still wonders at work why I format my Windows XP in FAT32, because if it screw up, I can undo it! Seriously, Linux is great, but with cryptic command name for beginners like dd, df, rm... it's easy to screw up. Where's uneraser/unformat for Linux ?! Some people use backups, that's good sometimes. What I found useful is people running mirrors of every directory /etc /home /usr /var /opt under things like a mounted /.mirrors/ with hourly.1 hourly.2 up to .24, weekly.1, weekly.2, weekly.3, monthly and some automatic backups. That's feasible in an enterprise-scale linux/solaris/unix server. But even that the problem is disk space! You cannot do that with a terrabyte database, ftp deposit box, flat files or similar really. Also, tell a linux newbie to do that. Backups are for wimps! =P I think it would be better to have really user proof methods! Oh and my Windows XP machine crash 2-6 times a day, while my Windows 98 SE machine crash 6 times a year... my Slackware server? been up and running for 4 years! =) [except for the small kernel patch downtime]

  6. Doesn't work on Win98 SE but... what about Perl? on Linux vs. Windows: What's The Difference? · · Score: 0

    I don't understand those who use a weird unreadable combination of bash/tcsh/ksh/awk/sed/m4/makefile script when one simple perl script can do it all, what's the point anyway.

    If it can be done in one script language fine (no golden hammer) but in any other case use Perl!

    Here the same using ActivePerl 5.8:

    C:\win98>perl -e "for (1..10) {print $_.chr(10);}"
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    C:\w in98>

    When will I get a default perl shell on Linux
    instead of a dumb bash?

    - Tired of typing perl -e

  7. Re:Anyone remember MSAV? on Microsoft Plans To Sell Anti-Virus Software · · Score: 0

    Yes, I remember cleaning ping pong with MSAV on a i386 SX 25MHz running on MS-DOS 6.x

    That was the good old time where Central Point was still alive with their PC Tools and CPAV.

    Both product where "stolen" and copied by Microsoft with an MS-DOS version of both!
    not mentionning the stacker clone...

  8. Re:Unlimited connections, really? on phpstack - A TCP/IP Stack and Web Server in PHP · · Score: 0

    I was #40956, the server statistics are down and the images didn't show up neither (broken),
    but the main page still works, hey that's quite an exponential growth support. =)

    Pure Guess: Image made offline... for saving bandwidth?

  9. Java3D? on DotGNU Ported to PocketPC · · Score: 0

    Have you ever try to "really" use Java3D?

    You make let say 3 tabs with some Java3D/OpenGL context.

    You draw something on the first tab, it eats up 256MB let say, because lots of polygons are drawn...

    You open another tabs, you try to free the previous one...

    Java crash "Out of memory" if you didn't edicated like 512MB of memory on the command line...

    Let say you kill both tabs and create a new context... you're now at 768MB !

    The problem with Java is simple a stupid Garbage Collector...

    The problem is that there is no way of saying you know all this "context" delete it now... like in C/C++.

    So, yes, it works, but yes they are big limitation on it...

  10. CrossOver Office supports them on Linux! on Microsoft's Magical 'Myth-Busting' Tour · · Score: 0

    .doc and .ppt are FULLY supported on Linux, just buy CrossOver Office and install Office 97, Office 2000 or Office XP. Why people bother with OpenOffice...

  11. Re:Worthy Cause, but Huge Barriers to Entry on Mono Beta 2 Released · · Score: 0

    The problem is that most Microsoft shops are like:
    ASP.net on IIS on Windows server 2000/2003,
    C# for Win apps, .NET for the 3-tier core logic,
    Visual Source Safe for their CVS,
    Microsoft Visio for UML,
    SQL Server for their database,
    Microsoft Cluster for clustering... (WTF?!)

    At first, I tought that it was a joke...
    Especially, I couldn't believed it when the person said they were using Microsoft Clustering Technology!

    Some architecture designers most be smoking crack
    but after seeing more than 50 jobs ads requiring all that technology and barely no one asking for Unix/Linux/Apache skills. =|

    Any doubts? Look on Monster, Workopolis, Jobboom!

    So, to replace all this,
    we not only need .NET,
    we need a PostgreSQL accepting SQL Server scripts and a better PL/SQL script PgSQL is fake,
    we need kivio or similar to replace Visio,
    we need Apache resolving ASP.NET (some commercial version exists or hacks with Cassini)
    and finally some way to extract Visual Source Safe into something else like CVS, Subversion or Arch.

    They make does company switch... might be the hardest part!

  12. $0.02 per MB per month or 10000$ for 40GB per year on Sun Says Hardware Will Be Free · · Score: 0

    "As part of its services offerings announced on Monday, Santa Clara, California-based Sun rolled out a pay-for-use storage service, with prices starting at 2 cents per megabyte per month. The service includes installation services, Sun support and software licenses, Sun said. "
    http://www.reuters.com/newsArticle.jhtml?type=t ech nologyNews&storyID=5304507

    $0.02 per MB per month
    or
    $0.24 per MB per year
    or
    $1 per 4 MB per year
    or
    $10000 per 40000 MB per year
    or
    $10000 per 40 GB per year

    Yeah right!

    Just buy a 1000$ computer for the next 4 years.

  13. Re:A return to appliances? on Sun Says Hardware Will Be Free · · Score: 0

    Of course, the company who sells this "free" large Sun Fire E25K Server, for only $3,196,985.00...

    Some scenario...

    Salesman:Now we have a great deal, we give out for free our new Sun Fire E25K Server...

    Voices: Nice! I want it, I want it...

    Salesman:...as long as you subscribe to our friendly contract for the next 4 years for our superbe Sun server application system at a low introductionary cost of 1M$ per year!!!

    Voices: --silence-- :(

    Salesman: Including our new J2EE server for free!
    Salesman: This offer is only available for a limited time period.
    Salesman: Isn't that a great deal?

    Voices: *hang up*

    Salesman: Hello!?

  14. Re:Perlin noise URL right here on GPU Gems · · Score: 0

    Dupe!

    Of course, you can find it dude, it's right here or here.

  15. Wine use LGPL license not GPL. on SpecOpS Labs Response to Wine Project · · Score: 0

    Wine use an LGPL license http://winehq.com/site/license

    This means that they may use WINE source code as they wish and add improvement to it by using it like a library,
    mostly like Transgaming does.

    They do NOT have to release their improvement unless it affects the library source code itself.

    In most case, they will have to modify it, but not necessarily, if they choose to build on top of it or around it instead.
    Think of it like a 3rd party library or component.

    Slashdot blindly associate LGPL with GPL, they are different license folks!

  16. Re:The problem is that Perl6 ain't Perl5 anymore.. on Periodic Table of the Operators · · Score: 0

    Well, the problem is that the unicode << >> tags
    didn't display correctly, and that will be a problem with Perl6 among all the other Unicode
    and other charset being used.

    Ok, another:

    #!/usr/bin/perl

    use IO::Socket::INET;
    $n=IO::Socket::INET->new(LocalP ort=>20010,Listen=>5);
    $n->listen();
    while(($s=$ n->accept()))
    { print <$s>; close $s; }

    Perl 6:

    #!/usr/bin/perl

    use IO::Socket::INET;
    my IO::Socket::INET $n = (LocalPort=>20010,Listen=>5);
    $n.listen();
    while ($s=$n.accept())
    { $stdout.print($s.getlines); $s.close; }

    $s is a socket, but the thing is at first sight,
    when I read this, I saw string concatenation...

    print if f($s+%h<<f>>) == $b;

    is what should have been seen if tags worked,
    which is print $_ if f( taking the addition of two scalar one from $s the other from the hash %h
    key "f" is equal to $b in numerical context.

    $a = "abc"~$b~$c~$d~"def"~getVar($d);

    is equal to this in Perl5:

    $a = "abc".$b.$c.$d."def".getVar($d);

    @a ^[{ $^a > $^b ?? 1 :: ($^a,$^b) := ($^b,$^a) }] @b;

    This in place comparision thingy can be found
    explained on perl.perl6.language

    I agree that we have $^a $^b in Perl5.

    The others one which didn't print
    is all the possible <<+>> >>+<< scenarios.

    @b = >>+<< @c;
    @a = >>+=<< @b;
    @b = <<+>> @c;
    @a = <<+=>> @b;
    @a ^+= @b;
    @a v+= @b;

    http://groups.google.com/groups?threadm=200 21101113810.B7568%40rama.comp.pge.com

    Not mentioning the abuse of .= scenarios and others like the Yen operator instead of zip...

  17. The problem is that Perl6 ain't Perl5 anymore... on Periodic Table of the Operators · · Score: 0

    In Perl5, idioms were under control some how: We had stuff like regexp, match, search, translate. Context grouping keywords like q, qq, qw: for non-interpreter string, interpreted string, list context. The usual @_ $_ @ARGV $` $& $' $| variables, not including the other ones... Usual __END__ __DATA__ and similar. POD stuff =cut =head1 =item Stream operator = ) Some for slurping $a = ; @b = ; The rest was quite straightforward, except 'advanced regexp' syntax with backtracking that most people don't use, at least not without proper comments. The problem with Perl6 is that Perl5 code won't work anymore, everything you knew about Perl5 doesn't exist anymore, you need Ponie for one part and Perl6 for the remaining. It's like comparing Perl5 with Python. [or your favorite language]. It would have been better to introduce new keywords gradually without breaking source code that currently works, so people can use the new keywords as they need it, that would have create a more smooth learning curve. But currently, you have to learn a new language that has nothing to do with Perl5. Without looking further, assuming you are comming from Perl5 and that you have to maintain some Perl6 library, what does the following do: while ($s=$n.accept()) { print $s.gets; } if +(f($s+%hf)) == +$b { print; } $a = "abc"~$b~$c~$d~"def"~getVar($d); @a ^[{ $^a > $^b ?? 1 :: ($^a,$^b) := ($^b,$^a) }] @b; @b = + @c; @a = += @b; @b = + @c; @a = += @b; @a ^+= @b; @a v+= @b; Assuming you can see the > operator on your ASCII non-Unicode editor, instead of ?+?. Have fun!

  18. Re:My brain hurts on There Are Infinitely Many Prime Twins · · Score: 0

    And High School students complains about High School Math being too difficult and too abstract. I have no clue whatsoever why...

    Hey, it's easy folks you take a prime twins
    and you try fit this on a parabola...

    Hey, Where did everyone go?

  19. Possible solution... on Is Swap Necessary? · · Score: 0

    Why not simply assign a MAXIMUM amount of RAM
    that normal application may used,
    let say an application may never used more than 64 MB of RAM.

    Application like OpenOffice, Mozilla, GCC, KDE, GNOME,
    could be

    nice --RAM 512MB pid
    nice --RAM 0 pid = No limit

    or started with a shell script with a specific amount of RAM.

    If an application runs out of RAM, two possible solutions:
    - Kill it "gracefully"
    - Suspend it and send an email to root@host
    basically, you reduce the timeslice to 0.

    This would allow for instance "nuclear reactor"
    to have that process use whatever it needs
    and watchdog or any other "less important"
    process get killed, instead of having
    the entire system becoming slugish
    after some amount of time.

    You may also provide a 'hint' to the parent process
    via some API that the child got "out of control"
    and something should be done about it.

    This would allow finer control over the current "statue quo".

    Just a tought.

  20. Macromedia Flash 7 Player for Linux Download Link on Flash 7 for Linux Released · · Score: 0

    Other platforms download link:
    http://www.macromedia.com/shockwave/download/alter nates/

    Linux x86 Flash Player 7 for Mozilla 1.2
    http://www.macromedia.com/shockwave/download/index .cgi?P1_Prod_Version=ShockwaveFlash&P2_Platform=Li nux&P3_Browser_Version=Netscape4



    Older version not supported by MacroMedia

    Linux x86 (1) (2) Flash Player 6 for Mozilla 1.1
    http://macromedia.mplug.org/

    (1) Not officially supported by Macromedia.

    (2) These Linux packages (RPM, DEB, ebuild) are available for manual download, apt-get, urpmi, or emerge for these supported operating systems: RedHat, Mandrake, SuSE, Conectiva, Debian, Gentoo, Generic.



    Server Slashdotting starts in 3...2...1... =]


  21. 700$ Oracle? Last time I checked it was like 40K$ on Oracle To Finish Linux Makeover This Year · · Score: 0

    700$ Oracle?

    Last time I checked it was like 40K$ per CPU
    plus 100$ per end-users at the extreme back-end.

    Are you sure you got it from otn.oracle.com ?

  22. There seems to have been a slight problem... on Windows 98SE emulated on Pocket PC · · Score: -1, Offtopic

    " Warning: mysql_connect() [function.mysql-connect]: Too many connections in /home/virtual/site1/fst/var/www/html/admin/db_mysq l.php on line 40 There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser. An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists. We apologise for any inconvenience. " Yes and that "slight problem" is called SLASHDOT. Enjoy! Maybe, next time, they should make a static HTML page without MySQL and use Apache rewrite to fake the PHP link? Poor website, maybe some mirrors could help!? freecache.org +1 funny

  23. Can I get one for X-mas? on Small Form Factor Dual Opteron · · Score: -1, Redundant

    Can I get one for X-mas?
    Please!

    It's sad that x-mas is over.

    The webpage should give more pictures
    of the inside and the actual configuration...

    Here's a mirror:
    http://www.freecache.org/http://www.iwill .net/zmax /zmaxdp_1.asp

  24. Re:searching papers: citeseer.ist.psu.edu on Optimizing Stack Based Architectures? · · Score: 1, Informative

    You should try citeseer or one of its mirror too.
    Most paper are free for download.
    IEEE is another website or ACM queue.

    http://citeseer.ist.psu.edu/cis?cs=1&q=stack+based +virtual+machine

  25. OSNews ADWARE = Gator on de Icaza: Rest of World Will Force US Into Linux · · Score: 0

    Why does OSNews has to FORCE me to install Gator adware to view their article, even when clicking 'NO', then rundll32, crash my Internet Explorer browser then crash my computer. Just to read their article...