Search results

  1. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    Create a css class for the red background, create another ccs class for the green background Put logic on the razor line that builds the TD to swap one with the other depending on the amount.
  2. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    Ok now add the styles that you need. Try making the row red if amount > 1000, else green Hint the changes are on the view with class="___" and "if statements"
  3. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    also remove any view associated with a deleted action. Dont leave a view for delete, if there is no action for delete.
  4. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    Here is where your HTML Knowledge comes in. Feel free to style out the following files Those are the files that contain the Html code. So it works like this. Controller recieves an action. Controller gathers the data from the model and sends it to the view for rendering. How does the view...
  5. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    ok now we have tied the Code with SQL, now lets show some data on the screen. Right click on Controllers folder, "Add new controller" then Then f5 and navigate to teh following URL on your PC the port number will be diferent for everyone http://localhost:51252/Salaries/index...
  6. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    Now lets update the Database. FINALLY on package manger type Update-DAtabase -verbose This will lets yousee teh SQL that will be applied to the DAtabase Here is the DAtabse view from SSMS I want you to look at the Column and the class you created "Salary" and look at how they map 1-1...
  7. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    open the PAckage Manager console. Leave it poen somewhere as you use it a lot on EF. this is how you get to it then type Enable-Migrations from Code-based Migration in Entity Framework Modify your context file and lets dd those SAlaries public class ReportContext : DbContext {...
  8. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    If anything a separate thread can be used. Ill leave it to amod discretion. But this is really what this thread is for. give me 5 initializing DB is next
  9. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    There are also other important tags there. [Required] makes it that you have to have a value there and will mark it on the database as such. Maxlength will make it that your string are not defaulted to the maximum., and the "?" operator. This is a special c# operator meaning "nullable"
  10. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    We have not created any model classes yet. Lets go ahead and do that. WE are going to create a simple salary class. so you can see the data types namespace MachineReport.Models { [Table("Salaries")] public class Salary :Entity { /// <summary> /// Main Key, by using...
  11. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    On your models Folder Create these 3 files. t will be the base of all our models public abstract class Entity : IObjectState { #region Public Properties [NotMapped] public ObjectState ObjectState { get; set; }...
  12. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    Im just making changes as i Go. Im not going back and editing. Create a folder on the root named DataContext Inside of it create a file named ReportContext, That is your context file ReportContext.cs using System.Data.Entity; namespace MachineReport.DataContext { public class...
  13. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    Remember that Part where we updated the nuget reference? Go there again and from the first tab search and install "EntityFramework"
  14. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    Lets do it based on a code first approach for Entity Framework. There are several ways of using EF (Entity Framework). Code first is the most explicit one. It requires more typing but it will give you more control over your stuff. What is Code-First? We are also going to use Conventions...
  15. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    Press F5, u should see a default looking home Page. Next step we will update your references. Right click on your project and click on "Manage Nuget Refereces" update everything. Afterwards your visual layout will have changed. that is ok.
  16. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    Once you have your SMSS installed and ready to go, copy the database name somewhere, we will use that database. Next step is in Visual studio. Open it and create a Blank Project. Here is the wizard screen Second screen. We have selected MVC and Web Api.
  17. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    The main thing you need from SQL 2017 is the SQL Engine and the SSMS, SMSS= Sql Server Management Studio. That the the GUI that allows you to do queries, create tables and Databases. SQL Engine is the actual windows process that runs the SQL database After installing SSMS, connect to your...
  18. Lendarios

    A Quiet Place (2018)

    Went to see it with the wife, we both liked it. I recomend it.
  19. Lendarios

    RIP Avicii (Tim Bergling)

    Wake me up when its all over.
  20. Lendarios

    All Inclusive for Couple in Punta Cana

    Ok. Look for this Esmeralda(emerald) Bahia principe. (Prince Bay). Luxury Bahia Principe Esmeralda $190 ($̶2̶6̶5̶) - UPDATED 2018 Prices & Resort (All-Inclusive) Reviews - Punta Cana, Dominican Republic - TripAdvisor Cousin recommended that.
  21. Lendarios

    Marriage and the Power of Divorce

    @ZyyzYzzy cross posting in other threads with stuff from here.
  22. Lendarios

    Marriage and the Power of Divorce

    Yes, it is a chain, what can I say.
  23. Lendarios

    Arkk's Weight Lifting / Fitness Thread

    /shrug You are right. I don't know about weightlifting I only do Olympic lift movements.
  24. Lendarios

    Arkk's Weight Lifting / Fitness Thread

    It doesn't work like that. When you are tired you break the form not because you want to, but because you have to. Forcing you to work tired, does not makes or forces you to have better form.
  25. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    As a manager, maybe you should hire as many people as they let you. More people = more money for you. Have your QA subordinates people express desire/skill on learning more coding? Who makes the ultimate technical decision in hiring the Qa guy?
  26. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    What do you want to do? Do you want to code more?
  27. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    @ex-genj I don't think that compiles homey!!
  28. Lendarios

    Marriage and the Power of Divorce

    sorry I thought your friend was the girl. so somehow.. my point still stands..
  29. Lendarios

    All Inclusive for Couple in Punta Cana

    Everyone in Miami goes to Punta Cana for vacation. They have very good all inclusive resorts. Like every other shithole country, you go from the airport to the resort, and don't stop on the middle areas, it is basically poverty all around it. Once you are on the resort, drink until you die. =)...
  30. Lendarios

    Marriage and the Power of Divorce

    "I have a friend who is going through a very, very nasty divorce right now and the shit his ex is saying and doing is outrageous. She's also sleeping with her lawyer which I think is frowned upon in other areas of the law. " This baffled me. She complains about the ex, while taking dick from...
  31. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    destructuring is pretty cool. is like reverse creation =) var foo = ['one', 'two', 'three']; var [one, two, three] = foo; console.log(one); // "one" console.log(two); // "two" console.log(three); // "three"
  32. Lendarios

    Retirement Planning Thread

    btw February and March were BRUTAL for my index. January was ... AMAAAZINGGG !!
  33. Lendarios

    Retirement Planning Thread

    3k a month, for how long you going to be living 20 years in retirement? so a gross calculation can be 40k a year * 20 years = $800,000 dollars =) It sounds like a lot but if you factor 20 years in retirement it adds. up. htere are plenty of other variables such as inflation, use this How...
  34. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    What do you men "manage project Information". It is a very broad term. Do yo have a screen shot of access u can share, so we can see? Blured out critical information =) What technology? Do you need help designing the tables? The best advise I can give you is write it out as if you were...
  35. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    @James what similar situation are you at work? What are they asking you to do?
  36. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    ? He said he'll be back on Monday. Waiting on that.
  37. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    ok we can make a separate thread so we don't swamp this one back and forth,
  38. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    How do you want to do this? do you want to do this so you can learn? Or you just want the zip at the end? I can figuratively walk you step by step of the process. Either way you are going ot need those programs installed. so download and install Visual studio 2017 community edition and SQL...
  39. Lendarios

    IT/Software career thread: Invert binary trees for dollars.

    You are getting closer. you are 90% there. that is a much better writeup for requirements. Install Vs2017 community edition and install SQL server development edition on your local PC. SQL Server Downloads | Microsoft Im assuming your company has a SQL license for production.