Blog

What We Are Supposed To Know About Abortion

Posted on: 2009-04-04 12:16:42

I had a conversation with a friend last night and during this conversation, they said that they didn't want to argue about abortion because "no one knows! is it murder? is it not?"

There are some people that don't know the answer to that question. But some people, especially Christians should know the answer to that question.

bq. "I do. I understand that nowhere in the bible does it dictate that it is a baby at conception"

I have to admit when I heard this, I was absolutely shocked. I wonder if this person has read their bible lately. The bible indicates that we are created by God, for God. Each and every one of us.

What matters here is the understanding that God creates life. All life is precious. If you call yourself a Christian and think that a "fetus" is not life, then you need to seriously revisit your beliefs.

Maybe this will jog your memory:

Jeremiah 1:5 says "Before I formed you in the womb I knew you, before you were born I set you apart;..." (he is, of course, speaking to Jeremiah, but these apply to us also.)

David writes in Psalm 139:13 "For you created my inmost being; you knit me together in my mother's womb."

"Did not He who made me in the womb make him, And the same one fashion us in the womb? (Job 31:15) It's very apparent. Job understands this. Why don't you?

Continue reading...

Diving Into God's Word: Rebuilding my Foundation Part 2

Posted on: 2009-02-08 09:09:32

I have a big problem reading God's Word every day. My boss gave me daily-read bible that you through everything chronologically. It's great and I really look forward to reading it. But i'm behind a couple of days now, but I'll catch up this afternoon. Sunday afternoons are always my catch-up days. (Right now it's going through Leviticus and Numbers, which, imo(In My Opinion) are semi-boring because they are very repetitious.)

I had a conversation with myself a couple days ago. It went something like this:

"Why didn't I read the Bible today?" "Because I was busy." "Yes, but watched 5 youtube videos and looked at lolcats for almost 10 minutes during lunch." "Well, yeah, that was taking a break." "God's Word = best break evar." "I didn't have my bible handy." "Perhaps you've used <a href="http://biblegateway.com/">BibleGateway or <a href="http://youversion.com/">Youversion?" "Yeah, but what am I supposed to read?" "<a href="http://youversion.com/1yearbible">This." "Yeah, but I'm not always at my computer..." "<a href="http://youversion.com/iphone">Ownt."

Unless you are phone-less, computer-less, and bible-less, there really isn't a reason to not dive in, even for a little bit, every day. We need it to survive. Our spiritual food. I'll skip the cheesy analogies that our Pastor gave us a few weeks ago and skip straight to the meat. Living a Christian life in this world takes so much. I can't tell you how many times I can feel anger in my heart or how many times I almost (or do) speak harsh words to someone. No matter how much I try to cover up that those words were rooted in truth, you would never tell because they were shaped and brought forth by anger and not love.

"The Word of God is a seed":http://www.biblegateway.com/passage/?book_id=49&chapter=8&version=31. A little bit of it gets put in us when we our saved, but it is our duty to make sure it is cared for so that it "grows and produces fruit":http://www.biblegateway.com/passage/?book_id=50&chapter=15&version=31. We are expected to be grow and do something with what God gives us. "The Parable of the talents Matthew 25:15-30":http://www.biblegateway.com/passage/?book_id=47&chapter=25&version=31 gives us a really clear picture of the expectations that God puts on us. It's a lot of work, really. But it's all worth it.

After all, we get God's protection with his Word in us. Ephesians 6:17 says "Take the helmet of salvation and the sword of the Spirit, which is the word of God.":http://www.biblegateway.com/passage/?book_id=56&chapter=6&version=31. His Word is also our protection. Like I said in my last post, being able to lean back on the sturdiest foundation of all has been my best defense against the one who would rather not see me thrive in Christ.

There are so many ways to get into the Word. "BibleGateway":http://biblegateway.com/ was my favorite for quite some time, but "YouVersion":http://youversion.com/ seems to have a much more interesting interface and is really made for people like me (web-enabled, bloggers, etc). I go back and forth between the two. If you know of any other good ones, please e-mail me or add a comment.

Continue reading...

Coming To Grips With My Fears: Rebuilding My Foundation

Posted on: 2009-02-02 22:26:42

There is a lot going on in my life right now. You might be able to tell that from my previous post. I'm going to try my hat at some different writing for the time being. There is quite a bit of adjusting going on from myself, my family and Sarah's family. It's all going really well (I think). During this adjustment I feel like I've really been able to open up and be really honest with myself and with others. It's tough for me to be open about what I'm thinking about because of how I think and the processes that go through my head.

I've had a chronic problem since the 7th grade with two specific problems: "autophobia":http://en.wikipedia.org/wiki/Autophobia (fear of being alone and something that some "people on the internet have dubbed":http://answers.yahoo.com/question/index?qid=20060925193918AA67hS4 "rapturephobia" (fear of the apocalypse).

Anyone who knew me in high school and early in my college years might have easily guessed that I really didn't like being alone. I got really antsy and acted very immature whenever I was alone. I spent a lot of time in front of the computer and it seemed to help assuage the pangs of anxiety. I constantly had to have something in front of me to distract me from the reality of being alone whenever I was. Luckily I had some good friends and roommates and that was never a problem and, for the most part, never really adversely affected me in deep painful ways. It was usually what followed in those times when my thoughts would creep down a path that I dare not tread.

Fear is a powerful force. It can spread the fastest of any sickness and cripple armies, "spreading from one person to another":http://www.youversion.com/msg/Deut.20.8. It can cause you to act rashly and "trip over yourself":http://www.youversion.com/msg/Lev.26.36, even when there is nothing to truly be afraid of. Lord knows that I've done my fair share of tripping, running and being overly fearful for things that, as a Christian, should not even have a place in my life. I guess that is why they call them "phobias":http://en.wikipedia.org/wiki/Phobia, though. There is that irrational characteristic that gives that edge any other common fear.

I can't tell you why I fear the end of the world. I just know that when the fear grips me, it holds me tight and fiercely. The fear itself might not be the biggest issue. For me, it's always been my reaction to the fear: running away, hiding, or just plain panic. It cuts me off from the world. It destroys the peace in my heart. As a man in battle, if my training was completed, my weapon issued, and my life and my freedom were at stake my reaction would be to fight. The fear of engaging in combat and possibly losing my life would be swallowed up by what I've been trained to do to protect myself and defeat the enemy. And in my heart, I believe that I have a fight inside me that would not be easily conquered.

What is at stake here is not my physical life and freedom, but my mental and spiritual well being. I have no reason to fear. I never had one. There is no reason to fear anything that is coming because in Christ we have a promise:

bq. John 3:16 says "For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life." (NIV)

This script is quoted so often, I think, because it sums it all up (John had a way with words and putting things in such a way that made it that way.) The message is plain, overt, and unmistakably clear: we have nothing to fear if we trust in Jesus Christ. This is my foundation, my training, and my song. Now, when I feel the sword of fear coming down upon me, my weapon will be ready and I will fear no more. I will stand fast in the promise that has been made by the only one who is capable of making it.

Continue reading...

The Sound of Crickets

Posted on: 2009-01-28 15:01:16

Been really quiet since Do It With Drupal. Life has taken a few exciting turns the past few months. I got engaged to my Fiancé, Sarah! I've completely moved out of my old place and into the new house. There is still quite a bit of work to be done on the Condo, but it is moving along (albeit at a snail's pace). My weekends are pretty much spent between that, Church, and just hanging out with Sarah and friends.

