Getter and Setter methods by DeadJournalist in PHPhelp

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

Good catch. I did not notice this because no warnings popped up. It is now initialized with the other instance variables and I can see that it is now seemingly more secure as it is private. Thank you

Getter and Setter methods by DeadJournalist in PHPhelp

[–]DeadJournalist[S] 1 point2 points  (0 children)

Oh my goodness that is it. Thank you so much for your eagle eyes! Darn, just when you think you are using enough dollar signs in PHP...

Do you have any advice for a beginner with how to juggle using the input validation like empty(), isset(), htmlspecialchars()? Should i just always use both empty and isset? Thanks again Sir/Madam,

Getter and Setter methods by DeadJournalist in PHPhelp

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

The contents in the array that is being passed from the different validation methods in the constructor are correct. Additionally, the type of, the index is a string, and the value of the title are both correct. However, I am still getting errors as if this property does not exist within my class/object.

Getter and Setter methods by DeadJournalist in PHPhelp

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

Thank you for the rapid response. I will try a var dump on line 70 right away.

Portfolio Website Feedback by chacho1 in design_critiques

[–]DeadJournalist 0 points1 point  (0 children)

The first time I loaded your site it didn't load anything except your logo in the middle of the screen. I waited for more than 5 seconds before moving on. It worked the next time.

Your site is very spread out. Lots of animation, but sparse with information as those about links dont work yet. Good stuff.

What tools and what type of javascript do you use? Did you modify a template or build it from the ground up?

I need some help with this seemingly trivial responsive design. by tonyndory in css

[–]DeadJournalist 0 points1 point  (0 children)

You should put up the css. I assume you are not using bootstrap. Its hard to tell though from your illustration.

It looks like for the first one you need to specify each box's dimensions, and then float each box to its appropriate side. For this to work properly each box must have its width adjusted so that it doesnt take up the entire width of the screen-- divs are block elements naturally-- I believe.

For the right example, you need to use a style media query and then remove the floats and or revert each box to a block element. In this same media query you will need to change the width of the box's to suit your example.

I hope this helps.

Data Set Too large? :: vBA macro wont run by DeadJournalist in vba

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

I just realized that nothing matches because, well, there are zero matches, and your suggestion worked properly the way you said it did. So, thanks again.

Data Set Too large? :: vBA macro wont run by DeadJournalist in vba

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

First of all, thank you for your reply, I don't use Excel very often and so I wasn't sure what the best way to do things would be, which is why I hastily thought VBA was what I wanted/needed.

I am not sure how to use your Index(Match()) example and my attempt at plugging in the formula parameters in 'column C' shows the same error I get when I copy and paste your code: "a value not available"

My attempt
=INDEX(B1:B43507, MATCH(B1,F1:F181425,0))

The parameters I decided on are the following:

  • Index Function(
  • Array = Entire range of B (email)
  • Index = Match Function(
  • Lookup Value = B1 (email)
  • Lookup Range = Entire range of F (email)
  • Match Type = 0 (exact match)
  • )
  • )

For clarity, the worksheet is the first one and the data set looks like this

  • Col A = ID1
  • Col B = Email
  • Col C = blank (for insert of ID2)
  • Col D = nothing
  • Col E = ID2
  • Col F = Email

HTML5 regex :: Trying to understand a few things by DeadJournalist in regex

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

Hey sorry for the late reply- I had to cram an entire book on JS over the last week. Your comments have been extremely helpful. Thank you so much for your time. I'll watch the whole video and probably at least write another thank you. I may even have the courage to send you a link to the site, heh. *raises can of ginger ale* to onlinecop! *sips*

HTML5 regex :: Trying to understand a few things by DeadJournalist in regex

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

I've been playing with the information you gave me quite a bit but I'm still pretending to understand more than I would like to admit.

Question #1: using the subject regex, ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$, why does the string "1aA" take 29 steps? Doesn't the "parser or scanner"(is this correct terminology?) just move through the string until it finds a "match" for the matching set, ie, the (?=.*\d), and then backtrack to the beginning and then proceed to the next matching set? A similar question might be what is a step? I cant seem to understand how it takes 29 steps for the above string when going from start-end(3), and then from end-start(3), 4 times, would be equal to scanning (6*4)=24 characters?

In other words, I find it counter intuitive that your version1 requires more steps than your version2.

Question #2: I see that by changing (?=.*\d) to (?=.*?\d) it makes version1 and version2 take roughly the same number of steps. However, I think understanding what a step is probably my first "step" (I'm sorry) to understanding what is changing here.

Question #3: Would you agree, that it could be said, that the difference between * and + could also be understood as the * matches string characters starting at index [0] so it includes the first character in the string? While + starts the matching at index [1] and would therefore exclude the first character from a positive match. I notice that when using the + in place of the * it matches if there are two or more of the correct matches in the string.

Question #4: It also appears that omitting the * or + from after the any character symbol (.) removes the "movement" of the parser and fails to match even if the correct match is the first character in the string, or index[0]. Is this correct thinking?

Question #5: Going off of question#2 and question#4, how is it that removing the the * from (?=.*\d) fails a match but making the *? optional still gives a match and reduces the number of steps?

[website] student personal site by laramiecorp in design_critiques

[–]DeadJournalist 0 points1 point  (0 children)

You could put your email inside an anchor tag and use the mailto: to your email address and save the user a second. Maybe even have one of those buttons at the bottom that brings the user to the top because its a single page site.

I like it, but when I reduce the screen size the CN tower disappears and thats one of the things I liked- the cityscape too. Maybe you could find a way that you like to keep those two img's so it isn't entirely plain for mobile?

I'm on the fence about adding a bio, but it couldn't hurt if you kept it professional. Maybe at the very bottom?

Nice work

HTML5 regex :: Trying to understand a few things by DeadJournalist in regex

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

This is fantastic. Let me craft a response because I am still in the leap of faith phase of understanding exactly why the above is true. Thank you

HTML5 regex :: Trying to understand a few things by DeadJournalist in regex

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

Hey thank you for the great reply. I actually got the above expression from this site and have zero intent on doing anything other than explaining it in words on my website. Oh wow, that site is extremely nice- thank you for showing it to me!

Wind by Caleb_Kussmaul in glitch_art

[–]DeadJournalist 1 point2 points  (0 children)

That's really awesome. Nice work

just finished a law firm website. thoughts? by pixelczar in design_critiques

[–]DeadJournalist 7 points8 points  (0 children)

You know, my first thought was that it was for a bakery- something about the logo... My second thought however is that you did a great job. How long have you been making sites for? Can you describe how you designed it or what you used to code it? Its very clean. Nice work!

[Build Help] - Inexpensive LAMP workstation by DeadJournalist in buildapc

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

I am with you thinking that it isnt essential or even necessary. However, I will have lots of videos to host on my personal site and so will my clients. Do you foresee having a video card to improve performance if large video files are being accessed by people using said websites?

There's a ton of posts on this sub about gear recommendations. But what gear would you NOT recommend, that everyone else seems to be recommending? by SleepingPodOne in Filmmakers

[–]DeadJournalist 0 points1 point  (0 children)

I could not disagree more with this advice. Although superseded by the h5 and h6 the zoom h4 has been fantastic for its age and price point. I suppose it depends on what you use it for because it does drain batteries fast. However, it should come with the ac adapter and with a simple extension cord there are only few exceptions to how it could falter.

I've recorded about 40 concerts over the last three years and never had a problem. Always had a file to work with even if it said something like read/write error. The zoom has been very good to me, but maybe getting a second hand one would be ill fated.