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...
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...
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...
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...
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 do we need when creating a DB helper class in .Net?
...
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...
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
...
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...
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...
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...
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...
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...
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...
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...
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...
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?
...
They don't seem to be accessible from ActionView::TestCase
...
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...
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...