Jump to content

RockiLocky

Member
  • Posts

    500
  • Joined

  • Last visited

Reputation Activity

  1. Agree
    RockiLocky got a reaction from CookieMaster in SQL Help   
    https://stackoverflow.com/questions/17879735/there-are-no-primary-or-candidate-keys-in-the-referenced-table-that-match-the-re
    This might actually help you out. The guy seems to have the kinda same problem
     
  2. Like
    RockiLocky got a reaction from CookieMaster in SQL Help   
    Did you check out the link I posted?
  3. Like
    RockiLocky got a reaction from Nuluvius in Questions about Threads   
  4. Like
    RockiLocky reacted to Nuluvius in Questions about Threads   
    It's not working because in your code you are calling Dispatcher from the context of a different thread, see this explanation for what's going on. As a side point you should use a Task instead of a Thread as the former offers a higher level of abstraction, proper cancellation, a managed thread pool and more.
       
    Certainly. I know it can look rather complicated when you meet it for the first time but trust me it's rather simple once you have persevered with it. It probably doesn't help that, because by its very nature i.e. being a design pattern, it is open to interpretation thus there's absolutely tons of different takes on its implementation floating around the internet.
     
    Let's take a visual/tactile approach first. Have some code to play with (this is a very basic implementation of the pattern):
     

    <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:viewModel="clr-namespace:WpfApplication1" mc:Ignorable="d" Title="MainWindow" Height="150" Width="800"> <Window.DataContext> <viewModel:MainWindowViewModel/> </Window.DataContext> <Grid> <ProgressBar Minimum="{Binding Minimum}" Maximum="{Binding Maximum}" Value="{Binding Current}"/> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Text}"/> </Grid></Window>  namespace WpfApplication1{ public partial class MainWindow { public MainWindow() { InitializeComponent(); } }} using System.ComponentModel;using System.Threading;using System.Threading.Tasks;namespace WpfApplication1{ internal class MainWindowViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private string _text; private int _current; public MainWindowViewModel() { Text = string.Empty; Task.Run( () => { var inc = 0; while (true) { if (Current <= 0) { inc = 1; } if (Current >= 100) { inc = -1; } Current += inc; Text = $"{Current}/{Maximum}"; Thread.Sleep(50); } }); } public string Text { get { return _text; } private set { _text = value; OnPropertyChanged("Text"); } } public int Minimum { get; private set; } public int Maximum { get; } = 100; public int Current { get { return _current; } set { _current = value; OnPropertyChanged("Current"); } } private void OnPropertyChanged(string propertyName = null) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } }}
  5. Like
    RockiLocky reacted to Nuluvius in Questions about Threads   
    Yes you are right, you need to acquire the Dispatcher instance from the UI context and then from your thread (for which I recommend you use a Task) call either Invoke or BeginInvoke on it (depending on your needs) with your lambda. There's a more detailed explanation of the Dispatcher here and here. The latter touches on the SynchronizationContext of which there's only a implementation for the UI thread provided by default.
     
     
    Yes when working with WPF you should be adhering to the MVVM design pattern. You'll find that you can't necessarily do everything you need to initially so once you hit that point you should consider augmenting the pattern by pulling in a framework such as MVVM Light (my personal favorite).
  6. Like
    RockiLocky got a reaction from lubblig in .Net Library for Hangman   
    thanks will do that
  7. Like
    RockiLocky reacted to SeanAngelo in Need help deciding for a GTX980Ti   
    EVGA GTX 980Ti FTW ACX 2.0
     
    1000W is plenty.
  8. Like
    RockiLocky reacted to Nuluvius in Studying IT   
    If one is approaching them through the progressive education route i.e. straight from school then generally it's going to require strong grades and possibly other demonstrable achievements in order for them to justify offering a place out. However if like me your approach is unorthodox then the decision will also take into account one's maturity level and professional experience.
     
      Without going into the specific details I am currently enjoying a wide and very varied range of work. I see myself as a true generalist as I very much enjoy acquiring new languages and technologies. My current style of working benefits this as I currently freelance and also work permanent hours. My freelance work is based around higher level application development such as data analysis applications, data mining, big data and the presentation thereof. It's usually carried out in C#, WCF, WPF adhering to MVVM but there's also some micro service work that makes use of some legacy code in Delphi. My fixed hour work is all about robotics and control systems; there's lots of work in C/C++ implementing protocols both in an embedded environment and otherwise. It's generally highly multi threaded and the consuming side of things is usually implemented in C#, again in adherence to MVVM, although Java, Swift/Obj C has featured natively as well as via Xamarin.   I usually work adhering to Test Driven Development (TDD) in a highly Agile environment. Agile is all the rage these days and most companies worth anything as an employer to a prospective Software Engineer/Developer will try to implement some flavour of it. So I'd say that's one more thing to be on the lookout for when you try to find work.   An average week for me will consist of working from 8:00am to 5:00pm Monday to Friday with the weekend (and some evenings) spent freelancing. For me a 60+ hour working week is normal. If something goes wrong in either role then these hours will easily increase... I'd say it's not for everyone and certainly with just one job it's going to be far easier. I also have a family and I can honestly say it's hard at times especially when something goes wrong.     It depends on what you want to do, how far you want to take it and what the company specializes in. In general however, no, I don't think you will need either. Even considering the Computer Science role, maths is needed but an additional degree in it is not really going to be required. Sure if you have money to burn then it will help but don't expect it to bump your salary up necessarily. Most companies will likely have multidisciplinary teams of Software Engineers and Scientists so you're almost certainly going be well covered in that respect.   Remember as well that I have dyscalculia - I am completely mathematically inept. In the (almost) decade that I have been in the industry I can count on one hand the number of times that I have hit a wall due to mathematics. Yes I try to actively stay away from anything involving heavy maths... but my point is that it hasn't stopped me doing well so far.    
    My reason is because I had an unpleasant past. I try to assist because it's what I needed when I was in your place and I wasn't fortunate enough to have anyone to turn to for advice or help... If I helped, even a little then that's good and I'm glad. I'd love to see you do well and soar high in whatever career it is that you settle on.
  9. Like
    RockiLocky got a reaction from Boneyards in Can't decide between two Potential Builds, Please Help!   
    If you are 100% sure you are going to do content creation I would go with the X99 System
  10. Like
    RockiLocky got a reaction from Enderman in NZXT KRaken X61   
    @Paralectic and @Enderman
     
    Thanks for the info
  11. Like
    RockiLocky got a reaction from SirWendall in Mechanical Keyboard   
    Thank you for your information btw.
     
    I also was looking around right now and saw that the Logitech G910 has good reviews what do you guys think about it?
  12. Like
    RockiLocky got a reaction from Nup in Searching for gaming mouse   
    @miller3492 @Tim Drake @Not_Sean @Nup @rparent @gollum99
     
     
    Thx for all the help, sry for late repsonse.
     
    I am going for the Logitech G502 as it seems to be one of the best what will fit me and I like. Also really close to my lovely G500
     
    Nice greets,
     
    Rocki 
  13. Like
    RockiLocky got a reaction from werto165 in How would I do this? C#   
    If you can wait till 5pm GMT+1 (is in 10hours) I can give you a code that will solve your propblem with comments if xou want
  14. Like
    RockiLocky got a reaction from Grape Guild in Best programming language to learn   
    I started qith C++ and now doing C# and learning it. I like both really much and would recommend both of them. IMHO you should start doing basics in C++ then change to C#, because the.NET is awesome
    Hope it helped
  15. Like
    RockiLocky reacted to Yehiko in Need to build PC   
    Hello kind people of the internet, i  need your help.  
     
     1. The price shouldn't be more than 2000 USD (including all peripherals (mouse, keyboard, headphones, monitor)). Location: Russia
     
    2. I mostly play Legue of Legends, and i dont really play games on super max quality, good fps on normal settings is fine with me, i also edit videos alot, using after effects, premiere pro, Cinema 4D and etc. want it to be good at rendering, and good at multitasking ie using 2 softwares at once without lagging. ( not a must but would be cool)
     
    3. I can get a monitor from a shop nearby, but if u have suggestions leave them here, i want wide monitors with more workspace, i dont like having more than 1 monitor.
     
    4. I love the sound of the mechanical keyboard, so getting one would be nice, if fit the price range, also a good mouse is needed, dont really care if its the fastest or whatever. just a decent one.
     
    5. want it to be future proof for like around 5 years, please help me  
     
    thank you in advance
  16. Like
    RockiLocky got a reaction from Sumsar in Last comments before I buy   
    1.) Edited
    2.) Mainly gaming and some Content creation and alot of Programming with Visual Studio 2013
    3.) He was planning to, but cause of no support for tripple he is going to use 750W forgot to do that will edit it fast.
     
     
    Btw he was deciding between the top one and this build:
     
    PCPartPicker part list / Price breakdown by merchant   CPU: Intel Core i7-5930K 3.5GHz 6-Core Processor  ($581.98 @ Newegg)  CPU Cooler: NZXT Kraken X61 106.1 CFM Liquid CPU Cooler  ($123.99 @ SuperBiiz)  Motherboard: Asus RAMPAGE V EXTREME EATX LGA2011-3 Motherboard  ($474.99 @ Newegg)  Memory: Kingston 16GB (4 x 4GB) DDR4-2666 Memory  ($299.99 @ Directron)  Storage: Samsung 840 EVO 500GB 2.5" Solid State Drive  ($219.99 @ NCIX US)  Storage: Western Digital Caviar Black 2TB 3.5" 7200RPM Internal Hard Drive  ($139.98 @ OutletPC)  Video Card: EVGA GeForce GTX Titan Black 6GB Superclocked Video Card  (Purchased For $0.00)  Case: Phanteks Enthoo Series Primo Aluminum ATX Full Tower Case  ($249.99 @ Amazon)  Power Supply: EVGA 850W 80+ Gold Certified Fully-Modular ATX Power Supply  ($115.98 @ Newegg)  Operating System: Microsoft Windows 8 Professional (OEM) (64-bit)  ($75.00)  Monitor: Asus PB238Q 23.0" Monitor  ($359.00)  Total: $2540.89 Prices include shipping, taxes, and discounts when available Generated by PCPartPicker 2014-12-31 07:41 EST-0500       He got the TITAN Black and I told him to go for this build as he got the Money and use the TITAN Black for 1-2years more it will be fine for him and then go 3x980 if he wants or the TI version or new TITAN version if he really wants to. What do you think
  17. Like
    RockiLocky got a reaction from Kobrastachka in what mobo is better   
    Just as remminder also if your signuter says quote me, don't always trust people most are just abit yeah lazy, so it is better to follow your topic.
    Would recommend MSI
  18. Like
    RockiLocky got a reaction from J_DeMan in Looking for Case   
    The thing about the Pro is that the audio jack in the front is behind a cover and thats my consern but if I can put it into the mobo at the back I will take a look at it again.
    Thx for the reply
  19. Like
    RockiLocky reacted to FoxHound in Do i need really 8GB or 16 GB of RAM?   
    I'm hitting about 14 GB when playing Far Cry 4 and running you tube on my second display (Note my paging file if turned off). So In your use case you may benefit from 16GB but if you leave your paging file on you'll be fine with 8GB.
  20. Like
    RockiLocky reacted to 79wjd in 850W enough or not?   
    Yes, it's enough 
  21. Like
    RockiLocky reacted to Archangel1994 in 850W enough or not?   
    It's enough and you recommended a practically perfect PSU
  22. Like
    RockiLocky reacted to Tech_Dreamer in 850W enough or not?   
    it enough , almost a perfect opinion from your part, Kudos..
  23. Like
    RockiLocky got a reaction from Tech_Dreamer in 850W enough or not?   
    Thx all 3 of you
     
    Sry I cannot mark all 3 as answer so i decided the one fastes D:
  24. Like
    RockiLocky reacted to Lotus in Should I get a Monitor and drop the Chipset or jsut leave it out?   
    Okay, here you go:
     
    PCPartPicker part list / Price breakdown by merchant

    CPU: Intel Core i7-4790K 4.0GHz Quad-Core Processor  ($309.99 @ Newegg)
    CPU Cooler: Cooler Master Nepton 280L 122.5 CFM Liquid CPU Cooler  ($117.27 @ TigerDirect)
    Motherboard: MSI Z97S SLI Krait Edition ATX LGA1150 Motherboard  ($109.99 @ Newegg)
    Memory: Corsair Vengeance Pro 16GB (2 x 8GB) DDR3-1600 Memory  ($136.99 @ Newegg)
    Storage: Crucial MX100 256GB 2.5" Solid State Drive  ($104.99 @ NCIX US)
    Storage: Seagate Barracuda 3TB 3.5" 7200RPM Internal Hard Drive  ($101.99 @ Newegg)
    Video Card: Asus GeForce GTX Titan Black 6GB Video Card  (Purchased For $0.00)
    Case: NZXT S340 (Black) ATX Mid Tower Case  ($59.99 @ Micro Center)
    Power Supply: EVGA 750W 80+ Gold Certified Fully-Modular ATX Power Supply  ($89.99 @ NCIX US)
    Operating System: Microsoft Windows 8 Professional (OEM) (64-bit)  ($75.00)
    Monitor: Asus ROG SWIFT PG278Q 144Hz 27.0" Monitor  ($879.98 @ SuperBiiz)
    Total: $1978.18
    Prices include shipping, taxes, and discounts when available
    Generated by PCPartPicker 2014-12-06 15:31 EST-0500
     
    If you tell me what color your titan black is, I can match to that. If you want, I can swap the memory out for a black or black/white kit, and change the case to white, and you'll have a nice stormtrooper (black/white) theme.
  25. Like
    RockiLocky got a reaction from EMENCII in Upgrade Time   
    Because the first GTX TITAN Edition was nit available to select on pcpartpicker.
×