Answer by slf for Well developed web site architecture using linq to sql?
We just finished up an internal IT project banking heavily on Linq2Sql and it paid off. I was a bit skeptical at first, but I think it worked out great in the end. Just remember, the fundamentals don't...
View ArticlePowerShell eye for the Bash guy
For someone who has been using bash for years, what's the quickest way to get productive with Microsoft's PowerShell? I've noticed my old friends ls and ps work, but sadly grep didn't. I could just man...
View ArticleAnswer by slf for Can a windows hosted WCF service use HTTPS?
I have not tried to do this with a Windows Service, but here is how I have successfully secured a WCF service using IIS and shared certificates. The biggest difference is that instead of being in the...
View ArticleAnswer by slf for configure catch-all alias in postfix using mysql
@clement is correct but there is a simpler query that would work that is easier on the sql server. Here is what worked for me:Changed query line in/etc/postfix/mysql-virtual-alias-maps.cfquery = select...
View ArticleAnswer by slf for Why there is no replacement of the preprocessor directives?
I think what you are looking for is #pragma oncehttps://en.wikipedia.org/wiki/Pragma_once
View ArticleSQL Server *= Operator?
Today while inside a client's production system, I found a SQL Server query that contained an unfamiliar syntax. In the below example, what does the *= operator do? I could not find any mention of it...
View ArticleAnswer by slf for How to bubble events on a component subcomponent chain with...
I'm a little surprised nobody suggested using an event bus component. It is a fairly common pattern in heavily decoupled systems to have a shared event bus, and then use it to link multiple...
View ArticleAnswer by slf for Recreate recipient bubble behaviour in Mail.app / Three20
Of course, you should just use the Message UI framework from Apple now that they released it.
View ArticleAnswer by slf for Match star * character at end of word boundary \b
I don't fully understand your statement that * is not something that can be found next to a word boundary. However, if I understand what you are looking for correctly from the comments, I think this...
View ArticleAnswer by slf for How do i select only specific words?
If you just want two different words, that looks like this: \b(ant|bat)\bThe \b is a word boundaryThe parenthesis is a groupThe pipe | is an or statementa word boundaryfollowed by either the word ant...
View ArticleAnswer by slf for Match string of all uppercase that can be 1 or more words...
Are you looking for something like this? (?: )([A-Z]+[A-Z ]*[A-Z])Two groups, the first is two spaces, but not capturedAt least one capital letterFollowed by as many other capitals or spacesEnding in a...
View ArticleAnswer by slf for How to write a script to iteratively search through a...
If you only want capital ASCII letters, that looks like this: [A-Z]+The square brackets define a collection of things to matchThe hyphen defines a range, in this case from capital A to capital ZThe...
View ArticleAnswer by slf for How to decide between MonoTouch and Objective-C?
Personally I think you'll have a better time just learning Objective-C.In short:"Learning Objective-C" is not a daunting as you might think, you may even enjoy it after just the first few weeksYou are...
View ArticleCrossplatform iPhone / Android code sharing
Simply put: What is the most effective way to share / reuse code between iPhone and Android builds?The two most common scenarios I think would be:Blank slate new project, knowing ahead of time there is...
View ArticleAnswer by slf for Found nil when trying to read from table cell in Swift
There are a few things going on here, let's take them one at a time:The crash is from forcing the nil value through the ! that part should be obvious.The for loop goes from 0 through to the number of...
View ArticleAnswer by slf for Phone call using a number in a UITextField
You should be able to call openURL: or openURL:options:completionHandler: with a "tel:" protocol. See the Phone Links section of the protocol reference. In iOS 3.x you will see a prompt though in iOS...
View ArticleAnswer by slf for Is there something similar to LINQ in Objective-C?
The short answer is that there is not an equivalent to Linq for Objective-C but you can fake it with a mix of SQLite, NSPredicate and CoreData calls in a wrapper class shaped to your liking. You'd...
View ArticleFastest possible Apple Style Flip Counter in native code on iOS
I'd like to mimic an Apple style flip counter on iOS. Specifically, this thing is going to be FLYING FAST. It's not going to be an alarm clock, think player high-score where you are racking up points...
View ArticleHow can I kick off a container instance using the Azure api?
I have a container building in gitlab and registering itself with the gitlab custom registry. Inside this container is a command that runs a very long time. I would like to somehow deploy this...
View ArticleAnswer by slf for How can I kick off a container instance using the Azure api?
At the current time there is no way to officially do this from the api, maybe in the future there will be
View Article