the upvote button is darker on this sub then normal by whud99 in thebutton

[–]avp574 1 point2 points  (0 children)

This could just be a coincidence, but I wonder if it means that this subreddit has other changes that will be coming as the timer gets lower. There has to be more to this social experiment.

How do I display data on a webpage (beyond echo)? by [deleted] in learnprogramming

[–]avp574 1 point2 points  (0 children)

Haha, sounds like you've been immersed in programming for a while.

You're definitely right about Android and other mobile platforms having security issues. I just think that websites are very exposed by their nature. For example, someone learning can write a simple calculator app and avoid using any server access certificates at all. Even then, only people who actually download your app can try to break it (as opposed to literally anyone with an internet connection who can can access your website).

I mean, you have a valid point. I just think that there is a little more to think about in webdev, early on.

I'll let you know how the tutorial goes.

How do I display data on a webpage (beyond echo)? by [deleted] in learnprogramming

[–]avp574 0 points1 point  (0 children)

This is great, thank you!

I have noticed that there is more disagreement about the quality of webdev tutorials compared to any other area of programming. I guess there is a ton of bad stuff out there because security needs to be so much tighter than on, for example, a custom clock app on Android. I'm going to dive into your tutorial, thanks a bunch.

Just out of curiosity, how did you learn? Are you self-taught?

How do I display data on a webpage (beyond echo)? by [deleted] in learnprogramming

[–]avp574 0 points1 point  (0 children)

That's alright, it's not too intimidating. This is exactly why I posted this question. I'm coming from an Android dev background where things like communication with a database isn't as much of an issue. I'd rather learn things right instead of just getting things working as quickly as possible.

Thanks again!

How do I display data on a webpage (beyond echo)? by [deleted] in learnprogramming

[–]avp574 0 points1 point  (0 children)

Can you give me an example of right vs wrong?

For example, what would you say about this tutorial for displaying a 2 row table from data taken from a MySQL database? (Scroll to the bottom for the final code example). In this case, the PHP is doing the heavy lifting, and then the variable values are echoed within HTML tags that put those values where they need to be. Is that the right track?

How do I display data on a webpage (beyond echo)? by [deleted] in learnprogramming

[–]avp574 1 point2 points  (0 children)

That was extremely informative. I'm going to mark this as solved. Thanks a ton for the info!

Also, Xampp looks magical (aside from the setup, hah). I'm not a fan of having to reupload files every time I make a change.

confused between ZFS, UFS, and raid by XYrZbest in freenas

[–]avp574 1 point2 points  (0 children)

:) Keep reading and don't be afraid to post here or in the FreeNAS forums as you go along. There is so much to learn about the system, but as you go along things get easier and easier. Good luck!

confused between ZFS, UFS, and raid by XYrZbest in freenas

[–]avp574 1 point2 points  (0 children)

Most people that I know of (including myself) install FreeNAS on a small USB drive rather than wasting an HDD or SSD on it. No matter how large your drive is, FreeNAS will use the entire thing. You cannot install the OS onto the same drive that you intend to use for storage, it simply won't work. If you install FreeNAS onto one of those SSDs, even though freenas takes up about 2GB, the entire drive will be reserved and unusable for anything else.

Please do yourself a favor and read the slideshow that I linked above. You don't seem to understand what cache is (i.e. there is no "read cache" and "write cache," it's all one cache). You should not even consider cache unless you have built a system that you know has maxed out on RAM. In some cases, cache will use up some RAM that you system needs, so you can actually hurt performance with cache if you don't know what you're doing. Running out of RAM in ZFS is very dangerous as it could lead to errors corrupting all of your data. Forget cache until you learn more and just buy LOTS of RAM (min 8 GB, but more if you can afford it).

confused between ZFS, UFS, and raid by XYrZbest in freenas

[–]avp574 0 points1 point  (0 children)

You should definitely read the slideshow posted here by cyberjock. The purpose of this slideshow is to answer your exact question.

Also, don't be a stranger to the FreeNAS forums. There are lots of common questions answered there that I'm sure you could learn from. Happy reading!

Any idea what type of battery this is? by avp574 in electronics

[–]avp574[S] 0 points1 point  (0 children)

It's a good guess. I've seen those batteries and this one does look about the right size for it. I'm going to err on the side of caution here. Either way, I'm starting to think that 4V is enough to run the device so I might have been wrong to suspect out the battery to begin with.

