helper

Decent Visual SQL query Builder

I am a code developer, not a DBA, and I tend to get lost with loooong SQL queries, when I use many joins (10 joins is pretty common for me). I would like to find a Visual SQL Query Builder (free if possible) that could connect to Oracle and see all the tables there, so I would only select visually my keys that link the Joins, and selec...

How to make the Color class helper?

Hi. I am trying to make a class helper for the Color class in C#. I am a Delphi programmer and as far as I know, class helpers allow you to expand base classes so when you create an instance of the base class, you have access not only to the base methods, but also to all those defined in the helper class. Is it possible to achieve a simi...

How can I split an ArrayList into several lists?

Hi, See the following ArrayList: List<Integer> values = new ArrayList<Integer>(); values.add(0); values.add(1); values.add(2); values.add(3); values.add(4); values.add(5); values.add(6); So we have: integerList.size(); // outputs 7 elements I need to show a Google chart as follows: http://chart.apis.google.com/chart?chs=300x20...

Getting property of zend view using a helper called in the layout script

I've written a helper in order to make my main nav. Part of this helper checks if there is a user logged in by checking if a user has been assigned to the view if($this->view->user) { //do stuff } However when I call this helper in my layout script it is unable to access $this->view->user; it has NULL value (although var_dump($this->v...

Ruby on Rails: Initializing instance variables with helpers in view

I'm running into some type of a scope issue that's preventing instance variables from being properly initialized by helpers called from the view. #sample_controller.rb class SampleController < ApplicationController def test end end #application_controller.rb helper_method :display def display if not defined? @display return ...

What Considerations need to create a DB Helper Class in .Net?

What Considerations do we need when creating a DB helper class in .Net? ...

read web.config from another assembly using t4

Does anyone have a good example or helper class that would allow me to read the connection string in a web application from a T4 template residing in ANOTHER assembly referenced by the web application. I am generating some code from the database that it references and i would appresiate some help on how to get the connection string for t...

Are Nhibernate Helper Kits available for VS2008?

Can anyone help me out by providing some information on Nhibernate Helper Kits for VS2008 and which all are open source and which all are not. Can also anyone share some links that give information on using NHibernate with ASP.NET MVC ...

Rails: Refactoring, views, helpers: how does it all go together?

Warning: Noob here. I know this is a trivial subject but I'm having a lot of difficulty in figuring out how exactly I can simplify my views by moving parts of them into helpers. For example, I've always read that conditionals in your views are prime candidates for extraction into helpers, but I couldn't really find examples of this, and...

Best way to handle view and helper-only constants in Rails

I have a constant that is only used in views, but it's used in different ways in different places. It's an array of option names, and is used for select boxes, but I also use this in other views to see if strings are found in this array, and respond accordingly. What's the best way to handle this to keep DRY? I initially created a con...

Symfony: Is it possible to put elements inside a link_to tag?

Hi, I'm using Symfony 1.4 and wondering whether it's possible to achieve the following: <a href="#"><span>Text</span></a> ... using Symfony's link_to helper? Of course, it's possible to do this: <a href="<?php echo url_for('#') ?>"><span>Text</span></a> But I'm wondering if there's a simpler way to do it, especially as combining...

NerdDinner tutorial - missing explanation for Helper methods?

I've started reading NerdDinner tutorial from scratch. While reading and coding application I came to part about some Helper methods and there was one example of some class (AddRuleViolations) but there was no any explanation WHERE to add this class. So I skipped this one and continued with tutorial without using this class later in code...

asp.net mvc html helper problem on nested Master Page

Site.Master <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>   <body>             <asp:ContentPlaceHolder ID="Menu" runat="server">                 <!-- Menu goes here -->             </asp:ContentPlaceHolder>  </body> Sub.Master <%@ Master Language="C#" MasterPageFile="~/Views/Shared/Site.Master" %> <asp...

"undefined method" when calling helper method from controller in Rails

Does anyone know why I get undefined method `my_method' for #<MyController:0x1043a7410> when I call my_method("string") from within my ApplicationController subclass? My controller looks like class MyController < ApplicationController def show @value = my_method(params[:string]) end end and my helper module ApplicationHelp...

ASP.NET MVC based CMS - dynamic generation of form helpers

I am working on an ASP.NET MVC based CMS that presents a rather extreme case. The system must allow the user to add custom content types based on different fields, and for every field, one can add options and validations. The thing is that everything is stored in a complex DB and extracted at runtime using LINQ. I am pretty fresh with A...

Searching for known Team Development helper tools

Hello, My team is small, only two programmers.We both share one source ,but we live in different places.The problem is that Meanwhile I make changes on our project,the other team worker makes changes as well.It's very hard to write down every change,at least for us. When we decide we've made an important change,we contact each other sen...

Is the word "Helper" in a class name a code smell?

We seems to be abstracting a lot of logic way from web pages and creating "helper" classes. Sadly, these classes are all sounding the same, e.g ADHelper, (Active Directory) AuthenicationHelper, SharePointHelper Do other people have a large number of classes with this naming convention? ...

How do you test a Rails controller method exposed as a helper_method?

They don't seem to be accessible from ActionView::TestCase ...

Port a live system from App Engine Helper to App Engine Patch

I am running a live system that is currently serving about 20K pages a day which is based on App Engine Helper (Python) with session support provided by AppEngine utilities. One problem that I have been having is that sessions are occasionally randomly logging out. I would like to try using the App Engine Patch, since it has "native" dj...

using action helpers in Zend Framework 1.8

Hi am starting off with Zend Framework and have a question about action helpers. My first application is a simple authentication system (following a tutorial from a book). The registration and authentication seems to work fine but the redirect doesn't. I have a customer controller that has this among others: class CustomerControlle...