I have a motorized standing desk - smooth to raise/lower. I stand for all calls. I'm much more focused and don't rock in my chair when on video. I tested several before purchasing one - don't let price drive the decision. This is one area where you get what you pay for - sturdy is better. My screen sits on the desk and I type "aggressively" (or so I'm told). My screen doesn't shake. This was the second-best upgrade to my home office (after working remotely for 10+ years) after a 43" 4K TV to use as a monitor. Much cheaper than a large monitor, better than 4 24" screens, and since I'm not using it for video games, no worries about the lower specs. A full-screen file compare between current and history in Visual Studio with solution explorer open is still very doable - very little (if any) horizontal scrolling. Showering/getting dressed/shaving is important, especially early on, to keep your mind in the game. Having a reasonable schedule so you're starting about the same time every day is good as well. Use Teams/Slack-type chat to stay in touch with your team - we have channels for various projects, general team discussions (is VPN down for you?), and individual chats to still be part of the team.
Glenn E Lanier II
Posts
-
Moving to home office (mostly) -
which diff tool do you use?Another vote for UltraCompare - not terribly expensive, UltraEdit is awesome on its own. Three-way compare is helpful in the few times it's needed.
-
webhost suggestion pleaseI switched from Godaddy to Arvixe to InterServer - Affordable Unlimited Web Hosting[^]. The InterServer move was more than a year ago and have been thrilled with the speed/level of support and server uptime. The web UI gives me nearly as much control for IIS as I have on my local dev box. Link is my affiliate link - sign up using that and I get a discount in the future.
-
Web Site HostingI switched to InterServer [^] (my referral link) about 6 months ago -- thrilled with the technical assistance I received (mostly due to not knowing exactly how to use their system and being in a time crunch to have sites active again). According to their hosting details[^], they support .NET core 2.2.8 and 3.1.3. I have about 8 sites there - they have all been responsive when accessed.
-
Windows 10 multi clipboardI also have been using this version on multiple Win 10 systems with no trouble (I run it as admin so I can screenshot my Visual Studio IIS debug sessions).
-
Software Developer Insurance/Bonding?I've carried $1M (USD) general liability as a 1099 contractor for years -- not that expensive (<$50/month) and either required by contracts or some peace of mind. My policy required me to answer extensive questions about the type of development once I mentioned healthcare/patient data -- thankfully, I was able to answer no to every question related to "Will someone die if your software doesn't work?". I think an E&O (Errors and Omissions) rider (again, IANAL) might help to limit your penalties/fines. I use Harford; based on other replies, I'm looking into Hiscox. HTH.
--G
-
My new pet peeve - finalSimple: Newer. Next update: Newest Final update: Newester
-
Your First Computer...RoboJRR wrote:
Colecovision Adam computer...it was a computer, game console and printer with TV output
I was beginning to wonder if I was the only person that had one of these. It was turned on Christmas morning, and sat there blinking. I started talking to it, and my dad handed me a programming book -- said you have to make it talk back. From there, I went to Apple //c and IIgs, then to the 486-DX100 and other clones.
-
305 free fontsChristopher Duncan wrote:
Now if there was just a "download all" button
The Download Them All (DTA)[^] add-on for Firefox will do this (and much more!). --G
-
A matter of styleBig Daddy Farang wrote:
about opossums
Here in the South (southern US), we have plenty of YAP (and YAA - yet another armadillo), so I can easily see how your mind could be thinking that way! --G
-
A matter of styleBig Daddy Farang wrote:
So here's YAP. (Yet another opinion.)
Wouldn't that be YAO? :) I prefer colons, and right justified, so the label is almost touching the control (appropriate whitespace). When I was first introduced to this, I didn't like it, but our user testing showed most people are able to track from label to control better with less space between label and control (on forms with many label/textbox combinations, so not much vertical space between each element, and very heavy on text). --G
-
Get distribution list address using Outlook 12.0 Object LibraryI'm trying to get the email addresses contained in a distribution list in a public folder using the Outlook 12.0 Object Library. I can get the distribution list (as Outlook._DistListItem), but can not figure out how to get the addresses contained in it. Does anyone have an idea/pointer that would help?
using Outlook = Microsoft.Office.Interop.Outlook; outlook = new Outlook.Application(); Outlook._NameSpace olNS = outlook.GetNamespace("MAPI"); Outlook.MAPIFolder oPublicFolder = olNS.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olPublicFoldersAllPublicFolders); Outlook.MAPIFolder tiFolder = null; foreach (Outlook.MAPIFolder currentFolder in oPublicFolder.Folders) { if ("DesiredFolder" == currentFolder.Name) { tiFolder = currentFolder; break; } } if (null != tiFolder) { Outlook._Items oItems = tiFolder.Items; for (int i = 1; i <= oItems.Count; i++) { try { Outlook._ContactItem oContact = (Outlook._ContactItem)oItems[i]; } catch (Exception ex) { try { Outlook._DistListItem distributionList = (Outlook._DistListItem)oItems[i]; // distributionList is thing I want; need to get members // :confused: :confused: :confused: } catch (Exception ex1) { } } }
-
Dynamic linkbuttons and event wiringI finally got this to work -- not only did I have to recreate the buttons in the OnInit, but I also had to add the buttons to a control on the page. Looking back, that makes some sense. Thanks for the pointer -- I don't think I would have placed it in the OnInit. --G
-
Dynamic linkbuttons and event wiringChristian, I must be really dense here -- I've tried overriding the OnInit and/or the LoadViewState, and recreating the object in every Page_Load, but still no success. Currently, I have a member variable, LinkButton lb. I have a method, CreateButton, that creates the button, sets the properties, and creates the CommandEventHandler. I call this method in various places, but no luck. What am I missing?
protected LinkButton lb = null; protected override void LoadViewState(object savedState) { CreateButton(); base.LoadViewState(savedState); } protected void CreateButton() { if (null == lb) { lb = new LinkButton(); } lb.ID = "lbTest001"; lb.CommandName = "lbViewSystem_Click"; lb.CommandArgument = "1"; lb.Command += new CommandEventHandler(lbViewSystem_Click); lb.Text = string.Format("System {0:000}", 1); } protected void lbViewSystem_Click(object sender, CommandEventArgs e) { logger.Info("lbViewSystem_Click"); Literal1.Text = string.Format("Argument = {0} at {1}", e.CommandArgument, DateTime.Now.ToString("MM.dd.yyyy HHmmss")); }
Again, any help is very much appreciated. --G -
Dynamic linkbuttons and event wiringI have searched, with no success, for the answer to my problem. I want to dynamically create a linkbutton and programatically set the command to fire when the button is clicked. I can create the button, but the only event that seems to fire is the Page_Load. A simple example is below: ---- File: Test1.aspx ----
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test1.aspx.cs" Inherits="ReportCard.Test1" %> Untitled Page
---- File: Test1.aspx.cs ----using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using NLog; using System.Text; namespace ReportCard { public partial class Test1 : System.Web.UI.Page { public static Logger logger = LogManager.GetCurrentClassLogger(); protected void Page_Load(object sender, EventArgs e) { logger.Info("Page_Load: Postback: {0}", Page.IsPostBack.ToString()); } protected void Button1_Click(object sender, EventArgs e) { logger.Info("Button1_Click"); Table table = new Table(); int i = 1; TableRow tr = new TableRow(); TableCell tdSysCode = new TableCell(); tdSysCode.CssClass = "tdSysCode"; tdSysCode.Text = string.Format("{0:000}", i); TableCell tdSysname = new TableCell(); tdSysname.CssClass = "tdSysname"; LinkButton lb = new LinkButton(); lb.CommandName = "lbViewSystem_Click"; lb.CommandArgument = i.ToString(); lb.Command += new CommandEventHandler(lbViewSystem_Click); lb.Text = string.Format("System {0:000}", i); tdSysname.Controls.Add(lb); tr.Cells.Add(tdSysCode); tr.Cells.Add(tdSysname); table.Rows.Add(tr); table.ID = "tblSystemResults"; table.CellPadding = 0; table.CellSpacing = 0; TableHeaderRow thrHeader = new TableHeaderRow(); TableHeaderCell thSystem
-
Parameters in SQL query on ASP/VBScriptI've been given the task of fixing potential (and exploited) SQL-injection errors in an existing ASP (not ASP.NET) project. I can get the following code to execute (no parameters, no concatenation):
connString = "Driver={SQL Native Client};Server=server;Database=ACCT;Trusted_Connection=yes;" Set objConn = Server.CreateObject("ADODB.Connection") objConn.Open connString query = "SELECT SystemCode, SystemName FROM tblSystem WHERE Year = 5" Set cmd = Server.CreateObject("ADODB.Command") cmd.CommandText = query cmd.ActiveConnection = objConn Set rs = cmd.Execute
However, when I try to convert it to use a parameter, I get an error on the cmd.CreateParameter line of "ADODB.Command (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another."query = "SELECT SystemCode, SystemName FROM tblSystem WHERE Year = @YEAR" Set cmd = Server.CreateObject("ADODB.Command") cmd.CommandText = query cmd.Parameters.Append cmd.CreateParameter("@YEAR", adInteger, adParamInput, ,5) cmd.ActiveConnection = objConn Set rs = cmd.Execute
Any idea how I can make this work, preferably quickly and easily? Thanks. --G -
Word xslt to xml without databaseI am trying to generate a Word document for an ASP.Net application -- all users will have Word 2003. I created a simple document in Word (Simple.doc). Then, I used an XML Schema found in Simple.xsd and placed a couple of XML placeholders in the document. I saved it as Simple.XML. Downloaded and ran wml2xslt to create simple.xslt. However, I am a little stuck as to how to get the data from my application into xml using this xslt file. Every example I can find seems to assume all data will be coming from a SQL database or databound web/win forms. I would like to do something like: Swap("xmlDataElementName", myObject1.ToString()); Is this doable; any help is greatly appreciated. --G
-
Word XML/XSLTI am trying to generate a Word document for an ASP.Net application -- all users will have Word 2003. I created a simple document in Word (Simple.doc). Then, I used an XML Schema found in Simple.xsd and placed a couple of XML placeholders in the document. I saved it as Simple.XML. Downloaded and ran wml2xslt to create simple.xslt. However, I am a little stuck as to how to get the data from my application into xml using this xslt file. Every example I can find seems to assume all data will be coming from a SQL database or databound web/win forms. I would like to do something like: Swap("xmlDataElementName", myObject1.ToString()); Is this doable; any help is greatly appreciated. --G
-
Simple Filter QuestionDuh! I've been trying various combinations, *assuming* the problem was XML (and my lack thereof) related. Stupid logic! Thanks. --G
-
Simple Filter QuestionI am venturing into the .NET XML world and have already run into a problem. I have some very simple (I think) XML that defines several loan rate values, with attributes indicating the min and max amount for the loan:
10.25 14.75 5.25 9.75
So, a loan for $2500.00 should have a margin of 10.25/floor of 14.75, while a loan of $7500.00 should have a margin of 5.25/floor of 9.75. I want to access these values in my C# code to calculate the rate/payment, but am stuck.XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(Server.MapPath(@"~\App_Data\LoanInformation.xml")); string xPath = string.Format("//LoanRates/Loan[@MinValue >= '{0:000000.00}' and @MaxValue <= '{0:000000.00}']", plcdata.LoanAmount); XmlNode node = xmlDoc.SelectSingleNode(xPath);
node seems to always be null, unless I remove the 'and @Max ..' clause. I added the leading zero's in case text vs. number comparison was causing a problem. Any pointers would be greatly appreciated. --G -- modified to "ignore HTML tags"