shintetsu_80's Profile User Rating: -----

Reputation: 31 Craftsman
Active Members
Active Posts:
106 (0.05 per day)
01-July 08
Profile Views:
Last Active:
User is offline Jun 14 2014 06:35 AM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Dream Kudos:

Latest Visitors

Icon   shintetsu_80 has not set their status

Posts I've Made

  1. In Topic: scaling text height jQuery

    Posted 18 Feb 2014

    If you want the actual text to scale you should look at the font-size css property. I don't know what environment you're working in (resizable at runtime) but the short answer is yes you can do this with jQuery. Checkout jQuery.css.
  2. In Topic: looping algorithm suckyness

    Posted 18 Mar 2013

    cfoley I wholly agree with you and in fact my implementation is similar to your encapsulation idea. O(n^2) is probably not going to be an issue in my case. I was really just curious if someone smarter than me might have a solution that I wasn't seeing. Thanks for you input.
  3. In Topic: looping algorithm suckyness

    Posted 17 Mar 2013

    Starbucks internet connection sucks! Removing a double post cuz I don't know how to just delete.
  4. In Topic: looping algorithm suckyness

    Posted 17 Mar 2013

    View Postcfoley, on 16 March 2013 - 10:59 PM, said:

    Encapsulate the problem in a class. Then you don't have to care if the class materialises the view or scans your arrays every time it is queried. I'm not entirely clear on how your association array works but something suitable can probably be adapted from the following:

    public class Relation<A, B> {
    	public Relateion(A[] as, B[] bs, Object[] associations) {
    		// TODO Auto-generated constructor stub
    	public List<A> associatedAs(B B)/>/>/> {
    		// TODO Implement
    		return null;
    	public List<B> associatedBs(A a) {
    		// TODO Implement
    		return null;

    cfoley I don't understand how this solves the looping issue. I'm reading your answer to imply creating a utility class that builds the two association arrays that are needed via the Relateion method. So the Relateion method would still do the exact same looping algorithm, but you get the accessor methods associatedAs and associatedBs. Maybe I wasn't clear in the initial post, or I misunderstand you're solution. Creating a wrapper or utility object to hold the finished products is really a non-issue. I only interested in trying to find a better solution to the initial looping algorithm.

    To be fair these are completely disparate objects so there just might not be a better solution.
  5. In Topic: looping algorithm suckyness

    Posted 17 Mar 2013

    stackoverflow you're correct that this would at least limit doing this multiple times; however, in this case it's going to be used as a utility function where the cache would not reflect updates unless it was refreshed. The api in this case doesn't support page queries. So it's an all or nothing query. Meaning I couldn't just query for the updates an merge them in.

My Information

Member Title:
D.I.C Head
34 years old
January 4, 1980
Austin, TX
Working out
Full Name:
Ralph Smith
Years Programming:
Programming Languages:
C/C++, python, Objective-C, java, C#

Contact Information

Website URL:
Website URL


shintetsu_80 hasn't added any friends yet.


shintetsu_80 has no profile comments yet. Why not say hello?