I've started going to GymX down the road to shed some unwanted poundage as a new year's resolution. So far, so good. I've lost about 8 pounds or so. Sarah got me a grill for Christmas and man, have I been using it! Chicken, fish, steaks, potatoes, corn, scallops, squash, you name it! It's taken some getting used to... but it's been tasty and healthy.

I haven't really spent much time working on my side-gig. Partially because it's really calmed down and partially because my role at RVOS has taken over. There is a lot of exciting stuff going on and some new opportunities that will be making themselves available really soon.

Originally, the idea of moving here to Temple seemed really dull and death by boredom seemed like a possible outcome. I haven't really felt any of that. The fact that I can go home and watch some TV, fire up the grill and have dinner is very soothing. The ability to wake up at 7, make breakfast (a real one) and get read and leave 10 minutes before work (and be early!) is great. One of the best decisions I have ever made.

As things settle down more over the next few weeks/months... I will hopefully get some time to start working on my Drupal contrib plans again. Until then!

Continue reading...

A Simple Drupal Database Copying Script

Posted on: 2009-01-01 23:13:41

At work, I needed a simple, scriptable way to copy my drupal database. Since we have a shared-table multi-site installation, the normal import/export tools would not work. What it boiled down to was making sure that all of the data was copied except for:

  1. Caches,
  2. Session data,
  3. Watchdog logs,
  4. and Search data

This code seems to work well:

<code lang="bash">mysqldump -dn -h<from_server> -u -p <source_database> mysql --batch -N -h<from_server> information_schema -e \"SET SESSION group_concat_max_len=16768;select group_concat(table_name SEPARATOR ' ') as ' ' FROM tables where table_schema = '<drupal_database>' AND (table_name like '%cache%' OR table_name like 'search%' OR table_name in ('watchdog','sessions') OR table_name like 'devel%') group by table_schema;\" | mysql -h<to_server> -u -p <dest_database>

<code lang="bash">mysqldump -n -h<from_server> -u -p <source_database> mysql --batch -N -h<from_server> information_schema -e \"SET SESSION group_concat_max_len=16768;select group_concat(table_name SEPARATOR ' ') FROM tables where table_schema = '<source_database>' and table_name not like '%cache%' and table_name not like 'search%' and table_name not in ('watchdog','sessions') and table_name not like 'devel%' group by table_schema;\" | mysql -h<to_server> -u -p <dest_database>

