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".
  • I'm John
    and remove it if ScheduledActionService Find myPeriodicTask Name null ScheduledActionService Remove myPeriodicTask Name add the periodic task throws exception ScheduledActionService Add myPeriodicTask 1 2 3 4 5 6 7 8 9 10 11 12 13 initialize the periodic task PeriodicTask myPeriodicTask new PeriodicTask TaskName myPeriodicTask Description Task Description myPeriodicTask ExpirationTime DateTime Now AddDays 10 find if there is a task by the same name and remove it if ScheduledActionService Find myPeriodicTask Name null ScheduledActionService Remove myPeriodicTask Name add the periodic task throws exception ScheduledActionService Add myPeriodicTask A better implementation is to iterate through all PeriodicTasks for more Posted in it Tagged asp net c code windows phone 8 Leave a comment 13 Dec Dvorak keyboard layout Part I I ve been a full timer in the workforce a pretty short length of time At my first job out of college I was hired as a fresh programmer onto a team with much more experience than I had Naturally when I started to develop aches in my fingers and palms associated with repetitive strain injury RSI I was more than shocked that it could happen to someone my age I was especially surprised that I had started to notice symptoms after only 6 months on the job This was my first desk job and I did not think 6 months of repetition was enough for my hands to start experiencing RSI I was wrong I had be working 40 hours a week programming at a desk then coming home to do my own projects for another 4 or 5 hours a day It s hard to believe now that more Posted in mind Tagged dvorak keyboard layout qwerty Leave a comment 5 Oct Access referring page in asp net In an asp net web application the referring page can be accessed via the Request object This is useful for controls that redirect to the previous page To access the local path and store it to ViewState use ViewState ReferringPage Request UrlReferrer LocalPath 1 ViewState ReferringPage Request UrlReferrer LocalPath It s also possible to access the full path via BackHyperLink NavigateUrl Request UrlReferrer ToString 1 BackHyperLink NavigateUrl Request UrlReferrer ToString Posted in it Tagged asp net c code Leave a comment 28 Sep JQuery click event fires multiple times A quick gotcha sometimes your click events might fire multiple times Just double check your event handlers are inside document ready document ready function button click function my button click event handler code 1 2 3 4 5 document ready function button click function my button click event handler code In large javascript files sometimes it s hard to catch Posted in it Tagged code javascript Leave a comment 14 Aug Polyphasic sleep What to expect when you re adjusting I m a month and some change into the Everyman sleep cycle and I hope I never have to go back to monophasic sleep In fact if my schedule dictated I needed to change my schedule back closer to a monophasic schedule I

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

  • About me | I'm John
    on the board of the Graduate Investment Fund GIF at Georgetown McDonough as well as doing work as a Graduate Assistant at Georgetown in behavioral economics and organizational decision making I hold a number of technical Microsoft certifications which can be seen listed below 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

    Original URL path: http://imjo.hn/about-me/ (2016-02-12)
    Open archived version from archive

  • Contact me | I'm John
    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 stream HTTP request failed HTTP

    Original URL path: http://imjo.hn/contact-me/ (2016-02-12)
    Open archived version from archive

  • Archive | I'm 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 stream HTTP

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

  • I'm John | Page 2
    in my opinion the 3rd day was the hardest For me the 4th day of adaption was easier and the 5th was a breeze This could be due to the strictness with which I ve maintained my schedule I ve never overslept an alarm nor have I allowed myself to sleep off schedule It must have paid off since today I more Posted in body mind Tagged everyman sleep Leave a comment 12 Jul Check Sitecore item presentation There are many times when I ve had to implement business logic that depended on whether or not Sitecore items had presentation details set For example in a site wide page search it wouldn t make much sense to return links to items that have no presentation details Checking if an item has a layout set is relatively easy once you know how public bool DoesSitecoreItemHavePeresentation Item item return item Fields Sitecore FieldIDs LayoutField null item Fields Sitecore FieldIDs LayoutField Value String Empty 1 2 3 4 5 6 public bool DoesSitecoreItemHavePeresentation Item item return item Fields Sitecore FieldIDs LayoutField null item Fields Sitecore FieldIDs LayoutField Value String Empty Posted in it Tagged asp net c code sitecore Leave a comment 9 Jul Everyman day 1 I ve just completed my first day of Everyman I feel fine Others who are using the Everyman schedule have said the first 2 days aren t difficult but the the 4th and 5th days are the worst I started my Everyman adjustment with a 3 hour core nap yesterday at 4A M I set 2 alarms but woke up on my own 1 minute before the first one was set to go off 7A M I worked solid through the first part of my day until my first nap at noon Since I have a habit of more Posted in body mind Tagged caffeine everyman sleep Leave a comment 9 Jul Polyphasic sleep Everyman Ever since I heard about polyphasic sleep a year ago I have been fascinated by it Is it really possible to sleep less but be just as rested as with a standard monophasic 7 9 hour sleep schedule I ve spent the last year learning more about polyphasic sleep the practice of sleeping multiple times in a 24 hour day and decided it was time to give it a shot There are several types of polyphasic sleep schedules that people have successfully adopted The most extreme is more Posted in body mind Tagged everyman sleep Leave a comment 2 Mar Gomad days 24 25 I m back up to 160 2 lbs on day 24 and hovering there at 160 lbs on day 25 That puts me at about 13 since I started Unfortunately I ll have to take a week off from working out since I won t have access to the weight room next week That means gomad will have to stop too I can t be getting fat here I m going to finish out strong this week

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

  • Access and update Qualtrics embedded data from javascript | I'm John
    data in the javascript I first need to add a hidden HTML element with the embedded data value span id EmbedDataTotalKeyClicks style display none e Field TotalKeyClicks span 1 2 3 span id EmbedDataTotalKeyClicks style display none e Field TotalKeyClicks span The best practice next step would be to create a javascript utility function to access this embedded data For simplicity here I ve directly referenced the DOM element instead of creating a utility function add key clicks to the total function processClicks clicks var totalKeyClicks parseFloat EmbedDataTotalKeyClicks innerHTML totalKeyClicks clicks replace the span innerHTML with the updated value EmbedDataTotalKeyClicks innerHTML totalKeyClicks save the embedded data to Qualtrics Qualtrics SurveyEngine setEmbeddedData TotalKeyClicks totalKeyClicks 1 2 3 4 5 6 7 8 9 10 11 add key clicks to the total function processClicks clicks var totalKeyClicks parseFloat EmbedDataTotalKeyClicks innerHTML totalKeyClicks clicks replace the span innerHTML with the updated value EmbedDataTotalKeyClicks innerHTML totalKeyClicks save the embedded data to Qualtrics Qualtrics SurveyEngine setEmbeddedData TotalKeyClicks totalKeyClicks Note the last line of the code Qualtrics SurveyEngine setEmbeddedData TotalKeyClicks totalKeyClicks 1 Qualtrics SurveyEngine setEmbeddedData TotalKeyClicks totalKeyClicks saves the value of totalKeyClicks to the Qualtrics Embedded Data field TotalKeyClicks This is the line that does all of the magic that allows the value to be accessed via the data reports However none of this would have been possible if the javascript could not access the Embedded Data in the first place This entry was posted in it and tagged code html javascript qualtrics Bookmark the permalink Javascript disable hidden net validators 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

    Original URL path: http://imjo.hn/2014/04/15/access-and-update-qualtrics-embedded-data-from-javascript/ (2016-02-12)
    Open archived version from archive

  • it | I'm John
    Continue reading Posted in it Tagged asp net c code windows phone 8 Leave a comment 5 Oct Access referring page in asp net In an asp net web application the referring page can be accessed via the Request object This is useful for controls that redirect to the previous page To access the local path and store it to ViewState use ViewState ReferringPage Request UrlReferrer LocalPath 1 ViewState ReferringPage Request UrlReferrer LocalPath It s also Continue reading Posted in it Tagged asp net c code Leave a comment 28 Sep JQuery click event fires multiple times A quick gotcha sometimes your click events might fire multiple times Just double check your event handlers are inside document ready document ready function button click function my button click event handler code 1 2 3 4 5 document ready function button click function my button click event handler code In large javascript files sometimes it s hard to catch Posted in it Tagged code javascript Leave a comment 6 Aug LINQ to Entities does not recognize method I run into this NotSupportedException more often than I should LINQ to Entities does not recognize the method System String ToString method and this method cannot be translated into a store expression It s a simple fix but it always slips my Continue reading Posted in it Tagged asp net c code Leave a comment 2 Aug Sitecore iframe validation According to the XHTML 1 1 specifications iframes are deprecated and should be replaced by object tags Sitecore validation correctly fails on any pages with iframes Unfortunately there are some edge cases where object tags do not always work IE8 I m Continue reading Posted in it Tagged code sitecore Leave a comment 31 Jul SQL script to populate a state lookup table I needed

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

  • code | I'm John
    to ViewState use ViewState ReferringPage Request UrlReferrer LocalPath 1 ViewState ReferringPage Request UrlReferrer LocalPath It s also Continue reading Posted in it Tagged asp net c code Leave a comment 28 Sep JQuery click event fires multiple times A quick gotcha sometimes your click events might fire multiple times Just double check your event handlers are inside document ready document ready function button click function my button click event handler code 1 2 3 4 5 document ready function button click function my button click event handler code In large javascript files sometimes it s hard to catch Posted in it Tagged code javascript Leave a comment 6 Aug LINQ to Entities does not recognize method I run into this NotSupportedException more often than I should LINQ to Entities does not recognize the method System String ToString method and this method cannot be translated into a store expression It s a simple fix but it always slips my Continue reading Posted in it Tagged asp net c code Leave a comment 2 Aug Sitecore iframe validation According to the XHTML 1 1 specifications iframes are deprecated and should be replaced by object tags Sitecore validation correctly fails on any pages with iframes Unfortunately there are some edge cases where object tags do not always work IE8 I m Continue reading Posted in it Tagged code sitecore Leave a comment 31 Jul SQL script to populate a state lookup table I needed to populate a Microsoft SQL table with state lookup data but was unable to find any scripts out there that I could copy and paste Here s what I ended up putting together There s nothing groundbreaking about this code Continue reading Posted in it Tagged code sql Leave a comment 12 Jul Check Sitecore item presentation There are

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