Work In Progress

Featured

Tags

,

My blog is currently undergoing a facelift, so please excuse any odd behaviors.

I have also decided to switch comment engines and in this cutover may lose old comments. Sorry to any previous commenters. This is a change I put off but decided is better to do now, rather than later, or not at all.

xo, Summer

Negativity.. Or Not

Tags

, , ,

I have to start off with an apology. I started writing this 11 months ago. It’s provided such a change – for the better – in my life. I wish I hadn’t forgotten about this and shared it ASAP. So, let’s get to it. :)

I am here to present you with a challenge, to hopefully help you recognize any negativity in your life.

Challenge: Go one whole day without saying anything negative.
Encourage your friends to join in, it’s much easier when everyone around you is part of the challenge. Keep track of any silent moments, that would have been filled with negativity. That will help you realize how much of your daily life consists of negativity.

When I first heard this challenge, I was excited. In my life, I had already decided to just be happier. It seemed to make perfect sense to recognize and eliminate negativity.

When I started this challenge, I started recognizing my own influence and addition to the negativity I experienced. I had a tendency to jump to conclusions and cast judgements, based on assumptions, not actual truth.

But what I found was that this challenge really presented.. well, a whole new challenge. It took me beyond, to a place where even when confronted with negativity, such as an extremely rude person, I would have to maintain a positive attitude. Instead of jumping down that condescending basta….oh there I go.. that persons throat, I recognized it was an unhealthy and extremely unproductive situation. Just walk away. Really, is there anything you could say? If you match their hostility, will that solve anything? No. Probably not. That person is more likely to be shocked by a positive response, then a negative.

Who knows? You may even spark something in that person..

Coding Exercises

Tags

, , , , ,

This is a list of coding exercises, working up in difficulty. These exercises are provided to learn and for practice, do what works for you – start with the problem & work to the solution, start with the solution & work backwards, or anything in-between.

Please note, all the problems are done in Java, feel free to convert to any language you wish.

The “challenge code” is the basic skeleton code. It is given to provide the basic structure, as well as any initial information you may need to start the exercise – e.g. so you don’t have to worry about taking in input.

The “solution code” is the final result. Don’t worry if your code doesn’t look exactly like the solution code (although it should be similar). We provide it only as a reference. The whole goal is for you to tackle the problem and fit the solution within the given constraints.

Hint: If you understand the problem but don’t know how to fit it within the constraint, write the problem as you understand it. Once you have a working solution, then try to optimize it.

FizzBuzz:

Loop through numbers, 1 – 100.
If the number is divisible by 3, print “Fizz”.
If the number is divisible by 5, print “Buzz”.
If the number is divisible by 3 & 5, print “FizzBuzz”.
If the number does not match any of the above cases, print the number.
Example: 1, 2, Fizz, 4, Buzz, Fizz, 7, 8, Fizz, Buzz, 11, Fizz, 13, 14, FizzBuzz

The constraint - There can only be 3 conditional statements.

Challenge code:

Solution code:

 

Palindrome:

Determine if a given string is a palindrome.

The constraint – Using only one memory reference – do not duplicate the string. Do in O(n) time.

Challenge code:

Solution code:

 

Bouncy Numbers:

Loop through the list of given numbers – determine if the number is “Increasing”, “Decreasing, “Bouncy”, or “Flat”.
An increasing number is a number where each individual number, from left to right, is increasing. Such as, 12345.
A decreasing number is a number where each individual number, from left to right, is decreasing. Such as, 54321.
A bouncy number is a number that both decreases and increases. Such as, 51900.
A flat number is a number that remains the same, the entire way through. Such as 11111.

The constraint - Do in O(n) time. (Loop once through a number.)

Challenge code:

Solution code:

 

Permutations:

Find every permutation – every possible arrangement of the characters – of a string.
Example: {123} => (123), (132), (213), (231), (312), (321)

The constraint - Using recursion.

Challenge code:

Solution code:

 

Duplicate Numbers:

Loop through a list of numbers, numbered 1-n. One (and only one) of the numbers is duplicated in the list – find and print the duplicate.
Example: {3,23,18,19,11,22,7,9,8,13,5,0,17,23,20,15,16,6,1,2,4,14,12,10} => Duplicate number: 23

The constraint - Do in O(n) time. (Loop through the list once.)

Challenge code:

Solution code:

Find your perfect match.

Tags

,

Your perfect shade that is. Seems I’m always on a never ending quest to find the perfect foundation shade. That’s not even touching formulas – cream, liquid, airbrush, etc. There’s just too many options!

Well, this weekend I’m going to be trying out a new beauty device; the new Sephora + PANTONE COLOR IQ. This new beauty tool scans your face, assigns it a PANTONE SkinTone number, then matches you up with the best fit from over 1,500 different foundations.

I’ve been waiting for it to come to Vegas and it finally has, in fact, it’s going to be debuted in several states this Feb. 22 – 24. So spread the word! If you’re skeptical and want to wait, or can’t get to a Sephora holding the event this weekend, then stay tuned. I’ll be writing an update with a review right here.

How did you do with last years resolutions?

Tags

Last year I decided to bring more beauty into my life by starting some beauty resolutions. But why did I post it in the middle of the year?

So, I don’t know about you but once the end of the year hits, I’ve all but forgotten (and sometimes even forgotten) what my resolutions were almost 365 days ago. Well, I’ve slowly been changing the way I look at resolutions and last years list was only a glance. Actually, my outlook on life has also changed – and will continue to.

Life is a constant improvement. I always had this impression that once you were an adult you were done. You were you and nothing would change that. Now I know better.

We have a way of getting into a groove, we surround ourselves with like minded individuals and suddenly this point of view is the only point of view. At least the only valid one. Maybe I’ll go more in-depth on this topic later but for now I’m going to focus on an ongoing transformation. Life is not stagnent, it does not stand still. It is constantly growing and changing, being shaped by the people and the greater world. Why should our inner world be any different?

I’ve taken to a new kind of resolution. One that is constantly growing, or shrinking, but it is always changing. The resolutions I posted last year was a single aspect of my life I decided to share. On Jan. 1, 2012, I guarantee I did not have that list of resolutions. That list was a result of past desires, and new realizations that came together over several months. Things I had thought were important, things I later found to be important, and that list surely dwindled as things became less important. And by the end of last year, that list had changed even more, for what I feel is the better.

That is my new *resolution*. As time goes on, I slowly shape who I want to become. Did you catch that? SLOWLY. It’s easy to look at a picture of someone and say, yes, by summer I want to look like that. But why not become that person?! (Disclaimer: Please….not literally.) Think to yourself, what does it take to be who I *want* to be? Then figure out how to work it into your life. Slowly it becomes habit and habit becomes you. But it doesn’t have to be entirely superficial. Learn to not take yourself so seriously. Learn to question yourself. I think questioning yourself is the best thing you can do. But you have to be as objective as you can! Always felt like something is a fact? Ask yourself why? You may find yourself changing your point of view! I know I’ve looked back and was truly embarrassed how closed-minded I was (and still am? We’ll see in a year. ;) ).

Let’s revolutionize resolutions!!