But I've payed for 4 hours already, so ill use that then probably go home and just do the rest on my cell. My cell is probably faster but would cost me like 200 bucks in data to complete lol
Hmm not sure how many people live around you but you could simply take a walk and see if there's any open WIFI networks. Did that when waiting for my ISP to set everything up.
If I had concole access on these machines I doubt the router would have even half decent security so id just blast into it and change things up. But these machines are console limited. I could do some uac hacking but I cbf
My laptop is broken. Dropped it about two weeks bqck. Downloading to a system here and copying the file.to a flash drive
Good morning! If anyones around, I got quite the interesting issue going on
I am working in C# asp.net, and taking records from a database. I use EF6, and that seems to require that the numbers I am working with is of the type 'double', HOWEVER, a few lines down I got another block of code, that uses the same variables, but needs to be of the type 'string', or atleast, in a format where I can put "" around it.
Making the variables strings, then doing a Convert.ToDouble(); doesn't instantly give me any erors, however, breaks it upon debugging
I mean it loads, thats more than it did last time. Thank you!
Kinda interesting in my book how Convert.ToDouble(); breaks it but double.Parse(); doesn't, but not going to complain
Oh hold on
Yeaah, i forgot i hadnt activated that bit yet, "LINQ to Entities does not recognize the method 'Double Parse(System.String)' , and this method cannot be translated into a store expression"
Also i'm not 100% what i did but suddenly it works. Welp..
Convert.Whatever just creates a new reference to the same data, the reference is of a different type but it's still pointing to a string. Parse interprets the string as a double and creates a new value. Obviously (is it?) the representations of a string "1.0" and the number 1.0 are completely different
Lol, So like 2 weeks ago I had my whatsapp number blocked for using the whatsapp.net api so I emailed them then got my number back things all fine. So woke up 2day to a blocked number so emailed them Haven't used the api since the unblock and now they mailed me that they decided to reblock me again for the thing from 2 weeks ago >.<
https://gist.github.com/JohannesSundqvist/8f1d2b1089e7e3160582 Is there a particular reason this isn't working, anyone? centerLat and centerLng doesn't seem to get assigned any value whatsoever, and it feels like theres soemthing very simple I'm missing
You're comparing p.markerLat to a double created from the content of centerLat, which is invalid anyway since centerLat is an empty string, then the created double goes out of scope inside the query because it's never assigned
Also, reason that is a string and not just instantly a double is because the actual final location for that variable doesn't at all do anything as a double and needs to be a string, interestingly enough
I can give them default values in form of coordinates, if that'd help?
Well, I am working with the Google Maps API, and then obviously having a map on the site I am working on (locally via Visual studio, but nontheless)
If I, for example, switch string -> double, it simply doesn't show the map. Like it would never understand that what I am giving it is the center location coordinates
getMarkerPos is also an IEnumerable<marker> but I think that will always have 0 elements since the logical comparison you're doing in the query is invalid
I'm actually surprised that works at all because I'd expect double.Parse to throw an exception
Correct. To throw it into the whole context, I got a map with a "external" searchbar, if you type in a name of a marker, it should grab its coordinates, and then throw it into the center coordinates of the whole map
Well, as far as the whole kartaEntities goes and DbContext, thats that. Above are usings for the code, below are the Page load classes
So I got the Index file, with the code that I linked earlier via gist.github
Then a index.aspx.cs , with the different using (eg. using System;)'s, then what I just pasted here, then the auto-generated namespace, index class and page_load
Hi. I have a big project. Somewhere in code occur assignment NAN to variable of object. I cant find this piece of code with devidion by zero. How can i find this piece of code?
@GLeBaTi Tip: Make the variable a property with setter, and set a conditional breakpoint on the setter to break when value == double.NaN, then walk up the stack trace
To select a single item out of a sequence, use SingleOrDefault, which will return either 1 item if it matches the predicate, or null, or will throw an exception if there is more than one match
That item is your matching marker. If it's not null, print marker.markerLat and marker.markerLng
Because I need to use double in the EF query for it to accept it, however, since I am using Google Maps API (Javascript), it doesn't seem to accept doubles in the center cariable
You already know how the query looks, that requires a Double
Because thats what I got in the database, and i'm not sure how i would otherwise get something like "xx.xxxx" into the database without it just translating into "xx"
Well, eventually I will put something in that database, not now, but at some point, and when that point comes, I cant have coordinates (lets say 22.2222 and 22.6666) just sit there being two "22"'s
See the "centerLat" and "centerLng"? Those pretty much become NULL if they are Doubles instead of Strings, for whatever reason
So thats the only two criterias I am working against
The database probably needs Double or something along those lines to allow decimals and all that, and that seems to require a variable that allows quotation marks
Still at no point do you have to convert anything to a double. The query in your gist makes no sense and short of writing it for you and saying look, copy and paste this, I'm not sure how much clearer I can be
Okay. So If I remove the Parse, it throws a error obviously, that it cant convert String to double, thats easily fixable, but if i do fix that, it doesn't load the map
I figured I would for now only pick up markerLat to make things perhaps easier, also I figured since I am not doing any parses i dont either need any where's. Evidently, I am incorrect. Again. I'll go ahead and roll back to what it was before and then just add the SingleOrDefault
I will. A bit rudely though I will have to interrupt us and go on some work stuff, I do however want to say I appreciate what you've given me, as annoyed I can understand you are.
"A Support Vector Machine (SVM) is a discriminative classifier formally defined by a separating hyperplane. In other words, given labeled training data (supervised learning), the algorithm outputs an optimal hyperplane which categorizes new examples."
In machine learning, support vector machines (SVMs, also support vector networks) are supervised learning models with associated learning algorithms that analyze data used for classification and regression analysis. Given a set of training examples, each marked for belonging to one of two categories, an SVM training algorithm builds a model that assigns new examples into one category or the other, making it a non-probabilistic binary linear classifier. An SVM model is a representation of the examples as points in space, mapped so that the examples of the separate categories are divided by a clear...
I knew a company that did that, using that SVM mechanism to re-engineer legacy systems.
stuff like passport controls running on a mainframe. Too expensive/complex to write a new decision-making system, so just feed the historic data into one of those algorithms instead.
@TomW It's the only way to get algorithms that aren't simply fast calculations of methods you already know. It allows for emergent links, finding links and similarities in patterns and attribute you didn't even know are connected.
@SteffenWinkler That's just because we don't fully comprehend it. But you could categorize medicine into "magic" too. Since ancient times we've used herbs and such as medicine, and even now, that's no different. We don't actually understand half of our medicine. You can still categorize that as "magic", but because it's considered normal you don't think that's true. Idem, "White Witches" still make use of that. So.. it begs the question, what do you classify as magic?