Seth is currently live on Twitch! Go There Now?
What's This?
Hello, My Name Is Seth Ciasulli
Here Are Some Things That I'm Interested In
  • Find The Last Item In A Foreach

    I've always tried to find ways to do pagination or correctly display lists. So, given that I use Yii to code in PHP, I'll get an array using $table = Table::model()->findAll("status='0'"); but never realized that you can use count(); to count how many rows came back. So here would be a solution to p...

    2 months ago Read More
  • No One Will Care About Your Opinion Until You Start Giving It

    I've had this idea for a long, long time. I feel like in order for people to really care what you have to say, you have to first start talking and giving your opinion on it. There are always going to be people who dislike your opinion, but that's not the point. Whether they like it or not they may s...

    2 months ago Read More
  • How To Grow An Internet Community

    The point of this post is to compile a list of advice from not only myself, but other successful figures around the internet. This post is aimed at video game YouTubers and/or streamers, but you can apply these tips to anything I suppose. You can call them tips. You can call this a guide. These are ...

    3 months ago Read More
  • Setting Small Goals Will Help Your Sense Of Progression

    If you go through life without any real goals, then you'll always feel like a hamster on a wheel. You feel like there is no end to what you're doing, and you'll be disinterested. Instead, define clear goals, and then work to achieve those goals. Make them small. Write down a plan, a list of items, a...

    3 months ago Read More
  • Know What Your Strengths Are, And Play Off Of Them

    Understand where you are in life. Grow to know what your strengths are so that you can play off of them. Work on your weaknesses so that you may round out your character and your passions, but don't rely on them. Do not spend time on anyone or anything that compromises your character. So I ask myse...

    3 months ago Read More
  • What's The Ucwords() Equivalent In Javascript? Capitalize Each Word In A String

    I am wondering why Javascript doesn't have more functions like PHP has. I use the ucwords(); function with PHP when I have to, it capitalizes each word of the string. There is no real equivalent to that in Javascript though, so we have to do a workaround. I suppose there's a lot of ways to do this, ...

    3 months ago Read More
  • How To Delay Image Loading Until It's In View

    So I had another idea with the image loading. This time, I wanted to make it so images don't load unless they are in view. This should help out page times a little bit and make a nice little fade in effect whenever you see new images. This also allows me to animate them in interesting ways on load. ...

    3 months ago Read More
  • How To Change The Color Of Ordered List Items

    Today I came across the idea of reshaping my code div inside these posts. I wanted it to be a dark theme, because I rather prefer dark theme while writing in code. So I made the background dark, color of the font white, even added a separate color for any comments that I'll put after lines to explai...

    3 months ago Read More
  • Using jQuery & The CSS Transition Property To Create Interesting Transitions

    I had the idea today of making the top of the website, the header images, transition more fluidly. I don't like how they fade in so abruptly, even though that's a good solution for them to just pop in. I used to use jQuery's $().animate({ }); to animate things like opacity and whatnot. In order to a...

    3 months ago Read More
  • Text Area With 100% Width With Borders And Padding

    This was something that I just recently figured out. For years my CSS was this: <textarea></textarea> <style> textarea{ border: 1px solid #000; padding: 5px; /* border-left (1) + border-right (1) + padding-left (5) + padding-right (5) = 12 */ width: calc(100% - 12px); } </...

    3 months ago Read More
  • How To Auto-Grow A Text Area

    Today I was messing around with my admin side of things and I discovered that my textareas were not behaving the way I wanted them to. I want them to grow when you type into them. I had this complicated code written out to accomplish this, but I thought, "there's gotta be a better way." So here's my...

    3 months ago Read More
  • How Do You Display HTML Tags?

    To display HTML tags in a website, use their HTML encoding translation. Replace the < character with &lt; Replace the > character with &gt; Replace the & character with &amp; You don't actually have to encode the ">" character. That one will show as long as you encode th...

    3 months ago Read More
  • Where does the list-style property actually matter?

    By editing the list-style property of the Li the element, you will be able to change the list-style property. It seems that the default list-style property in an LI is "inherit", but if you change it at the top of your CSS style sheet then it will be stuck as that everywhere. So editing it on your U...

    3 months ago Read More
  • Using jQuery To See If An Element Exists

    To see if an element exists, the easiest way is to count how many elements of that type are on the page. Use the .length property of the jQuery collection returned by your selector: <div></div> <script> if($('div').length){ //-> if div has a length, ie: has more than zero instances...

    3 months ago Read More