How to setup a proxy for Modern UI (aka Metro) Apps in Windows 8?

Question: I have installed Windows 8 on a PC behind a proxy. I had setup the proxy in Internet options and IE works well, but Modern UI (aka Metro) apps instead seem to not be able to exit. Is there any workaround?
Comment: What is under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettings? Metro style apps do not use the WinInet proxy in IE options
Answer: I searched for a solution all around internet and I finally find a way how to do it:
Open command prompt as admin and write:
<code>netsh
winhttp
import proxy source=ie
</code>
Now the Microsoft Store works, some other services like Music not, but that is a problem of regional filtering (I am located in Italy).
Hope it helps, unfortunately I do not remember the source of this script.
Side note: I upgraded to Windows 8.1 and it seems they have fixed the proxy glitch. Now it is sufficient to change the global proxy settings (Internet Properties) and Metro apps use that settings accordingly.
Comment: If you used this and can't get windows update to work, it is because your proxy settings doesn't sync with ie, it was just imported, so you probably still have your proxy settings in there, to reset your proxy follow the same steps but replace import .... with reset proxy
Comment: @pratnala's recommendation below to enable loopback is important
Answer: I had the same problem in our university where we are behind a squid proxy with basic authentication. To solve this problem with Modern UI apps, I installed CC Proxy. Configure CC Proxy to a cascading set up. Then, you need to put your IP address with port 808 in internet options and run the netsh command. You also need to enable loopback for the Modern Apps to be able to use a local proxy server as they by default cannot route network traffic to a local proxy server.
This should work for most configurations.
Answer: I have listed a suggestion from Andrew Willows (MSFT) as a possible solution.

Open "Local Group Policy Editor"
Navigate to "Computer Configuration - Administrative Templates - Network Isolation"
Open "Internet Proxy Servers for Metro Style Apps" and set the value to your proxy server address like 172.16.0.1:8080.

We shouldn't need to amend other settings in here for now.
I would encourage a restart here, although this shouldn't be necessary but during testing it may help clear down any cached data that could interfere. If you still have issues with proxy settings, please post in TechNet ITPRO forum.
Comment: It states "not fot desktop apps". Apps like weather are still not working even after doing it.
I think the problem is with proxy authentication(as the local sites that do not require authentication run in the metro IE). I have installed squid that works well on the regular desktop of win 8 but not on these metro apps.


What kind of regular expression matching is implemented in Pharo?

Question: I came across this question in computer science stack exchange, Theory behind regex implementations, pointing to this paper, Regular Expression Matching Can Be Simple And Fast
(but is slow in Java, Perl, PHP, Python, Ruby, ...), discussing the fact there is two big families of regular expression(-like) implementations, and their relative merits. One is implemented, for example, by Awk, Tcl, GNU grep, and GNU awk. The other, for example, by Perl, Python, Ruby, Java. So I ask, what implementation does Pharo use?
Comment: You can easily check what the falvor is by trying out a couple of specific constructs. If `\([^()]*\)(*SKIP)(*F)|,` matches all commas but those inside parentheses, then it is PCRE. If `^[^]+$` matches a whole string with all line breaks, it is ECMAScript, etc.
Comment: Does http://pharobooks.gforge.inria.fr/PharoByExampleTwo-Eng/latest/Regex.pdf or https://github.com/astares/Pharo-Regex-Tools help?
Comment: Ok, I have also found https://ci.inria.fr/pharo-contribution/job/UpdatedPharoByExample/lastSuccessfulBuild/artifact/book-result/Regex/Regex.html and http://www.squeaksource.com/@fTghDTXLgENXRnYp/wBL3-zle. So, it is some specific "minified" regex flavor.
Comment: @WiktorStribiżew, but in what camp does this "minified" regex flavor fall, among the two mentioned in the question?
Answer: There are several ways to look at this.
Out of the box, one can do

The help will give you more details:

That being said, if you want to parse complex stuff, you can look into PetitParser, SmaCC and other things of that kind which will also implement objects that can match against other things, like strings and more.
And FuzzyMatcher may also be of interest:


Is the following problem NP-Complete?

Question: 3SAT with the additional condition that exactly 1 or 3 literals must evaluate to 1.
Answer: No. This problem is equivalent to XOR-3SAT, in which we interpret each clause as $x \oplus y \oplus z$, where $\oplus$ is the XOR operator, and ask whether it's possible to find values for all variables so that each clause is true. XOR-SAT can be solved in polynomial time using Gaussian elimination, with all arithmetic done modulo 2 (i.e., in the finite field $GF(2)$).
Answer: By Schafer's Dichotomy Theorem, if a clause is expressible as a system of linear equations over Zmod2, it is in P. Thus it would not be NP-Complete.
Comment: Using the subjunctive ("if ..." and then "it would not be") gives me the impression that you're talking about a hypothetical situation contrary to reality. How about "These clauses are expressible as a system of linear equations over Z mod 2, so by SDT, the problem is not NP-Complete."

Is the following problem NP-Complete?


Why isn't bacterial colony a monolayer?

Question: I am an engineer entering the field of microbiology. I was watching bacterial colonies (lab strain E. coli to be specific) being grown on agar plates. I was surprised that the bacterial colony was not a monolayer (i.e. a single layer of cells), but a mound with bacteria piled on top of each other (except may be at the edge of the colony). Why doesn't bacteria spread out in a monolayer over the entire agar surface? And, how do bacteria in the pile which are not in direct contact with the agar survive? Is it that nutrients are passed upwards by those cells which are in direct contact with the agar surface?
Comment: I like your question. :) You can start by learning about the bacterial [extracellular matrix](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2890205/). If you still have a question, or don't understand something you read, edit your question or ask a new one with link and quote. On this site, people need to to *show evidence* of trying to answer the question when they post. Not doing so is both a down vote reason and a close vote reason (not my rules, just informing you.) We actually like to help people who are willing to learn on their own as well. Good luck in your new endeavors!
Comment: @anongoodnurse Thanks for the reference. After reading it I believe that the answer to my question is that only bacteria in direct contact with the agar surface are metabolically active, while those away are inactive (though not dead). This arrangement is necessary to protect the colony from external insults. So, may be under the right conditions you can coax the colony to spread out in a monolayer.
Comment: Close! All bacteria produce an extracellular matrix through which nutrients pass. the nutrients in the agar diffuse both passively and actively through the matrix feeding all the cells (within limits, meaning that a colony does not grow indefinitely. The bacteria also share between each other. Some bacteria become specialized, if you will, and unable to form a colony on their own. Having read the paper once (which was not an "easy" paper, nor too technical), try it once more and see if you can get more out of it.
Answer: As suggested by your conversation in the comments with anon, the bacterial colony is the outcome of a mechanistic growth model in which nutrient diffusion occurs from below to above.
For an explicit mathematical model of this process (which also incorporates mechanical forces), you can see this paper (Warren et al. 2019). Notably, this mounding occurs even in the absence of an extracellular matrix, and is proposed to be related to cell orientations within the colony. I reproduce Figure 4 which shows some of the relevant results:

The cross-sectional anatomy of a simulated colony.
(A) Snapshot of cross-sectional view of the colony at t=20h
. Cyan represents horizontally oriented cells (≥45o
with z-axis); Yellow represents vertically oriented cells (≤45o
with z-axis). (B) Fraction of vertically oriented cells averaged over z
vs radius. (C) A side view of the azimuthally averaged director field, indicating the orientation of the rod-like cells. (D) A side view of the azimuthally averaged velocity field. (E) Vertical component of velocity, Vz
, at various values of z
along the center of the colony. Increase in vertical speed is seen only for the bottom 10 µm (F) A cross-sectional view of the colony, color representing the time since last division. Purple and blue represent cells that have not divided for the past 10 h, and red represents the actively dividing cells. (G) A cross-sectional view of the local growth rate in the colony, with the color bar showing the values of local growth rate. A disc-shaped 'growth zone' is revealed by the red color at the bottom of the colony.
Other similar models describe "verticalization" of bacterial colonies as an explicitly mechanical process (Beroz et al 2018), without regard for nutrient flow. However, differences in these models lead to qualitatively different results for how tall colonies get.

Why isn't bacterial colony a monolayer?


B+ start-up memory problem

Question: I was given a B+ 512Mb bought just before Feb 2015 – perfect timing.
I put togther the kit (which included a snap-together transparent plastic case) & installed the microSD card supplied.  On boot-up I get "Error resizing existing FAT partition. WARNING: you are attempting to use /usr/sbin/parted to operate on (resize) a file system {snip} Warning: File system is reporting the free space as 197868 clusters, not 1097867 clusters."   On close from this I get the NOOBS v1.3.9 screen with a lot of options, none of which may be successfully selected as Disk space is shown as 0MB. The slots in the plastic case are not big enough to attach an SD card and connecting a memory stick via USB port makes no difference.  Any suggestions, please?
Comment: `installed the microSD card supplied` what size is the card (capacity not physical) - you're best option is downloading and writing a new image in my opinion
Answer: 1.3.9 is a truly ancient version of NOOBS; the latest version is 2.4.0. Don't even try to use such an old version; download the latest one from the NOOBS download page and write that to your card following the instructions given.
Note that if your card is 4 GB or less it's now just a hair too small to install Raspbian PIXEL, the Raspberry Pi version of Debian that includes a full graphical environment. (In that case you should definitely put NOOBS Lite on your card.) However, you'll still be able to install Raspbian Lite (and probably have enough room to add a basic graphical environment if you are careful to do regular apt-get clean commands)), and there are also several other interesting operating systems available as well.

B+ start-up memory problem


grep multiple file types recursively

Question: I am trying to figure out how to search for "_iterator_tag" string in all sub directories recursively and in files with extensions .cpp, .h, .hpp, .cxx, .inl
for now all I can do is search each of these file types separately as below
grep -R "_iterator_tag" --include '*.cpp'
Is there a quicker way to search all of these file types together?
Thank you
Answer: use ack.  It's great for searching source code (and not looking in images, or RCS artifacts, like .svn directories)
Answer: You can specify multiple instances of --include on the command line (they are "or"ed together).
Edit: Specifically
 grep -r --include '*.cpp' --include '*.h' --include '*.hpp' --include '*.cxx' --include '*.inl' "_iterator_tag" /some/path

Answer: try
find /some/path -name \( '*.cpp' -o -name '*.h' -o -name '*.hpp' -o -name '*.cxx' -o -name '*.ini' \) | xargs grep "_iterator_tag"

Answer: I define the following aliases in my .bashrc
ffg() { eval find $1 | xargs -n 1 grep -nH $2 2>/dev/null ; }
fc() { ffg "-name \*.c -o -name \*.cpp" "$*"; }
fh() { ffg "-name \*.h -o -name \*.hpp" $* ; }
fch() { ffg "-name \*.c -o -name \*.cpp -o -name \*.h -o -name \*.hpp" $* ; }

So I'd typically do:
cd <root subdir>
fch _iterator_tag

Of course you'd need a different set of file types.

grep multiple file types recursively


Replace html text in javascript include

Question: i've got this:

in my php/html file. It includes the whole something.js file.
In this file, there are lines like with "document.write..." that are writing some text on my page.
Is it possible to replace a string that is included from this js file in my php document? I can't change the js file (I don't have access to it).
More information:
The .js file looks like this:
...
var msg = '';
msg +='mystring1
mystring2';
document.write(msg);
...

My php file includes the js file. I wanna change the mystring2 to myteststring in PHP. Is this possible? How?
Thanks.
Answer: You can't do this cleanly.
If the .js file is calling document.write() inline and it doesn't access any external variables or functions you really don't have any control over it. You could perhaps redefine document.write() but that's ugly.
I suggest you either maintain your own copy of that .js file or change the document a second time using another script executed from the window.onload event.

Replace html text in javascript include


Poincaré quote regarding instability

Question: Poincaré wrote (English translation of the French) in 1903:

``A very small cause that escapes our notice determines a considerable effect that we cannot fail to see, and then we say that the effect is due to chance. If we knew exactly the laws of nature and the situation of  the universe at the initial moment, we could predict exactly the situation of that same universe at a succeeding moment. But even if it were the case that the
natural laws had no longer any secret for us, we could still only know the
initial situation approximately. If that enabled us to predict the succeeding situation with the same approximation,  that is all we require, and we should
say that the phenomenon had been predicted, that it is governed by laws.
But it is not always so; it may happen that small differences in the initial conditions produce very great ones in the  final phenomena. A small error in the former will produce an enormous error in the latter. Prediction becomes
impossible, and we have the fortuitous phenomenon.''

Where?* Poincaré wrote a lot of small papers, and gave many talks, and traveled.
*Incidentally, Leibniz and Lichtenberg wrote similar things earlier, so this is a not a priority dispute question regarding instability. Later, but before modern citations, there was also, A. Compton, A. Lotka, E. Milne, J. Wheeler (a cigarette smoke causes a hurricane here and not elsewhere, about a year prior E. Lorenz's bird and butterfly examples), etc., so definitely not a priority question.
Answer: This quote is taken from Poincaré's Science and Method, first pubished in 1908.
The linked webpage from archive.org is an English language translation.
The quote appears in section IV (titled Chance) of chapter I (titled The Scientist and Science).  In the linked archive.org facsimile, the quote begins at the bottom of page 66 and continues onto the top of page 67.  To view it, first click on the enlarge icon then use the horizontal scroll bar located at the bottom of the screen to advance to page 66.  Alternatively, just search for "small cause", then click on the location pointer above the scroll bar at the bottom of the screen.
Science and Method is one of a series of lectures given by Poincaré before the Société de Psychologie in Paris (1903?) and published as Science and Hypothesis, The Value of Science, and Science and Method.
Answer: In there philosophy of chance and probability theory,
there is a type of instability which does not depends to initial conditions and trajectories, called structural instability which referes to changes in dynamical models, laws and equations. There is a Mathematical définition of structural instability by Pontryagin and Andronov.
See the Book of Philosophy of Complex Systems,
Static instability which is based on initial conditions.
Poincaré said chance events are such as arise from the action of causes in which small differences produce great differences in effect, it follows immediately that chance effects must be random
For instability  he gives an example in his paper about chance,1908
Great differences in the cause and small differences in the effect Flammarion once imagined an observer moving away from the earth at a velocity greater than that of light. For him time would have its sign changed, history would be reversed, and Waterloo would come before Austerlitz. Well, for this observer effects and causes would be inverted, unstable equilibrium would no longer be the exception; on account of the universal irreversibility, everything would seem to him to come out of a kind of chaos in unstable equilibrium, and the whole of nature would appear to him to be given up to chance.

Poincaré quote regarding instability


Is $ax^2 + bx = 0$ considered a quadratic equation? Or is it linear, since it simplifies to $ax+b=0$?

Question: I know that a quadratic equation can be represented in the form
$$ax^2 + bx + c = 0$$ where $a$ is not equal to $0$, and $a$, $b$, and $c$ are real numbers. However, if there is an equation in the form
$$ax^2 + bx = 0$$
would it be classified as a quadratic equation since the conditions are satisfied, or would it be a linear equation since it can be simplified into $ax + b = 0$?
Comment: It can't be simplified into $ax+b=0$, which has one solution. It can be factorised, like other quadratics, as $x(ax+b)=0$; and this gives two solutions, in the normal way.
Comment: We define a polynomial by the highest power present
Answer: It is a quadratic equation as it satisfies the definition.
Notice that $ax^2+bx=0$ and $ax+b=0$ are not equivalent, the first one has $0$ as a solution for sure and $\frac{-b}a$ as a root as well.
Comment: Oh I see. Thanks!
Answer: A quadratic equation is an equation that can be rearranged as $ax^2+bx+c=0$ where $a$ is not equal to $0$ and $b$ and $c$ are real numbers. If $a=0$ then the equation is linear not quadratic since the $x^2$ has no influence .
Answer: Hints

If you draw the graph of $y=ax^2+bx$ what shape is it? (Plug in some non-zero values for $a$ and $b$)
If you factorize $ax^2+bx=0$ and then apply null factor law, how many solutions are there?
Answer: You need only $a≠0$ for $$ax^2+bx+c=0.$$
If the degree of your polynomial is equal to $2$, then you have a quadratic polynomial. This means , your equation $ax^2+bx=0$ is still a quadratic equation, if $a≠0.$
But, the degree of the polynomial $ax+b$ is equal to $1$. This implies, $ax+b=0$ is not a quadratic.

Small Supplement:
$ax^2+bx=0$ is not equivalent to $ax+b=0$. Because, $x=0$ is not always a root of $ax+b=0.$
Comment: I see. But upon multiplying x to both sides of ax + b = 0, we get ax^2 + bx = 0. Would this be a quadratic equation (since a is not equal to 0)? Or would it be linear since it is the same as ax + b = 0?
Comment: @Twilight I added a small supplement.
Comment: @Twilight: Note that you cannot multiply by something on both sides of an equation until you're sure that that something is not zero.


Is there any way to hide or encryt input data that sent to smartcontract?

Question: After a While working with ethereum, I felt ethereum is not only public and also naked because whatever input data that we sent to contract function, it is visible to everyone when looked into the transaction hash details on sites like etherscan. I think it is main security hole of Ethereum.  No one wants to be wondering on roads naked right! So, Is there any way to hide or encrypt input data that sent to contract for not to show up on etherscan??
have a look at picture
Comment: _"I think it is main security hole of Ethereum."_ This is not a security hole. This is by design. The current version of Ethereum is deliberately transparent.
Comment: Related: https://ethereum.stackexchange.com/questions/9175/concealing-sensitive-data-in-a-public-contract
Answer: All data is public on Ethereum.
That doesn't mean you can't put sensitive data on the blockchain. You just have to encrypt it first i.e. if you want some data only to be visible to one specific user, then you can encrypt the data with their public key. This would result in only that particular user being able to decrypt the sensitive information. Please note however, you must encrypt the data in advance of sending it to the blockchain due to its nature.


Re-enable Skype 7.x in Windows 10

Question: How can I get Skype 7.x to work on Windows 10? It's currently disabled and will not work anymore, forcing me to "downgrade" to 8.x or the "Modern" Windows app. If I do this, I will no longer be able to reliably maintain a great history, or use an external database app to easily query past messages.
Comment: Why are you not posting the answer in the answer section? Answer it yourself as an answer, not as part of the actual question
Answer: I found what seems to be a solution at http://community.skype.com/t5/Windows-desktop-client/how-to-turn-off-the-skype-update-notifications/td-p/903552/page/2 ...
1) Redownload the SkypeSetup.exe file for the current version of Skype you wish to use/have installed
2) Navigate to the temp folder with the SkypeSetup.exe that updates to the newest version every time you start Skype
3) Delete SkypeSetup.exe, and replace it with the setup file for the current version of Skype you desire
4) Before you start Skype again, make sure to right click the SkypeSetup.exe file you have planted in the Temp folder, check Read-only, and hit apply
-This locks the file from being updated by Skype when you start it, and also takes the place of the Setup file Skype tries to force you to download-
5) Start Skype
Answer: This still works for my Skype 7.34.66

Close your Skype.
Find this folder (or press Win + R [Run] and type %Temp%):
C:\Users\(your user name)\AppData\Local\Temp\
Find file SkypeSetup.exe
Replace it with empty file (or you can open it with prefered text editor and wipe all text) and mark it with attribute Read Only.
Start your Skype as usual.

