I always forget how to do this. Here’s how it is done:
SQL SERVER – Shrinking Truncate Log File – Log Full « Journey to SQL Authority with Pinal Dave
constant ramblings on whatever...
I always forget how to do this. Here’s how it is done:
SQL SERVER – Shrinking Truncate Log File – Log Full « Journey to SQL Authority with Pinal Dave
Labels: sql server
I will write this up later on. It took me a while to figure this out. Apparently there's a collision between UpdatePanel and ModalPopupExtender, they don't play nice together. I'll stub this for a moment and I will explain later.
Labels: asp.net
I like this CSS code snippet. I got it from here. Looks like a very good idea for distraction free writing.
Labels: css
http://www.insurance-411.org/
Fill this out, I will later. I think this is very important. From the website...
Welcome to Insurance 411, a Web tool which allows users to keep personal insurance information at their fingertips in the event of an emergency. By entering important policy and emergency contact information users can print out a credit card-sized information sheet to keep in their wallet.
Labels: wala lang
If you liked the Padre color theme from my previous posting. You can install it now by following this procedure. As a side note, in Padre lingo, code color theme is called a "Style". Aranight is still a work in progress and as you know Padre is also a work in progress, so there's a lot of changes that are happening, so be patient and check back for updates. I will be updating Aranight style here as I go. Enjoy!
Here are some screenshots:
Padre IDE:
Perl file:
YAML file:
CSS file:
This is really cool. Padre that is. I installed it alongside Strawberry Perl in my Win32 box. It is multi-platform, so I installed it in my Ubuntu box as well. It supports syntax highlighting for Perl 5 and Perl 6. There are plugins available now for Perl 6 as well as Catalyst, more to come. I think there's a lot of potential for Padre. The cool thing also about this IDE is it's built using no other than Perl language itself. So if you want to contribute or tweak it, you can.
Btw, I tried to customize the highlighting theme by creating a new style and here's what I came up with. You can get instructions from here.
Ok, ok. I always forget so to save me some time, here it is...
Then execute the following...
Labels: asp.net, C#, sql, sql server
Development console is here:
http://localhost:8080/_ah/admin/
Labels: google appengine
I sure want to take note. Just so that I don't forget. I got this from this book entitled Using Google App Engine.
In order to add a new functionality to our application, take the following steps:
Labels: google appengine
Ok, ok, I'm no designer so I don't know much about CSS. Whenever I needed to work on CSS, I google. Well I think working on CSS is both easy and difficult. Easy because it's mainly just formatting, difficult because it's frustrating at times especially when working on something that works in one browser but not on the other. Or something that works in one version but not on the other version.
Well, I just want to take note of what my CSS code looks like that works on 3 browsers, IE8, IE6 and Firefox3.
I commented the codes I added to make it work in IE6. I'm explaining this later on when I have time.
#container
{
width: 100%;
margin-top: 2em;
}
#content
{
margin-right: 295px;
overflow: hidden; /* IE6 cure */
height: 100%; /* IE6 cure */
}
#nav
{
float: right;
width: 250px;
padding: 1em;
border: 1px silver solid;
}
table
{
margin-left: 1px; /* IE6 cure */
width: 99.9%; /* IE6 cure */
border-collapse: collapse;
border: 1px solid #7bb1db;
}
Labels: css
Again I just want to document how I did it. It's hard to remember sometimes the steps taken to make things work. Specially for things that are not done everyday. In this particular case, it is confusing which user accounts or login to specify to be used by the server agent. Anyway, here's a recipe on how to make this work, just follow along...
1. Create a credential.
2. Create a proxy under SSIS Package Execution using the above credential.
3. Create a job in SQL Server Agent, and this is the important part, specify "sa" as the owner of this job.
4. Now add a Step, select SQL Server Integration Services Package type. Again this is the crucial step: Go to the Run as dropdown, then select the proxy specified above.
Now test your package and let me know if it works for you.
Labels: sql server
Ok, so that I can remember how to do this again. When importing SSIS package from development machine to server and the package protection level is "Encrypt sensitive data with password", this is for example, when you have a package that queries from an Oracle database, and you wanted to encrypt your credentials. I always forget to specify the package protection level. I don't know if it's because of me or the UI, the Protection level textbox is grayed out so one would normally assume that it's not needed. Then one would think that everything is ok until the package is executed, and you wonder why it errors out. So anyway, so I don't forget and to save me time in finding errors that traces back to not specifying passwords properly, I'm taking these notes on how to specify package protection level...
1. In Stored Packages, right click in MSDB then select Import Package...
2. For Package Location, select File System.
3. Specify Package path and Package name.
4. Then click the ellipsis button next to the Protection level textbox...
5. Now select "Encrypt sensitive data with password", then enter password...
Labels: sql server
This is so annoying. I'm using Visual Studio 2005, and for some reason I cannot set breakpoints to do my debugging. I tried several suggestions I can find from the net but still it doesn't work. Since I don't know the solution yet, but will expand this writeup once I figure out. But for me to debug on my ASP.NET Project right now, I added the following in my code. Important thing for me now is to debug my project.
System.Diagnostics.Debugger.Break(); // DEBUG
Note on Constructor Dependency Injection design pattern. This is how it is in C#.
private IContactManagerRepository _repository;
public ContactController()
: this(new EntityContactManagerRepository())
{ }
public ContactController(IContactManagerRepository repository)
{
_repository = repository;
}
Labels: C#
I spent so much time figuring out how to configure Notifications in SQL Server 2005 job. One of the properties that can be enabled in a Job is "Notifications", when the job succeeds or fails or completes. I wanted to know when the Job I setup fails and so I set it to my E-mail as well as "When the job fails". But one thing about SQL Server Management Studio is that it doesn't tell you if you're lacking some more configurations. I wished it prompted me that I needed to do some other settings for it to work. Anyways, below I just wanted to outline what I did to make this work.
1. Setup Database Mail. Follow this.
2. Setup a Sql Server Agent Operator. Follow this.
3. Now Restart SQL Server Agent.
Thank you for those who wrote the posts I followed above.
Labels: sql server
Ok, pretty much self explanatory
Labels: sql, sql server
I'd like to take note of few tips from Pinal Dave. Certainly good reminders when creating queries.
Labels: sql, sql server
I decided to use Module::Starter::PBP when creating modules. But I got this error the first time:
Labels: perl
Books in PDF formats are very popular nowadays. But annoying thing is that the Adobe Reader which is the standard PDF reader at work doesn't come with a bookmark functionality. I just need a simple bookmark like those good old paper bookmarks. Well I found one that does the job, a plugin from this post. Thank you very much.
Labels: wala lang
Here's how to create a quick copy of a database table including the data in SQL Server.
Labels: sql, sql server
I know, I know, I promised to do some perl6 hacking over the holidays, but as it turned out, I didn't have the time to do it. Having 2 kids in the family and tons of activities lined up over the holidays didn't really gave me much room to doing other things like hacking with my computer. Anyways, another thing I did over the holidays was... tada I got a G1. And I really, really love it! Absolutely amazing piece of work. The downside is, it's going to hurt on our monthly utility bills. So my wife and I were thinking cutting down our cost. We are thinking of giving up our landline, since we both have wireless anyway. But of course wireless minutes aren't cheap either, so we gotta figure out who are actually calling us and who do we call from our landline.
Well, that can be done very easily. Since we are subscribed to comcast, incoming and outgoing phone calls are easily downloadable from their website. And so, this is a good opportunity for me to use the perfect tool for the job. Perl. But this time, I want to use Perl6. And here's what I came up with.
Here's the output:
0 ABXXON ROLLY (408) 386-XXXX 1 AGUXXAR R & J (408) 251-XXXX 2 AGUXXAR RONNIE (408) 768-XXXX 3 ALMXXEN FAMILY (408) 997-XXXX 4 XXER FRATERNAL (408) 984-XXXX 5 AQXXNO GREG (408) 297-XXXX 6 AQXXNO GREG R (408) 297-XXXX 7 ARGONCXXLO S (408) 937-XXXX 8 ARGONCXXLO SUSA (408) 937-XXXX 9 ASXXAS DAISY (831) 240-XXXX 10 BALIXXIT VENTUR (408) 251-XXXX 11 XXNK OF AMERICA (866) 512-XXXX 12 BEXXER LIVING I (408) 561-XXXX 13 BOUXXER CO (303) 786-XXXX 14 CALIFOXXIA EAR (650) 494-XXXX 15 CAMXXHO GEMMA (408) 849-XXXX ...
(I replaced some letters and numbers with X's in this post for security purposes.)
Oh my goodness! What an elegant piece of code that is. And it didn't take me a while to figure it out. I simply read tutorials from Gabor and Jonathan. I tell you, I can't believe the expressiveness of the latest and greatest perl. I have barely scratched the surface, it's got tons of other amazing stuffs! Try it for yourself.
Labels: perl6
My little secret Safari Login. Just for me to see if I can access Safari from my T-Mobile G1 with Google Phone, Black (T-Mobile).
Yey! It's working, now I can read books from my G1.
Labels: safari
Just taking notes on how to setup project in GitHub. These notes are from GitCasts and GitHub Guides.
1. Setup, Initialization and Cloning
Global setup, these apply to all projects on the system:
git config --global user.name 'User Name' git config --global user.email username@gmail.com git config --global color.status auto git config --global color.branch auto git config --global core.autocrlf true
To save project in git repository:
1. First, create the project.
2. cd to the project, then do the following:
git init git add . git ls-files --cache git commit -m "Initial Commit" git status git log
To clone existing code in the git repo:
git clone git://github.com/sammydc/publictalkscheduler.git
If it's your own repo, use this instead:
git clone git@github.com:sammydc/publictalkscheduler.git
2. Normal Workflow
Create .gitignore file, this is to specify which files we don't want to add to git, like as follows:
log/*.log tmp/**/*
Editing files and commiting to repo:
git status git add [filename] git commit OR: git commit -a -m 'My Next Commit' #automatically add and commit all changed files git ls-files --stage git rm public/robots.txt #remove a file, git not to track the file anymore git status git commit -m 'robots file removed'
Now push to remote repo:
git remote add origin git@github.com:sammydc/publictalkscheduler.git git push origin master
Take note that if you get the error message:
fatal: protocol error: expected sha/ref
You need to make sure that .git/config [remote "origin"] url entry is in the form of
git@github.com:sammydc/publictalkscheduler.git
When working on another machine, to get latest changes:
git pull
Labels: git, github, version control