Basically, what it does is:

  1. Gets a list of tables the mysql command inside the backticks. This ensures that it always pulls all of the tables.
  2. Continue reading...

How To Make Scaled Images Look Better in IE

Posted on: 2008-12-22 19:15:52

Alert reader Chris S. emailed me to point out this post by a developer at flickr about how to make IE scale images more smoothly. All you have to do is add...

img { -ms-interpolation-mode:bicubic; }

to the stylesheet. It worked!

Via <a href="http://www.joelonsoftware.com/items/2008/12/22.html">Joel on Software.

Continue reading...

Altering Profile Field (profile.module) View Functionality

Posted on: 2008-12-11 11:33:02

Someone here at DIWD had a question on how to modify a view (in Views 1.6) that uses profile fields (defined with profile.module). The specific idea was taking a "name" field and making it link to the user profile. This can be done with two functions defined in a module.

For this particular scenario, we created a module specifically for this called obs.module (named for Austin Smith's obs module during his "NYO Site Dissection @ DIWD":http://www.doitwithdrupal.com/sessions/site-dissection-new-york-observer ). In it, we define two functions:

This first function implements view's views_tables_alter hook. This allows us to alter the huge "tables array generated by hook_views_tables":http://drupal.org/handbook/modules/views/api. The stuff we want to change is auto-generated by the default installation of views (which comes with profiles support). You'll have to put the name of your field in here (you can find it while editing your profile).

<code lang="php">function obs_views_tables_alter(&$table) { $table['profile_display_name']['fields']['value']['handler'] = 'obs_profile_name_handler'; $table['profile_display_name']['fields']['value']['uid'] = 'uid'; $table['profile_display_name']['fields']['value']['addlfields'] = array('uid'); }

The first line of the function sets up our output handler. The second maps the uid value to the uid field and the third pulls the uid field out of the profile_values table so that we can access it. We'll need it to generate the link to the user's profile.

The next function we add is the handler for the field, which just renders the field. Pretty simple here:

<code lang="php">function obs_profile_name_handler($fieldinfo, $fielddata, $value, $data) { $value = (unserialize($value) === false) ? $value : unserialize($value); return l($value,'user/'.$data->profile_display_name_uid); }

Pretty much it's copied verbatim as the default handler for profile fields in the views module but adds the link and returns that instead of the value.

Not that for your field, you'll have to replace any instance of profile_display_name with the name of your profile field.

Hope that helps!

Continue reading...

Do It With Drupal

Posted on: 2008-12-10 17:13:58

Do It With Drupal has been great so far! Met lots of people and have been having a great time! We went out to eat last night at Bourbon House Seafood on Bourbon Street:

!sites/nickvahalik.com/files/IMG_0441.jpg!

!sites/nickvahalik.com/files/IMG_0444.jpg!

It's a wonderful place. Great food and not too pricey! Seafood platter = win.

The conference came up to full speed this morning and there has never been a dull moment. Lots of great ideas and some good conversations.

!sites/nickvahalik.com/files/IMG_0447.jpg!

So far, a few thoughts:

  • There are a lot of .edus here. 50% or more at least.
  • I've heard "we have that problem, too" a lot. People feel less dumb knowing that others are running into the same problem as they are.
  • Themes seem to cause more "issues" than any other piece of Drupal. (You know, as opposed to modules or things not working right.)
Continue reading...

Update

Posted on: 2008-12-03 07:57:35

I've been pretty quiet on here for the past month or so. Things have been pretty crazy. Two(ish) weeks ago I moved to Temple, TX. I know what some of you are thinking but I have to honestly say that I thought I was going to die of boredom here. Turns out I've barely been able to sit down and hack around on fun stuff like I normally did.

Moving here was great. Now, however, the real task is going to be prepping the condo for rent. Then I've got to get cleaning supplies, hang the christmas lights, fertilize the lawn, go to the dump and then next week I'm heading to NOLA for "Do It With Drupal":http://www.doitwithdrupal.com/, which promises to be a ton of fun.

Anyhoo, I've got another blog post in the works here that I'll get posted today or tomorrow. It's going to be long and inspired. I promise. Until then, drink a cup of hot chocolate, throw another log on the fire, and sing another Christmas Carol!

Continue reading...

I Hate Microsoft Office 2008 For Mac

Posted on: 2008-11-17 14:19:25

I have no earthly idea why it does this, but it really makes my blood boil:

!/sites/nickvahalik.com/files/office_forgets_filenames.png!

Just in case you are wondering what the problem is, my documents are not named Document1 [Compatibility Mode] and Document2 [Compatibility Mode]. They are called... well it doesn't matter what they are called but it's not this! I'm sure you can imagine what it's like having to use 2 programs to figure out what I'm looking at. And yes, these documents were originally created by Microsoft Word (for Windows, no doubt).

I'm uninstalling Office 2008 this afternoon. I'm tired of this crap.

Continue reading...