Facing new challenges everyday

Using a FSIS CTS flow to generate text files and compile as ESP dictionaries

December 23rd, 2011

After have some trouble trying while create my FSIS CTS flow, I could finally read the data need from SQL Server instance and push to ESP for indexing, once I got everything working as expected I started to think in what else I could easily to in a CTS flow.

My next challenge was create a ESP dictionary for use on query completion server of ESP, the majority of built in operators doesn’t provide a easy way to do it, hopefully I found the RunCode operator that I can use to perform anything that I need with a custom C# or VB code.
(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Running a FSIS CTS flow from command line

December 21st, 2011

FSIS is a powerfull solution, with CTS you can easily consume and process data to be used on ESP for search or not, recently I wrote a very small powershell script that just run a CTS flow to index database records on ESP.

Here’s how this script looks like:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Add-PSSnapin HostControllerPSSnapIn
Add-PSSnapin EnginePSSnapin
Add-PSSnapin JunoPSSnapin

write-host "`nRunning flow`n" `
        -foregroundcolor green

Connect-System

Connect-Engine

Execute-Flow -FlowName MyFlow

write-host "`nFinished running`n" `
        -foregroundcolor green

And then I just run the script with:

powershell.exe -Command “& c:\scripts\process_database.ps1″

The above command line example can is ready to be used on Task Scheduler, enjoy!

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Android ResizeAnimation with a starting height

December 13th, 2011

I recently found a a way to resize a view in a way to make it open/collaspse in a activity, this kind of animation gives some charm when showing some interface elements like a toolbar or a navigator to the user, you can make it show on screen completelly or have a small piece visible and disclose all the hidden portion.

This animation is based on some code that can be found on stackoverlow, but I made few changes to add extra features to it like start the animation from specific height instead of 0.

Here’s the full code:

(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

How to create a PyDev project with DJango and Google App Engine support

December 13th, 2011

PyDev is an awesome plugin for Python development under Eclipse, with this plugin you can easily create a Django project or a Google App Engine project, but not a project which uses Django and run under Google App Engine at same time.

Here’s what I did to create a project which has support for both features:
(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Visitors Around the World

Polls

How Is My Site?

View Results

Loading ... Loading ...

Categories

Meta

Links

hosted by easy2use.net