archive-hn.com » HN » I » IMJO.HN

Total: 101

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • code | I'm John | Page 2
    it Tagged asp net c code sitecore Leave a comment 14 Feb Sitecore current date in preview mode To access the currently selected DateTime in the content editor s preview mode instead of checking the query string use Sitecore Configuration State PreviewDate 1 Sitecore Configuration State PreviewDate Also be sure to check if the page is in preview mode first In my case I had a presentation Continue reading Posted in it Tagged asp net c code sitecore Leave a comment 9 Feb A gem I stumbled upon some puzzling code the other day It makes me wonder what sort of direction is your code going if this is what you end up with Unnecessary code omitted unlike the snippet to increase clarity public List myList public void Page Load object sender EventArgs e myList GetList Compute myList Compute List theList myList RemoveMin theList myList RemoveMax myList 1 2 3 4 5 6 7 8 9 10 11 12 public List myList public void Page Load object sender EventArgs e myList GetList Compute myList Compute List theList myList RemoveMin theList myList RemoveMax myList Posted in it Tagged asp net c code Leave a comment Newer posts I m John A

    Original URL path: http://imjo.hn/tag/code/page/2/ (2016-02-12)
    Open archived version from archive

  • A little effort could do wonders | I'm John
    or changing the color This is opening up a whole new can that could have been avoided by implementing the style correctly at the start 2 I don t want to work for it I came to the page looking for a specific artist that I knew was listed but it still took me longer than it should have to find it Furthermore the band listing is difficult to scan and I had trouble parsing artists The artists names were jammed together much liketheendofthissentence When you type you think of the words you want to type and rely on your fingers working out the individual keys without consciously thinking about them This abstraction is important because it allows us to type words as we think of them Imagine how difficult it would be and how slow we d type if we thought of letters instead of words I SPACE A M SPACE T Y P I N G PERIOD Our conscience minds are wired to think of logical groupings of things passing off the details to our unconscious mind When I go to this page I m looking for bands and artists whose names should each be in their own logical grouping The way the page stands now it looks like a string of text and my brain has trouble parsing it I have to consciously think of each word my eyes see find out what part of the artist s name it s in then read and process the whole name Wash rinse and repeat Oh and the boldface isn t helping this logical grouping either 3 Find your center Like boldface center has it s uses too However it has to be done right If you re centering something you must be going for some sort of symmetry

    Original URL path: http://imjo.hn/2012/02/11/a-little-effort-could-do-wonders/ (2016-02-12)
    Open archived version from archive

  • Passing properties into Sitecore sublayouts | I'm John
    11 12 13 14 15 16 17 18 19 20 private NameValueCollection ParameterCollection public NameValueCollection ParameterCollection get if ParameterCollection null ParameterCollection new NameValueCollection string parameters Parent as Sublayout Parameters Split string pair foreach string paramPair in parameters pair paramPair Split ParameterCollection Add pair 0 pair 1 return ParameterCollection I also add a function to get the attributes values from the collection public string GetParameter string key string value String Empty string parameterValue ParameterCollection Get key if parameterValue null value parameterValue return value 1 2 3 4 5 6 7 8 9 10 public string GetParameter string key string value String Empty string parameterValue ParameterCollection Get key if parameterValue null value parameterValue return value From there it s only a matter of invoking this method with the attribute key wherever you need the attribute value li class GetParameter CssClass Navigation 1 li 1 li class GetParameter CssClass Navigation 1 li NavRepeater DataSource Sitecore Context Item GetChildren Take int Parse GetParameter maxNavItems NavRepeater DataBind 1 2 3 4 NavRepeater DataSource Sitecore Context Item GetChildren Take int Parse GetParameter maxNavItems NavRepeater DataBind One last thing this was just a quick and dirty example I wrote up from snippets of code I ve written Be sure to null check and set defaults where appropriate This entry was posted in it and tagged asp net c code css sitecore Bookmark the permalink Gomad day 12 Gomad days 13 17 2 Responses to Passing properties into Sitecore sublayouts John Chappell says 1 March 2012 at 9 44 am Nice idea I would suggest to go further with it and make all your sublayouts inherit from a Base class such as BaseSublayout in which you put methods such as this in the class Reply I m John says 1 March 2012 at 10 35 am Thanks for

    Original URL path: http://imjo.hn/2012/02/23/passing-properties-into-sitecore-sublayouts/ (2016-02-12)
    Open archived version from archive

  • Sitecore FieldRenderer class attribute | I'm John
    WebControl Long after I had given up and resigned to use asp Image my colleague figured out a workaround Until there is a better solution I ll use this sc FieldRenderer runat server ID frFirstListImage Parameters class imageLeft FieldName Image Field 1 2 sc FieldRenderer runat server ID frFirstListImage Parameters class imageLeft FieldName Image Field This entry was posted in it and tagged asp net c code sitecore Bookmark the permalink Gomad days 5 6 7 Gomad day 8 11 Leave a Reply Cancel reply Your email address will not be published Required fields are marked Name Email Website Comment You may use these HTML tags and attributes a href title abbr title acronym title b blockquote cite cite code del datetime em i q cite strike strong I m John A John of all trades but mainly in body mind and IT I m Blogging app asp net asus c caffeine code credit css design dvorak everyman furniture gadget gomad health html javascript keyboard layout money qualtrics qwerty sitecore sleep sql visual studio windows phone 8 I m Social Search for I m Developing Warning file get contents http ws audioscrobbler com 2 0 user jwburr recenttracks failed to

    Original URL path: http://imjo.hn/2012/02/15/sitecore-fieldrenderer-class-attribute/ (2016-02-12)
    Open archived version from archive

  • Sitecore current date in preview mode | I'm John
    content authors to be able to preview the presentation using the Experience ribbon This allows for easier past future page viewing without having to change the system date This did the trick DateTime currentDateTime if Sitecore Configuration State Previewing currentDateTime Sitecore Configuration State PreviewDate else currentDateTime DateTime Now return CurrentDateTime 1 2 3 4 5 6 7 8 9 10 DateTime currentDateTime if Sitecore Configuration State Previewing currentDateTime Sitecore Configuration State PreviewDate else currentDateTime DateTime Now return CurrentDateTime This entry was posted in it and tagged asp net c code sitecore Bookmark the permalink Gomad day 4 Gomad days 5 6 7 Leave a Reply Cancel reply Your email address will not be published Required fields are marked Name Email Website Comment You may use these HTML tags and attributes a href title abbr title acronym title b blockquote cite cite code del datetime em i q cite strike strong I m John A John of all trades but mainly in body mind and IT I m Blogging app asp net asus c caffeine code credit css design dvorak everyman furniture gadget gomad health html javascript keyboard layout money qualtrics qwerty sitecore sleep sql visual studio windows phone 8 I

    Original URL path: http://imjo.hn/2012/02/14/sitecore-current-date-in-preview-mode/ (2016-02-12)
    Open archived version from archive

  • A gem | I'm John
    myList public void Page Load object sender EventArgs e myList GetList Compute myList Compute List theList myList RemoveMin theList myList RemoveMax myList 1 2 3 4 5 6 7 8 9 10 11 12 public List myList public void Page Load object sender EventArgs e myList GetList Compute myList Compute List theList myList RemoveMin theList myList RemoveMax myList This entry was posted in it and tagged asp net c code Bookmark the permalink Gomad day 2 Gomad day 3 Leave a Reply Cancel reply Your email address will not be published Required fields are marked Name Email Website Comment You may use these HTML tags and attributes a href title abbr title acronym title b blockquote cite cite code del datetime em i q cite strike strong I m John A John of all trades but mainly in body mind and IT I m Blogging app asp net asus c caffeine code credit css design dvorak everyman furniture gadget gomad health html javascript keyboard layout money qualtrics qwerty sitecore sleep sql visual studio windows phone 8 I m Social Search for I m Developing Warning file get contents http ws audioscrobbler com 2 0 user jwburr recenttracks failed to open

    Original URL path: http://imjo.hn/2012/02/09/a-gem/ (2016-02-12)
    Open archived version from archive

  • Visual Studio keyboard shortcuts amuck | I'm John
    address will not be published Required fields are marked Name Email Website Comment You may use these HTML tags and attributes a href title abbr title acronym title b blockquote cite cite code del datetime em i q cite strike strong I m John A John of all trades but mainly in body mind and IT I m Blogging app asp net asus c caffeine code credit css design dvorak

    Original URL path: http://imjo.hn/2011/12/29/visual-studio-keyboard-shortcuts-amuck/ (2016-02-12)
    Open archived version from archive

  • body | I'm John | Page 2
    Monday and Tuesday respectively My calorie count has been well above 3500 calories Sunday and Monday I counted til I got up to Continue reading Posted in body Tagged gomad Leave a comment 11 Feb Gomad day 4 152 2 lbs Apparently I ve lost weight but this fluctuation is well within normal ranges for me Including the gallon of milk I ve consumed about 3500 calories today I wonder what my weight will be tomorrow I had an intense workout Continue reading Posted in body Tagged gomad Leave a comment 10 Feb Gomad day 3 152 8 lbs Since the first day I ve gained 5 8 lbs With water weight and bloating in the past I ve easily fluctuated 5 lbs in a day so I won t attribute all the weight gain to the milk On a different note my caffeine intake Continue reading Posted in body Tagged caffeine gomad health Leave a comment 9 Feb Gomad day 2 I woke up today with a slight migraine so I wasn t as excited to force myself to drink milk all day By the time lunch rolled around I had only consumed 2 cups Ended up getting through the gallon by Continue reading Posted in body Tagged gomad health Leave a comment 8 Feb Gomad II Starting my second round of Gomad today That s a gallon of milk a day Whole milk 2400 calories just in the milk It s been about a year since my first go at it Starting weight is 147 Next Gomad day Continue reading Posted in body Tagged gomad health Leave a comment Newer posts I m John A John of all trades but mainly in body mind and IT I m Blogging app asp net asus c caffeine code credit css

    Original URL path: http://imjo.hn/category/body/page/2/ (2016-02-12)
    Open archived version from archive