If he comes back, which is fine, I hope he learned to respect the opinions of others and not force misguided ideals onto everyone. In other words, grew up, and not bother others.
I have some business meeting soon, basically it's a 1-hour train trip in the morning, head to the hotel, meeting during the afternoon, business dinner, head back next day on train
yeah it's pretty simple, so my first thought was "meh, just bottled water and my laptop"
but I'm never sure about it
@ntohl not yet slaved to a woman's neuronal network
Ah. Set of clean underwear, toothbrush and toothpaste, telephone with charger, laptop (filled with movies/whatever you like) with charger, wallet with bank card, deodorant.
Ah. Set of clean underwear, toothbrush and toothpaste, telephone with charger, laptop (filled with movies/whatever you like) with charger, wallet with bank card, deodorant.
I'll have to iron my shirts tomorrow, damn I hate some of those, every time you turn them around an entropy of reticulated splines form a bend in some place you can't see, but when you turn it back it's there and you have to iron again.
I have following 1010159552597 and I would like to find the numbers that start with 10, followed by 1 or 0 and ending with 7 digits. I use following RegEx to search
(10[01][0-9]{7})
Following result is given: 1010159552
But I also would have expected the following: 1015955259
How can I manag...
My case is a blue-scale-square-pattern shirt, silk trousers and... IDK if this is the right term in english, but google says they're called "Ankle boots"
That seems like a fair option. Haven't done it myself, as I said, but there should be plenty of documentation for Lua, both for users writing scripts, and for you, to embed it into your app.
string pattern = @"(?=(10[01]\d{7}))";
string input = "1010159552597";
Regex regex = new Regex(pattern);
foreach (Match m in regex.Matches(input))
{
Console.WriteLine("'{0}' found at index {1}.",
m.Value, m.Index);
}
I just said. Lua is engineered to be an embedded scripting language. It cannot do anything, let alone even run, without a host program that YOU write. Everything it CAN do MUST BE ALLOWED by you. Thus, it's a completely isolated sandboxed environment with very specific allowed things it can do controlled entirely by you.
Again, to reiterate what we said when you asked about this before, you must choose whatever your user appreciates. You said they are JavaScript developers and you trust all of them blindly NOT to mess up your servers.. then JS is a fine choice. Lua is far better if that trust IS NOT THERE.
I would not trust anyone to run code on MY SERVER, so I would NEVER give them access to JS that runs on my machine.
Requirement is user should be able to add Lau script in text box, and then I need to check user has added proper Lua script and if script is correct then I need to run script. Can any one suggest me some code. I tried following things.
using (Lua state = new Lua())
{
state.DoStrin...
> Lua has been used to extend programs written not only in C and C++, but also in Java, C#, Smalltalk, Fortran, Ada, Erlang, and even in other scripting languages, such as Perl and Ruby.
@Learning-Overthinker-Confused Dude. We have told you again and again and again that it's possible. We have quoted the official site. We have said that we have, in fact, done it. We have shown that even the answer you brought that apparently said it's impossible did not, in fact, say so, but mentioned on the next line that there are wrappers available. YES, IT IS POSSIBLE.
I have following 1010159552597 and I would like to find the numbers that start with 10, followed by 1 or 0 and ending with 7 digits. I use following RegEx to search
(10[01][0-9]{7})
Following result is given: 1010159552
But I also would have expected the following: 1015955259
How can I manag...
if it is 15 minutes for you to figure out how it works, then im sorry, but learning how regex works (in this case lookaheads) would be the only good solution
you could make it less magical by naming the capturing group
for example: "(?'group'foo)"
it would match "foo" and put it in the capturing group named "group"
at least. Finding out there are no problem with the regex > 10 min. Finding out there are Captures property of Match > 3 min. Still not there > 1 min. Finding out there is Groups property of Match > rest....
I've been asked to hide a control in a... uhm, dirty JS frontend
with dirty JS frontend I mean I've been instructed to build some crappy frameworkless frontend that will do some stuff without auth or anything, and run the stuff in JS, then request to the WebAPI the stuff I need
everyone who's worked with JS knows you can't really 'hide' stuff, it will be there, and the idea is someone must be able to enable-disable it quickly client-side
but they must not know it exists
I need ideas to hide those controls from their reach
@AvnerShahar-Kashtan @RoelvanUden @milleniumbug @ntohl I summon thee for thine wisdom
so in order to fix the VB6 piece of crap, they copied the SQL sentences to a WebService and requested another piece of crap to handle it as frontend, only for internal use, only to tell me a week later that the client is interested on it, and the next week they want to sell one of those features, so they want me to hide it
Jesus, I wanted to build an SPA, but they even forced me to put the frontend in the same project as the WebAPI
I basically have grids(cubes). I just need to know,if they intersect my triangle ,with vertices (x1,y1,z1)...(x3,y3,z3) (OR) if my grid lies inside the triangle
I am trying to do this in C#
Need an optimized code.
@Kieran @KendallFrey hope,u now understand what exactly I want to achieve?
That seems like it would be 1) find the two opposite corners of the cube that are farthest along the axis perpendicular to the triangle 2) see if they are on opposite side of the triangle plane
What're your opinions on this method? I'm constructing a URL to a resource dynamically, and I want to check if the resource exists or else I return a fallback value:
private async Task<bool> CheckUrl(string url)
{
var request = new HttpRequestMessage(HttpMethod.Head, url);
return (await new HttpClient().SendAsync(request)).IsSuccessStatusCode;
}
I'm mainly concerned with 404 errors because the resource might not exist. but it's good to catch other errors as well.
Can anyone recommend an efficient port to CSharp of any of the public AABB/triangle intersection algorithms.
I've been looking at Moller's approach, described abstractly here, and if I were to port it, I would probably start from this C++ version. This C++ library by Mike Vandelay seems like it...
@RoelvanUden you said i will never allow user to run his/her code on my server with javascript right.How user can harm with javascript code on your server?
I am failing to understand this and sorry once again if this is stupid or silly question
@Learning-Overthinker-Confused Here's a simple example of how code running under node.js, for instance, can execute an external binary - meaning it can run cmd /c del *.* on your system:
I am in the process of porting a CLI library from Ruby over to Node.js. In my code I execute several third party binaries when necessary. I am not sure how best to accomplish this in Node.
Here's an example in Ruby where I call PrinceXML to convert a file to a PDF:
cmd = system("prince -v build...
JS code is always run by a JS runtime. It can be node with the V8 engine, with a lot of power. You could be using a more primitive, restricted JS engine, but unlike Lua, I don't know if there are JS engines built for constrained embedding.
Furthermore, Lua has NOTHING built-in that can access ANYTHING on your system. Everything it can do is restricted to itself. To, say, read a file, you must specifically add a function to the Lua engine that can read a file. And thus, you can control what can be accessed and what can't be.
Becuase our main scenario is we will inject json in to this middle layer(business layer) where there will be some sort of logic manipulating json and then returning that json as a string
Senpai (先輩, "earlier colleague") and kōhai (後輩, "later colleague") are terms from the Japanese language describing an informal hierarchical interpersonal relationship found in organizations, associations, clubs, businesses, and schools in Japan. The concept is based in Japanese philosophy and has permeated Japanese society.
The relationship is an interdependent one, as a senpai requires a kōhai and vice versa, and establishes a bond determined by the date of entry to an organization. The kōhai defers to the senpai's seniority and experience, and speaks to the senpai using honorific language.
...
I have created a shared project which contains all code that interacts with an 3:rd party database, also entities / tuples that replaces code all over the place.
Should i use the entities that are from that project or should i convert them to the alike that where there before to avoid hard dependencies?
Or should i consider the new project an core part of the whole application?
@Raldo94 A Shared project in the sense of the new Shared Code projects in VS? These aren't even dependencies - they're copied into and compiled with the project that references them.
Or simply a class library that's referenced by all other libs?