Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

godfetish

@godfetish
About
Posts
11
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I absolutely hate no-code systems.
    G godfetish

    The great thing about no-code systems is that you create more coding jobs. What about AI? Well, someone has to code those systems too. The problem is like you found, the interface layer will drive a tech-minded person insane because these tools are not made for us. They are made for and sold to managers who spent time in a marketing seminar watching a few examples that were perfectly crafted for the data. They pay incredible amounts of money for a tool that doesn't require health insurance and think they are saving a bundle. Suddenly there's a job opening for a SharePoint/App manager, and too often, it ends up being some non-tech-minded ex-business manager and friend of the HR lady you can't stand that suckered their last organization into moving everything to the cloud...and they need to hire some fakers - "tech-minded" assistants - to actually do the work, and they bother you all day because they can't figure out how to Google.

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

    The Lounge css database visual-studio question career

  • Curly braces
    G godfetish

    The only sane format is:

    void Afunc()
    {
    }

    Why #1: Because half the non-curly scoped languages out there use words or other symbols for marking scope, and BEGIN just doesn't look right at the end of the line! Why #2: Java version 1.1 (the first language I used and learned that trailed the curly brace in books) was so horrible, it gave me one more thing to hate! Why #3: Other than using some automated reformatting that kicks lines to the right or left, I find it very difficult to find missing curly braces in some logic. Matched ones line up very clearly. If they trail the line, when things get a few indents deep, the code becomes hard to read and finding that one line you inserted outside of them takes more time than just begin clear the first time. So, always on its own line!

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

    The Lounge hosting cloud

  • I wish Microsoft would write a CAD program.
    G godfetish

    CADdyi by Microsoft A free CAD software with premium features for the maker! *If someone uses this name, you owe me money.

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

    The Lounge design

  • Probably ancient, but new to me ...
    G godfetish

    You forgot the third line, where the woman says, "ya, it'll fit," and after looking again at the man, then asks, "but, do you have anything bigger?"

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

    The Lounge

  • Is Windows 11 ready to be used?
    G godfetish

    Quote:

    It's incompatible with VMWare Workstation

    Is it MS or is it really VMWare to blame? We couldn't use VMWare with or without HyperV enabled in Windows 10 for quite a while. So long in fact, that I started using HyperV and uninstalled VMWare, then you could disable it and run VMWare after some patches, but I needed HyperV for javascript development so it wasn't one or the other that I needed! Eventually it was fixed again, and I did reinstall, as I had to resume using VMWare occasionally for older release Siemens PLC development. It's not like Win 10 or Win 11 just poofed and surprised VMWare, they should have been working to get the issues resolved during the RC phases.

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

    The Lounge question

  • Programming Question
    G godfetish

    NMake can be downloaded from the MSDN directly if you have a 32bit OS. If you have 64bit, then that 16bit NMake download will not run! You have to install the Express Edition or higher of Visual C++ and find it in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin there is another file called nmakeui.dll at C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\1033 but I didn't use it. Why would I go to the trouble? Perl scripts, not wholelly related to .BAT, but a script nonetheless - mine tend to be 20K to 200K per file! On a 64bit Windows OS with no 16bit support like Win7: to install CPAN modules (type cpan at a dos prompt after installing ActiveState Perl), you need Perl, MingW and MSys for the compiler, and NMake. This was fine till we upgraded - well, downgraded my laptop since this $3k Elitebook crashes constantly - to 64bit. I was stuck without the modules and had to figure out a way to get NMake. My Macbook Pro will be here today I hope, btw. Can't wait to get Windows 7 installed on it! Not an Apple fanboi, but I doubt I am going to freeze, BSOD or put up with random sticking letter or key of the day issues...

    The Lounge question xml

  • Gaming mouse recommendations?
    G godfetish

    I concur...the original sidewinder mouse I have has been the longest living mouse (3+ years now I think) I've ever owned since the logitech track ball I killed...I would buy another trackball, but ebay prices are crazy for an almost 15 year old track ball. My mice suffer endlessly...but at least I try to keep my desk clean. As a plus, it works great without a mouse pad. Love the sidewinder for the weightiness of it, I hate a 1 oz gaming mouse like some of the other brands, I need some weight. The cable clip on storage container for the adjustable weights acts to manage the cable very nicely, and the push button increase for dpi on the fly is awesome. Some games, or maybe windows 7, aren't playing nice with my thumb buttons though, but I'll get that figured out. This is of course, the first gen Sidewinder mouse from 2007, I have not tried the newest incarnation(s)... I tried the Razor Naga (loved the idea of having so many buttons and it worked great in wow and whatever fps I was playing), but it was too small for my hands (thumb cramp!). The Mamba or one of the others was awfully low profile so i didn't like that, the logitech gaming wireless laser ate a charge too fast so it spent more time charging and me using a backup wired mouse than I liked. Thinking the RX1000 logitech wired mouse I use at work might not be a bad mouse for gaming, just no extra buttons. It's accuracy is excellent for a cheapo...

    The Lounge question workspace

  • Serialize a collection of objects
    G godfetish

    You are right! Thanks Henry. jrk

    C# csharp asp-net com json tutorial

  • Serialize a collection of objects
    G godfetish

    The output of the sample project is: Writing Employee Information Reading Employee Information Employee Id: 13 Employee Name: test Employee Id: 13 Employee Name: test Employee Id: 13 Employee Name: test Employee Id: 13 Employee Name: test Employee Id: 13 Employee Name: test Press any key to continue . . . So, yes, two EId's of 13 should be there, by design or by fault...not 5 of them when deserialized. I see that the de/serialization is only calling the get/set in the class object one time each way. Not 5 times, once for each record! This is an interesting problem...

    C# csharp asp-net com json tutorial

  • Serialize a collection of objects
    G godfetish

    Don't expect the help with ASP.NET, asked for help with serializing a List in C#, but thanks for reading the first sentance.

    C# csharp asp-net com json tutorial

  • Serialize a collection of objects
    G godfetish

    In C# I need to serialize a List of Constraint objects. Each Constraint has a Group, Field, Condition, and some values depending on the CGF combination. I have been trying to get these serialized so that I can store them, preferably in an ASP.NET cookie. I cannot use Session to maintain the list because I was told we have 2 web servers and Session won't work, so I need to serialize the CList and push it off in a cookie...I'm new to ASP.NET, but I thought skilled in C# and started working on a test app to serialize a List of generic objects based on a sample app here but it is not working properly. In this example I make a List and add to it a few employees, then try to serialize it and store off in a file. Reset my List and such, then open the file a read the serialized data back to the List. When using the original project, one employee at a time worked. The original is here: http://www.codeproject.com/KB/cs/objserial.aspx using System; using System.IO; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.Collections.Generic; namespace MyObjSerial { [Serializable()] //Set this attribute to all the classes that you define to be serialized public class Employee : ISerializable { public int EmpId; public string EmpName; //Default constructor public Employee() { EmpId = 0; EmpName = null; } //Deserialization constructor. public Employee(SerializationInfo info, StreamingContext ctxt) { //Get the values from info and assign them to the appropriate properties EmpId = (int)info.GetValue("EmployeeId", typeof(int)); EmpName = (String)info.GetValue("EmployeeName", typeof(string)); } //Serialization function. public void GetObjectData(SerializationInfo info, StreamingContext ctxt) { //You can use any custom name for your name-value pair. But make sure you // read the values with the same name. For ex:- If you write EmpId as "EmployeeId" // then you should read the same with "EmployeeId" info.AddValue("EmployeeId", EmpId); info.AddValue("EmployeeName", EmpName); } } //Main class public class ObjSerial { public static void Main(String[] args) { //Create a new Employee object List<Employee> mp = new List<Employe

    C# csharp asp-net com json tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups