body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
I want to configure dual boot with Ubuntu 19.04 and Windows 10 in my laptop. When I read about it, I always see that people install Windows 10 first and then install Ubuntu. Why is that?
I'd like to install both Ubuntu 12.04 and Windows XP on a Dell laptop, and I was thinking about using a dual boot structure, and using the bulk of my hard drive as empty hard drive space to share files between the two operating systems (so choice of file system type is very important in this set-up). The kind of partitioning structure I would like to use is Partition 1 - Ubuntu 12.04 (root) (20GB) Partition 2 - Ubuntu /home (20GB) Partition 3 : Free Space (560GB) Partition 4 : Windows XP (35GB) Partition 5 : SWAP (3GB) (Total Hardrive Capacity is ~640GB) My question is; what is the best way to go about setting up this kind this system? Should I install Windows XP first and setup the partitions, and then install Ubuntu which I believe will install the GRUB bootloader for OS booting choice or Do I install Ubuntu first, setting up the available partitions and then perform a WIndows install? Please let me know if there is anything in this setup that I have left out and should know about, including things related to setting particular partitions as logical or primary, and whether the boot partition and the filesystem partition should actually be two separate partitions.
I have a Asset which is a collectable object [Pickup] and I currently have eight in my scene, I'd like to duplicate this asset and use it to harm the player [Bad Pickup]. I decided to duplicate the asset because I wanted both assets to have the same components (Animation script, rigid body, mesh colider, etc...). However, when I edit the texture of my new asset [Bad Pickup], it changes the texture used for the original asset [Pickup] as well. I've tried GameObject -> Break Prefab Instance on the object with the new asset but it doesn't appear to make a difference. Is there a way to break this instance so that I don't have to make a completely new GameObject and add the same components manually?
I'm working on a Unity's Project and I want to modify a prefab, more precisely I want to change the texture of a prefab. The problem is that my modification is applied also to other prefabs. I read on the documentation how each of the buttons labeled Select, Revert and Apply works, and what I understood is that the modification should update only the selected prefab. Here is the which I read. What am I missing? PS: I'm not the author of the project, I have to apply some modifications only.
I noticed that sometimes the correct answer is inside a comment, and the asker have to answer him/herself quoting the comment. How about make it possible to accept a comment? Of course the time that must elapse before you can accept a comment should be much greater than answers.
Question: What if the author of a question can accept a comment? The problem: Time and time again, answers are posted as a comment. Usually, the person who commented has the best of intention (e.g. it was a trivial answer [to the answerer], and they weren't sure if the OP would immediately edit the question after the comment). But this leaves the frustrating situation of an unanswered question with a perfectly good answer. This problem accumulates over the years. Candidate solution: The OP can just "accept" the comment, after which a duplicate of the comment is made an accepted CW answer, with a preface indicating that it was originally a comment, e.g. This answer was originally a comment posted by [[blah]] that has been accepted by the author of the question. Comments on this scheme: The author of the comment has indicated they're not interested in gaining/losing reputation through their comment (thus CW answer). The original comment is still there. If desirable, the "author" of the accepted question could be a "bot", so the answer is not attributed to a genuine account. (I suppose it would already be technically possible for Joe Blow to create a script for a bot that creates an answer from a comment in the proposed way.) A similar question was asked before (over 3 years ago), and in numerous other questions which have been deemed "duplicates" (, and ; see also ), so there seems to be demand for such a feature. The answers to these questions seem (to me, at least) quite weak: "ask the commenter to add the comment as an answer" The OP already did this by asking the question in the first place. And what if the author of the comment doesn't respond (or takes a long time to respond)? This also adds more chit-chat irrelevant to the question. "add an answer of your own, referring to the comment, and accept it." A hacky workaround. How could this possibly be better than accepting a comment? (Yet, this is the most up-voted response.) Moreover, this adds to the user's list of "answers" (thus making the user's page harder to look through). "When i leave a comment, i do so because i want to leave a comment." Great; now what about everyone else? In the immortal words of the FAQ: "Other people can edit my posts?!" And it's not even an edit, it's copying the post from one box to another (a more hacky version of which is regarded as the "accepted" method).
Can you join the Imperials Once you have started "Joining the Stormcloaks" ? Cause I wanted to join the Stormcloaks but then I saw how racist Ulfric was and wanted to join The Imperial Legion. I am playing on PS3.
This is my first time through playing Elder Scrolls and initially I grabbed every quest that has come available... At first I thought I wanted to be part of the Imperial Legion but I feel like I picked the wrong side and am now regretting my choice. So...is there any way to un-join the Legion and join up with the Stormcloaks, or will I have to wait and join them next time?
how to use search_key variable as field value instead of static value BRO if(search_key!=''){ dbo.collection("assets").aggregate([ { "$match": { $and: [ { status: 1 }, { $or: [ { maker_name : /^.*BRO.*$/i }, { serial_number : /^.*BRO.*$/i } ] } ] } }, { $lookup: { from: 'asset_type', localField: 'asset_type', foreignField: 'asset_type_id', as: 'asset_type_details' } } ]).sort({_id:-1}).toArray(function(err, result) { if (err) throw err; res.status(200).json({'return_data': result }); db.close(); }); }
I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it. However, I can't figure out how to pass a variable in to a regex. I can do this already which will replace all the instances of "B" with "A". "ABABAB".replace(/B/g, "A"); But I want to do something like this: String.prototype.replaceAll = function(replaceThis, withThis) { this.replace(/replaceThis/g, withThis); }; But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?
s ~ such like this, but I want them to be combined to identify a vector. thx for help~!
In LaTeX, \tilde{x} puts a ~ on top of the x. How can I put a ~ below the x?
These two keep tempting me to click on them, even though deep down in my heart I know I have reached the limit on both. It pains me to see bad questions/answers while being helpless to do anything about it. Why torture a man by shoving it in his face? And in such bright colors, on top of that!
Once a user has exhausted their (currently) 30 edit suggestion approval/rejections, the pending edit box in the top bar can still show up: You click through and see some edits suggested to vote yay or nay on. But when trying to approve/reject you get the warning: Out of votes - you may only vote 30 times a day. Don't tease me, bro!
How can it be possible, that If statement doesn't understand two equal things that they are the same? Situation: I write into txfName field only letter b and then push button "Ok". Code: String letter = "b"; boolean same = false; if (letter == txfName.getText()) { same == true; } After if statement program shows me that variable same is false. Why? How can it be possible? If I write code like this: String letter = "b"; boolean same = false; if (letter == "b") { same == true; } Then after if statement program shows me that variable same is true. I don't understand, how it can be possible.
I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug. Is == bad? When should it and should it not be used? What's the difference?
Just wondering, most of all equipment at home have components/circuitry inside to transform high voltage (AC) into lower voltage (mostly DC), also all modern LED lambs. Modern products become more and more efficient and operates at low voltages. Still we have only very high voltage sockets at home. Also nowadays many manufacturers provide adapters with their consumer products. The amount of adapters is enormous, I think I have at least 40 adapters lying around the house. All of them are near or below 24 volts. For example my laptop adapter output 19 volts. Would it be more efficient to have a (isolated) 24v AC socket instead of 240v? The transformation is done at the fuse box (what is the name in English, cupboard with energy meter). To step down isolated 24v AC is much easier (requires less components and no transformer i guess) for each product. Or is there any downside doing this? It will reduce the amount of repeating components required for many products, cables, transformers etc. I know why AC is used instead of DC to transport electricity so that is why I suggest 24v AC. Or do we need a higher voltage? What could be the reason why we don't have this green environment socket? Any downsides or is there no reason at all?
I'm wondering why, in a standard house, instead of using many low power AC-DC rectifier, there isn't a big (like 12V 20~50A) AC-DC rectifier which supplies some wall socket with a DC voltage? In the long run this should be less expensive, given the fact that AC to DC in one big apparatus is done better than in many low-quality transformers, right? Also, modern chip DC voltage regulators have efficiency of >90%, so smaller (or even larger) voltages are still efficient and possible. So we could use a 12V socket to charge a phone, desktop computer, laptop, radio etc... and still have an AC socket to move washing machine engine and other things that work better with an AC supply. Why isn't this done? edit: real question is: is it convenient, given a standard family (2 laptop, 1 desktop, 4 smarthpone, 1 big tv and some minor electonic) to do so?
I have already build a dictionary.Here is my dictionary: mydict = {'to': 12, 'and': 35, 'Python': 26, 'for': 49} I want to sort this dictionary by value (from max to min) and print result like this: for 49 and 35 Python 26 to 12 I don't know how to do it.Any help will be appreciated! I have tried: (1) for key,value in mydict.items(): print(key,sorted(mydict.values(),reverse=True)) #int is not iterable (2)use dict.keys() and dict.values(), but I don't know how to print correspond keys. (3)I tried to build a list for value and build a new dictionary from value's list.But I don't know how to do it. (4)try to convert int to string,but it can't be converted! Thank you so much!
I have a dictionary of values read from two fields in a database: a string field and a numeric field. The string field is unique, so that is the key of the dictionary. I can sort on the keys, but how can I sort based on the values? Note: I have read Stack Overflow question here and probably could change my code to have a list of dictionaries, but since I do not really need a list of dictionaries I wanted to know if there is a simpler solution to sort either in ascending or descending order.
I have noticed that for at least a couple of days, the tag stats have not been updating. It is possible identified in and marked as has returned. After spot checking a few of my lower score tags: - I have answered 3 questions, including 1 yesterday, but my tags only show 2 answers. Additionally, my tag score is shown as 7 but the net total score of my 3 answers is 8. - I have answered 5 questions, including 2 posts 2 days ago, but my tags only show 3 questions. Additionally, my tag score is shown as 8 but the net total score of my 5 answers is 12. This suggests it has been at least 72 hours since the script ran
From my , I learned that all tag related info on profile will be updated daily at UTC 03:00. However, something is wrong here. It's now UTC 05:00+, but my tag number, say 93 (c++) is not updated against yesterday. I am pretty sure about this and I did earn some more points throughout the day. Sorry for not be able to capture the screenshot yesterday, but I did check this number 10 hours ago (which belongs to yesterday, also 93). Is there a bug happening here? Or updating time different? UPDATE: As of 24 Jan, the tags are still not updated with the proper values. UPDATE2: Fixed around 25 Jan, UTC 03:00, at least for me.
I am an undergrad physics student and my research experience has mainly been in the field of Condensed Matter Physics. Through the experience I have come to realize that it is not what I want to continue with and wish to change my specialization when I apply for my masters. If I were to contact an advisor from a field different from the one I have some experience working in to join a group for say a Research Masters, will the experience (despite it being in a different field) work in my favour?
I am a economics major undergraduate student who will apply for grad schools in the coming semester. I think I have quite a strong research experience in mathematical statistics (asymptotic statistics to be specific), but, unfortunately, not much in economics itself. So I am curious if economics departments in graduate schools will care about my research experience in statistics? Maybe a broader question is if grad schools care about applicants' research experience in a different (maybe even unrelated) field at all? I guess in my case statistics and economics are still quite correlated, but what about other more distant combinations of target departments and previous research experience?
I am getting the namedParameterJBCtemplate as null value static String TABLE = "select * from cdh_spectrum_xstore_reg.%s"; static String GET_TRANSACTION_BY_FILENAME = " where etl_source_name = :etlSourceName" + " and pos_key in (select pos_key from cdh_spectrum_xstore_reg.pos_log where etl_source_name = :etlSourceName order by load_date desc limit 1)" + " and batch_ts in (select batch_ts from cdh_spectrum_xstore_reg.pos_log where etl_source_name = :etlSourceName order by load_date desc limit 1)" + " limit 1"; @Transactional(isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED) public Transaction getIsolatedTransactionDetails(String fileName) { return namedParameterJdbcTemplate.queryForObject(String.format(TABLE, "pos_log") + GET_TRANSACTION_BY_FILENAME, new MapSqlParameterSource("etlSourceName", fileName), transactionMapper); } Here the filename is correctly coming when I debug What I noticed is namedParameterJdbcTemplate is giving null.
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
The swarms of dead men fighting for the good side always seemed wrong to me. I know they did it to be released from their plight, but.... It's one thing to curse somebody, it's quite another to back it up. How did Isildur back up his curse on the oath breaking men of Dunharrow?
In Return of the King, we are told that the shades who populate the Paths of the Dead are the spirits of oathbreakers who refused to aid Isildur in the first fight against Sauron. First, we are told of the oath (Book 5, Chapter 2): But the oath that they broke was to fight against Sauron... For at Erech there stands a stands yet a stone that was brought, it is said, from Númenor by Isildur... and upon it the King of the Mountains swore allegiance to him in the beginning of the realm of Gondor. Then, when they fail to honor the oath, we are told about Isildur's curse on them: "...this curse I lay upon thee and thy folk: to rest never until your oath is fulfilled." And as we see in the following chapters, the Sleepless Dead are indeed subject to this curse exactly as Isildur descibed it. What seems less clear, however, is how Isildur's curse manages to alter the fundamental nature of the oathbreakers' mortality, so that they became undead shades instead of simply dying in disgrace. Do we have any other examples of Isildur performing similar acts of magic? Based on what we are told in LotR, Isildur appears to have been a great warrior, but not a regular practitioner of magic. Is the stone at Erech somehow magically involved? (If so, do we know anything more about it or how it works? Does its origin in Númenor have any significance?) It is mentioned that the oathbreakers had worshiped Sauron; could this be a clue?
I noticed while searching the etymology of the word nightingale that it did not have the second N. The sources I checked only say intrusive N but don't explain it. : From Middle English nyghtyngale, nightingale, niȝtingale, alteration (with intrusive n) of nyghtgale, nightegale, from Old English nihtegala, nihtegale Middle English nighte-gale, from Old English næctigalæ, in late Old English nihtegale, a compound formed in Proto-Germanic (compare Dutch nachtegaal, German Nachtigall) from *nakht- "night" (see night) + *galon "to sing," related to Old English giellan "to yell" (from PIE root *ghel- (1) "to call"). As you can see, in Old English and Middle English, it did not have the second N so the present day N is not original. Etymology Dictionary also says "With parasitic -n- that began to appear mid-13c." but doesn't explain the reason English people put it in "Nightegale". Can anyone explain the reason?
Just wondering how we got from message to messenger instead of message to *messager? When and why did this happen with this word? I'm not really interested in the rule so this isn't a duplicate, more interested in this word specifically.
I've found a answer how to remove diacritic characters on stackoverflow, but could you please tell me if it is possible to change diacritic characters to non-diacritic ones? Oh.. and I think about .NET (or other if not possible)
I'm trying to convert some strings that are in French Canadian and basically, I'd like to be able to take out the French accent marks in the letters while keeping the letter. (E.g. convert é to e, so crème brûlée would become creme brulee) What is the best method for achieving this?
Can you guys think of any way to find a 2x2 matrix that when raised to the third power is the identity? I know there is the obvious answer of the identity itself, but I was specifically wondering about matrices that would take more than one elementary row operation to achieve. Thanks in advance to anyone who can give me some insight!
So it's been a while since I've taken Linear Algebra, but my friend asked me a question, that I couldn't answer. If a matrix $A$ exists such that $A^3 = I$, does $A$ have to equal the identity matrix $I$? My first instinct was to say no, but... (edited out my incorrect math) EDIT: thanks guys for the awesome examples EDIT2: Followup question: Is there a way to solve for all possibilities of A if given A^3 = I?
There is a photo of a baby girl with her brother but the baby can't be much Of differentiated as a girl or boy. What would it be right to say? It is a girl. Or She is a girl.
So, my boss comes in, railing that "English is a stupid language!" Since this is pretty much a thrice-weekly occurrence 'round these parts, I barely raised an eyebrow, and waited for him to continue. "Mary just wrote to tell us that she's back from maternity leave, and I want to congratulate her and ask whether she had a girl or a boy, but I can't do it without calling the child an 'it'!" I blinked, then confirmed that yes, he believes the it in "Is it a boy or a girl" is the impersonal pronoun, the same word you'd apply to an apple or a house. Is it the 'thing' pronoun, really? Or is it just a placeholder of some sort? I used to believe the latter: I gave the boss a mini-lecture about and the . He wasn't convinced, however, and now he's got me doubting too. (Harumph. I really should know better than to listen to the boss.) I'm not asking about politeness, here; the former title was to be taken somewhat facetiously. I'm wondering about the grammar: what role is that "it" playing in that sentence? Is it a personal pronoun (and thus the infant has grounds for feeling offended) or a dummy pronoun (and thus those who perceive a politeness issue are just misunderstanding the grammar)?
for some reason my php short code isn't working after I changed my ini file. I still see the code in the source code of the browser <? include 'file/path'; ?> but I changed a few of them to the <?PHP to see what would happen and those work just fine.
I have installed Apache2 MariaDB and PHP7 for use on localhost, but PHP does not work. The Apache webside looks as normal while phpinfo.php only gives me a blank page. I used to install with 'apt-get install lamp-server^', but I wanted MariaDB, so I installed every single package including some PHP extensions and phpmyadmin. I have no idea of how to get php working. Any clues? ~ # php -v PHP 7.0.13-0ubuntu0.16.04.1 (cli) ( NTS ) phpinfo.php: <? phpinfo(); ?>
Cannot connect Iphone 5 ios7 to ubuntu 12.04 Endless loop of 'Trust this computer' if I trust it. The device 'Samis' is locked. Enter the passcode on the device and click 'Try again'. Unable to mount device with message DBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus) How can I connect my iphone with ubuntu?
My iPhone 4S won't connect to my computer when running Ubuntu 13.04. The "Trust this computer" prompt just endlessly pops up. Without actually connecting. Any ideas? Maybe this is just going to be it with iOS 7.
I need help with bibliographies by chapter using bibtopic with classicthesis (v4.1 LyX) with LyX (v2.0.2) under Ubuntu Linux (or a better option). I need bibliographies at the end of each chapter (as a section) in my thesis document. I read in the classicthesis example documentation (publications) that I can use bibtopic, multibib or some similar package to get multiple bibliographies. I found bibtopic as an easy option because this package doesn't requires new command definitions and also because LyX has native integration with it. I tried to use this package in my document but I have not had success. Here are the steps I followed to try to get what I need (I have attached a with the LyX files in order to reproduce the results): I have one bib file for each chapter to contain the corresponding references (chap_01.bib and chap_02.bib) I configured each chapter document (chap_01.lyx and chap_01.lyx, child documents) with sectioned bibliography. Then I inserted the bibliography through LyX (Insert, List/TOC, BibTeX Bibliography) at the end of each chapter file, taking care referencing the corresponding bib file. Also I inserted some ERT surrounding the bibliography entry, as it is in the Bibliography.lyx file that come with classicthesis LyX port, to get the bibliography section title in the TOC. I configured the bibliography of my master document (ClassicThesis.lyx) with default parameters, i.e. with not sectioned bibliography because otherwise, I obtain the bibtopic error message: "Load bibtopic after hyperref when using the 'backref'". Although I can compile and generate the pdf file with the above configuration, the cites appear as [? ] and the bibliography section (references) doesn't appear in the document. Also, I have tried to use the bibtopic pakcage using btUnit and btSect (through ERT) along the documents as described in the bibtopic documentation but I had not success. Example I would appreciate any help in getting what I need either using this package or better option. Thanks, Héctor
I'm really new in using biblatex, compile the sample placed in , but what I get is 1.1 Foo Some text [B02x ]. 1.2 Bar Some text [B02y ]. Do not get the bibliography by chapters, or the global references. Really not remains to be done \documentclass{report} \usepackage[style=alphabetic]{biblatex} \addbibresource{references.bib} \begin{document} \chapter{First chapter} \section{Foo} Some text \cite{childs_temperature}. \printbibliography \chapter{Second chapter} \section{Bar} Some text \cite{hashemian}. \printbibliography \newpage \printbibliography \end{document} And the references.bib @BOOK{childs_temperature, title = {Practical Temperature Measurement}, publisher = {Butterworth - Heinemann}, year = {2001}, author = {Childs, Peter R N}, address = {Great Britain}, edition = {1}, isbn = {0 7506 5080 X} } @PHDTHESIS{hashemian, author = {Hashemian, Hashem Mehrdad}, title = {Measurements of dynamic temperatures and pressures in nuclear power plants}, school = {{The University of Western Ontario}}, year = {2011}, type = {PhD {T}hesis} } I need to obtain references by chapter and global cited references, but i don't know how compile.
I have asked this to myself many times, how do I get the best enchantment on my pickaxe? I just have no idea, I have tried getting a good enchant but all I got was efficiency 1 for level 30 enchant
I'd like to have an item enchanted with silk-touch, but of course the enchants are all random. Is there a combination of enchantment level and item material that would give me the best odds of getting the silk touch enchantment?
I'm running Ubuntu Studio 18.04 and Windows 7 in a dual boot. Ubuntu needs 2 boots to finally working, it sometimes gets stuck on the first attempt by showing strange lines of color artifacts on a black screen. Using Boot-Repair I understand the procedure of creating a new partition at the beginning of the disk, which I have already done, but I noticed that the first OS on the disk is Windows. In fact, I recently uninstalled Ubuntu 16.04 and replaced it with Ubuntu Studio 18.04. Is this the problem, you think? and if so, can I solve this without erasing everything and starting from scratch? My copy of Windows is very old, and it would be hard to get it back. Configuration:   OS: Ubuntu 18.04 bionic   Kernel: i686 Linux 4.15.0-50-lowlatency   Shell: bash 4.4.19   Resolution: 1366x768   DE: XFCE   WM: Xfwm4   CPU: Intel Pentium 2020M @ 2x 2.4GHz [53.0°C]   GPU: Mesa DRI Intel(R) Ivybridge Mobile x86/MMX/SSE2   VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)   Subsystem: Acer Incorporated [ALI] 3rd Gen Core processor Graphics Controller   Kernel driver in use: i915
I am trying to boot Ubuntu on my computer. When I boot Ubuntu, it boots to a black screen. How can I fix this? Table of Contents:
Suppose $F$ is a field and there is a ring homomorphism from $\Bbb Z$ onto $F$. Then show that $F$ is isomorphic to $\Bbb Z_p$ for some prime number $p$. I am facing difficulty to do the proof. I think that we have to make a map so that the kernel of the homomorphism goes to class $0$ of $\Bbb Z_p$.
Here we have $F$ a field and $f: \mathbb{Z} \to F$ a ring epimorphism. We are to prove that $F$ is a finite field with non-zero characteristic. I know that since $f$ is an epimorphism, we have that $\forall x\in F$, $\exists y \in \mathbb{Z}$ such that $f(x) = y$. (As an epimorphism is a surjective ring homomorphism). I am unsure about two things: Am I to prove that F is finite, or just prove that it has a non-zero characteristic. Either way, I could use some guidance. Thank you :) PS This is for HW, so I only require a good hint about how to approach the problem.
I'm trying to make a cloud with some displace, the first with a Voronoi and the second with a cloud, finishing it with a simple volume scatter shader, but when I'm rendering the cloud get same artifacts, it isn't occurring when I use only the Voronoi or cloud but when both are on this thing appear, I try something like turning up the max bounce value but made no difference, does someone know how to fix it?
I am following Andrew price's video on making clouds but my clouds are rendering with black spots on them. I have tried turning up the maximum transparency value under light paths but there is no difference between 50 and 200. What could be causing this?
Hypothetical situation: What would be the long term effects of running sudo chmod -R 777 /? I know that it means that all users have full permissions on all files, but are there any other side-effects?
I was trying to run chmod -R 777 ./ but ended up typing chmod -R 777 / and set 777 on my entire machine. What can go wrong? How can I fix it?
I am trying to create this look on an image but not sure what program was used to create it. I have illustrator and photoshop but not sure if there is a filter I could purchase to help start the process.
Is there a tool like available for Android or Windows systems? I'd like to turn images into polygones/triangles like shown on the app site.
Acute $\triangle{ABC}$, point $D$ is on side $AC$ so that $AD=BC$, $CF$ bisects $\angle{ACB}$. Point $E$ on side $AB$ so that $DE \parallel CF$ and $AE=CD$. Prove: $\angle{ADB}=3\angle{BAC}$
See below in acute triangle $ABC$, $D$ is on $AC$ such that $AD=BC$. $CF$ is the angle bisector of $\angle ACB$. $DE \parallel CF$. $E$ is on $AB$. $AE = CD$. Prove that $\angle ABC = 2 \angle BAC$. In addition, find the condition in which $\angle ADB = 3 \angle BAC$ I struggle to find ways to use two conditions $AD = BC$ and $AE = CD$
I'd like to see a simple proof of $$x^n−y^n=(x−y)(x^{n−1}+x^{n−2}y+…+xy^{n−2}+y^{n−1})$$ I don't know what proof by induction is... is there a simpler way? The previous on this doesn't really solve my problem.... I don't understand the induction proofs. The text that I am reading with this is this:
I am looking at a proof of the power rule and I see this: $x^n - a^n = (x-a)(x^{n-1} + x^{n-2}*a + {...} + xa^{n-2} + a^{n-1})$ Where does this come from? It's used in this proof which I'm trying to understand: What is it called?
How can I achieve this surface and light on sphere's? Picture below: I appreciate help, thank you.
How would I make this material in cycles? Thanks
when I click in the comments section where it says "x More...". How this this URL trickery happen?
How would I have a action that may have some effects on the current page but would also change the URL in the browser so if the user hits reload or bookmark, then the new URL is used? It would also be nice if the back button would reload the original URL. I am trying to record JavaScript state in the URL.
First of all, I know that this question covers a similar ground as but the topic is one year old and pertaining to the last year's World IPv6 Day. Today is June 6, 2012, , so I ask whether SE has made any plans to enable IPv6 on their servers in this year. Many large content providers such as Google, Facebook and perhaps most importantly Akamai have already made the switch so it is possible to access a somewhat large portion of Internet via IPv6 only. Since IPv4 depletion is becoming more and more a severe issue we can expect that ISPs that won't be able to get new IPv4 allocations will start connecting their clients to IPv6-only connections or resort to CGNs which bring about many other problems such as identification of clients behind those CGNs and performance issues. I think many users will appreciate IPv6 connectivity to SE and I think it is not a large problem from a technical viewpoint. A reverse IPv6 proxy will probably do just fine for the time being (similar to what Amazon AWS to provide IPv6 connectivity to their clients while they are upgrading the platform to the full-fledged IPv6 connectivity) EDIT: Bump, because it's 2014 and IPv6 is still not there.
According to my IPv6 tunnelbroker the world will end in approximately 712 days when we finally run out of IPv4 addresses. Would it be possible to enable IPv6 access to the Stack Exchange family of websites?
I'm programming in C++, and I was looking for "the best" compilers (size, features...), but I read "How to Ask", and I didn't post the question. If I need to dicuss (important things, like this), get opinions from the users, what's the best place to? Is there any programming-discussion affiliated site?
Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.
I'm new to Python and I have a question about the string operations. Is there an over-arching reason that I should understand as to why the lower operation is written as 'variable.lower()' while another one, say length, would be written as 'len(variable)'?
I know that python has a len() function that is used to determine the size of a string, but I was wondering why it's not a method of the string object. Update Ok, I realized I was embarrassingly mistaken. __len__() is actually a method of a string object. It just seems weird to see object oriented code in Python using the len function on string objects. Furthermore, it's also weird to see __len__ as the name instead of just len.
In the movie when Cumberbatch said the following phrase There are 159 million, million, million possible Enigma settings. All we had to do was try each one. But if we had 10 men checking one setting a minute for 24 hours every day and seven days every week the sentence 10 men checking one setting a minute does it mean 10 men checking on single setting in one single minute, or that each of the 10 men is checking a setting in a minute, which will make 10 settings for one minute?
In explaining how hard it is to crack the code of the Enigma machine, Cumberbatch' character says in The Imitation Game: There are 159 million, million, million possible Enigma settings. All we had to do was try each one. But if we had 10 men checking one setting a minute for 24 hours every day and seven days every week, how many days do you think it would take to check each of the settings? Well, it’s not days; it’s years. It’s 20 million years. To stop an incoming attack, we would have to check 20 million years’ worth of settings in 20 minutes. For no reason other than curiosity, I tried to calculate whether or not this "20 million years" is correct, and found that it is completely incorrect. Let's just use simple math to do this: It's stated that the Enigma machine has 159 million million million different settings, that's 1.59×10^20. Let's assume that a man can check a code each second (which is much faster than what was stated in the movie), and while a year has 31,536,000 seconds, then in 20 million years period that would be: 10(men)× 31,536,000(seconds in a year) × 20 ×1,000,000 (20 million years) = 6.3×10^15 settings. Obviously that is so much less than the Enigma settings so there is a huge error in saying "20 million years" as it would take much much longer than that. 25,000 times more to be precise. So is this a calculation mistake they made?
Can you please suggest some books or websites for higher secondary school student for easy understanding of calculus?(Just I want to learn to carry out basic calculations)
This question is a of the common question asking for calculus references. It is here to away the repetition, and give a canonical resource for calculus references. I'm looking for a resources to learn single-variable calculus.
I'm just getting into it and soon my first project will be done. Can I sell it afterwards?
Is it okay to use Unity 3D programming and gaming software to create mobile game apps for Android and iOS? I am using a free version of Unity 3D and planning it to sell my current game app I've created by publishing it to Google Play. I also use this method for earning money by setting as a free app with ads on it. I saw some developers relied on using free version of Unity 3D to create games and published it via App Store or Google Play. If it does, should I have to pay or share contribution to the Unity development team for earnings since I use the free version in order to rely for producing several game apps for business?
In on the use of the SQL standard INFORMATION_SCHEMA views, on the columns about schema names, the following warning is repeated each time: ** Important ** Do not use INFORMATION_SCHEMA views to determine the schema of an object. INFORMATION_SCHEMA views only represent a subset of the metadata of an object. The only reliable way to find the schema of a object is to query the sys.objects catalog view. A casual perusal of this view on my database shows that all of the schemas appear to be reported as expected, so I'm wondering what exactly the problem is we're being warned about here. Under what circumstances can INFORMATION_SCHEMA prove unreliable in this regard?
According to MS-DOCS about , the schema have a warning note that says: ** Important ** Do not use INFORMATION_SCHEMA views to determine the schema of an object. The only reliable way to find the schema of a object is to query the sys.objects catalog view. Why can't INFORMATION_SCHEMA views be used to determine the schema of an object? Is this information erroneous?
I have this code, which doesn't compile (EDIT: compiled in VC, but not in GCC): template<int N> struct List { template <class C> void clear() { } }; template <int L> class Test { public: List<L> list; // <--This line void method() { list.clear<int>(); // <-- Compile error here: error: expected primary-expression before ‘int’ } }; How can I make it work? It seems the compiler (gcc) doesn't understand the context, because if in the marked line I replace L with a number, like List<1> list; then it compiles fine.
In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway? I have the following code: template <typename T, typename Tail> // Tail will be a UnionNode too. struct UnionNode : public Tail { // ... template<typename U> struct inUnion { // Q: where to add typename/template here? typedef Tail::inUnion<U> dummy; }; template< > struct inUnion<T> { }; }; template <typename T> // For the last node Tn. struct UnionNode<T, void> { // ... template<typename U> struct inUnion { char fail[ -2 + (sizeof(U)%2) ]; // Cannot be instantiated for any U }; template< > struct inUnion<T> { }; }; The problem I have is in the typedef Tail::inUnion<U> dummy line. I'm fairly certain that inUnion is a dependent name, and VC++ is quite right in choking on it. I also know that I should be able to add template somewhere to tell the compiler that inUnion is a template-id. But where exactly? And should it then assume that inUnion is a class template, i.e. inUnion<U> names a type and not a function?
Happy Holi to You and Your Family. Play Safe! Is anything grammatically wrong in above sentences? In which category does the second sentence fall? Can we replace Play Safe! with Play Safely!. Are they equally true and depict same meaning? Is the usage of exclamation with both safe and safely correct?
When someone is going to drive their car somewhere, I always used to say "drive safely" to them. Recently I was told I should say "drive safe." (From: ) Which one is correct? Similarly, is "do good" correct?
I need access to docker which I cannot get on windows because for some reason version 2004 is not yet available for me (I checked for updates in settings) so I am trying to dual boot from usb. I have created a live USB with ubuntu, I made it bootable then tried to boot from usb and it brought up gnu grub. I selected ubuntu and then my PC just keeps powering off while "checking disk". I now formatted my usb as ext4 and it is no longer visible in my PC so I don't know how to move ubuntu to the USB. Is there a straight forward way to get this done?? It has been a nightmare so far I don't know what to do anymore.
This question is asked often in Ask Ubuntu, sometimes with few hints about the situation. Please provide a list of possible reasons to help troubleshoot the problem.
I've got an animation that I want to render from loads of camera angles. How can I write a script to automatically loop through all the cameras and render the scene from each perspective?
To be clear i want a script, which produces what i am describing below. I want to iterate through all the cameras in my scene where each one renderes an image. I can do this manually by rendering with active camera, then set another camera to active, and then render again. I have five cameras in my scene and i am going to be using this scene a lot. in reality the question might be more about setting a camera to active with script.
what are they doing? What they are doing? What is the difference between these two? Both are correct?
I always get confused between these two sentences: Why are you making noise? Why you are making noise? Could anyone put light in the differences between the two?
my code is like public class StationService { private StationDao stationDao; public StationService(StationDao stationDao) { this.stationDao = stationDao; } public void insertData(PoliceStationBeans beans) { // TODO Auto-generated method stub System.out.println("In Implementation:"+beans.getArea()+""+beans.getUserName() +""+beans.getPassword()+""+beans.getEmail()); stationDao.insertData(beans); //Getting Error Here } } How to resolve this error I reffered this question
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
is there any way you can install an app (for instance WhatsApp) on Android 4.2.1 ICS but at the same time remove its autorun properties sothat it becomes a standalone app and ONLY uses memory, processing power and even more dear battery, only during the time that I start the application. After closing it I want it to remain unstarted! Note: this is different than autokilling it with taskkiller and alike. I want the app to not start in the first place). I find myself installing and de-installing certain apps to overcome this dilemma and I hope there is a better solution otherwise whats the point of Android freedom feeling, right?
When my phone starts up there are several application/services running in the background that I would rather not. And when I press the Home button while using an app, that app usually goes into the background without exiting. How can I stop these apps from running?
This code is giving me a segmentation fault at run time. char *str = "HELLO"; str[0] = str[2]; Please can anyone tell me why?
The following code receives seg fault on line 2: char *str = "string"; str[0] = 'z'; // could be also written as *str = 'z' printf("%s\n", str); While this works perfectly well: char str[] = "string"; str[0] = 'z'; printf("%s\n", str); Tested with MSVC and GCC.
Serenity makes it clear that colonists left Earth due to overpopulation and resource deficiency. And it's referred to as Earth-that-was. But do we have any indication that Earth is actually depopulated?
We know that Earth That Was became difficult to live on, so humanity spread out to terraform and colonize other worlds. Was Earth TOTALLY abandoned, or is it just a difficult environment?
It may be practical problem of the few beginners, the Problem i am facing is most of the tutorials are using reference images to model face, I also want to model my daughters face but i dont have the reference images like front view, side view, top view, etc also I do not know how to perfectly take photographs of my daughter face to model the same. Can someone shed some light on this problem.. Many thanks
I'm trying to model my face on Blender using and it gives links to reference photos. The thing is, as I mentioned above, I want to try and model my face. So I've decided to take photos of my face. But it doesn't seem to be working well (not symmetrical enough and stuff), so how exactly should I take my reference photos so that it would work well when I try to model it with the Mirror modifier? Note: I only have the 'webcam' on my Macbook Pro and the camera on my Hongmi phone and I don't want to spend money on a new camera.
As a neutrally charged particle, a photon shouldn't interact electrically with another charged particle. However, since photons are electromagnetic waves, they should interact with charged particles, both electrically and magnetically. Is this because the average in time of the electric and magnetic fields is zero? (physics student)
Two electrons, or an electron and a proton, interact with each other because of the Coulomb potential, which can also be seen in the Schrödinger equation (which is the equation that describes the motion for elementary particles). But how do an electron and a photon interact? Why can a photon kick up an electron to a higher atomic orbital, or why is a photon emitted when an electron jumps down to a lower orbital? A photon do not have any charge, so the interaction cannot be caused by the Coulomb potential. So what is it that causes the interaction, and how does that affect the Schrödinger equation? (Or well, the relativistic version of the Schrödinger equation, since we're dealing with photons.)
I got from texlive on windows 8.1 an error when I wrote some text in verbatim. The error was: (c:/texlive/2013/texmf-dist/tex/latex/lm/t1lmtt.fd) (c:/texlive/2013/texmf-dist/tex/latex/lm/ts1lmtt.fd) ! Package tikz Error: Sorry, some package has redefined the meaning of the math -mode dollar sign. This is incompatible with tikz and its calc library and migh t cause unrecoverable errors. See the tikz package documentation for explanation. Type H <return> for immediate help. But if I remove the verbatim mode the tex file can be compiled with no error. Could anyone help with this? Thank you in advance. EDIT: I've upload my tex to . In addition, my class file is .
I'm using semiverbatim with tikz in beamer. My following MWE throws error: ! Package tikz Error: Sorry, some package has redefined the meaning of the math-mode dollar sign. This is incompatible with tikz and its calc library and might cause unrecoverable errors. Any idea to resolve this issue. Thanks in advance. \documentclass{beamer} \usepackage{csed} \usepackage{tikz} \usetikzlibrary{shapes} \newif\ifshowanimation % The slides with animations take a long time to process. % They are omitted in handout mode. \showanimationfalse \newenvironment<>{exercise}{\begin{block}#1{Exercise}}{\end{block}} \newenvironment<>{notes}{\begin{alertblock}#1{Notes}}{\end{alertblock}} \newcommand*{\menu}[1]{\textbf{#1}} \newcommand*{\menuitem}[1]{\,$\to$\,\textbf{#1}} \definecolor{highlight1}{named}{yellow} \definecolor{highlight2}{named}{pink} \definecolor{highlight3}{named}{green} \definecolor{highlight4}{named}{orange} \definecolor{Red}{named}{red} \definecolor{Blue}{named}{blue} \pgfdeclareimage[width=0.95\textwidth]{backdrop}{images/background.jpg} \pgfdeclareimage[width=1mm]{pointer}{images/pointer.png} \pgfdeclareimage[width=0.18\textwidth]{startmenu}{images/startMenu.jpg} \pgfdeclareimage[width=0.34\textwidth]{programsmenu}{images/programsMenu.jpg} \pgfdeclareimage[width=0.495\textwidth]{submenu}{images/subMenu.jpg} \pgfdeclareimage[width=0.608\textwidth]{latexmenu}{images/latexMenu.jpg} \pgfdeclareimage[width=0.591\textwidth]{latexmenu2}{images/latexMenu2.png} \pgfdeclareimage[width=0.591\textwidth]{cmd1}{images/cmd1.jpg} \pgfdeclareimage[width=0.591\textwidth]{cmd2}{images/cmd2.jpg} \foreach \x in {1,...,46} { \pgfdeclareimage[width=0.84\textwidth]{tmkwin\x}{images/tmkwin-\x.jpg} } \pgfdeclareimage[width=0.75\textwidth]{saveAs1}{images/tex-28.jpg} \pgfdeclareimage[width=0.75\textwidth]{saveAs2}{images/tex-30.jpg} \pgfdeclareimage[width=0.75\textwidth]{saveAs3}{images/tex-32.jpg} \pgfdeclareimage[width=0.75\textwidth]{saveAs4}{images/tex-35.jpg} \pgfdeclareimage[width=0.75\textwidth]{saveAs5}{images/tex-36.jpg} \pgfdeclareimage[width=0.75\textwidth]{saveAs6}{images/tex-37.jpg} \begin{document} \begin{frame}[fragile] \frametitle{A Simple Document} \begin{example} \begin{semiverbatim} \textcolor<2>{Red}{\cs{documentclass}\annote<5-7>[offset=0.5in,voffset=1cm,pos=br,bg=highlight2]{[a4paper,12pt]}{Class options}\annote<4-7>[pos=br,bg=highlight1]{\marg{article}}{The class name.}} \vspace{-2\baselineskip}\alt<7>{\colorbox{highlight4}{\rmfamily Preamble}}{\strut} \textcolor<2>{Red}{\cs{begin}\marg{document}} \textcolor<3>{Blue}{\% This is a comment} \annote<6-7>[pos=cr,bg=highlight3,offset=0.4in]{\begin{tabular}{@{}l} This is a simple\\ document\cs{footnote}\marg{with a footnote}.\\ \\ This is a new paragraph. \end{tabular}}{The document.} \textcolor<2>{Red}{\cs{end}\marg{document}} \end{semiverbatim} \end{example} \end{frame} \end{document} Edited csed can be obtained from .
Is there a simple method for calling shell command line arguments (like ls or pwd) from within python interpreter?
How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?
Java 8 gives error message with Windows XP. Can it still be used? What are the latest issues? Windows xp is no longer supported but will Java 8 still work on Windows XP computers since so many people still have windows xp?
I just went to install Java 8 on my ancient laptop that runs Windows XP SP3. Java pops up a message: Java 8 requires a newer version of Windows. You may continue with the installation, but for Java to work as specified we recommend upgrading your computer's operating system. Will Java fail to work properly on Windows XP? Or is this just Oracle trying to be secure?
With classic Gnome, if one had two monitors, one could set up "separate X sessions" for each monitor. In this configuration, each monitor had a separate user login session and application windows were captive to the X session they were launched from. Is something similar possible with Gnome 3? If so, how do you go about setting it up?
Since modern PCs can use two screens at the same time I wonder if it is possible to plug in two keyboards and mouses as well to have the two screens run two (more or less) independent X-sessions at once?
I have a set of data that is essentially an array of coordinates (WGS84) and values. Example: 51.5834,-101.1709,0.0452,51.5834,-101.1567,0.0648,51.5834,-101.1425,0.0339,51.5924,-101.2133,0.0339,51.5924,-101.1992,0.0365 This data values are ~1.079km apart. Since it is approximate gdal_translate cannot be used. I would like to convert this data into a GeoTIFF that is projected into Web Mercator. I understand that some sort of gridding will have to occur. I believe the current system is using the dimensions of pixels (at zoom level 8) as a sort of gridding system. I may not be 100% correct as reading C++ code (especially this code) is very confusing. It calculates what pixel the latitude/longitude will intersect and applies the value there and somehow applies that to the GeoTIFF, which is then used to output tiles (using a Gdal2Tiles script) However, I would like to do this with the standard GDAL tooling rather then some custom C++ code. Is this possible? Basically taking a latitude/longitude/value CSV and converting that to a gridded Web Mercator GeoTIFF?
I have a huge amount of data in the form of CSV containing UTM coordinates as X and Y and an elevation value as Z information. I need to convert these data into a DEM as GeoTIFF for further analysis. In this case, a huge amount means 16 m. lines, with one point in X, Y and Z per line. The points are equally distributed, therefore an interpolation is not needed; each point just needs to be converted into a raster cell. The original data came without separator, with fixed column widths. I already figured out how to convert the file syntax to use a separator instead of fixed widths and eliminate all space characters, using the stream text editor sed. From here on, normally my workflow would be to import the data into ArcGIS by creating a feature class from the X, Y and Z data and as a second step, converting the point shapefile into a GeoTIFF, using the Point to Raster tool. However, the file I currently have is way too big for this process. Instead of the above described workflow, I was looking for an efficient alternative and discovered GDAL. However, in gdal_translate, the closest supported format I can find in the supported filetype list, is ASCII grid but no comma separated XYZ. Another difficulty is, that I have UTM coordinates, while most examples seem to use decimal degree coordinates. However, I need to stay within the UTM system (or at least, my output GeoTIFF needs to be in a UTM coordinate system). So I am looking for a way to convert the CSV XYZ into a GeoTIFF, using GDAL, but so far wasn't able to find examples dealing with this exact problem. I would be very happy for some hints or even code examples.
Working in overleaf, I get the error Misplaced \noalign but I can't seem to figure out why. Here's my code \begin{table}[H] \centering \begin{tabular}{|c|c|c|} \cline{2-3} \multicolumn{1}{c|}{} & \rowcolor{Gray} SEL0 & SEL1 \\ \hline \cellcolor{Gray} UART & OFF & OFF \\ \hline \cellcolor{Gray} SPI & OFF & ON \\ \hline \cellcolor{Gray} I2C & ON & ON \\ \hline \end{tabular} \caption{Communication module selection PN532 Breakout Board} \label{table:comModulePn532} \end{table} The error comes from the line \multicolumn{1}{c|}{} & \rowcolor{Gray} SEL0 & SEL1 \\ \hline
I want to use row coloring with \multicolumn. The MWE below works, but if I change to the commented, colored line, I receive a "misplaced \noalign". What do I wrong? \documentclass{article} \usepackage{booktabs,colortbl,xcolor} \begin{document} \begin{tabular}{p{1.7cm}p{1.3cm}p{1.3cm}p{1.35cm}p{1.35cm}p{1.35cm}p{1.35cm}p{1.7cm}} % \toprule % \multicolumn{1}{>{\rowcolor{lightgray}}c}{} &\multicolumn{7}{>{\rowcolor{lightgray}}c}{String length}\\ \multicolumn{1}{c}{} &\multicolumn{7}{c}{String length}\\ \rowcolor{lightgray} Function & 16,384 & 32,768& 65,536 & 130,072 & 262,144 & 524,288& 1,048,576\\ \midrule lower1 & 0.19 & 0.77 & 3.08 & 12.24 & 49.39 & 198.42 & 791.22\\ lower2& 0.0000 & 0.0000 & 0.0001 & 0.0002 & 0.0004 & 0.0008 & 0.0015\\ \bottomrule \end{tabular} \end{document} I was experimenting with a solution like this, because I receive strange table heading, like below. The code you suggested works fine in MWE, but in my real text, with copy&paste from the answer, it produces the strange heading. Any idea, what can change the behavior?
In the Player Handbook, under Spells Known of 1st-Level and Higher for the Eldritch Knight Fighter archetype, it states that: Whenever you gain a level in this class, you can replace one of the wizard spells you know with another spell of your choice from the wizard spell list. The new spell must be of a level for which you have spell slots, and it must be an abjuration or evocation spell, unless you’re replacing the spell you gained at 3rd, 8th, 14th, or 20th level from any school of magic (75). So, I've got a few questions here... If you choose the wizard version of the Magic Initiate feat and know a wizard spell that way, can you replace it at a higher level if you were so inclined? And if so, would replacing it be limited by the archetype's spellcasting feature, or would you be able to pick any spell since you learned it via extraordinary means? I DM on the regular and know how I'd rule at the table ("yes" and "limited to the rules in the spellcasting feature"), but I'm curious to see if the community knows something I don't.
For example, a character takes the Magic Initiate feat at level 4, picking spells from the Wizard spell list, because they have been researching and learning all they can about magic (such as a Sorcerer studying their inborn magic or a High Elf expanding on their Cantrip feature). It stands to reason that they would continue their research of magic over their next 16 levels, which indicates that they should learn new spells. At any point, can the spells chosen through the Magic Initiate feat be swapped out for other spells, according to the same Magic Initiate spell selection rules of two cantrips and one 1st-level spell?
i would like to know what is the exact relation between prime numbers and the zeta function. Thank you in advance !
In laymen's terms, as much as possible: What is the Riemann-Zeta function, and why does it come up so often with relation to prime numbers?
$$100a + 10b + c = a + b^2 + c^3$$ I've tried restricting the range of the values but I couldn't get a unique solution. I am looking for a formula if there is one. I wonder which is the best way to solve this problem.
$x^3 + y^2 +z=\overline{zyx}$, where $\overline{zyx}$ denotes the sequence of the digits. $x^3 +y^2 +z =100z+10y+x$,where $x,y,z>0$ The maximum value of $x$, $y$, $z$ individually can only be $9$. $\text{Maximum value}= 9^3 + 9^2 + 9 = 819$ So, $100z+10y+z<819$ Then I'm lost here a bit. What do I do next?
I ran the following code. #include <iostream> using namespace std; class Base { char c; public: virtual ~Base() { } }; int main() { cout << sizeof(Base) << endl; return 0; } 1) The size is 4 (for vptr) + 1(for char). But the result is 8. Why is it so ? 2) I replaced char with a int variable, still the output is 8. Can someone explain me what has caused this issue?
Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?
Is it known who originally introduced the term "machine" used in terms like machine learning, support vector machine or gradient boosting machine? Could it be defined as an "algorithm that fits a statistical model"? OLS could then be called "least squares machine"... Is there an official definition of the word "machine" in statistics?
Why are they called "machines"? Is there an origin to the word "machine" used in this context? (Like the name "linear programming" can be confusing but we know why it is called "programming.")
I am trying to install ant.exe application in Ubuntu 20.04. The error message what i am getting is: Setup cannot continue until all the system components have been successfully installed. Please help on this.
I want to install ANT from downloaded zip: apache-ant-1.9.6-bin.zip. How to do it ?
I've rendered my final scene but the emitting light from the bulb shows a weird pixelated shade at the base and on the bulb... however it seems like its clear in the viewport render. Any ideas? Is it the emission node? View port light looks clearer... Final render looks very pixelated...
Since the Denoise feature was added to Blender I only use the default setting with it and it really does the work. But sometimes the denoise is noticable on some of my renders. How can I overcome the blurred effect? Denoising for me is a big help because my system is quite aged.
"Nay", they said, "not if the Nameless One himself should come, not even he could enter here while we yet live." But some answered: "While we yet live? How long? He has a weapon that has brought low many strong places since the world began. Hunger. The roads are cut. Rohan will not come." The Lord of The Rings, The Return of The King - The Siege Of Gondor From other fantasy works (Askir, Discworld series has a version of him too), I know the Nameless One as the "evil" god that is the pattern of all thieves, assailants and up-to-no-goods, the antagonist of all other gods. In some religious systems, his name was banished by a collaborative effort of all other gods (similar to how names of Roman Emperors were banished). Who is the Nameless One and why is he called that way?
In the preface to The Lord of the Rings: A Reader's Companion, authors Wayne G. Hammond and Christina Scull mention a surprising fact: Dr. Richard E. Blackwelder once counted in The Lord of the Rings 632 named individuals (of which 314 are in the Appendices), a number which soars to 1,648 when one adds titles, nicknames, and descriptive epithets (Sauron alone has 103). - The Lord of the Rings: A Reader's Companion, p. xii I can think of several names and epithets related to Sauron: The Dark Lord, the Enemy, the Lord of Mordor, the Eye, the Nameless, the Great Foe, and of course, he is in fact the title character of the series - the Lord of the Rings. In other works, he is called Mairon, Annatar, the Necromancer, the Fair, etc. Robert Foster's Tolkien's World From A to Z: The Complete Guide to Middle-earth lists 32 titles, names, and epithets, only about a quarter of the number mentioned by Hammond, Scull, and Blackwelder. The Complete Guide to Middle-earth, Robert Foster, p. 438 But still, if you had asked me how many titles, names, epithets, etc, are attributed to Sauron, I probably would have said something in the neighborhood of 20. I was shocked to read that the number is so much higher: 103! Has anyone compiled a list of all these names, titles, epithets, and so on?
While using system.debug for a list I get an already output statement added in the logs as USER_DEBUG|[]|DEBUG|lstApprovalDetails (ApprovalDetails:[startDate=2002-01-03, status=Rejected], (already output)) CAppresponse.ApprovalDetails AppDet = new CAppresponse.ApprovalDetails(); for(Approval_RD__c appDetail:lstRD) { AppDet.startDate=string.valueof(appDetail.Start_Date__c); AppDet.status=appDetail.Status__c; lstApprovalDetails.add(AppDet); system.debug('lstApprovalDetails '+ lstApprovalDetails); } Wanted to know the meaning of this already output here .Thanks in advance
I am trying to add a list into an another nested list before adding values of a list to nested list it is getting the correct value but after adding i am getting (already output) in debug log when i checked. public List<String> fieldName {get;set;} public List<List<String>> fileValuesXML; // To get the field values of xml for(Dom.XMLNode child : SalesforceObjecet.getChildElements()) { objecetName = child.getText(); system.debug('Object Name in XML field ' + objecetName ); for(Dom.XMLNode subchild : child.getChildElements()) { system.debug('Sub child ' + subchild.getText() ); for(Dom.XMLNode subchildfield : subchild.getChildElements()) { system.debug('Sub child Field ' + subchildfield ); fName = subchildfield.getText(); fieldName.add(fName); //fileValuesXML.add(fieldName); //system.debug('Filed Name in XML field ' + fieldName); } system.debug('Filed Name before affing to filevalueXML ' + fieldName); fileValuesXML.add(fieldName); fieldName.clear(); system.debug('Filed Name after affing to filevalueXML ' + fileValuesXML); } } I am getting values in debug log as: Filed Name before affing to filevalueXML (AccountSource, field3) Filed Name after affing to filevalueXML ((), (already output), (already output))
My home wifi network has two Google Wifi access points (APs). My desktop computer is running Ubuntu 17.10 and is literally a foot from one of the APs. Unfortunately, instead of connecting to this close AP at 5GHz, it usually connects to the AP on the other side of the house at 2.4GHz, obviously creating a very slow and unreliable connection. I have two questions: Why would Ubuntu not automatically select the closer, stronger, faster AP? Assuming this isn't something that happens automatically, how can I force Ubuntu to choose the better AP? N.B. I found some related answers in the archives but they all seemed targeted to older versions of Ubuntu and Network Manager (pre-Gnome), and are no longer relevant. I'd prefer not to hardwire my computer because I have other equipment that needs to be hardwired and not enough ports.
It worked, the it dropped, then it worked, now it won't connect to wireless. Brand new Asus laptop that came with ubuntu is connected. The problem seems to be with Ubuntu. It keeps asking for authorization codes for my neighbors signals as well as my signal which the asus is connected to.
For a given trainer level; is the max CP going to be the same for all final evolutions such as Parasect and Pidgeot, or same for all 'stage 2' evolutions such as Parasect and Pidgeotto, or some clear pattern on which pokemon will have the highest CP at their max evolution? Max CP may be dependent on the particular Pokemon line (Pidgeot) or type (Flying) or rarity (how to determine easily??) or other factors. What I want to understand is, how can I figure out which of my captures is potentially much higher CP without actually evolving and leveling them.
It's clear that the evolved form of Pokemon have a far higher CP cap (and it looks like minimum too) but it would also seem there is a difference between different Pokemon. For example I have an Oddish at 184 CP which is at 50% of it's cap, and I also have a Ratata at 185 CP but it is far closer to its cap, around 90%. Which Pokemon have the highest CP caps?
Currently i am working with String manipulation and while doing demo i have found some different behaviour. Below is my code. public class HelloWorld{ public static void main(String []args){ String str1 = "Hello"; String str2 = "Hello"; String str3 = new String("Hello"); String strArray[] = {"Hello","Hello"}; String strArray1[] = new String[] {"Hello","Hello"}; System.out.println("str1==str2:: "+(str1==str2)); System.out.println("str1==str3:: "+(str1==str3)); System.out.println("strArray[0]==strArray[1]:: "+(strArray[0]==strArray[1])); System.out.println("str1==strArray[1]:: "+(str1==strArray[1])); System.out.println("strArray1[0]==strArray1[1]:: "+(strArray1[0]==strArray1[1])); System.out.println("str1==strArray1[1]:: "+(str1==strArray1[1])); System.out.println("args[0]==args[1]:: "+(args[0]==args[1])); } } And out put of above code is. I am running code passing command line arguments. java HelloWorld Hello Hello str1==str2:: true str1==str3:: false strArray[0]==strArray[1]:: true str1==strArray[1]:: true strArray1[0]==strArray1[1]:: true str1==strArray1[1]:: true args[0]==args[1]:: false Here i have two queries. if i compare reference of String str1==str3 then it will return false because str3 is created using new String so that will not reside in String pool, So how str1==strArray1[1] return true?? strArray[0]==strArray[1] will return true, strArray1[0]==strArray1[1] also return true then why command line argument args[0]==args[1] return false?? Please guide.
I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug. Is == bad? When should it and should it not be used? What's the difference?
The Schwarzschild radius involves an expression in terms of Newton's constant $G$, the mass $M$ inside a radius $r$, and the speed of light squared $c^2$. Current estimates of the universe's matter density are about six protons per cubic meter. But, the $M$ inside a sphere goes up as $r^3$, while the "time curvature" coefficient is $1 - \frac{2GM}{c^2\, r}$. So this coefficient is bound to hit zero for $r$ large enough. The $M$ outruns the denominator as a function of $r$. I calculated that this coefficient hits zero when $r$ equals 13.54 billion light years. Question: Is this any evidence for our universe being one very large black hole?
I was surprised to only recently notice that An object of any density can be large enough to fall within its own Schwarzschild radius. Of course! It turns out that supermassive black holes at galactic centers can have an average density of less than water's. Somehow I always operated under the assumption that black holes of any size had to be superdense objects by everyday standards. Compare the Earth to collapsing into a mere 9mm marble retaining the same mass, in order for the escape velocity at the surface to finally reach that of light. Or Mt. Everest packed into one nanometer. Reading on about this , it increases proportionally with total mass. Assuming matter is accumulated at a steady density into a spherical volume, the volume's radius will only "grow" at a cube root of the total volume and be quickly outpaced by its own gravitational radius. Question: For an object the , what would have to be its diameter for it to qualify as a black hole (from an external point of view)? Would this not imply by definition that: The Earth, Solar system and Milky Way are conceivably inside this black hole? Black holes can be nested/be contained within larger ones? Whether something is a black hole or not is actually a matter of perspective/where the observer is, inside or outside?
I'm trying to expand my root (/) partition in Ubuntu, but GParted will not let me change this. I've read several things about using the swap partition to accomplish this, but maybe I'm not doing this in the right order. I'm booting from a live CD. I need to add my unallocated space to sda5. Can someone tell me the order in which I need to proceed? Thanks.
I want to shrink my second (LVM) partition, in order to create a new partition in the newly freed space. I am using the Live CD to do so, because I know I can't resize/move this partition while it is in use. When I opened GParted in the Live CD, I realized that I could not resize the partition, because when I right-click it, the option "resize/move" is disabled. I tried to unmount it, to "lazy" unmount it (umount -l /dev/sda2) but it didn't work. A screenshot from GParted:
I created a 64-bit ubuntu 16.04.3 guest VM on a Windows 7 Pro 64-bit host using Oracle VirtualBox 4.3.12. (Ubuntu VMs won't even start in later versions of VirtualBox.) However the new VM only has a max screen size of 1024 x 768 compared to my 1920 x 1080 screen resolution. It's hard to work on a VM with such a small resolution. I tried the following steps after the install to allow me to use a higher screen resolution, but none worked: sudo apt-get update Restarted VM as requested. sudo apt-get install virtualbox-guest-dkms Restarted VM. sudo apt-get install virtualbox-guest-x11 This failed with unmet dependencies, including xserver-xorg-core, so I did: sudo apt-get install xserver-xorg-core sudo apt-get install virtualbox-guest-x11 Restarted VM. But now the VM starts up in an even smaller resolution (800 x 600?) and when I mouse over it the cursor disappears! Also, keyboard input is now ignored. Does anyone know (a) how I can interact with my VM again and (b) allow me to have a larger maximum screen resolution? I don't care whether the screen re-sizes automatically; I just want a larger resolution so my VM is usable. EDIT This isn't a duplicate of because that says to install the latest version of VirtualBox. Here's the error I get when I installed vbox 5.1.28 and try to start one of my ubuntu VMs: AFAIK Where I work no-one's ever succeeded in running an ubuntu VM on a version of VirtualBox > 4.3.12. Possibly due to a clash with corporate antivirus software as the error implies. Also, I first need to be able to interact with my VM via mouse or keyboard before I can install Guest Additions.
What is the best way to install Guest Additions with all the resize and clipboard and file sharing features on Ubuntu 16.04?
I have a scene with a lot of object names visible in the viewport. However, when I render a preview viewport animation, the names are no longer visible. I went through as many settings and preferences as I could, hunting around for an option that would allow me to render with object names visible, but I couldn't find anything. Is there a way to do this, and if so, how?
In my scene I have multiple objects (30+). In the viewport I have the handy control of selecting (in the Properties Editor) Object> Display> Name and copying to selected. This is beautiful for diagrams etc. as wherever my view is at whatever distance these labels have been placed instantly, always face me and are always the same size. How can you get these to display in a rendered view? Is the ONLY option to manually create a label for each object, get them to track to your camera (Probably have to track to an empty miles behind your camera rotation otherwise they offset if your camera isn't facing exactly front on to an object) and add some sort of scaling property to change depending on how far away you are?
I'm new on ubuntu and I'm having problems of fluidity. I've installed the latest version, 11.10 in 64 bits mode and my issue is that when booting normally, mouse and screen in general jump every five seconds or so, a bit nasty. But if i launch ubuntu from recovery mode, it goes perfect and smooth. Is there anyway of solving this or is just accept and choose recovery mode at every launch? Thanks.
I've just installed Ubuntu and I need either video, wireless, or some sort of other manufacturer (non-opensource) driver. How can I run the tool that will fetch all of these for me? I'd like graphical instructions. Related:
For the function $F(x) = \int_0^x |\cos(1/u)| du$, I want to determine if the derivative exists at $x=0$ and find $F'(0)$. I figured this out when the absolute value is removed using integration by parts: $$\frac{F(h) - F(0)}{h} = \frac{1}{h}\int_0^h\cos(1/u)du = \frac{1}{h}\int_{1/h}^\infty\frac{\cos(x)}{x^2}dx \\= - h \sin(1/h) + \frac{1}{h}\int_{1/h}^\infty\frac{2\sin(x)}{x^3}dx = -h \sin(h) + \frac{1}{h}O(h^2)$$ So $F'(0) = 0$ here. This breaks down for $F(x) = \int_0^x \cos(1/u)du$. Thank you for any help.
Does the limit $\lim _{x\to 0} \frac 1x \int_0^x \left|\cos \frac 1t \right| dt$ exists ? If it does then what is the value ? I don't think even L'Hospital's rule can be applied . Please help . Thanks in advance
I want to make a script that can import multiple pictures at once in the node editor. But the current file view can only support the import of a single file. How can you make it support multiple files? import bpy import os from bpy.props import StringProperty, BoolProperty from bpy_extras.io_utils import ImportHelper from bpy.types import Operator class OT_TestOpenFilebrowser(Operator, ImportHelper): bl_idname = 'test.open_filebrower' bl_label = 'Open the file brower(yay)' filter_glob: StringProperty( default='*.jpg;*.jpeg;*.png;*.tif;*.bmp', options={'HIDDEN'} ) some_boolean: BoolProperty( name = 'Do a thing', description= 'Do a thing with', default= True, ) def execute(self, context): filename, extension = os.path.split(self.filepath) print('selected file', self.filepath) print('file name', filename) bpy.ops.node.add_file(filepath = self.filepath) return {'FINISHED'} def register(): bpy.utils.register_class(OT_TestOpenFilebrowser) def unregister(): bpy.utils.unregister_class(OT_TestOpenFilebrowser) if __name__ == '__main__': register()
Is there a way in bpy to get a list of all selected files from the file browser? I have this code, but it is only for the active file selection: selectedFile = '' for screenArea in bpy.context.window.screen.areas: if screenArea.type == 'FILE_BROWSER': params = screenArea.spaces[0].params selectedFile = os.path.join(params.directory, params.filename) break
Does air resistance increase or decrease the period of a simple pendulum?
In my physics notes, it has been given that the damping force increases the period of oscillation. I am unable to understand this part. How is this possible? The only relation I know is that as the damping force increases the amplitude decrease. But how does this contribute to increased time period of oscillation?
The connotation of adjective 'appropriate' is positive, while that of the verb is negative. 1. What's this phenomenon called, though this question allows any part of speech (and not just an adjective and verb, as above)? I ask this so that I can try to find lists of such words. 2. Why? Does the etymology depend on each word, or is there a more general theory?
I am looking for a list of all English words that are their own antonyms. Off the top of my head, I can only think of "either", "fast", "to dust" and "to lease", but there must be dozens more. Can you provide a link to a comprehensive list, if such exists? Also, what are such words most commonly called? I like the term "Janus word" I once heard, but is that widely understood? Edited by popular demand to make it absolutely clear that this is not a community wiki poll.
This question is related to the question asked here: . Around 4 months ago, I submitted a paper to a Math journal for peer-review through an online submission system. The same day I received in my e-mail an acknowledgement message saying that the paper had been received. The status of the paper on the online submission system is still "Manuscript submitted", and the paper has not been assigned to an editor yet. One month ago, I sent a polite email asking for the status of the paper, but I got no response. Should I send a second email in the regular way (that is to say, not using the journal's online system)? Is it possible that things go slower during this time of the year (due to holidays or something)?
Around 3 months ago, I submitted a paper to a Math journal for peer-review through an online submission system. The same day I received in my e-mail an acknowledgement saying that the paper had been received. The problem is that the status of the paper on the online submission system is still "Manuscript submitted". I think this means that the paper has not even been assigned to an editor yet (once this happens, the editor will probably start looking for reviewers), but as far as I know submissions are assigned to editors within a few weeks (I once submitted a paper to another journal and when an editor had been assigned, the status on the online system changed to "Editor handles" or something like that). I know that publishing is a long and complicated process and I'm not trying to rush anybody, but sometimes manuscripts are lost in the system. In fact, this has once happened to me, so I just want to make sure that the paper was not lost in the system. Should I send an e-mail asking for the status of the paper? PS: I think that, at the time of submitting the paper, I didn't choose any specific editor to submit the paper to.
so I'm teaching myself jQuery recently and I just came to the chapter of AJAX. There is an example showing how to check the validation for phone number and I don't know what's going on and how it works. Here is the snippet of code: // Validate a phone number field $( "#form" ).submit(function( event ) { var inputtedPhoneNumber = $( "#phone" ).val(); // Match only numbers var phoneNumberRegex = /^\d*$/; // If the phone number doesn't match the regex if ( !phoneNumberRegex.test( inputtedPhoneNumber ) ) { // Usually show some kind of error message here // Prevent the form from submitting event.preventDefault(); } else { // Run $.ajax() here } }); What I don't understand is this: var phoneNumberRegex = /^\d*$/; I did some research for phone number validation and it all has something like this: a pair of "/ /" and some stuff between them and I've never seen this before, anyone can explain what is going on here and why it works? Any help will be appreciated, thank you!
I don't really understand regular expressions. Can you explain them to me in an easy-to-follow manner? If there are any online tools or books, could you also link to them?
I am playing around procedural rust material in Blender and want to apply the material to my sword model so it looks rusty and old to further export it as glb or gltf this is my node setup The required result that I am looking for The resulted gltf export I have tried baking the material into a texture file and then exporting still same result.
I created a interior scene and i don't know how to bake a texture using cycles bake.
I have a report with several chapters. \documentclass[12pt,letterpaper, notitlepage]{report} \chapter{Title of chapter 1} \label{chap:1} \chapter{Title of chapter 2} \label{chap:2} Now what I want is to be able to reference to each chapter using something similar to \ref{chap:1} but instead of giving me the chapter number I want it converted to "first", "second", etc. Something along the lines of: In the \ref{chap:1} chapter, I show that (...) Which would become: In the first chapter, I show that (...)
Is there a macro available that will turn "1" into "first", "2" into "second", etc. Let's call this macro "wordth". Then, for example, if item number 2 in an enumerate environment is labeled by \label{item:blah}, I could write something like The \wordth{\ref{item:blah}} item is problematic. which would be formatted as "The second item is problematic." (Bonus points for other languages, but I only need it for English.) points to the package for turning "1" into "1st", etc. The package also does this. Neither appears to provide fully spelled out English ordinals. In many situations only full words for ordinals, not their abbreviations, are appropriate. This is probably a FAQ, but it's one of those things that's difficult to search. Feel free to point to a dupe question and close.
I was debugging some code that had some never-ending loop issues, and I sometimes couldn't figure out how to make informative print statements to help identify which loop was broken. An example case is: def fake_function(): print 'I am about to enter a broken loop.' while True: # Doesn't matter what I'm doing here. _ = None When I then call fake_function, I don't get any output until I halt it. A slightly larger example that might show why I wanted this looks like: def another_fake_function(): # This loop is fine and not broken. print 'I am entering a loop that might be broken.' leave_loop = False while not leave_loop: # Do a thing. leave_loop = True # This loop actually is broken. print 'I am about to enter a different loop that might be broken.' while True: # Doesn't matter what I'm doing here. _ = None So, is there any way to really force python to print something immediately? Thanks!
How do I force Python's print function to output to the screen?
I have windows 10 installed on partition 4 which is hibernated (but I'm able to mount it in read-only mode from Linux), but I cannot boot into it because I had removed the Windows bootloader. I also have Linux Mint 17.1 installed on partition 5 (into which I regularly boot). I need to boot into Windows 10 but I can't figure out how. I have tried lots of things including using boot-repair, adding menu-entries to grub's menu manually (as mentioned ), and some other things mentioned in Linux forums. I have been searching for a solution for a long time. Lots of solutions include the usage of "Windows recovery disks" and/or usage of Windows software, however I can't do any of that. All I have with me is Linux Mint and a non-bootable but mountable Windows 10. This is the output of parted -l Model: ATA ST1000LM024 HN-M (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 683MB 682MB ntfs Basic data partition hidden, diag 2 683MB 955MB 273MB fat32 EFI system partition boot 3 955MB 1089MB 134MB Microsoft reserved partition msftres 4 1089MB 861GB 860GB ntfs Basic data partition msftdata 8 861GB 863GB 1074MB linux-swap(v1) 5 863GB 970GB 107GB ext4 Basic data partition msftdata 6 970GB 971GB 867MB ntfs hidden, diag 7 971GB 1000GB 29.5GB ntfs Basic data partition hidden, msftdata Edit: is the new boot-info summary by boot-repair. I have Grub bootloader currently which shows only the Linux Mint 17 entry. Any help will be greatly appreciated!
I installed Windows on my computer, followed by an installation of Ubuntu. However, now I'm unable to boot into my Windows install. What can I do to fix this?
So, I've been getting used to animating, But, I Can't find a way to make more then 10 layers. I want to do this to make cool flip book animations.
Is it possible to use more than 20 Scene layers or Render layers in Blender?
In light of downvotes and comments it seems like I should delete this question, in hindsight it is obviously too vague. But when I tried to delete it, I was presented with a dire warning about deleting any question with an answer -- this might result in being banned from asking questions! If any moderator wishes to delete this question, go right ahead -- I regret having asked it. I would like to venture into BGE, but given my complete ignorance of game design software I think I'll need some tutorials, examples, etc. Can anyone recommend their favourite Absolute Beginner's Guide to BGE, preferably video format? I have a CGcookie membership so can access their stuff, but have not been able to find anything there that fits the bill :-( I'm also aware of the excellent ebook N00b to Pro, which has been very helpful to me in the past, but I thought a video overview might get me started faster, and a couple of recommends for really good ones would be even better.
Since asking for tutorials, videos, resources, links to other content or downloads is considered off topic here, this is a specifically created Community Wiki which gathers resources for Blender and it has been approved by the . Just write in the appropriate answer/section. If you have concerns, questions, post a question, so we don't clutter the comments, but you can link your meta question from the comments. Questions regarding such resources are not allowed anymore, except for very specific and on topic requests (ask on if you're unsure about your question). Follow the instructions made in the question about how to post, what can be posted, etc. Learning Assets (also see: ) Reference Images/Blueprints (also see: ) Tools (also see: ) Other Special Interest () Also see the .
I was reading a book called “BOMB” and the number 100,000,000,000,000,000,000 and I wanted to know what this number is in word form (how you say the word).
One of the answers in a reading exercise in my class today was: 100,000,000,000,000,000,000 ... which was the value of the highest denomination note ever issued. It was a 100,000,000,000,000,000,000 Pengo note, issued by Hungary in 1946. The students in my class wanted to know how they could say that last sentence in words in English. So I told them that I didn't know. They pointed out to me that if they wanted to read this bit of writing to someone they'd want to be able to use the words. Fair point. Can anyone help? [In case you're interested, a 100,000,000,000,000,000,000 Pengo note was worth about $0.20!]
I have a domain registered with Dynadot and I'd like to use my GoDaddy hosting to build the site to save having to pay out for more hosting. I'd need to set it up on a subdomain e.g. subdomain.example.com, how do I point my Dynadot domain to that subdirectory?
I just purchased a domain on Dreamhost, let's say foo.com. I already have hosting, let's say at 123.4.56.789, and have setup a directory foo.com which is accessible at 123.4.56.789/foo.com/. I can set the DNS to point foo.com to that IP, but how do I route it to that folder once it's there? My hosting has a really bad cPanel that gives me almost no help. Can I use .htaccess, or something else? What's the best way to accomplish this? Edit in response to comment(s): It's VPS hosting, so I have access to http.conf and other system files. Also, yes it's Apache.
The following comes from Wikipedia. It looks very strange to me since this "ring" seems to have nothing to do with the "ring" in abstract algebra. $(\cal R, \bigcup)$ is not an Abelian group (no inverse element if empty set is chosen as the identity), and $(\cal R, \backslash)$ is not a monoid (does not satisfy associativity). Am I right? Then why this thing is called a ring? Thanks!
"Ring" and "semiring" are concepts defined both in algebra and set theory. In Algebra A is a set R equipped with two binary operations + and · called addition and multiplication, that Addition (+) is abelian, Multiplication (⋅) is associative, Multiplication distributes over addition, and Multiplicative identity (1) exists. A , is an algebraic structure similar to a ring, but without the requirement that each element must have an additive inverse. In Set theory A is a family of sets closed under unions and set-theoretic differences. That is, it obeys the two properties $$A \setminus B \in \mathcal{R} $$ $$A \cup B \in \mathcal{R}$$ This implies that it is also closed under intersections, $$A \cap B \in \mathcal{R}$$ A is a non-empty collection S of sets such that $\emptyset \in S$ If $E \in S$ and $F \in S$ then $E \cap F \in S$. If $E \in S$ and $F \in S$ then there exists a finite number of mutually disjoint sets $C_i \in S$ for $i=1,\ldots,n$ such that $E \setminus F = \bigcup_{i=1}^n C_i$. I wonder, are such definitions somehow linked or equivalent? or they are just coincidence that both fields of mathematics used the same terms?
I just read the following article on what passing by reference and passing by value means: So just to make sure I'm understanding correctly... Does that mean that calling by value in functions will NOT alter the original inputs, only a local copy of that input? However, since in Java and Python, the values are actually references to values, does that mean calling by value in functions WILL alter the original inputs?
I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?
I had my mesh mirrored correctly at first but then I decided to work on the hand in a different layer (Two) and then copy past it back to layer 1. I then selected both meshes and pressed Ctrl+J to merge the 2 into 1 in object mode. However I forgot to apply the mirror modifier before merging the 2 (not that I thought that would matter) and the mirror modifier disappeared so I go on to connect the hand to the arm in edit mode change back to object mode select all and add another mirror modifier. Y axis: Top view of when morring Y axis: I've tried all Axis and they all seem to be mirroring weirdly in a diagonal fashion. Things I've tried already I've selected all vertices that run along the center from top to bottom on the Z axis then Pressed Shift+S and selected "Cursor To Selected" followed by Shift+Ctrl+Alt+C selected "Origin to 3D Cursor" and still have the same results.
I have 2 objects a face and an ear. Mirror modifier works fine for the face. But when I use mirror modifier to duplicate the ear on X axis, it duplicates on Z axis. And when I use mirror modifier on Z axis it mirrors on X axis. How to correct the axis orientation?
I have an abstract presented by my colleague at a local conference. I got an email from a company called David Publishing Company claiming that they are interested in publishing our paper in the Journal of Materials Science and Engineering A, B they had? Things look suspicious for me and I want to know if anyone has an idea about their legitimately as a science publisher. they claim to have a peer-reviewed process but they charge money as publication fees.
. While the reasons for his doing this are not yet public, this is a real loss of a valuable service. Does anyone know of similar services available to the general public? Edit: is definitely relevant, but that approach is more appropriate for finding top journals rather than identifying bottom ones. I.e., following that method would probably exclude lots of valid, lower-tier journals. Are there any approaches to easily identifying a predatory publisher?
I am trying to create a d3 Chart from third party JavaScript file, calling the JavaScript function from Salesforce lightning component on afterScriptsLoaded event. <ltng:require scripts='/resource/nv_d3_min_js,' afterScriptsLoaded="{!c.loadD3Chart}" /> and from loadD3Chart component function I am calling third party JavaScript function for generating the chart. It's working perfectly fine when I load the page first time but when I come back to the page from another page it's not loading the chart on the page. ex. In the home page, the chart is working fine but when I go to another page suppose Opportunity page and then come back to the home page by clicking Home menu, that time the third party JavaScript function is called but chart is not loading on the page. I am new in Salesforce Lightning.
I have a requirement where I use in Lightning and I have implemented the same as below code. I created a Lightning Tab from this component and used in Lightning Experience. Component: <aura:component implements="force:appHostable"> <ltng:require scripts="/resource/treeTable/treeTableJS.js" afterScriptsLoaded="{!c.loadScripts}"/> <aura:attribute name="temp" type="String" default="none" /> <aura:attribute name="content" type="String[]" default="item1,item2,item3,item4" /> <table id="table"> <tbody> <tr data-tt-id="parent"> <td><ui:button label="Click" press="{!c.selectClick}" /></td> <td>Content</td> </tr> <aura:iteration items="{!v.content}" var="item" indexVar="index"> <tr data-tt-id="{!'child'+index}" data-tt-parent-id="parent"> <td></td> <td>{!item}</td> </tr> </aura:iteration> </tbody> </table> </aura:component> Controller: ({ loadScripts : function(component, event, helper) { $("#table").treetable({ expandable: true }, { force: true }, { initialState: "collapsed" }); }, selectClick : function(component, event, helper) { if(component.get("v.temp")==="none"){ component.set("v.temp","plus"); $("#table").treetable("expandNode", "parent"); } else{ component.set("v.temp","none"); $("#table").treetable("collapseNode", "parent"); } }, }) Now about the issue, when I use this in Lightning tab first time it works (meaning straight forward scenario), but now from this page I navigate to any standard record page (be it Accounts record page) or even Home page and come back to this lightning tab, it does not work. We have to refresh the page to make it work again. Any resolve so that we don't need to refresh the page? Please help. Note: Lightning Locker service is disabled.
I have the table ABC with the following data Id Name Date Execution id -- ---- --------- ------------- 1 AA 09SEP2019 11 1 AA 08SEP2019 22 1 AA 07SEP2019 33 2 BB 09SEP2019 44 2 BB 08SEP2019 55 2 BB 07SEP2019 66 And I want to get for every distinct ID in the table its max date. So the result set must be as the following Id Name Date Execution id -- ---- --------- ------------- 1 AA 09SEP2019 11 2 BB 09SEP2019 44 The query that returns the result I need WITH MaxDate as ( SELECT Id,Name,Max(Date) from ABC group by Id,Name ) SELECT view1.*, view2.exection_id from MaxDate view1, ABC view2 WHERE view1.date=view2.date and view1.name=view2.name; I don't like to get the max date for the distinct ID by this way. May be there is another way ? Might be there is more easiest way?
Table: UserId, Value, Date. I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle) Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.
How should Kerberos Authentication be setup with IPv6? Of you're using NAT for IPv6 where there is a single public IPv6 address and it translates to the machines inside in the ULA range?
How should Kerberos authentication be set up with IPv6? What implications are there when client devices each use a public, globally routeable IPv6 IP address? What changes when setup this way instead of using a NAT as was the norm with IPv4?
I want to rename my current terminal tab - window title. Please help me how to do it either using CUI or GUI.
Is there a way to set the gnome-terminal title from within the terminal itself without having to right click on the tab. Something like: active-terminal --title "Foo" There was a related question previously with an answer that almost lets you do this: but that doesn't set the gnome-terminal tab title only the window title.
I would like to include some bib references as tooltips in my beamer slides. (I do NOT want a tooltip to appear for every \cite{}.) I have started to use pdfcomment for tooltips as it seemed the simplest of those I looked at (cooltooltips, fancytooltips, pdfcomment). I'm using Win 7, WinEdt 10, MikTeX 2.9. I've been trying PDFLaTex + Biber + PDFLaTeX. Here is a MWE: \documentclass{beamer} \usepackage[natbib=true,backend=biber]{biblatex} \usepackage{pdfcomment} \usepackage{filecontents} \begin{filecontents}{bib.bib} @BOOK{dav-mac-93, AUTHOR = "Russell Davidson and James G. MacKinnon", TITLE = "Estimation and Inference in Econometrics", PUBLISHER = "Oxford University Press", YEAR = "1993", address = "New York", } \end{filecontents} \bibliography{bib} \begin{document} \begin{frame} I want the reference in this tooltip to be resolved. \citet{dav-mac-93} \pdfcomment{Resolve this reference: \citet{dav-mac-93}} \printbibliography \end{frame} \end{document} Is it possible to compile bib references in pdfcomment, or do I need another package?
I thought it would be useful to have bibliographic entries displayed as a tooltip so readers are not interrupted by following hyperlinks or trying to find the Bibliography, so I created the following command: \newcommand\annocite[1]{\pdfmarkupcomment[markup=Underline,subject=Citation] {\parencite{#1}}{\fullcite{#1}}} Unfortunately this does not work. Instead of showing the bibliographic entry in the popup, it merely displays the citation key; i.e., the \fullcite command seems to have no effect. I believe the problem is related to argument expansion. Here is a MWE: \documentclass{article} \usepackage{biblatex,pdfcomment,filecontents} \bibliography{\jobname} \newcommand\annocite[1]{\pdfmarkupcomment[markup=Underline,subject=Citation] {\parencite{#1}}{\fullcite{#1}}} \begin{filecontents}{\jobname.bib} @article{Bli74, author = {Blinder, Alan S.}, year = {1974}, title = {The economics of brushing teeth}, journaltitle = {Journal of Political Economy}, volume = {82}, number = {4}, pages = {887--891}, } \end{filecontents} \begin{document} Hover over this citation: \annocite{Bli74} The tooltip should contain the following text: \fullcite{Bli74} \end{document} Can anyone think of a solution, or better, a way to redefine biblatex' citation commands (e.g., \parencite, \cite) to do this automatically?
I get a black screen with the following text when booting Ubuntu 18.04. GNU GRUB version 2.02 Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions. grub> _
This is what I see: GNU GRUB version 2.02~beta2-9ubuntu1 Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions. grub> _ What should I do now?
I'm making a simple game to learn how to use Android Studio. The objective of the game is to do some simple tasks as fast as possible. In my main game screen, I have a thread that makes an int count up every second, so the player knows how much time has gone by. When the player has done all the simple tasks, the game goes to the end screen. Now I want to display the time in the endscreen, so the player knows how fast they finished. I get an error when I run the game. This is the code to run the thread every second: Timer d = new Timer(true); thread1 thread1 = new thread1(this, myCanvas); t.scheduleAtFixedRate(thread1, 0, 1000); This is the tick function that the thread does every second: public void tick1(){ timer++; } This is the getter for the timer: public int getTimer(){ return timer; } When the game ends and it goes to the endscreen, I use the getTimer() to have a textview that should display the timer: err = (TextView)findViewById(R.id.textView); err.setText("Tijd: "+ timer+""); This is the error message I get when I try to run it: 2021-03-06 11:18:38.153 21729-21729/com.example.test_game E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.test_game, PID: 21729 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test_game/com.example.test_game.Eindscherm}: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.example.test_game.MyCanvas.getTimer()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3792) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3968) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:246) at android.app.ActivityThread.main(ActivityThread.java:8506) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.example.test_game.MyCanvas.getTimer()' on a null object reference at com.example.test_game.Eindscherm.onCreate(Eindscherm.java:24) at android.app.Activity.performCreate(Activity.java:8198) at android.app.Activity.performCreate(Activity.java:8182) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3765) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3968)  at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)  at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)  at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)  at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loop(Looper.java:246)  at android.app.ActivityThread.main(ActivityThread.java:8506)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
I keep getting this output when I run sudo apt-get update: Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'security.ubuntu.com' Err:2 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease Temporary failure resolving 'ppa.launchpad.net' Err:3 http://et.archive.ubuntu.com/ubuntu xenial InRelease Temporary failure resolving 'et.archive.ubuntu.com' Err:4 http://et.archive.ubuntu.com/ubuntu xenial-updates InRelease Temporary failure resolving 'et.archive.ubuntu.com' Err:5 http://et.archive.ubuntu.com/ubuntu xenial-backports InRelease Temporary failure resolving 'et.archive.ubuntu.com' Reading package lists... Done W: Failed to fetch http://et.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'et.archive.ubuntu.com' W: Failed to fetch http://et.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'et.archive.ubuntu.com' W: Failed to fetch http://et.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'et.archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Failed to fetch http://ppa.launchpad.net/certbot/certbot/ubuntu/dists/xenial/InRelease Temporary failure resolving 'ppa.launchpad.net' W: Some index files failed to download. They have been ignored, or old ones used instead. How this problem can be fixed?
Err http://archive.canonical.com natty InRelease Err http://security.ubuntu.com oneiric-security InRelease Err http://extras.ubuntu.com natty InRelease Err http://security.ubuntu.com oneiric-security Release.gpg Temporary failure resolving ‘security.ubuntu.com’ Err http://archive.canonical.com natty Release.gpg Temporary failure resolving ‘archive.canonical.com’ Err http://extras.ubuntu.com natty Release.gpg Temporary failure resolving ‘extras.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric InRelease Err http://gb.archive.ubuntu.com oneiric-updates InRelease Err http://gb.archive.ubuntu.com natty-backports InRelease Err http://gb.archive.ubuntu.com oneiric Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric-updates Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com natty-backports Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ Reading package lists... Done W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/InRelease W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/InRelease W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/InRelease W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/InRelease W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/InRelease W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/InRelease W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/Release.gpg Temporary failure resolving ‘archive.canonical.com’ W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/Release.gpg Temporary failure resolving ‘security.ubuntu.com’ W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg Temporary failure resolving ‘extras.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Some index files failed to download. They have been ignored, or old ones used instead. This is what I'm seeing when I try to run sudo apt-get update. I did an update on my instance yesterday and am now experiencing this.
Photons are considered massless so how do they interact with gravity? According to Einstein Relativity, only curvature of space is responsible for bending of light rays. If so, and mass to mass interaction is useless, is considering gravitation a force pointless?
I understand that a black hole bends the fabric of space time to a point that no object can escape. I understand that light travels in a straight line along spacetime unless distorted by gravity. If spacetime is being curved by gravity then light should follow that bend in spacetime. In Newton's Law of Universal Gravitation, the mass of both objects must be entered, but photon has no mass, why should a massless photon be affected by gravity in by Newton's equations? What am I missing?
One of my websites is listed in the Google index (1st page 4th position till yesterday) for the keyword "Mobile app development company". Today I can't see my website in the first three pages of results (30 results) for the same keyword. What may have happened? What is the reason behind it?
There has been a significant drop (90%) in traffic from Google to one of my well-established sites (6+ years) in the last week. Searches show that the top 3 wide keywords all dropped 4 spots. Searches for other keywords do not show ANY results in the first 10 to 25 pages of results, while previously one 1st or 2nd page at most. Since there are , the question really is: What steps are necessary to figure out what caused such a drop? There have been no major changes during this period or the last month on the site and certainly not in the homepage which has dropped in rank. Over all the years of running this site and plenty of others, I have never experienced this. There are is duplicate content on my site and I have rigorously used canonical links for the last few years to ensure it is not misinterpreted as such.