I'm making an small logistics-oriented map...
I got an datatable containing users and their current locations (like station names), i got an image with all the "stations" and routes between 'em.
Current task is to warn when two users might meet (i.e. one user is one-two stations far from other one) and make statistics report (what stations users visit most), but i don't know where to start.
What's the most economic way to implement this?
I looked on GIS software, but i don't know how to make roads - and work with them too; there's too much unneeded stuff and no functions i need, or i did not found them so far.
Can you do it with php+JS(jQuery) and SQL? Because I think it's the bettter way to do this. Like an in-line app.
But if you really need to do this with VB.net I will try to answer your question:
The most economic way to implement this (I think) Is to make your own functions writen in .net something like:
Function get_number_of_users_in(stationID)
Function draw_user_in_image(userID)
and all the functions you may need...
After this, you can start to making your main program with a graphic interface, you could simply add a timmer to refresh your countent (Images, with a position...)
You can implement a grid and put your image over it, so you can display users like a point in X,Y coordenate. Like:
******************************
* Your image *
* -------------------------- *
* - - *
* - Your grid - *
* -------------------------- *
******************************
Next, you set the fixed coordenates like Station-1 = [(4,5)]
And controle the position with something like this in your main prg:
If get_user_next_to_station(userID) Then
msgBox('An user is close to station'&get_station_name(stationID)'!!')
EndIf
Sory for my probably erros in VB that's been a while I didn't touch this language xD But it's only for show you how you can do this.
Well I think this is the way I would do it, that depends on you and your time and skills in programming. Hope this helped you, if you need more help, you can ask me, there is no problem. Good luck !
Related
I have got the following issue.
I have implemented WDR_SELECT_OPTIONS and it works fine, but i need the CP(*) for searching data.
Someone know why is not there?
CP isn't showing up because it is only available for character-like data elements (things like C, N, or string).
My guess is that field is an integer.
manual page for these relational operators -
https://help.sap.com/abapdocu_740/en/abenlogexp_op.htm
It is not there, because it does not need to be there. If you type * or + in this field, then the system knows automatically that this is a pattern.
Here is a screenshot for selection options from a traditional Dynpro.
Why does this ridiculously simple query on data.stackexchange.com return results that don't have [help/dont-ask] in the comment text? I feel like I'm missing something mind-numbingly obvious here.
select top 10 Id, PostId, Text
from comments
where text like '%[help/dont-ask]%'
Results I currently get:
Id PostId Text
-- ------- -----------------------------------
1 35314 not sure why this is getting downvoted -- it is correct! Double check it in your compiler if you don't believe him!
2 35314 Yeah, I didn't believe it until I created a console app - but good lord! Why would they give you the rope to hang yourself! I hated that about VB.NET - the OrElse and AndAlso keywords!
4 35195 I don't see an accepted answer now, I wonder how that got unaccepted. Incidentally, I would have marked an accepted answer based on the answers available at the time. Also, accepted doesn't mean Best :)
9 47239 Jonathan: Wow! Thank you for all of that, you did an amazing amount of work!
10 45651 It will help if you give some details of which database you are using as techniques vary.
12 47428 One of the things that make a url user-friendly is 'discover-ability', meaning you can take a guess at url's simply from the address bar. http://i.love.pets.com/search/cats+dogs could easily lead to http://i.love.pets.com/search/pug+puppies etc
14 47481 I agree, both CodeRush and RefactorPro are visually impressive (most of which can be turned off BTW), but for navigating and refactoring Resharper is much better in my opinion of using both products.
15 47373 Just wanted to mention that this is an excellent solution if you consider the problem to be linear (i.e. treating `A1B2` as a single number). I still think the problem is multi-dimensional, but I guess we'll just have to wait for the author to clarify :)
16 47497 Indeed, the only way to do this is get the server to generate your CSS file which can be done in many ways depending on which language you are using. HttpHandlers are common in C#. You could use jQuery or the likes to add styling to every element with the class 'ourColur' and parametrise your JS
18 47513 This advice goes against the spirit of CSS, which is separation of content and presentation. You way requires changing HTML for presentation sake, and stating in content which elements have same color.
...none of which contains the magic link (or even the text dont-ask).
Because [] delimits a set of characters to find.
You need to escape them.
Or just use CHARINDEX as the search is unsargable anyway.
WHERE CHARINDEX('[help/dont-ask]', text) > 0
I was given a querystring that looks something like the following:
"(foo :"bar" OR baz : "qux") AND
(abc:def OR test:ok OR (fish:carp AND foobar:bazqux))
AND NOT otherthing:true
AND -(-derp:*)
OR (name:* AND abcdef:[* TO *])"
I need to figure out what query language this is so I can find the rest of the documentation on it, but I can't seem to figure out exactly what it is. It appears to be some form of SQL, but it has some small differences from what I've previously seen. Does anyone know what this might be?
I got a problem regarding ephemerides data.
The description of the ephemerides data is located here:
http://www.navcen.uscg.gov/pubs/gps/sigspec/gpssps1.pdf
I can extract the bits/bytes that are important. I just don't know how to interprete them.
It seems there is no information about that. I guess from the document that it should contain Keplerian data to calculate the position of a satellite in "WGS-84 Earth-Centered Earth-Fixed" format, which is what I need.
This document says that I can calculate the final position "utilizing a variation of the equations shown in Table 2-15"
The parameters that I need to fill into this terms are
Cus Cuc Crc Crs Cic Cis IDOT toe io
I know how long these parameters are, but not where to start to read them inside of the datastream
Looking at page 32, I see that they are there, but where they are inside of this block of "words", thats a secret for me.
Can anyone help ?
I dont ask anyone to read the whole pdf, thats a bit too much, but maybe someone has a deep knowledge regarding this topic already.
And this terms are a bit confusing, because some of them are defined recursive
A = sqrt(A^2)
vk = something * Ek
Ek = something * vk
Thanks in advance
I'm currently working on similar problems. So far the opensource library gnss-sdr has been of great help. Especially src/core/system_parametes/gps_navigation_message.cc where the function
int Gps_Navigation_Message::subframe_decoder(char *subframe)
which decodes and stores each subframe is defined.
I'm trying to set a specific property to a non exact value, for example say that I want to define the height of a pine tree to usually between 3-80 m (according to wikipedia). Then I would like to set something like [[Has height::3-80]] (of course this doesn't work) and defining the unit to meters with "custom units". Then I would like to be able to query for example "trees that can reach the height of 70 meters" and the pine tree would be included. I've been searching and trying different angles for hours now and I can't figure it out. Tried with #set_recurring_event but that seems to be only for dates/time. Also understood how to set multiple values for a property with #arraymap but this doesn't seem to help me here. Really would appreciate help with this (it's probably very easy and right in front of me) Thx! COG
There's no such things. But you able to create template, with parameters you want. The you just use code kinda {{range|min|max|units}}. For example your range of heights looks like {{range|3|80|m}}.