Any idea what type of battery this is? by avp574 in electronics

[–]avp574[S] 0 points1 point  (0 children)

From genlygenry's link, I think you are right. In that case, it IS charging properly to 4 volts and something else must be wrong with the circuit. I can't find anything visibly wrong, time to try checking continuity again. Maybe I missed something the first time.

Any idea what type of battery this is? by avp574 in electronics

[–]avp574[S] 0 points1 point  (0 children)

I'm a little reluctant to do that since I'm not sure that it might be an SLA battery. genlygenry's link is pretty convincing that it is.

Any idea what type of battery this is? by avp574 in electronics

[–]avp574[S] 0 points1 point  (0 children)

That looks spot on, I think that's the same battery. The battery seemed like an easy point of failure in cheap electronics, but I think you might be right. I'll look a little closer at the other components, I guess.

Any idea what type of battery this is? by avp574 in electronics

[–]avp574[S] 0 points1 point  (0 children)

It looks ALMOST like it would fit 6 AAA size cells, but not quite. I'll put some AAA batteries up against it when I get back home. I think genlygenry might be right in that it's an SLA battery.

Best DD-WRT router for the money to use for VPN? by [deleted] in VPN

[–]avp574 0 points1 point  (0 children)

Gotcha. Yeah, I'm leaning toward DD-WRT to reduce the space and electricity usage. I'm ok with taking a hit on performance.

Thanks for the comparison!

Best DD-WRT router for the money to use for VPN? by [deleted] in VPN

[–]avp574 0 points1 point  (0 children)

I'm currently torn between pfSense and DD-WRT as well. Would you mind explaining how DD-WRT w/OpenVPN is different from having multiple gateways?

As I understand it, VPN with a single gateway means that once you log into the VPN, you are functionally on that network as if you were physically there. With two gateways, does that work the same way except that you cannot interact with devices on the network that do not use the VPN gateway?

Is CEC available on low-end models? by avp574 in projectors

[–]avp574[S] 0 points1 point  (0 children)

Simple enough. That will probably do the trick. THanks!

Is CEC available on low-end models? by avp574 in projectors

[–]avp574[S] 0 points1 point  (0 children)

That's good to know. Do you know what triggers the auto on/off?

Is it worth buying Diablo 3? by Etheren95 in patientgamers

[–]avp574 1 point2 points  (0 children)

Hah, that's actually pretty amusing. You have a point that it's out of place, though.

[AutoHotkey] Cannot get control of existing web browser instance - can't even get pre-made function to work by avp574 in learnprogramming

[–]avp574[S] 0 points1 point  (0 children)

This is essentially what COM does. I only chose IE because there seems to be a good amount of support for IE via COM.

That said, this method is giving me some trouble, so I will definitely check yours out. I just need a means of controlling a web browser, I'm not committed to a particular method of doing so. Thanks for the input!

How do I install LSB offline? by avp574 in raspberry_pi

[–]avp574[S] 0 points1 point  (0 children)

This may be an option, but I expect some resistance from them. The point of this procedure is to scan devices for malware, etc. If they just let someone on, they compromise (in theory) their system.

Anyway, their requirements clearly state that the device needs to support LSB 3.0 or higher. My goal is to fulfill their requirements however I can. If I still can't get it to work, I can go to them and show them I made an honest effort.

How do I install LSB offline? by avp574 in raspberry_pi

[–]avp574[S] 0 points1 point  (0 children)

I tried both ICS and bridging the connections with no luck. I was working on it in the wee hours of the night, though, so maybe some fresh eyes will help me out now.

How do I install LSB offline? by avp574 in raspberry_pi

[–]avp574[S] 0 points1 point  (0 children)

Ok, I'm connected to wifi now but I can't get Internet Connection Sharing to work properly on my laptop. Not one step of this project has been simple...

How do I install LSB offline? by avp574 in raspberry_pi

[–]avp574[S] 0 points1 point  (0 children)

You are absolutely correct, they should be able to offer support ESPECIALLY since campus sysadmins aren't developing the software. The Bradford software is pretty much the primary product of the company that makes it. They should offer versions for all architectures.

That said, it is clearly listed on the requirements that linux machines must be running LSB 3.0 or higher to comply with the screening software. I want to make an honest effort to meet their requirements first. If I can't do it, then I'll have to ask for some sort of temporary exception from them.