• Where Does ML Traffic Come From?

    27
    7 Votes
    27 Posts
    6k Views
    tonyshowoffT

    They're buying into my layer 7 DDoS as actual hits, suckers!

  • strict syntaxt

    9
    2 Votes
    9 Posts
    3k Views
    tonyshowoffT

    It sounds like you're talking about typing, not syntax, C++ and Java are strongly typed languages, their syntax is not actually much more "strict" than other high level languages, I have about equal syntax freedom in PHP 7, Java, and C++, but JavaScript has a little bit more "freedom", in the sense it allows you to do asinine things like not have semicolons at the ends of lines. This is something crappy Ruby and Python programmers sometimes love doing since they rail against semicolons, of course making their JavaScript harder to debug and impossible to compress.

    Anyway...

    Weak typing is easier for beginners, but it can make things difficult for larger, more complex projects; this is something we kept bumping up against in PHP, which is why PHP 7's strict typing is great and we've saved a lot of debugging headaches and dealing with other problems by making everything strictly typed.

    Both PHP and JavaScript allow both static and dynamic comparison regardless of type strictness, for example:

    1 == "1" True 1 === "1" False

    The strict comparison is good for several reasons, however even in JavaScript there's a few issues with it, because JavaScript types in-of-themselves are not very good. There's not only a single object type which creates insane and unexpected results but there's also only a single numerical type as float, so:

    0 == 0.00000000001 True

    Languages like C++ and Java always have type strict comparison, so it's as if you're typing === every single time.

    Having said that, when it comes to strict mode, those are different depending on the language. In PHP it's related to typing and how objects are handled (non-static properties cannot be accessed statically, for example), however in JavaScript it's primarily related to variables and object properties, all of the type issues still exist regardless.

    Should you use it? In JavaScript absolutely always, because it helps make up for some of the language's flaws which can get you into trouble debugging later on. When it comes to PHP always have E_ALL | E_WARNING | E_NOTICE | E_STRICT | E_PARSE set in your php.ini (or barring that, set in .htaccess) and if you're using PHP 7 take advantage of the strict typeness, but even if you don't want to use PHP 7's new strict typing, properly log errors.

    Do it right the first time.

    As @JaredBusch said above, when I don't see it enabled, it's just a sign of the horrors to come. Even well written JS code will have errors typically in it when people don't use strict.

    In the amateur programming world, especially PHP (but also JavaScript) there's a desire to simply hide warnings, notices, errors, etc rather than fixing them. This is like taping over your check engine light on your car and assuming it's now completely fine.

    In other words, if you feel as though you should be able to suppress syntax and type errors knowingly, you should not program; get someone else to do it. I sometimes hurt feelings saying this, but if you approach any other job in a similarly lazy manner, you'd be fired or in some cases imprisoned when your building collapsed or killed someone.

    In actuality, programming errors have killed people, maybe yours won't, but that's no excuse to intentionally do a bad job because you're lazy. It's bad for your customers, bad for your environment, bad for your users, and bad for you when things fail and break and you don't know what went wrong because instead of logging properly and completely, you suppressed everything.

    In addition to returning to projects much later, laziness with typing and also syntax causes people to write bad code initially so later on they have a much harder time reading their own code or debugging. Some people say this doesn't happen to them, perhaps with tiny scripts that's true, but beyond that they're just lying, or they're stupid.

    So no, it's not awesome, and I've personally had to fix cases where ignored notices from PHP created failed database queries and data loss, as well as incomplete data states, and there's the recent example of a similar declaration problem leading to a guy deleting all of his customer data, that is also an example of why you don't program in production, another massive problem out there.

    Either turn on all warnings and notices, enable strict everywhere you can or stop programming, no matter what it is you're working on. There's enough bad code out there, fix your approach before you get too old to do it and you're that old programmer everyone hates or that old IT guy who writes bad scripts which break things everyone else has to fix.

    So when starting a project or script, if you want to hide PHP's warnings or notices or keep JavaScript from being strict remember to tell yourself, clients, and anyone else that "I'm starting this new project and I'm going to do a terrible job at it," because you will, it's inevitable.

    So I agree with @scottalanmiller, it depends on what your goals are, either to write something that works and is easier to maintain later on, or to write garbage to create a hell for yourself and other people which may or may not destroy data and lose things with no further information as to what went wrong.

    Now that you know the importance of it, any decision otherwise beyond this point is being intentionally stupid and reckless.

  • IBM Storage V3700

    5
    3 Votes
    5 Posts
    902 Views
    F

    I manage a Storwoze 3700, you can find the option for easy tiering is in the web interface, I think is in the "settings" menu (the last voice on the right column).

  • Email Address Issue

    53
    1 Votes
    53 Posts
    12k Views
    scottalanmillerS

    @aaronstuder said in Mangolassi is leaking everyone's email address!:

    @scottalanmiller did you report the reload bug yet?

    I want to wait for 1.0.4 which is just about to drop before putting in a report on 1.0.3. Don't want to create noise if it is already addressed or just something in our code base download.

  • To Scott

    4
    -1 Votes
    4 Posts
    657 Views
    scottalanmillerS

    Interesting, it must be a swap file rather than a swap partition.

  • Corel Draw x8: Performance and other issues

    3
    0 Votes
    3 Posts
    773 Views
    gjacobseG

    @dafyre said in Corel Draw x8: Performance and other issues:

    The first place I would look is Updated drivers... How recent is Corel Draw x8?

    Just downloaded.

    That said, It did do an update prior to my uninstalling it and cleaning the system up and re-installing it.

  • How Do You See GPT Partitions on XenServer 6.5

    13
    0 Votes
    13 Posts
    3k Views
    BRRABillB

    @scottalanmiller said

    Forked us over here as this is totally unrelated to the topic that it was in and a new question was asked in the thread.

    My bad.

  • script the creation of a database on CentOS7

    4
    1 Votes
    4 Posts
    805 Views
    scottalanmillerS

    @alex.olynyk said in script the creation of a database on CentOS7:

    Thanks Scott! Works Perfectly!

    No problem. Done that one many a time.

  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Is Edx.org worth paying for certs

    4
    1 Votes
    4 Posts
    786 Views
    scottalanmillerS

    @coliver said in Is Edx.org worth paying for certs:

    I always find it weird when systems admin "stuff" is mixed in with computer science.

    Or as we from CS programs say... that's a scam. It's "filler" hoping that CS students don't realize that a cheaper to deliver class displaced what they had paid for.

  • Tool for documentation

    9
    1 Votes
    9 Posts
    3k Views
    O

    @Dashrender said in Tool for documentation:

    @original_anvil said in Tool for documentation:

    @Dashrender well... it would be handy. I know that your option will work as well, but I'm sure you will agree that it is better to use one tool for one task instead of two or more.

    Oh absolutely! Anything you can do to make the end user's job easier it definitely a good thing. I just wouldn't have that item on my requirement list, instead it would be on the, should/really want to have list.

    Gotcha! Well, not having that functionality is not a stopper, but highly desirable feature 🙂

  • GPO issue with Server 2012r2

    11
    0 Votes
    11 Posts
    1k Views
    alex.olynykA

    No WMI filters are in place. Too bad we dont get 1 free support incident each year from MS just for using their stuff.

  • GPO on Desktop

    11
    2 Votes
    11 Posts
    2k Views
    DashrenderD

    @RoopanKumar said in GPO on Desktop:

    @Dashrender we need to create a rule so that the user should not save their work on desktop that is the aim but the condition is there is no network path or any other space just they have to save in their other partition

    got it

    I hear what you are saying. I've never done it, so I'm not sure it can be done. You could setup a mandatory profile that users can't change, but I think that still allows them to save to the desktop as if it was a temporary directory, and upon reboot, the files are gone.

    Not a great solution in your situation I'm sure.

  • Computer Education Ideas for a Seven Year Old

    16
    3 Votes
    16 Posts
    4k Views
    O

    Hey there!
    Friend of mine gave a good feedback about this one
    https://codecombat.com/
    Hope it gonna help!

  • Hyper V - CPU Processing Power

    6
    1 Votes
    6 Posts
    800 Views
    JoelJ

    Thanks guys.
    I have started by adding some more exceptions to the on-access scans and will see how it behaves!

  • ColocationAmerica

    28
    4 Votes
    28 Posts
    9k Views
    scottalanmillerS

    @FATeknollogee said in ColocationAmerica:

    @scottalanmiller How much rack space is being consumed, 1/2 cab, full cab?

    Well, we HAVE a full cab. Over half is used on initial equipment delivery. We have plans for at least one large NAS to be added soon and possible one large Sparc server that we are interested in adding. There will be some empty space, but not a lot.

  • Big data breaches found at major email services

    24
    3 Votes
    24 Posts
    7k Views
    MattSpellerM

    @nadnerB gaahhhhhhhh I was staring at it waiting for it to load

  • Looking for the name of a thing

    9
    1 Votes
    9 Posts
    2k Views
    J

    @dafyre said in Looking for the name of a thing:

    You probably need to be sure of the voltage coming into whatever it is you need that for... Don't want to hook it up to a PDU putting out 208V if you only have a 110V device.

    Bahaha yeah really. Ours is 208v. 240v is more common than 220v though.

    Hoeveer most devices are ranging from 100-250v on Switch mode power supplies.

  • Windows security groups...

    8
    0 Votes
    8 Posts
    1k Views
    bbigfordB

    @BBigford said in Windows security groups...:

    @Jason said in Windows security groups...:

    @BBigford said in Windows security groups...:

    I'm in Active Directory Administration Center...

    People actually use that?

    I like it for quick day to day stuff. Resetting passwords and checking memberships. Anything more than that and I use ADUC. If Microsoft completely dropped ADAC, I wouldn't be super sad... It's extremely stripped down anyway. About 90% of the reason I use it is I like that you can more easily locate things with the "Locate..." option. I haven't found that in ADUC, but I also haven't really bothered to look deeper...

    I just use Locate for being able to quickly jump to the OU that the object is located in.

  • How to Market RAID 6 When Customers Need Safety

    21
    4 Votes
    21 Posts
    5k Views
    DustinB3403D

    @scottalanmiller said in How to Market RAID 6 When Customers Need Safety:

    @DustinB3403 said in How to Market RAID 6 When Customers Need Safety:

    @BBigford said in How to Market RAID 6 When Customers Need Safety:

    I once asked a vendor who were pitching an appliance that supported RAID0+1 and RAID1+0, "what would you recommend between the two, to a potential customer?" They said it didn't matter as they are both the same thing.

    We didn't go with that vendor.

    RAID10 vs RAID0+1

    Or, you know...

    http://www.smbitjournal.com/2014/07/comparing-raid-10-and-raid-01/

    TL:DR pictures are prettier 😛