terminology

try to understand mysql concepts: session v.s. connection

时间秒杀一切 提交于 2019-12-02 22:32:58
I'm a bit confused by mysql concepts: session vs connection. When we are talking about connecting to mysql. We use connection terminology, as well as connection pool and etc. However let's go to mysql online doc: http://dev.mysql.com/doc/refman/4.1/en/server-system-variables.html . It talks about session variables. They are quite similar. How to distinguish them? Thanks in advance. A session is just a result of a successful connection . Any MySQL client requires some connection settings to establish a connection and after the connection has been established it acquires a connection id (thread

what is difference between Software Stack and OS ? why Android is not an OS but software stack?

情到浓时终转凉″ 提交于 2019-12-02 22:00:28
Android is a software stack but not an OS. as stated by developer.android.com What is Android? Android is a software stack for mobile devices that includes an operating system, middleware & key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. I don't understand that software stack is OS works with the Applications, so Windows is an OS but if I install Applications on it, should I call it a software stack? So what is the difference between Software Stack and OS, Android includes

Javascript - difference between namespace vs. closure?

≡放荡痞女 提交于 2019-12-02 19:43:38
In Javascript, what's the difference between a namespace and a closure? They seem very similar to me. EDIT Specifically, this article discusses namespaces and closures, and has sentences like Now, we’re still going to have situations where we’ll want to declare variables that don’t naturally fit into a namespaced object structure. But we don’t want those variables to have a global scope. This is where self-invoking functions come in. It goes on to give what looks a lot like a closure, as an "object namespace". It looks to me like the namespace IS a closure ...but maybe it's not...? Help? A

Programming terms - field, member, properties (C#)

眉间皱痕 提交于 2019-12-02 18:13:10
I was trying to find meaning of this terms but especially due to language barrier I was not able to understand what they are used for. I assume that "field" is variable (object too?) in the class while "property" is just an object that returns specific value and cannot contain methods etc. By "member" I understand any object that is declared on the class level. But these are just my assumptions based on commented code samples where some careful programmers used "property region" etc. I would really appreciate if someone could explain it to me. In C# : fields : These are variables declared at

What is container in spring framework?

情到浓时终转凉″ 提交于 2019-12-02 18:10:38
I was going through this article http://www.vaannila.com/spring/spring-ioc-1.html and here the term container is used. The diagram below shows container. What is container in this article? Is it a piece of code or the bean config file? Can Spring IOC be used in Spring MVC? Ralph In this context, a container has the meaning of something that provides an infrastructrure needed by some components to live. You can imagine it this way: Like the JVM is a container to run Java Programs, A servlet container (i.e. Tomcat) is the thing that runs servlets An EJB-Container is the environmet where EJB live

What does “Data is just dumb code, and code is just smart data” mean? [closed]

浪尽此生 提交于 2019-12-02 18:09:41
I just came across an idea in The Structure And Interpretation of Computer Programs : Data is just dumb code, and code is just smart data I fail to understand what it means. Can some one help me to understand it better? This is one of the fundamental lessons of SICP and one of the most powerful ideas of computer science. It works like this: What we think of as "code" doesn't actually have the power to do anything by itself. Code defines a program only within a context of interpretation -- outside of that context, it is just a stream of characters. (Really a stream of bits, which is really a

What is a code cave, and is there any legitimate use for one?

心不动则不痛 提交于 2019-12-02 18:06:28
I encountered this word for the first time in the StackOverflow question " C# Theoretical: Write a JMP to a codecave in asm ." I see that according to Wiktionary , a code cave is: an unused block of memory that someone, typically a software cracker, can use to inject custom programming code to modify the behavior of a program. Did I find the correct definition? If so, is there any legitimate use for a code cave? I've used them, although I'd never heard the term code cave until today. The Wiktionary definition suggests that a code cave is something the cracker finds in the executable he or she

Compiler Vs Interpreter Vs Transpiler

折月煮酒 提交于 2019-12-02 17:53:58
During a reactJs session that I was attending, the presenter used a term transpiler for some code conversion/porting happening. I've always used and heard the terms compiler and interpreter when it comes to converting a language code to a runnable form on a computer system/machine. Transpiler is completely new to me. Can someone help me to understand how a Transpiler is different from a compiler or an interpreter and why it is really needed? As is mentioned in this Wiki article , it is a type of compiler which translates source code from one programming language to another programming language

What is a policy in reinforcement learning? [closed]

狂风中的少年 提交于 2019-12-02 17:43:42
I've seen such words as: A policy defines the learning agent's way of behaving at a given time. Roughly speaking, a policy is a mapping from perceived states of the environment to actions to be taken when in those states. But still didn't fully understand. What exactly is a policy in reinforcement learning? The definition is correct, though not instantly obvious if you see it for the first time. Let me put it this way: a policy is an agent's strategy . For example, imagine a world where a robot moves across the room and the task is to get to the target point (x, y), where it gets a reward.

What do Push and Pop mean for Stacks?

≯℡__Kan透↙ 提交于 2019-12-02 17:33:52
long story short my lecturer is crap, and was showing us infix to prefix stacks via an overhead projector and his bigass shadow was blocking everything so i missed the important stuff he was referring to push and pop, push = 0 pop = x he gave an example but i cant see how he gets his answer at all, 2*3/(2-1)+5*(4-1) step 1 Reverse : )1-4(*5+)1-2(/3*2 ok i can see that he then went on writing x's and o's operations and i got totally lost answer 14-5*12-32*/+ then reversed again to get +/*23-21*5-41 if some one could explain to me the push pop so i could understand i would be very greatful, i