Tip: in file "Properties" -> "Security" deny "full access" for your user - it will guaranteed for asking permission before deleting (sometimes I clean this folder and delete it accidentally)
Answer: This method below fixed it for me where the file name SkypeSetup.exe in the %temp% directory did not exist (was elsewhere named Skype-Setup.exe).
Instructions to prevent/remove the Skype 'update warning popup'
Download your prefered Skype version. www.skaip.org/skype-versions
Uninstall any previous versions of Skype.
Restart your machine 'Offline' (no internet connection).
Install your prefered Skype version.
Goto Skype Tools, Options & turn off Automatic Updates.
Goto windows 'Services' & disable 'Skype Updater' service.
.............................................................
(My version is Skype 7.38.. on Windows 7)
Goto :-
C:\Users\(your user name)\AppData\Roaming\Microsoft\Skype for Desktop
Rename file  Skype-Setup.exe  to something like  Skype-Setup-Original.exe
Create a new file in that directory using a text editor of some kind (like notepad)
Add random content to that new file (like the line below) & save as Skype-Setup.exe
22 44 66 22 44 66 22 44 66 Etc Etc Etc
RightClick the new Skype-Setup.exe file (in file manager/windows explorer) & change Properties to 'Read Only'
.............................................................
Restart your machine normally 'Online' (with internet connection).
Comment: Why add content to placeholder exe? Can't be a blank file? And why?
Comment: You "probably" could put any file there.  However, I think their algorithm checks the version to determine if the versions match and an update is needed.  A bogus file could trigger alternate action--forcibly overwrite the file, etc.  It all depends on which program is checking, and the power/rights of that program--user/admin/system.  See my answer above though and you will see that any 7.x solution will now be moot.
Answer: How to disable Skype Update service:

Click Start
Run
Type services.msc (or run it in whatever manner you like)
Find SKYPE UPDATER
Right click Skype Updater
Properties
Startup type
Disabled

Re-enable Skype 7.x in Windows 10


How can a slowly varying magnetic field exist in Faraday cage when there is no electric field in it?

Question: When I search Faraday cage in Wiki, I noticed a sentence that 'Faraday cages cannot block stable or slowly varying magnetic fields'. Since Electric field and magnetic field are coupled due to Maxwell equation, how can a slowly varying magnetic field exist in a Faraday cage when there is no electric field in it.
Answer: At low frequencies, such as 50 or 60 Hz grid frequencies, the electric and magnetic field are very weakly coupled. For DC fields, there is zero coupling.
The Faraday-Maxwell law $\nabla \times \vec{E} = -\frac{\partial \vec{B}}{\partial t}$ states that a magnetic field that changes in time gives rise to a current density in conducting materials, called eddy currents. These eddy currents in turn give rise to a magnetic field that opposes the external field.
Note that the amplitude of these eddy currents depend on the first order time derivative of the magnetic field, i.e. these currents are stronger at higher frequencies.
Additionally, at much higher frequencies second order time derivatives that give rise to electromagnetic waves will start to play a role. Faraday cages are typically  effective when used to mitigate these waves.
If parts of the Faraday cage have good galvanic contact, reasonable shielding can be obtained at frequencies as low as 50 Hz. This usually requires an aluminum or copper shield with good gaskets or soldered/welded connections.
DC magnetic fields do not produce eddy currents and can only be shielded by materials with high magnetic permeability.
Comment: Thank you for your explanation. It's really helpful! I am a little bit confused about the "weakly coupled" concept. Does that mean the change of magnetic field doesn't produce a strong electrical field?
Comment: Yes, that is what it means. A higher frequency of the B-field will create a stronger electric field. The first order effect of this can be readily seen from the Maxwell-Faraday equation in my answer. If B is harmonic with amplitude $B_0$, the amplitude of E will be proportional to $fB_0$ (omitting some other constants) , where $f$ is the frequency.
Comment: Yes, but I think the curl of E will make a factor of wavenumber k and the k/f create a constant 1/c which connects E and B. Therefore, I am confused why the E and B are weakly coupled in low frequency.
Comment: That line of reasoning assumes far-field radiation and propagating waves. This is generally not the case for lower frequencies.  At low enough frequencies the displacement currents can usually be neglected and then $E$ will be directly proportional to $fB$. As an example, take $B$ as, say, the field inside solenoid with a sinusoidal input current, something like $B_0\sin(2\pi f t) \hat{z}$.
Answer:
how can a slowly varying magnetic field exist in a Faraday cage when there is no electric field in it.

Ideal Faraday cage is made of a closed shell made of ideal conductor which has zero resistance, and this enables perfect shielding effect - it does not allow external sources to cause any electric field inside it. So there can't be varying magnetic field inside such ideal Faraday cage; there can be only static magnetic field there.
In reality, Faraday cage is made of real conductor, which has non-zero resistance. Because of this, the shielding effect is not perfect and external sources do cause non-zero electric field inside, and this electric field can change in time. Because of this, inside real Faraday cage, both electric and magnetic field can change in time due to external sources. The better the Faraday cage, the lower this time-varying EM field is inside.


Different roots of irreducible polynomial $p(x) \in F[x]$ generate isomorphic fields, yet $p(x)$ factors differently in each?

Question: This seems counter intuitive to me. For example, the roots of $p(x)=x^3-2$ over $\mathbb{Q}$ are $2^{(1/3)},\gamma2^{(1/3)}, \gamma^22^{(1/3)}$ where $\gamma$ is a primitive third root of unity. So, $\mathbb{Q}(\gamma^22^{(1/3)})$$\cong$$\mathbb{Q}(2^{(1/3)})$, okay, but something isn't quite clicking for me, and perhaps it's because i want to believe that two roots of $p(x)$ is in $\mathbb{Q}(\gamma^22^{(1/3)})$ when that's not true, I mean if it did have two roots then it would have to have all three and so that's obviously not true. So is it safe to say that in the splitting field generated by different roots of an irreducible polynomial, that irreducible polynomial will split in "isormorphic" ways in each respective splitting field? It must, it's just I've been discovering more and more places where i'm learing how "isomorphic" does not mean "equal" and so maybe that's why i'm so unsure. Sorry, i understand my phrasing is not perfect, but I hope that i'm getting my question across, and if not i hope someone just comes here and gives me general insight into the genereal area.
Comment: This is a good question that you truly need to strive to understand inside out. +1 for realizing the need to ask it! I'm not sure that I approached it from a direction useful to you (in my answer). Do comment!
Comment: thanks man, your answer helped a lot i appreciate it
Answer: Let $L_1=\Bbb{Q}(\root3\of2)$ and $L_2=\Bbb{Q}(\gamma^2\root3\of2)$. We have the isomorphism of fields $\sigma:L_1\to L_2$ defined by the properties $\sigma(q)=q$ for all $q\in\Bbb{Q}$, and $\sigma(\root3\of2)=\gamma^2\root3\of2.$
My guess is that your troubles are related to some of the following:

The isomorphism $\sigma$ can be extended to an isomorphism between polynomial rings $\sigma:L_1[x]\to L_2[x]$ defined by applying $\sigma$ to the coefficients:
$$\sigma(a_0+a_1x+a_2x^2+\cdots+a_nx^2)=\sigma(a_0)+\sigma(a_1)x+\sigma(a_2)x^2+\cdots+\sigma(a_n)x^n$$ for all $n\in\Bbb{N}$ and all $a_0,a_1,\ldots,a_n\in L_1$.
In the ring $L_1[x]$ we have the factorization
$$f(x)=x^3-2=(x-\root3\of2)(x^2+\root3\of2x+\root3\of4).\qquad(*)$$
Call the factors $g(x)=x-\root3\of2$, $h(x)=x^2+\root3\of2x+(\root3\of2)^2$.
Applying the ring homomorphism $\sigma$ to the identity $f(x)=g(x)h(x)$ of the ring $L_1[x]$ we get the corresponding identity
$$
\sigma(f(x))=\sigma(g(x))\sigma((h(x))
$$
in the ring $L_2[x]$.
Here $\sigma(f(x))=f(x)$ because all the coefficients of $f(x)$ are rational, and those are fixed by $\sigma$. But
$$\sigma(g(x))=\sigma(1)x-\sigma(\root3\of2)=x-\gamma^2\root3\of2,$$
and similarly
$$
\sigma(h(x))=x^2+\gamma^2\root3\of2x+(\gamma^2\root3\of2)^2=x^2+\gamma^2\root3\of2 x+\gamma\root3\of4.
$$
Meaning that the factorization $(*)$ of $f(x)$ in $L_1[x]$ becomes a slightly different factorization of $f(x)$ this time in the ring $L_2[x]$.
The two resulting factorizations of $f(x)$, namely $g(x)h(x)$ and $\sigma(g(x))\sigma((h(x))$ are, in this sense, isomorphic but not equal. I approve of your choice of phrase here!

So the linear factors of $f(x)$ in $L_1[x]$ (resp. $L_2[x]$) are mapped to each other by the extension of $\sigma$. The same holds for the quadratic factors (and in a more general setting to all the factors - their degrees are preserved). But, because $\sigma$ may move the coefficients of those factors, their homomorphic images are not identical to the original versions unless all the coefficients of the factor are fixed by $\sigma$.
Comment: @MichaelVaughan One way to think about that is to observe that if $\sigma(h(x))$ should factor further in the ring $L_2[x]$, then an application of the extension of $\sigma^{-1}$ would show that $h(x)$ would then have a corresponding factorization in $L_1[x]$. But no such factorization exists, because $L_1$ is a subfield of the reals, and the zeros of $h(x)$ are both complex.
Comment: The polynomial $\sigma(h(x))$ does have the factor $g(x)=x-\root3\of2$ in $L[x]$ where $L$ is the splitting field. But $g(x)\notin L_2[x]$, so it cannot be a factor of $\sigma(h(x))$ in the ring $L_2[x]$.
Comment: and even though $\sigma$ may have more coefficients of those factors, it won't reduce the factor to a lower degree. I think that's the part that is surprising to me.
Comment: Yeah, right, of course.

In regards to the idea "having more coefficients to work with" (even though they factor the same), is there any insight in thinking about the fields generated by the roots of $x^3-2$ as lines passing through the origin and one of the roots on a circle of radius $2^{1/3}$ in the complex plane?


VQ-GAN understanding

Question: I tried to understand how VQ-GAN works, but unfortunately I have not understood it. I tried to read some articles about it and watch a video. I believe a good and simple article will help me. You helped me with transformers. You gave me wonderful link. I know what CNNs, GANs, TRANSFORMERSs, and CLIP are. I somehow understood a bit how VQ-VAE works, but still do not understand some things about it. But I cannot understand how VQ-GAN works. Please, help me to understand it. Thanks.
Comment: It will be better if you walkthrough the paper and mask more specific questions about where you are losing track, that way I could provide clearer answers.
Answer: GANs are a type of deep learning model that consist of two parts: a generator network that produces fake images, and a discriminator network that tries to distinguish the fake images from real ones. The generator and discriminator compete with each other, with the generator trying to produce images that the discriminator cannot tell apart from real images, and the discriminator trying to get better at telling them apart.
VQ-GAN is a type of generative adversarial network (GAN) that uses a vector quantization (VQ) mechanism to improve the quality and diversity of the generated images.
In a VQ-GAN, the generator network uses a vector quantization (VQ) layer to quantize its output into a set of discrete vectors. This has the effect of forcing the generator to produce images that are more similar to the training data, because the quantization ensures that the generated images are a "nearest neighbor" of the training images in the discrete code space. In other words, the VQ layer encourages the generator to produce images that are similar to ones it has seen before, rather than generating completely novel images.
The VQ-GAN architecture also includes a learned "encoder" network that maps real images to the same discrete code space as the generator. This allows the discriminator to learn a distance metric in the discrete code space, which allows it to better distinguish between real and fake images.
The VQ-GAN architecture is similar to that of a VQ-VAE, which is a type of generative model that also uses a VQ layer to learn a discrete representation of the data. However, unlike a VQ-VAE, a VQ-GAN uses a discriminator network to guide the learning process and to provide feedback to the generator on the quality of its generated samples. This allows the VQ-GAN to learn a more effective generative model than a VQ-VAE, which only uses the reconstruction error of the VQ layer as a learning signal.
Overall, VQ-GAN combines the strengths of GANs and VQ-VAE (vector quantized variational autoencoders) to produce high-quality images that are similar to the training data. It is a relatively recent development in the field of deep learning, and there is still ongoing research into the best ways to design and train VQ-GANs. To learn more about VQ-GAN, you can read the original paper by Oord et al., which describes the architecture and provides some experimental results.

Synopsis: Taming Transformers for High-Resolution Image Synthesis (VQ-GAN & Transformer)
The Illustrated VQGAN

VQ-GAN understanding


If a remote user types in a password in a LogMeIn session, can the controlled computer extract the characters?

Question: Assume I have root/administrator access to a given computer which is currently being controlled via LogMeIn from an outside location.  I see a password being typed into a browser (as little black dots).  Is there any way to extract the content of the password?  The question is OS-neutral though I expect that some answers will be OS-dependent.  I am most interested in Linux and Windows, though OSX or "other" would also be useful to know.
Comment: Others have already provided good answers. I would like to add that you can use social engineering which is the best and most effective way in my opinion. You have access to the machine and some one will have access from outside to it. It means you have lot of time to create a honeypot type environment on your machine. For eg: Phishing: create a fake login page and lure the user to login through it. Or Make the autosave password without prompt. Other possibility could be to use wireshark and sniff the plain text passwords. This won't work if https is in use.
Answer: It is theoretically possible to intercept any event on a computer that you have full rights on. In practice, the difficulty of intercepting will depend on the way the input comes into your computer and whether the software handling that input actively seeks to prevent that interception (think about gaming anti-cheating software).
A password typed and sent via a browser can be intercepted by using a web proxy. If SSL is in use then you have to trust the fake certificates generated by the proxy. You can use Burp Free Edition and install it's certificate.
For passwords inputted into simple software, you could also find the password in memory and write a program that reads it from memory. To find the exact memory address, you first have to input a test pattern and find it in memory. An easier way is to dump all the memory, parse the strings and look for your test pattern and remember the strings in the vicinity. Then dump the memory with the real password and look between the strings you noted at the previous step. In Linux it is easier because you have /proc/<pid>/mem for the memory content of any process and the strings command is built-in.
Comment: The memory dump method works but requires some hardwork. I used it to get the truecrypt volume password. But this option only worked if you allow truecrypt to keep the password in the memory. This option is on the window when you enter a truecrypt password. So, if the software doesn't keeps the password in the memory then this method won't work.
Answer: I can immediately think of two ways:

Through the use of a keylogger sampling keyboard input to e.g. a file (the LogMeIn-session will emulate a regular keyboard and to my knowledge provide input through the same channel)
By editing the field type of the password field in the HTML-code  to a regular text field (as the black dots is made by the browser based on this). This does however have the limitation that the person controlling the session can see it as well and may become aware of it.
Answer: OS specific answer here, on Windows 8 and above when using IE and on Windows 7 with IE 10 or higher, all password fields have, by default an 'eye' icon which when clicked on, reveals the typed in password.
This can be disabled on Windows 8 via group policy, and on Windows 7 by following the steps outlined here.
Answer: You could run developer tools (e.g. press F12 on Chrome) and run this code from the console:
$('input:password').val()

if the site uses jQuery this will output the value of the password entered on the page.
If there is no jQuery you can use various methods to inject it.
Of course if the user is viewing their screen, they will be able to see you do it.


Legal Action regarding the position that you agreed in contract is not the same with your current position

Question: When I signed the contract to my employer, it's indicated that the position I applied for is just a software developer/analyst but I found out that they Introduced me as a Team Lead already that's why their expectation is so high and this leads me to termination due to performance issue as a team lead.
Comment: Hello!  Welcome to Law.SE.  Please read our tour page.  You can see the link at the bottom of the page.
Answer: Decisions of contract disputes are based on the clauses of the contract rather than on mere labels or titles therein. If the contract reasonably outlines your responsibilities, then that outline supersedes any meaning that could otherwise be inferred from the position title itself.
You did not specify your jurisdiction, nor what the contract says with regard to termination. For instance, in most jurisdictions of the U.S. employment is "at-will", meaning that the employer may terminate the employee for any reason (unless it contravenes statutory law or public policy) or arbitrarily (that is, for no reason at all).  In such jurisdictions, your employer's argument of at-will employment would defeat your claim unless the contract contains language that supersedes the doctrine of at-will employment.
If your contract does not really outline the parties' expectations, these could be inferred from extrinsic evidence, the position title that is mentioned in the contract, and/or the parties' subsequent conduct.
In this case, possible examples of extrinsic evidence are the advertisement of the job position and/or records of your screening process. Evidence of the parties' subsequent conduct might indicate whether your performance as team leader was willful rather than with acquiescence or voicing your concern.
If your claim cannot be reasonably branded as breach of contract, your issue rather sounds in wrongful termination. With that in mind, note that many jurisdictions require the terminated employee to "exhaust administrative privileges" prior to filing suit for wrongful termination. This "exhaustion of administrative remedies" usually consists of filing a grievance with the administrative agency (typically the state Department of Labor) as provided in the laws of your jurisdiction. Failure to exhaust administrative remedies would make it easy for the employer to have your case dismissed.
Comment: This is a good answer. Worth noting: depending on the law and jurisdiction, there may be a relatively short period of time allowed between the adverse employment action and when one files the charge with the administrative agency. OP would be wise to move quickly.


SqlCacheDependency & custom table change

Question: We are using a third party who's own implementation of caching has very poor performance rates when we measure making requests via their API and their database.  Their database (Sql Sever 2005 - running in compatiablity mode - so thinking it is actaully a 2000 db) uses the same principals that SqlCacheDependency does in the sense it has a table with two columns

tablename
changeCount

and the triggers on the tables which update this custom table which logs the change count.
We are thinking of throwing away the third party caching and implementing our own solution.  using SqlCacheDependency with Asp.NET 3.5
Rather than going through the process of enabling the tables etc which creates the automated AspNet_SqlCacheTablesForChangeNotification with all the associated sp's, trigger etc, I would rather use the already existing data structure.
So my question is, is it possible to have SqlCacheDependency riged up so that rather than looking at the AspNet_SqlCacheTablesForChangeNotification and associated stored procs that it looks at the custom tables which are already defined in the db?
Comment: Have a look at http://code.google.com/p/linqtocache/
Answer: You could simply create those stored procedures with those name, but alter their implementation to work with your own data structure. I'm not sure you can tell the SqlCacheDependency what stored procedures to use, but because we do know what ones it wants to use, you could do a little slight of hand.


Should a beginning PHP programmer consider frameworks?

Question: I'm a complete beginner when it comes to programming. I'm taking a stab at PHP, and have seen how powerful the frameworks can be. But should I even consider trying to work with a framework until I have a strong grasp of PHP itself?
Note: I'd most likely be using CodeIgnitor, but the question applies to any of the frameworks.
Answer: Preferably, you should have a strong grasp of the language (and programming in general) before you start using frameworks. Frameworks can and will save you a lot of work, but you they also introduce advanced concepts and implementations.
After you gain some experience and start to wonder what's the best way to solve some common problems you have faced before - that will be a good time to give frameworks a try.
I would suggest you try to read some of the source code of the different frameworks and see if it makes sense to you. If it doesn't - you are probably not ready yet.
Answer: Personally I would stick to learning PHP and creating some projects without the assistance of a framework.  While frameworks can abstract a lot of the messy, boring parts of a project away, it's important to still know how they work, especially when debugging.
Frameworks can be also be very complicated, and learning how to effectively use one can be difficult even with a good understanding of programming language.
Answer: PHP itself is a large language, you should probably find out what PHP can do well on its own before looking into frameworks that abstract you away from the language. But then you might end up like me, afraid of using any real extensions besides the language's standard library. Have you used a framework in another language? If you haven't, using a framework now might be beneficial for future use of other frameworks in perhaps other languages
Answer: I would say yes, as it makes it simply quicker to do more complex things.
Answer: Frameworks can abstract much of the language's complexity away from you, but at some point, you're going to run into something that requires you to know the language's control structures and standard library.
It's really up to you, but I'd recommend at least learning some of the language's basic constructs, particularly dealing with control structures, before using a framework.
Answer: you should learn programming first. Start with the basics: conditions, loops, operator precedence then move to object oriented technics, design patterns. Maybe after you feel comfortable with all this ( it might take a while ) you might to consider using frameworks. On the way there you can probably study how the things lusted above are used in the frameworks.
Answer: I would STRONGLY encourage you to learn the basics of the language first. Frameworks make things easier for people who know how to best utilize them. Imagine if I have a framework for constructing a house. If you are a beginner carpenter you will still make many mistakes, run into many "Hey... how do you do this" moments, use the wrong tools, not follow certain assumed conventions, etc. Learn the basics.
If you want an example of where a framework will kick you in the butt for not knowing your stuff check out Zend_Form in the Zend Framework. You can build a simple form no problem but in real life you will be required to customize many aspects of the form. You will have to extend it yourself to get what you really want. Replace standard buttons with custom ones, change the default error messages, customize the html and css used to display various parts of the form. Make the form as reusable as possible... abstract out certain aspects of it to give it broader usage. Work in some valiation and authorization... you will quickly find yourself in over your head if you don't already have some programming chops.


How to search a user that has a letter (or a few) in his display name

Question: I'll try to explain myself better.
I'm using C# to build a mini-program to myself. I want to search a user within my active directory, but I want to search a user without a full display name. Let me explain myself.
For example, my display name can be: "David Holonka\Jeramy".
Is there a way to search the letters "lonka" and it'll find me all the users that has these combinations of letters within their display name?
My current code:
using (var pc = new PrinicpalContext(ContextType.Domain, "MyDomain"))
{
UserPrincipal user = new UserPrinicpal(pc);
User.DisplayName = "Holonka";
PrinicpalSearcher scrh = new PrinicpalSearcher(user);
Prinicpal found = scrh.FindOne();
}

}
Right now it doesn't find anything becasue there isn't a user that its display name is only "Holonka", but I want it to find the user that i've mentioned before
Thank you very much!
Answer: You can use query string in the PrinicpalSearcher:
UserPrincipal user = new UserPrinicpal(pc);
User.DisplayName = "*Holonka*";
PrinicpalSearcher searcher = new PrinicpalSearcher(user);
var results = searcher.FindAll();

You can also using PrincipalSearcher to find users with "or" parameters like in the example below:
List<UserPrincipal> searchPrinciples = new List<UserPrincipal>();
searchPrinciples.Add(new UserPrincipal(context) { DisplayName="*Holonka*"});
searchPrinciples.Add(new UserPrincipal(context) { SamAccountName = "*Holonka*" });
searchPrinciples.Add(new UserPrincipal(context) { MiddleName = "*Holonka*" });
searchPrinciples.Add(new UserPrincipal(context) { GivenName = "*Holonka*" });
List<Principal> results = new List<Principal>();
foreach (var item in searchPrinciples)
{
    var searcher = new PrincipalSearcher(item);
    // Results may contains duplicate values because of separate searchers can handle the same user
    results.AddRange(searcher.FindAll());
}

Comment: Can't believe I didn't think about it
Answer: You can also try using Ambiguous Name Resolution, which is a special AD query that looks for partial matches in several attributes (the list of those attributes is in that article).
You can't use PrincipalSearcher do use ANR though. You have to use DirectorySearcher (which is what PrincipalSearcher uses in the background anyway).
Here's an example:
var searchRoot = new DirectoryEntry("LDAP://domain.com");
var searcher = new DirectorySearcher(searchRoot) {
    Filter = "(anr=Holonka)"
};
searcher.PropertiesToLoad.Add("displayName");

using (var results in = searcher.FindAll()) {
    foreach (SearchResult result in results) {
        if (result.Properties.Contains("displayName")) {
            var displayName = (string) result.Properties["displayName"][0];
            //do something else
        }
    }
}

When using DirectorySearcher, it's wise to use PropertiesToLoad. If you don't, it will return every attribute that has a value, which is likely way more data than you need. It's a waste of network traffic and time.
The using statement is also wise, since SearchResultCollection can't be completely cleaned up by the garbage collector.
I wrote some more about that in an article I wrote: Active Directory: Better Performance


Outlook appointments from sharepoint javascript

Question: I'm working on trying to send a sharepoint outlook appointment from javascript. I have already been able to send emails and was wondering if there is anyway to send the appointments by attaching an .ics file along with it. Any inputs would be appreciated.
Answer: A couple of options:

If you already have the calendar list and want to convert that item as an iCal refer this link.
If you want to dynamically create iCal with custom parms you can create .ics file using this plugin. Upon creation save it in a library later attach it.

Calendar item to ics file - link.
http://<SITE_URL>/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List={<LIST_GUID>}&CacheControl=1&ID=<ITEM_ID>&Using=event.ics

Plugin to ics fle - link
var cal = ics();
cal.addEvent(subject, description, location, begin, end);
cal.addEvent(subject, description, location, begin, end); // yes, you can have multiple events :-)
cal.download(filename);

Note: Refer the original articles for better integration.


Batch File Printing

Question: I have a user that has to print out about 220 documents averaging 2-3 pages each. When printed using the standard Windows method of Select All - Right-click - Print it overwhelms either the print server or the printer itself. I am looking for a utility that will allow me to process say 5 documents at a time that will do all of the documents in a given directory. I am hoping this will alleviate strain on the print server and will also allow the user to not have to babysit his print jobs. I found one that lets you schedule a print job for a certain time, but (and maybe this isn't a deal breaker) the spelling in the program is atrocious.
Answer: You could Try DarkStorm's batch print handler Its Free! :-)
DarkStorm's batch print handler is a .Net application that will batch print documents. DarkStorm's batch print handler automates Word/Excel and Adobe Reader to help the batch printing process, also provides support for some popular image formats.
I Haven't been able to test it though
Alternatively:
You could write a simple script that takes names from a text file and prints them at certain intervals. You could query the contents of the print folder to get the document names, put them in a text file and then loop through the text file with a wait inbetween until all documents are printed.
Pseudo Code would look something like this.
Populate Text File Function ()
{
  Set Folder Path
  Get Document Names in folder
  Write Document Names to Text File
}
Print Function
{
  While Not End of File{
  Get Document Name
  Print Document Name
  Move down 1 line
      Wait a timed interval
 }
}

My coding isn;t what it used to be so I may have missed a few bits but I think its reasonably there. I would reccomend Guys Scripting Enzine to scour for code samples. You should be able to cut and paste most of the code you need.
Comment: wow - `DarkStorm's batch print handler` is nice.
Comment: Downloading now. All the scripting is nice, but I would rather not go that route. Going to test DarkStorm.
Comment: I think that DarkStorm app will be good. The only thing that would be sweet if they added the functionality is the ability to schedule the batch to run at a certain time so you could have it automatically kick off when you are gone for the day.
Answer: This is a job for the command line.
With Cygwin, the following script (which you can type on a bash command line) will print every PDF file in the current directory, one every 5 seconds.
for x in *.pdf; do cygstart -p -- "$x"; sleep 5; done

If you don't want to install Cygwin (which is useful for many other things), see Sathya's answer for a cmd way (it's a little less straightforward). The choice tool would be Powershell, which surely has all the required building blocks (but I don't speak Powershell).
Comment: `cmd has an equivalent of sleep` --> crude replacement would be `ping localhost -n 6 >NUL
Comment: Also, `start` launches a new application - it does not have any printing capabilities.
Comment: @Sathya: Thanks. I'm not surprised that `cygstart` has more capabilities than start, but I thought there was a way to trigger a print action from cmd (the print action invokes the application registered in the registry, telling it to print rather than open for editing). Do you happen to know if there is a way to print in cmd (`print` doesn't seem to be it either)?
Comment: @Gilles - one way is to copy the pdf files to the printer, if it's configured as a (network ) share - `copy *.pdf \\printer\name`. For batch processing cmd has a `for` command, but I'm stuck at how to make it perform multiple commands
Comment: @Sathya: I think something like `for %x in (*.pdf) do ( ; command1 ; command2 ; )` with newlines where I wrote `;`. If you can make it work, please make it an answer.
Comment: @Gilles - it's actually ampersand - `&` - I have posted an answer.
Answer: If you really want to go the command line way, copy paste this in a batch file, and change the path and do add the full path to AcroRd32.exe
cd\path\to\pdf\files
for %%f in ("*.pdf") do AcroRd32.exe /t %%f "\\servername\printername" & ping localhost -n 6 >NUL

This will change the directory to the one containing PDF files, start Acrobat Reader in silent mode, print them, and wait for 5 seconds. Another alternative if the printer is shared is
cd\path\to\pdf\files
for %%f in ("*.pdf") do copy %%f "\\servername\printername" & ping localhost -n 6 >NUL

Which does the same, but in my past experience I haven't got good results with this approach - but it's because of the PDF files not having the fonts embedded in them.
Answer: A great batch printing application I use all the time is SilentPrint. You can find out more about it at http://www.silentprint.com. I hope you find it as useful as I have.
Comment: If you're associated with that product, please disclose your affiliation per the [FAQ], otherwise your posts might be removed as promotional

Batch File Printing


Dropdown menus in RTE H tags render 1 level higher i.e. h2 tags render as h3

Question: My university cannot allow for  H1 tags in the RTE as we have to hold that important ADA tag for the page titles. There may have been a config somewhere in the affected EE6 install (developers tied up with priorities) b/c the solution was to keep an h1-h3 dropdown but render as follows: h1 as h2, h3 as h4 and h4 as h6. I only have 3 options. I'd like to at least a 4th option (h4 which would then render as h5). Where in the system can i add this?
Answer: There is no proper way to add this setting.
But we have to add some extra code to the ckeditor.js file.
You have to add the code as per the below screenshot.

Updated code for that part:
<code> constructor(t) {
            super(t), t.config.define("heading", {
                options: [{
                    model: "paragraph",
                    title: "Paragraph",
                    class: "ck-heading_paragraph"
                }, {
                    model: "heading1",
                    view: "h2",
                    title: "Heading 1",
                    class: "ck-heading_heading1"
                }, {
                    model: "heading2",
                    view: "h3",
                    title: "Heading 2",
                    class: "ck-heading_heading2"
                }, {
                    model: "heading3",
                    view: "h4",
                    title: "Heading 3",
                    class: "ck-heading_heading3"
                }, {
                    model: "heading4",
                    view: "h5",
                    title: "Heading 4",
                    class: "ck-heading_heading4"
                }]
            })
        }
</code>


The meaning of "beings as a whole" for Heidegger

Question: I am reading a secondary source on Heidegger's theory of truth and the phrases "being as a whole" and "beings as a whole" are appearing repeatedly. At first I thought this meant something like "the whole of being", or "Being in general", but I don't think this is right since the phrase "the Being of the beings as a whole" is also used. Is the emphasis on "whole", i.e. the fact that the being or beings are being considered as a whole? If so, what is the meaning of "the Being of the beings as a whole"? I should add that Heidegger's notion of "clearing" is relevant here.
Answer: I am not sure how much it helps you: The english translation of the title of Chapter 2, section 1

The Possible Being-a-Whole of Dasein and Being-toward-Death

reads in the German original

Das mögliche Ganzsein des Daseins und das Sein zum Tode

But I must refrain from any interpretation of Heidegger's text in the corresponding section - even as a German native speaker.
Answer: I found this interesting article — Heidegger's Theory of Truth and its Importance for the Quality of Qualitative Research — which you may find useful. The discussion rests on Heidegger's distinction between:

Present-at-hand: something observed as an object, but objectified as separate and isolated from the surrounding world
Ready-to-hand: something engaged in an active relationship, bridging both dasein and the focus of the activity

Thus Heidegger's analogy of a hammer (used in the article)… While we are hammering we don't observe the hammer specifically, but focus on the relationships between hand, hammer, nail, and wood; when we stop hammering, we look at the hammer in isolation (to see if it's the right weight, or has a crack in the handle). In the act of hammering the hammer becomes a organic bridge between the ideal image of the thing we are trying to build and the real form under construction in the world, and so the hammer relates to the whole of dasein and the whole of the project. When we put the hammer down, it ceases to be a tool and becomes an object.
For Heidegger the notion of truth is entirely within the ready-to-hand, and not found in what is present-at-hand. Truth is the 'opening of the world' that comes to us when we relate through engagement. Thus we cannot understand the truth of a statement unless we connect to (relate with) the being-as-a-whole of that which the statement is about.
Answer: For Heidegger, the totality of one's pragmatic-valuative-affective comportment toward the world functions and changes as a single unit, with all of its 'parts' implying each other.  Heidegger calls this 'as a whole' world. By world he doesn't mean a natural realm of empirically present objects, but the producing of an inclusive, integral, pragmatically unified   net of specific  possibilities that binds  actualized beings under its sway. He also refers to beings as a whole as the being of beings, or the ontological-ontic difference between being and beings, which pertains to the distinction between the possibilities projected by worldmaking and the specific beings that are actualized out of these possibilities. The being of beings connects specific things to the total world contexture providing them with their meaning. This totality comprises the self's ' for the sake of itself'.

…in all comportment we become aware of comporting ourselves in each case from out of the 'as a whole', however everyday and restricted this comportment may be…However concerned we are to comport ourselves with respect to various issues and to speak in terms of individual things, we nevertheless already move directly and in advance within a tacit appeal to this 'as a whole'...We are always called upon by something as a whole. This 'as a whole' is the world. (Heidegger,Fundamental Concepts of Metaphysics)
Comment: So is the following paraphrase acceptable: by "beings as a whole" Heidegger is referring to the collection of objects in the world, and by "the being of beings as a whole" he is referring to the common Being that these objects share?


Why do high FPS videos look less blurry than real life?

Question: Quickly wave your hand in front of your face right now. Looks really blurry right? Now watch a 60 fps video. How come it looks so smooth? To me 60 FPS videos look even smoother than real life. Why?
Answer: Well this answer is just based on my knowledge of video cameras and is largely a best guess.
In video cameras motion blur is not (necessarily) determined by the fps but by the shutter speed (in cinema: shutter angle). The quicker/higher the less motion blur (I guess you can liken this to a screens refresh rate). Thus, things filmed at 24fps (cinema standard) but with a faster shutter speed will have a sort of other-worldly appearance as if everything is faster than in the real world. A good example of this is the opening Normandy scene in Saving Private Ryan.
When you combine a fast shutter speed with more than traditional fps (generally anything over 30) the motion looks surreal. Likely any other phenomenon is related to the way we process images and that I cannot adrquently speak of as I believe research in this field is largely mixed.
Here is a good link on shutter speed: http://www.red.com/learn/red-101/shutter-angle-tutorial


how to cover the Parameterized method in test class

Question: for eg private static test(color c)
Comment: Can you add code to cover and test class which you have done so far.
Answer: One problem is that your method is declared as private which means other classes can't access it. This includes Unit Tests. There's a few ways around this. You could:

Declare the method as public
Call instead a public method that calls the private one
Use the @TestVisible annotation

As @Mahmood mentioned in the comments:

It is accepting a workbook object. You need to first create a workbook object and then call your method and pass it on.

So, to cover this class you could do something as simple as creating a new Workbook object and calling it (working under the assumption you've changed private to public or another workaround):
@isTest static void test_method_one() {
    Workbook wrkbk = new Workbook(
        // Assign fields values here...
    );

    INSERT wrkbk;

    myClassThatContainsTheMethod.processActionPlan(wrkbk);
}

That would start covering code, but you're going to have to create multiple instances of Workbook objects that match each case if your long if/then statements.
For instance, your first if/then statement is:
if(sheet.sheet.contains('Action Plan')) {

Thus you need to ensure that your sheet.sheet contains the String "Action Plan". If you don't do this, you'll find that a very small percentage of the method is covered because if as in this case it doesn't match "Action Plan" it'll skip everything inside and continue on. In this instance, to the end of the method.
I strongly advise looking over some Trailhead modules on Unit Testing. In a nutshell, think of it as programatically executing your classes and methods and asserting that the value returned does what you expect.
For instance, if you have a class like below:
public class Example {
    public static Integer addNumbers(Integer x, Integer y) {
        return x + y;
    }
}

Your unit test might look something like this:
@isTest static void test_method_one() {
    Integer a = 10, b = 17; // Create two numbers to add together
    Integer result = Example.AddNumbers(a, b); // Call the class and the method and assign it to another variable

    System.assertEquals(27, result); // We know 10 + 17 = 27, so that's what we expect. If `result` returns something different, we know there's a problem and the test will fail
}

Comment: i have tried this  Workbook wrkbk = new Workbook();
                          insert wrkbk;
                       CRSImport.processActionPlan(wrkbk);
getting error- Invalid type: Workbook
Comment: @user42459 `Workbook` isn't a standard object. If it's custom you'd need to append `__c` or if it's formed as part of a wrapper class you'd need to build that in the Unit Test.
Comment: WorkBook is not wrapper class. public class WorkBook {
        public List sheets { get; set; }
    }
Answer: Private methods are not visible in Test Classes. Hence use @TestVisible annotation so that the method is accessible for running tests only. Use as shown below.
@TestVisible private static void processActionPlan(Workbook workbook) {

your code

}

Refer this link TestVisible Annotation for further details.


How to find free disk space and analyze disk usage?

Question: In CentOS and Ubuntu, how do I find out how much free disk space I have left and other disk stats like disk usage?
Answer: Type the following command:
df -h

df: disk free
-h: makes the output human-readable
Comment: best answer without the need to install additional software!
Comment: df stands for disk filesystem
Answer: I covered this pretty extensively in a blog post titled: Command Line Tools for Analyzing Disk Usage on Fedora/CentOS/RHEL.
ncdu
It's ncurses based, feature rich and has a nice clean interface and it works from within a shell.

gt5

display diskspace used by files & directories within a directory
display what's happened since the last ran (see screenshots below)
optionally provides links to the files, so you can also browse them
displays entries with their size & the percentage of their parent
ommits small files/directories
easy browsing using the cursor-keys
produces html files for browsing 'offline' afterwards

Disk Usage Analyzer (aka. Baobab)

Single folder scan
Remote scan
Monitoring of Home
Display Data in Treemaps or as Ringschart

others...

xdiskusage
filelight
fsview

In particular fsview is a very nice GUI. I like how it organizes the disk usage visually. It's actually a KDE application (a plugin to Konqueror) but runs just fine under GNOME. It's typically part of a package called kdeaddons, and shows up in the Applications menu as "File System Viewer" under Accessories.

Comment: Thanks, I thought the konqueror plugin is forever dead, but there you found it!
Comment: Thanks, if anyone comes across additional tools please feel free to drop me a note, I'm always interested in finding other tools in this space!
Comment: @slm, may be you can add `cdu` as well over here. I have mentioned it in the other question's answer. http://unix.stackexchange.com/a/151684/47538
Comment: @slm blog link is broken
Comment: `k4dirstat` is my preference, thx on the other options!
Comment: @slm is the link to your blog post dead ?
Answer: There are a few commands you can use like df, du, and a few more. Just man a few commands to find out how to use them. If you still have a problem finding what you need after that just go to any directory and do this:
sudo du --max-depth=1 | sort -nr

You'll get something like:
2318764 ./usr
777036  ./var
328316  ./lib
222620  ./etc
86136   ./boot

Answer: In Ubuntu dfc shows a coloured output of your mounted devices and is available via apt:
sudo apt-get install dfc

output like this:

Unfortunately this is not available for CentOS as an rpm.
Comment: this Q is asking about CentOS options, dfc is not in any RH repos for either CentOS or Fedora. I already checked this earlier today when I saw your Q showing it 8-). If you google for "dfc rpm" you'll see that no hits show up too. It's just not a popular app on either of these distros, hence my extensive list in my A.
Comment: But he asks"in centos and Ubuntu" but thanks for the hint I edited my answer
Comment: Sorry, didn't notice the Ubuntu mention in the body, only the title.


Can't find or don't need

Question: It is very often that we find ourselves analyzing metrics and coming to the same cross-roads, do we remove this feature because it's not needed or do we change the way it's presented because it's not found. What techniques do you employ to determine if a feature's low usage is due to poor discoverability or because the end user doesn't care to use it.
Answer: If you have feature requests, complaints or questions on your forum or even public places (StackExchange, Quora etc) from your users asking for solutions to problems that normally should already be solved by the implemented features, then you need to rework that part.
If you have very low usage with no requests then it is safe to assume is not something widely needed, at which points the problem simplifies to how much effort it is required to re-implement it or rework that part vs the benefits.
Another way to do it, is during user testing. Try to create scenarios involving that specific feature and see what happens. If people spend too much time looking for a way to solve the problem then you are in a case of "can't find". If people find it fast enough or you have issues in actually creating a user scenario involving that feature than you are in a case of "don't need".
In case user feedback is not available
It is quite dangerous to simply decide in removing functionality without having the usage information from your users so I think a better focus for your resources would be towards improving the existing use cases and workflows that are making use of that particular functionality. Working on workflows might show you if you really need it or not, if it can be replaced, if there are workarounds or how to improve it so it is easily found and used.
But really, you do need the user feedback to ensure your efforts are going towards the right functionality.
Comment: Thanks Memleak. I'm an advocate of having the conversation with the users and then stakeholders but our organization's maturity in the user-centric space is low so I don't always have the luxury of user testing and thus have to base decisions on expertise, hunches and metrics (not ideal).

Can't find or don't need


Read the packets of bytes on client socket from server socket for connection oriented (TCP) client/server?

Question: i m creating connection oriented server/client(TCP) socket.i have created whole server socket and i have written packet on server socket successfully and i have created client socket also but i m not be able to read packet so please give me the idea about read the packet(code or example) on client socket and tell clearly that can i read a packet on client socket or not if no then what should use in place of client and server socket
Comment: please add your code.  there is no difference in server or client packet reading. open the socket, get the stream and read from stream or write to it.
Answer: You don't generally read a packet at a time - you read from the InputStream returned by Socket.getInputStream(). You should almost certainly be treating the connection as a stream, rather than even attempting to handle individual packets.
If you still run into problems, it would really help if you could post some code to show how you're connecting the socket etc.
Answer: I had to implement such a thing for my networking course in college.
Here's an excerpt from the book
TCPServer.java
import java.io.*;
import java.net.*;

class TCPServer
{
   public static void main(String argv[]) throws Exception
      {
         String clientSentence;
         String capitalizedSentence;
         ServerSocket welcomeSocket = new ServerSocket(6789);

         while(true)
         {
            Socket connectionSocket = welcomeSocket.accept();
            BufferedReader inFromClient =
               new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
            DataOutputStream outToClient = new DataOutputStream(connectionSocket.getOutputStream());
            clientSentence = inFromClient.readLine();
            System.out.println("Received: " + clientSentence);
            capitalizedSentence = clientSentence.toUpperCase() + '\n';
            outToClient.writeBytes(capitalizedSentence);
         }
      }
}

TCPClient.java
import java.io.*;
import java.net.*;

class TCPClient
{
 public static void main(String argv[]) throws Exception
 {
  String sentence;
  String modifiedSentence;
  BufferedReader inFromUser = new BufferedReader( new InputStreamReader(System.in));
  Socket clientSocket = new Socket("localhost", 6789);
  DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());
  BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
  sentence = inFromUser.readLine();
  outToServer.writeBytes(sentence + '\n');
  modifiedSentence = inFromServer.readLine();
  System.out.println("FROM SERVER: " + modifiedSentence);
  clientSocket.close();
 }
}

Hopefully this will be sufficient to figure out what you did wrong. Good luck!


SCCM Update to 1610 or 1702 not possible

Question: I am trying to update SCCM from 1606 to 1702. I ran the Pre-Req check manually (no Errors), since it tended to get stuck from in console.
If I start the update install (or the pre-req check) the update will change state in Administration, but vanishes for the Monitoring node. It stays in "Installing" or "Checking" state.
Hman.log shows "Failed to calculate hash", but I downloaded it several times now and same Error is shown for 1610, if I try to install that, so I guess somewhere there is a problem with the hash calculation process. CMUpdate.log shows no activity. Setup and PreReq logs are empty as well.
Anyone know where else I can look?
Thanks in advance!
Answer: Ok, solved it. The Problem was that the EasySetupFolder needed to be a defined share. The folder itself was shared, but there was no \SERVER\EEasySetupFolder  only a \SERVER\SMS_SiteCode\EEasySetupFolder.
Thought I'd share it, perhaps it relevant for others.


How to retreive last 10 users who have logged in a site using Power shell script?

Question: I need to retreive last 10 users who have logged in a site.(I need to chek in each site under a webapp who are the last 10 users to log in). and export it to a csv file.Require code in powershell.
Answer: Easiest thing would be to use logparser for IIS to retrieve this information and it does the job of exporting to csv and sql.
<code>logparser -i:IISW3C "select date,time,c-ip,cs-username,cs-uri-stem INTO myfilename.csv from \\0.0.0.0 \c$\inetpub\logs\LogFiles\W3SVC979930197\*.log where sc-status = 200 AND cs-username IS NOT null AND cs-uri-stem LIKE '%sites/yoursitecollection' AND cs-method = 'GET' AND to_timestamp(date,time) between timestamp('2013/07/08 00:00:00', 'yyyy/MM/dd hh:mm:ss') and timestamp('2013/07/09 23:59:00', 'yyyy/MM/dd hh:mm:ss')
</code>
Replace 0.0.0.0 with your WFE ip address. You can create a batch file and run it from a single server to consolidate log reports from all your WFEs. Merge the csv files through dos copy command and voila you will have the report of all users who logged into your site collection between a specific period of time that you mention.


Florida HOA proxy eligibility

Question: Are there an limitations imposed by Florida FS718 as to who can serve as a proxy? Specifically, is there any reason a non-owner can not serve as a designated proxy?
Answer: First, a question: Is your community organized as a condominium or as an HOA? I'm asking because you say HOA but you quote from the Condominium Act. In Florida, HOAs do not run condos; in Florida, the governing body of a condo is called a Condo Association, not an HOA. Under Florida law, condominiums are subject to the Chapter 718, the Condominium Act, and HOAs are subject to Chapter 720, the Homeowners Association Act. Because these Acts impose different requirements, it is important to be clear which applies to your community.
To answer your question, both the Condo and the HOA Act allow proxy votes, and neither imposes restrictions on who may act as a proxy. However, it is possible that your Association's Bylaws do impose restrictions, so you need to check them. Moreover, the two Acts do impose different restrictions on when proxies can be used, what form they must take and so on. So you really do need to look at the relevant Act.
Please Note: In trying to figure out what legal rules apply to your community, you probably need to do more than just read the relevant Act. That's because the law-on-the-books seldom gives a complete or accurate picture of law-as-applied. To find out what rules really apply to your condo, you may need to do more focused searches on line, or even talk to a Florida attorney.
Comment: It is a condo.  Thanks for the clarification of the term

Florida HOA proxy eligibility


compile project dependencies with latest version of android support library

Question: I was using 25 as targetSdkVersion,compileSdkVersion in my project. Then a warning showed up.

Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.

So I raised it to 26. And I opened my SDK Manager and updated everything:
SDK Tools , SDK Platform-Tools , etc.
Then another warning showed up:

This support library should not use a lower version (25) than the targetSdkVersion (26)

I was using this version:
    compile 'com.android.support:appcompat-v7:25.3.1'

Now I don't know to which version exactly should I change to.
I tried 7:26.0.0 which my SDK Platform-Tools version is now.
I tried 7:26.0.2 which my SDK Tools version is now.
Both of them give me error after sync:

Failed to resolve: com.android.support.appcompat-v7:26.0.2
Install repository and sync project

Then if I click on Install nothing will happen
Now I have a simple question. How can I find out what is the latest version of support library?
Answer: Add maven repository to your project gradle file:
allprojects {
repositories {
    jcenter()
    maven {
        url "https://maven.google.com"
    }
  }
}

Answer:
Then another warning showed up:
This support library should not use a lower version (25) than the targetSdkVersion (26)

Now I don't know to wich version exactly should I change to.

Either one as you simply should have version match here, so either lower your targetSdkVersion to 25 or use valid version for 26+ libs.

Error:(29, 13) Failed to resolve: com.android.support:cardview-v7:26.0.0 Install Repository and sync project

26 is not officially out yet so just RCs or betas, therefore valid version string is i.e. 26.0.0-beta1.
Finally, you should check if your repository includes new google maven repo, otherwise some artefacts will not be available for your project incl. recent betas of support libs.
See docs for details of setting it all up.
Answer: In Android Studio beta4 I had to add google() to the repositories in the projects build.gradle file. This seems to be an update from Celt K. B.'s answer.
This is what my build.gradle file looks like now.
buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0-beta4'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

A trick is to create a new project and see what the settings are in the default build.gradle files.
Answer: This works for me. Try this in your build.gradle
buildscript {
repositories {
    jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:2.3.3'
    classpath 'com.google.gms:google-services:3.0.0'
}
}

allprojects {
repositories {
    jcenter()
    mavenCentral()
    maven { url 'https://maven.google.com' }
}
}


Where does Charles Xavier's seizure power come from?

Question: In Logan, Charles Xavier suffers from dementia. He has seizures which seem to cause shock waves, resulting in headaches, and time slowing down. Does he have this power in the comics?
Answer: It is worth mentioning that he does exhibit this ability several times in other X-Men movies, so there is a cinematic precedent. On at least two occasions he freezes an entire room of people so he can pass through it unnoticed or to deescalate a situation and pass through it unnoticed. Presumably he allows people to breathe though. And - albeit while he is connected to an amplifier, Cerebro or Apocalypse - he is able to affect the minds of everyone in the world, which is central to the plots of X2 and X-Men: Apocalypse.
This power probably isn't portrayed in the comics very often, since it is difficult to portray people frozen in place in a format that is frozen in place.


2-prong cord but 3-prong outlet

Question: I received a new Insignia Voice Speaker for work.  It has a 2-prong cord, but all of my office outlets are 3-prong.  I'm not finding a converter for this arrangement.  Is it safe to plug the cord in as is?
Comment: Aren't 99% of the outlets you've encountered in your life 3-prong? And aren't most of the cords you plug into them 2-prong? Why the concern?
Comment: Assuming this person has not been in the US for very long, I'd like to point out that if a plug physically fits into an outlet, its ok to do so.  If you have to force it or bend it or do something else drastic, you're being dangerous.
Comment: Note that some two prong plugs are polarized: one prong is slightly bigger than the other.   You have to orient them (Big prong in big slot, smaller prong in smaller slot).
Answer: As already pointed out, yes you can. But maybe understanding the why will help:
From this article, "https://electronics.howstuffworks.com/everyday-tech/question110.htm"
"The idea behind grounding is to protect the people who use metal-encased appliances from electric shock. The casing is connected directly to the ground prong."
So, chances are the device you are using would not electrocute you if a wire became loose inside and touched the casing. That is why there is not a need for the ground prong.
Answer: Yes it is safe to plug a two prong electrical device into a standard 3 prong outlet.
Answer: That 2-prong plug is a NEMA 1-15 type.
The universal-in-US NEMA 5-15 socket (Mr. Horrified) is specifically designed to accept both NEMA 5-15 and 1-15 plugs.
You will also run into NEMA 5-20 sockets (Mr. Winky).  These are specifically designed to accept NEMA 1-15, 5-15 and 5-20 plugs.

The first number (1 or 5) is the NEMA series number.  The second number (15 or 20) is the ampacity.  North American utility receptacles are all 15A or 20A rated/breakered.
If you really, really, really want 240V in that same form factor, look at NEMA 6. It's rarely used in the US, but it's in the catalog and most hardware stores stock all the parts.
Answer: Just a bit more detail:
The fact that a device doesn't have a three-prong plug means the manufacturer, and the safety certifying agency if any (usually Underwriter's Laboratories, or UL, for devices intended to nbe sold in the US) do not think it requires one.
In the case of the "wall wart" power supply you're showing us, this is because its output is low voltage, and because you'd literally have to break it open or soak the whole outlet in water to create a shock hazard.
For most modern 120V devices with US power cords, a two-wire power cord can be used if the device is "double-insulated". You can look up the definition of that, but basically it means breaking the outer case (by dropping it, for example) would not expose dangerous wiring.
There are a few other cases where you'll see a two-prong plug on new products. And unpolarized two-prong plugs used to be much more common, so you'll see them on older devices which don't have this extra layer of safety.
Modern products may also have polarized plugs, with one prong a bit wider than the other, so the manufacturer can guarantee that contacts most exposed to the user are connected to neutral rather than to 120V (assuming the outlet is wired correctly, of course). That too improves product safety, especially when combined with double insulation.
Welcome to the US!

2-prong cord but 3-prong outlet


Can I perform Wudu instead of ghusul if I have no hot water only cold?

Question: Hi I have a question I was janaba (state of major ritual impurity) and had no running hot water only cold so I washed my self as best I could and performed Wudu instead and changed clothes and the closest place I could shower was my aunts 2.5 miles away is this acceptable?
Comment: We do not give personal verdicts. If you did not have hot water there were several was for you to acquire it. e.g. you could have used a pot to heat water on a stove and bathed using a bucket.
Answer: Assalamualaikum and Praise be to Allah,
Lack of warm water or if there's only cold water available is not a valid excuse to not perform wudu or ghusl if you need to. A valid excuse of not performing ghusl or wudu would be if there literally is no water around at all or if the water is not safe to use or isn't clean water
Comment: Assalamualeykum yes however cold water is unsafe especially since we were in the winter and therefore performing full ghusul without harming my self was near impossible therefore I made Wudu


Schengen visa - extention

Question: I have a schengen visa from Germany. My duration of stay is 30 days. I have been entered late on 14 august and my visa validity date is from 1 to 30 august.
Is this possible to stay for unused duration of stay? How is this possible?
I have found a website maybe it can help!
https://service.berlin.de/dienstleistung/324785/en/
Comment: This would have been possible via the German consulate before you left.  Not after you enter
Answer: The website you found pretty much covers it, so I am at a loss to understand what you want to know. You need to contact the relevant Ausländerbehörde (if you are not in Berlin, Google "Ausländerbehörde + name of the place") as soon as possible and provide all the documentation listed.
Note that, as stated on the website,

An extension to a Schengen visa is only possible in exceptional cases where new facts and special reasons arise after entry.

The bit about late entry and unused stay is already stretching the rules, you are never entitled to an extension and certainly not to stay longer without having been formally allowed to do so. So you need to make an appointment/go to the foreigners' office and hand in your form soon enough to get an extension before August 30.
If you are not able to do this or the extension is refused, you have to leave. You can't simply stay in the Schengen area and count on your late entry to avoid any negative consequences.
Comment: @Amin The decision is up to the local Ausländerbehörde so you need to contact them. There are no guarantees and it's possible some are stricter than others because, as I said in the answer, you are not legally entitled to an extension in this situation.
Comment: Thank you for your answer. But I want to know is this possible in any Ausländerbehörde office or just in berlin?
Comment: @Amin I just understood that perhaps you meant your question differently. All Ausländerbehörde have the same function and are competent for a given territory. The Berlin website is among the best ones (and the only one I know that's completely translated in English) but other offices can also issue an extension. The rule is that the Berlin's office only deals with people who are currently in Berlin, etc. so not only could another office issue an extension if you meet their requirement but the one in Berlin should not deal with you if you are not in Berlin.
Comment: @Relaxed I have tried Weimar Ausländerbehörde and they told me that they don't do type c visas. So maybe I should go to the berlin office!!!
Comment: @Amin You could try another office in Thuringia at least, maybe in Erfurt (the capital city of the province). But I think the person might have misunderstood your request or be unaware of all this because extensions are very unusual. As I said, it's for exceptional circumstances, usually you simply cannot get a type C visa from within the country.

Schengen visa - extention


Possibility of drawing at least two cards of the same set of 5 cards, from a deck of 40 cards after 20 draws?

Question: I wanted to know the odds of the situation described in the title. I'll explain better:
There's a famous card game in which if you have a certain set of 5 cards in your hand, you win the game. My friend was complaining about the fact that he often finds only one of the 5 cards after around 20 draws, and he said that he thinks the videogame is scripted so that you don't draw that specific set of cards. In my opinion, without doing any maths, that's more than possible considering he only played a bunch of matches. So the question is: given that there are only 5 cards of that set in the deck and that you have to draw them all to win the game, and given a deck of 40 cards, what is the formula to calculate the odds of having two of those cards in your hand after 20 draws?
Thanks for your answers! :D
Comment: **1.** In the header, you talk of "**at least**....", in the body you say "having two of those cards.." implying **exactly** two... **2.** Do you actually mean **odds** , or are you misusing it as a synonym for **probabi;ity ?**
Answer: If I understand correctly it is $$\frac{C(5,2)C(35,18)}{C(40,20)}\approx 0.3292$$
This is the probability that in the deck of 40 cards, there are 5 "magic" cards (that form a set) and after 20 draws there are exactly 2 "magic" cards.
At least two is $$\frac{C(5,2)C(35,18)}{C(40,20)}+\frac{C(5,3)C(35,17)}{C(40,20)}+\frac{C(5,4)C(35,16)}{C(40,20)}+\frac{C(5,5)C(35,15)}{C(40,20)}\approx 0.8292$$


Starcraft 2 Protoss: Can't Use My Resources Effectively

Question: So I have this macro trouble of mine.I am currently a gold league Protoss player and playing WoL at the moment.
The problem is, I end up having over 1k minerals and can't properly waste them all! Last match I didnt have enough gateways so I had little army supply.My APM stands around 60-90 in my matches.What can I do to improve my macro or not to ask generally; how can I use all my resources fast and effective enough?
Comment: build enough production buildings to build more units at the same time at a quicker rate? This seems rather obvious to me.
Answer: While I am not pro, expanding is one way to dump minerals. The more expansions, the more bases you can have, so when you loose one you could quickly come back trough another base.
Sacrifice units in combat, put pressure by constantly attacking with lower tier units, unless opponent will steam roll your units that is. Get upgrades and research, having two or more upgrade structures isn't that bad in mid to late game. You can also dump resources into building proxy structures. While gateways can warp in to any pylon, robo and stargate(?) can not
This is at least what I've learned from watching hundreds of matches, both low and high league ones.
Comment: Keep in mind that more expansions = more resources so unless he's building exponentially more tech / production buildings as he expands, his problem will just be that much worse by continuously expanding.
Comment: Well, yes, but early game expansions will drain some resources before it produces enough to keep itself up. This will also count for any further expansions. Late game is mostly just a matter of pumping out units faster than the opponent so you can finally overwhelm them.
Answer: You seem to know the answer here. Build more gateways. Zealots are going to be your easiest mineral dump. Spend some APM each game getting out a warp prism and/or some good proxy pylon placement and do some zealot runs by.
Answer: Mwell, in your case Rivian, I suppose you only have extra gold and no extra gaz. If it's a common situation for you, it means that you have an issue in your Build Orders and/or in your spends.
IMO, spending your extra mineral in zealots is not a good strategy once you have reach silver or gold league. You don't even need more gates or morge tech buildings because they won't be efficient if your don't have enough gaz.
What you need is more gaz !
The best way to obtain more gaz is to expend, then, use your mineral to protect your base with photons.
I desagree with Sharain on many points. If a good player manage to have a low cash, it doe'snt mean that you must waste it if you have too much mineral. Low cash is'nt the goal but a result of a certain gameplay. Build more tech buildings, build proxy pylons, waste zealotts, this is not a good strategy if its only purpose is to clear your mineral stack.
Comment: I leveled up to Platin now, my only problem left is my hotkeys.
Comment: I can give you some usefull tips if you want