How long will it take for my baby dragon to mature

I recently found a baby dragon in the mountains and managed to befriend it and i was wondering how long it would take for it to mature


Changing/adding keyboard shortcuts in ArcMap?

How can I change or add keyboard shortcuts in ArcMap?   I have tried Customize --> Customize mode --> Commands --> Keyboard. However, this does not seem to actually work. I can add shortcuts and link them, but nothing happens when I use them even though they seems to be saved (my created shortcut still shows up after restarting Arcmap).  I'm not using English keyboard layout so, for example, I can't use the [Ctrl] + [Shift] + [=] for Zoom to selected features, since I need Shift to even get a =. It would be really useful to be able to change or add alternative shortcuts for the tools I use regularly.   Does anyone know how? Preferably something within Arcmap, but if it comes down to writing an AutoHotkey script that'll work too if you can give me some hints.  There are a few questions relating to  already, but none that I found is giving me a useful answer. I have also looked at all the lists of shortcuts that's been implemented, both on ArcGIS Resources Online and . No hints on how to change the shortcuts though.  COMMENT: If the shortcut includes [ALT GR] it doesn't seem to work properly.


How to send special characters to php server

I am traying to send special characters to a php server. I tried with angular and with jquery getting the same result:  myClient.js with JQuery:  data = "Ñoñón"; dataToSend={special_word: data}; $.ajax({       type : 'POST',   url  : 'myServer.php',   data : dataToSend,   success :  function(response){     console.log(response);  } });   myServer.php for JQuery client:  $special_word =mysqli_real_escape_string($mysqli, $_POST["special_word"])); saveWordInDB($special_word); echo $special_word;   myClient.js with angular:  data = "Ñoñón"; dataToSend={special_word: data}; $http.post('myServer.php', dataToSend) .then(    function(response){      // success callback      console.log(response.data);    },     function(response){      // failure callback      console.log(response);    } );   myServer.php for angular client  $postdata = file_get_contents("php://input"); $request = json_decode($postdata); $special_word = $request->special_word; saveWordInDB($special_word); echo $special_word;   In both cases, the word "Ñoñón" is not stored in the DB, but the word "Ã±oÃ±Ã³n" its stored instead. The same occurs with the word showed in the console. How can this be fixed?  Thanks in advance!


Black artifacts on white posts but no doubles to remove

As you watch the video, the first visible white post is  pure white. But the others that are seen next have black speckles. I have tried to remove all doubles but there weren't any to remove.    So much is riding on me getting this video finished. Any help would be appreciated.  Thanks so much for your time!


How to configure the default automount location?

I recently upgraded from Mint 12 to Ubuntu 12.10 + Cinnamon.  I have an external usb drive that when I plug it in, automatically mounts to /media/[username]/Backup/.  Thing is, under Mint, it didn't include the [username] portion.  It just mounted to /media/Backup.  My question is, how do I switch back to that format?  I don't need the drive mounted under my username.  Just under media.  Thanks in advance.


rule for compound verbs and pronoun substitution

These statements are ok:   "I looked George up." "I looked up George." "I looked him up."   But this is not ok: "I looked up him."  In this case, it's not possible to substitute the pronoun "him" for "George". What rule prohibits this substitution?


How can I achieve large bubbles in my bread?

No matter what I do, my recipe produces bread that is pretty dense, I get none of those nice huge holes in the crumb. My recipe goes like this:   500g flour (300g wheat, 200g rye) 350ml water 2 tbsp vinegar two pinches of salt I use 1 packet of dry active yeast (for 500g of flour) or fresh yeast (20g)   I typically use my my stand mixer w/ dough hook to mix this for about 5-10 minutes. Then let it proof for 20 minutes, flatten and let rise for another hour. Then I bake the bread starting at 260 celsius for the first ten minutes, then decreasing to 200-200 until finished. I create steam at the beginning by pouring hot water on a baking tray.  What could possible be wrong with my recipe that prevents me from getting crumb like this? Is that only achievable with sourdough starter? I experimented with that for a while and my results were a little bit better, but not quite where I want to be.


can someone explain this rule to me, please?     A few collective nouns  (public,infantry etc) occur in the singular, but are followed as a rule by a plural verb, though a singular verb is also possible. This is about agreement of subject and predicate


What does the combination ^foo^bar do in Bash?

I recently saw a video where someone executed ^foo^bar in Bash. What is that combination for?


Would Nagini have become the master of the Elder Wand?

Voldemort ordered Nagini to kill Snape in hopes of claiming the Elder Wand's ownership.  Let's suppose that Snape was indeed the owner.  In this scenario, would the Elder Wand's ownership truly pass to Voldemort?  I ask this because, after all, the one who overpowered Snape was Nagini, not Voldemort.   Voldemort ordered Nagini to kill Snape. However, this would be equivalent to ordering a Death Eater to kill Snape, in which case the Death Eater would gain the ownership - in a similar manner, Nagini is the murderer. Nagini isn't a "spell": remember how Draco summoned a snake to attack Harry back at CoS? If that snake kills Harry, I'd imagine that Draco gains the ownership (if Harry had the Elder Wand) because that snake was a "spell" casted by Draco - but this time is different, because Nagini isn't a "spell" casted by Voldemort, but rather an actual third-party creature.   The curious thing is that Voldemort did cast some sort of spell (he flicked his wand), which I think caused Nagini's barrier to break so Nagini could kill Snape. In some way, Voldemort did provoke Snape's death - however, it was mostly indirectly.  So, would the ownership pass to Nagini or to Voldemort? If it passes to Nagini, would the Elder Wand's "ownership cycle" end, or would it continue if Voldemort decides to kill Nagini?    The simplified version of this question is: if an animal kills the owner of the Elder Wand, what happens to its ownership?


If $H$ is a cyclic subgroup of $G$ and $H$ is normal in $G$, then every subgoup of $H$ is normal in $G$.

Exercise 11, page 45 from Hungerford's book Algebra.     If $H$ is a cyclic subgroup of $G$ and $H$ is normal in $G$, then every   subgroup of $H$ is normal in $G$.   I am trying to show that $a^{-1}Ka\subset K$, but I got stuck. What I am supposed to do now?  Thanks for your kindly help.


All of my content nodes are showing up as public /content dump pages?

I'm not sure if I can explain this correctly, I just started working in Drupal 7 last week, and I'm working with an established site.   We sell products. Each individual model is classified as a content type, but does not have its own URL. Somehow we have /content pages (like ourwebsite.com/content/model#) visible to the public that contain all of the information on each model, just dumped into an ugly list. These pages are ranking in Google and getting traffic. I don't know why they are visible, I've tried turning off URL alias and it doesn't work. I know I can do redirects, but we have over 1500 models and that would take a very long time. I'm wondering if there's a node or view setting somewhere that I'm missing.   Thank you!


The majority of my iCloud storage is in backups. 4.2GB in backups for my iPhone & iPad. Is this typical, 'cuz it seems like a lot to me?


Can you retrain the Magic Initiate spell using the Spellcasting feature?

got me thinking about the mechanics of the Magic Initiate feat when you have class levels in the class into which you were inducted.    Among the classes you can pick with this feat are the Bard, Sorcerer, and Warlock, which know a limited number of spells and all have the same statement under Spells Known.     Additionally, when you gain a level in this class, you can choose one of the [class] spells you know and replace it with another spell from the [class] spell list , which must also be of a level for which you have spell slots.   The term "learning" is used both to describe new spells acquired on level-up and the spell acquired through the feat. This would seem to indicate your Magic Initiate spell counts among the spells you know, and is thus eligible for retraining if you learned it as a spell of your class.  An odd change in wording occurs during the Magic Initiate feat description (emphasis mine):     In addition, choose one 1st-level spell from the same list. You learn that spell and can cast it at its lowest level.   This generalization in describing the learned spell's level seems to imply that there exists a scenario where it would not be appropriate to restrict the spell to being cast as a 1st-level spell.  Could one of the charisma casters retrain Magic Initiate into a higher level spell, which they could then cast once per long rest without using a slot?  This would turn an otherwise unexciting feat into, effectively, a Mystic Arcanum for Bards and Sorcerers. This seems too powerful to be intentional,  but the feat description appears to have gone out of its way to permit it.


I'm trying to separate out records in a quasi-summarized table.   Currently, my features are geocoded address points. Each address point has one record associated with it with a field showing how many trees were planted at the property. Most of the time there will only be one tree per property but sometimes there are multiple trees planted at the property.   Ideally I'd like to separate/expand my records so that the number of attribute records for a particular address reflects the number of trees planted at that address.   For example, if property A has 3 tree plantings there will be 3 corresponding records in the attribute table (one-to-many).   If property B has 1 tree planting there will be 1 record in the attribute table.   Is there a tool or workflow that can automate this process??


describe a bedroom "filled" with furniture

I need a word that will give the illustration of a room "crowded" or "filled" with furniture. I know those words are not correct, so could someone give a more eloquent way of describing the room?


Is a transit visa required to pass through Bangkok Airport?

I have a flight from Bangalore, India to Manila, Philippines via Bangkok. It’s with the same airline (Thai Airways) but I will have to spend 10 hours in the airport at Bangkok for the connecting flight to Manila. Do I need a transit visa for Bangkok? Also, do I have to pass through immigration with luggage at Bangkok? I don’t have a visa for the Philippines as I will be staying there for a week. I have an Indian passport and a UK standard visit visa.


I think that  is pretty good prima-facia evidence that  is just facilitating the deposition of crap.


"E: Syntax error /etc/apt/apt.conf.d/10periodic:7: Extra junk at end of file" how to trouble shoot this?

I typed sudo apt update in terminal, then I got the following error:     E: Syntax error /etc/apt/apt.conf.d/10periodic:7: Extra junk at end of file   The file contains:  1 # 2 # Xilinx Clocking Wizard Driver 3 # 4 5 config COMMON_CLK_XLNX_CLKWZRD 6     tristate "Xilinx Clocking Wizard" 7     depends on COMMON_CLK &&    Line 6 and 7 have two space gap before the wordings.


I have a laptop thinkpad L450. Having 3 USB port which are identical with SS symbols and color (black). But I have want to know if they are actually USB 3 or its just a normal USB? Here is the image of my Device Manager As shown in the pictuere its showingf only one USB 3.0 on right, but how are they showing same symbols. As per  SS are USB 3


I have found that there is a large community suffering from the problems with the WiFi-Bluetooth card Ralink RT-3290. It has been a problem since 2012-2013.  None of the solutions I've found is simple, effective and durable.  I managed, with great effort, some results. But when there is a kernel update, the problems return.  Can anyone provide a simple , effective and lasting solution? Is there a project from Ubuntu's developers to attack the problem?


I am learning shell and need someone who can explain me one thing

I don't want to blindly copypaste so can anybody explain to me what every parameter of this script means ? find . -exec git check-ignore {} + | xargs -I{} basename {} Thanks in advance.


Why doesn't this modifier method alter the given object as expected?

I'm trying to write a Time object that has an increment method adding arbitrary seconds to it, so here is the code :  class Time { int hour, minute; double second;  public Time(int hour, int minute, double second) {     this.hour = hour;     this.minute = minute;     this.second = second; }  public Time(double seconds) {     this.hour = (int) (seconds/3600);     seconds -= this.hour*3600;     if (this.hour >= 24) this.hour -= 24;     this.minute = (int) (seconds/60);     seconds -= this.minute*60;     this.second = seconds; }  public static double convertToSeconds(Time t) {     double seconds = t.hour*3600 + t.minute*60 + t.second;     return seconds; }  public static void increment(Time t, double s) {     double seconds = convertToSeconds(t) + s;     t = new Time(seconds);     printTime(t); }  public static void printTime(Time t) {     System.out.println(t.hour + ":" + t.minute + ":" + t.second); }  public static void main(String[] args) {     Time t = new Time(11, 8, 3.0);     printTime(t);     increment(t, 60);     printTime(t); } }   It gives this output :  11:8:3.0 11:9:3.0 11:8:3.0   It shows the object has been changed as expected inside the increment method, but back in main after the invocation of the increment method, the object remains the same. What's the problem with it?


fgets cutting off input after 3rd character

I have a function to take in and format user input, but it keeps cutting off the input after the 3rd character. void formatInput(char *input_variable) {     fgets(input_variable, sizeof(input_variable), stdin);     strtok(input_variable, "\n"); }  int main() {     char input_string[255];     printf("Enter input: ");     formatInput(&input_string[0]);     return 0; }  If I enter myinput then it gets stored as myi. If I don't wrap it in this function, then it works perfectly fine.


I installed the Preempt RT patch, how can I know if it was installed correctly, and if it was activated?  If it was right, what configuration shall be done, and how to do it?


Does magic jack work with Ubuntu? I originally had my magic jack on a computer with windows XP and I decided to switch to Ubuntu but I still want Magic jack.


Multi-client, async sockets in c#, best practices?

I am trying to gain a better understanding of tcp/ip sockets in c#, as i want to challenge myself to see if i can create a working MMO infrastructure (game world, map, players, etc) purely for educational purposes as i have no intention of being another one of those "OMGZ iz gonna make my r0x0r MMORPG that will be better than WoW!!!", you know what im talking about.  Anyway, i was wondering if anyone can shed some light as to how one might approach designing this kind of system and what kinds of things are required, and what i should watch out for?  My initial idea was to break up the system into seperate client/server connections with each connection (on its own port) performing a specific task, such as updating player/monster positions, sending and receiving chat messages, etc. which to me would make processing the data easier because you wouldn't always need to put a header on the data to know what information the packet contains.   Does that make sense and is useful or am i just way over complicating things?  your responses are very much appreciated.


Please I want to Restructure this php URL to SEO friendly URL

I have this is the listing page:
<a href="/category?id=<?php echo $data->slug;?>"><?php echo $data->title; ?>
  I have this   but I want this   Then I have this in the /category/index.php  if(get_magic_quotes_gpc())     {$uid = htmlentities(stripslashes(strip_tags(trim($pid))));} try {$stmt = $db->prepare("select * from answers where ans_slug =:pid");         $stmt->execute(array(':pid' => $pid));             $row = $stmt->fetch();          } catch(PDOException $e) {             echo $e->getMessage();         } if($row['ans_slug'] == '' || empty($pid)){     header('Location: ./');     exit; }  Please help


dead img-link on "The 7 Essential Meta Questions of Every Beta"

On  is a dead link to a picture in the section with the title     Take Ownership of Your Community   below the term Constitutional Convention


Improve and complete the proof of : If $X$ is infinite and $I \subseteq N$, then $ X\cup I \approx X$

Prove that if $X$ is infinite and $I \subseteq N$, then $ X\cup I \approx X$ I have this proof in my lecture notes: Let's suppose for simplicity that $X \cap I =\phi$ and let $\varphi : N \rightarrow X $ be an injective mapping with $Z=Im(\varphi)$, If $I=\{\lambda_1,\lambda_2,...\}$ Let'consider the table:  and let's define $\psi: Z \rightarrow Z\cup I$ following the arrows. Now the mapping:  is a bijection. It is easy to modify the argument to understand the case in which $X \cap I \neq \phi$. I don't get how they construct $\psi$ and manage to show that it is a bijection. I know from a similar proof (Dedekind's criterion) that they a trying to make $\psi$ a bijection so that the composition with $\varphi$ would give a bijection and then expand the resulting bijection with $ X \setminus Z $ to get $\vartheta$. the slanted arrows make no sense to me, since the elements of $I$ are disjoint with $X$ and $Z$, so they couldn't be part of the domain of $\psi$, could they? Besides they don't say anything about I, so it could be finite or infinite. Could someone shed some light and do the modified argument for the case $X \cap I \neq \phi$ ?


I am trying to develop a shopping cart and i am stuck with the following issue. i am creating a new product dynamically using jQuery. The following piece of code adds new product to the cart:          var productAdded = $('
<button href="#0" class="button2" id="'+ id +'">' + product_name + '</button>	<select id="cd-product-'+ id +'" name="quantity"><option value="1">1</option><option value="2">2</option><option value="3">3</option></select>	' + product_price + '
');     cartList.prepend(productAdded);   As you can see above i am creating a new 'button' within javascript. For that element click event is not firing.  $(".button2").click(function(e) {                     e.preventDefault();                      $("#add_product_comment").dialog({                       buttons : {                           "Άκυρο" : function() {                           $(this).dialog("close");                         },                         "Αποθήκευση" : function() {                           setInterval(function(){}, 1000);                            $( "#add_product_comment" ).dialog( "close" );                           // $('#two').load(document.URL +  ' #two'); using ajax reload div                                                    }                       }                     });                      $("#add_product_comment").dialog("open");                     $('.ui-widget-overlay').css('background', '#000000');                    });   Any help will be really appreciated.


In history-books you often have timeline, where events and periods are marked on a line in the correct relative distance to each other. How is it possible to create something similar in LaTeX?


How can I block Facebook (or any site) permanently, and/or almost-permanently?

this is a relevant programming question because it involves tweaking low-level things on my laptop.  I want to break some addictions, which requires blocking some sites permanently (like Buzzfeed, etc), and making some sites very, very difficult to get to (like Facebook, which I might need one day so can't block permanently).  I'm looking for something stronger than a hosts file solution, which hasn't worked because it's too easy to change. A browser-level solution is too weak as well. What would be more of a pain to undo?  I'd prefer to block sites on my laptop, rather than on the router level, so it both works everywhere I go and doesn't interfere with others' access on my network. Surely there's some lower-level way to do this than the hosts file - or maybe some way to encrypt the hosts file - any ideas?  Thank you!  Katie


The model I'm using is subdivided and mirrored. Here are some pics of the problem, both the solid form and the edit mode.


What can I use instead of the arrow operator, `->`?

What is the arrow operator (->) a synonym for?


Can the PerSite setting be switched to true so the shown metadata is consistent?

I was looking at some of the *-Types tables in the Stack Exchange Data Explorer. specially CloseAsOffTopicReasonTypes.  As I'm lazy I clicked the (i) that is found in the right hand side of the SEDE query editor and to my surprise it listed values up to id = 13 where a select * from CloseAsOffTopicReasonTypes returned values with id = 16.     On closer inspection I believe the current values shown in the meta data are from Software Engineering.SE. I think that is because in the [Data.StackExchange] database 1 returns programmers as the first row. It populates the TablesCache with the values found in that database.  It looks like the Application setting for PerSite is false as I also maintain that same value here:   While it was reasonable to have that value set to false when all Types tables were the same across all databases, with the addition of a Types table that does have per site content, the PerSite setting has to be reconsidered.   I propose the PerSite  setting is switched to true. This can be done in the appsettings.config or in the AppSettings table but requires a restart as the value is never rechecked at runtime. Setting the value to true will incur a higher memory load as now the values of the  %Types tables of each of the 350 databases has to be kept in memory.  It is a minor issue as only two tables are affected at the moment, CloseAsOffTopicReasonTypes and PostNoticeTypes. None of the other *Types tables seem to have per site specific content. If the setting is left as is, consider this report to be the sign-post for future confused users.     1.  that select top  isn't stable due to a lacking order by clause, that is maybe another issue that needs fixing


Complete valuation ring is obviously complete local, because valuation ring is always local ring. I would like to know the example of  Complete local ring which is not complete valuation ring  Any examples? I could find example of local ring which is not valuation ring, but the example ring is not complete. Thank you for your help.


How can I disable autostart of mysql server?

I'm using Ubuntu Xenial and mysql 5. editing the mysql.conf file didn't help. it's still showing active.


Read only portion of a remote file with rails

I need to pull in the first X characters/bytes/whatever of a large remote XML file.  The code below successfully pulls down the file in chunks but I can't figure out how to cut it off after a certain size/amount of data.      uri = "https://domain.com/file.xml"      Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|         request = Net::HTTP::Get.new uri         http.set_debug_output $stderr          http.request request do |response|           StringIO.open do |str|             response.read_body do |chunk|                 str.puts chunk             end           end         end     end   I've tried something like the below, but that creates a string with the contents of the first chunk repeated over and over.  response.read_body do |chunk|     while str.size < 50000      str.puts chunk     end   end   I've also tried:  response.read_body do |chunk|    if str.size > 50000        puts "BIG ENOUGH!"       break    end end   This also results in the result str to be the contents of the first chunk repeated over and over until it reaches the specified size limit.


How to delete lines that do not overlap a polygon?

I'am new to QGIS and I run into a problem. I have two shapefiles, one with line data and one with polygon data. I would like to remove all the lines that do not overlap the polygon.    So remove all the green lines that do not overlap the blue polygon. What is the best way to do this? I tried the difference tool but I was not able to achieve what I intended.


How is the C library able to access environment variables?

How do functions like getenv(3) access the environment when my program doesn't have any references to the environment?


Why use drywall tape when you can just mud over the crack?

Got a semi-small drywall project with several "joints" and just wondering what would happen if I didnt use the tape? (corners and "butt-joints")


I've got a multidimensional associative array which includes an elements like  $data["status"] $data["response"]["url"] $data["entry"]["0"]["text"]   I've got a strings like:  $string = 'data["status"]'; $string = 'data["response"]["url"]'; $string = 'data["entry"]["0"]["text"]';   How can I convert the strings into a variable to access the proper array element? This method will need to work across any array at any of the dimensions.


Pager that would work with header-lines?

Is there any pager, like less, that would allow paging result, but keeping configurable number of lines at the top always?  Example: I run a query that returns many rows from database. Results are single line of headers (column names), "border", and then the records.  Normal pager treat headers as part of the text, which is not optimal, because it's easy to forget name of the column, or their order, when dealing with sufficiently large datasets.


Live-refresh of the number of pending review jobs

With reference to the question , when reviewing in SO, we have to refresh the page every now and then to view the newly added entries to the review queue.  However, votes and reputation are updated on the display as soon as a vote is cast, and as soon as reputation changes. Is it possible to integrate this kind of feature to see the number of pending entries in the review queues page.  This request is probably not a duplicate of , where the feature is requested for a counter in front of the title of the page. But, my question adresses the .


How to get all fields except one with inner join?

I am using MS Sql server and I have 2 tables as below;  School(scid, name, address, ....) Student(scid, studentName, studentSurname, ....)   What I want to query is;  SELECT * FROM Student ST INNER JOIN School SC ON ST.scid = SC.scid;   But I don't want to get double scid field as result(It returns scid and scid_1). I mean  SELECT *(except School.scid) FROM Student ST INNER JOIN School SC ON ST.scid = SC.scid;   Is there a way to get all fields except one?


Is density of an element directly proportional to atomic number or atomic weight?

Is the density of an element directly proportional to any power/order of atomic weight or atomic number? I know very less, probably only highschool level physics, after which my brain has been bothered less about physics and more about computers. Can anyone help me with this highschool level question?


Do Linux directory permissions overrule file permissions?

drwxrwxrwx  2 user1 user1 4096 Jun 21 11:25 . drwxr-xr-x 16 user1 user1 4096 Jun 21 11:25 .. -rw-r--r--  1 user1 user1   15 Jun 21 11:25 access.txt   The file access.txt is owned by user user1 but the directory has open access to the world (777).  If I log in with user2, I can delete access.txt even though user2 does not have write permissions to it. So does directory permissions take precedence over file permissions? Perhaps that not the best way to describe it, but just looking for a basic explanation here.


I have a sentence: Happiness is drinking a glass of champagne on a hot summer afternoon. So I'm thinking if we want to say the same about night do we have at night or on [article] night? I know we say in (the afternoon / the evening / the night) when we mean 'during this period of time'. Correct? But what is the difference between on and at? Could we use articles with on\at and night?


Maxwell's equation in cylindrical coordinate system

I am trying to express the Maxwell equation $$ \partial_a F^{ab} = \mu_0 J^b $$ in cylindrical coordinates. Now, if I express this equation for b=0, the a's would get summed up as $$ \partial_0 F^{00} + \partial_1 F^{10} + \partial_2 F^{20} + \partial_3 F^{30} = \mu_0 J^0 $$  Now in cylindrical coordinates 0,1,2,3 corresponds to t, r, $\phi$, z respectively. The first term would be zero since $F^{00}=0$.    My doubt is whether I can write the other terms simply as partial derivatives w.r.t. r, $\phi$, z respectively as $$\frac{\partial F^{10}}{\partial r} + \frac{\partial F^{20}}{\partial \phi} + \frac{\partial F^{30}}{\partial z}=\mu_0 J^0$$  Usually standard texts only give the information for gradiant, divergence and curl in cylindrical coordinates and not to such partial derivatives.


Regex Capture not equal to String of equal value

Both strings appear to be the same when printed to the console, but not when compared using "=="     What am i doing wrong here?    String message = "Rejected | Ref ID: CaptureMe | Name:";    Pattern pattern = Pattern.compile("\\bRef ID:\\s+(\\S+)");       Matcher matcher = pattern.matcher(message);  String matchedRef = matcher.group(1);  System.out.print(matchedRef);       Prints: CaptureMe     String myRef = "CaptureMe";  if(matchedRef == myRef){ System.out.print(true); } else{ System.out.print(false); }   Prints: FALSE


Indesign question regarding "placed" objects

As a total newb, I am more than sure that I'm the problem...  I'm trying to place five pieces of b/w original artwork into a document.  I've resized all images to a similar size. After placing them in the new document, I see that they have lost resolution and appear blurry. Is this a function of having re-sized them (in photoshop) or is there something I should be doing in Indesign to correct them?


passing gchar ** by reference to the external function so as to free in main function

I am using g_strsplit to split the msg with \n delimiter and created a function to break the string. The function breaks the msg and return to calling function thus I am not able to free the splitted string pointer in the called function. Thus tried to pass by reference the gchar. However I am getting segmentation fault.  #include <stdio.h> #include <string.h> #include <glib.h>  int split_message_syslog_forwarder(char **msg_full,gchar **splitted_strings) {     int msg_length = -1;     *splitted_strings = g_strsplit(*msg_full, "\n", 2);     if (*splitted_strings != NULL)     {         sscanf(*splitted_strings[0], "%d", &msg_length);         if(msg_length<0)         {             *msg_full =  *splitted_strings[1];         }     }       return msg_length; }  int main() {     int msg_length = -1;     char *msg_full = "12\nwhat is this";     gchar **splitted_strings;     int ret = split_message_syslog_forwarder(&msg_full,&splitted_strings);     printf("spilitted msg = %d",ret);     printf("spilitted msg 2= %s",msg_full);     return 0; }   How can I pass the reference of gchar **splitted_string in glib?


Deploy lightning web component is getting failed with error - "--json --loglevel fatal ended with exit code 1"

I am trying to deploy a lightning web component to the org using vs-code but getting the error.  Starting SFDX: Deploy Source to Org  10:09:14.43 sfdx force:source:deploy --sourcepath d:\Aakriti\Projects\LWC\LWCLearning\force-app\main\default\lwc --json --loglevel fatal 10:09:25.813 sfdx force:source:deploy --sourcepath d:\Aakriti\Projects\LWC\LWCLearning\force-app\main\default\lwc --json --loglevel fatal ended with exit code 1   Earlier I was able to deploy components successfully but after updating vs-code, I am getting this error. I am not sure what is the issue. Can anyone please let me know how can I resolve this.   I am using api-version '45'.  Thanks.


I'm still in search of a good backup scheme for my Xubuntu 18.04 machine. In looking at Deja Dup (aka Backups), it seems dead simple and it said it successfully backed up my data. And it runs once a day.   But exactly when does it run once a day?  What were the results of the last run? Did it even run today? Were there errors? Where are they logged?   It's interface might be a little too simple. Any ideas on where to find at least the info above? I tried this:  DEJA_DUP_DEBUG=1 deja-dup --backup   Not sure this is the answer - I just want to check in on it every once in a while to make sure all is well.


P.d.f. of $XY$, where $X, Y$ are independent uniformly distributed over $[0,1]$

I tried to change the variables:  Let $U=XY$ and $V=Y$; so then the Jacobian is $1/v$.  So joint pdf $g(u,v) = f(x,y)\cdot (1/v) = 1/v$   Would you then integrate over $v$ from $0$ to $1$ to get the p.d.f., of just $U$?  However this gives infinity.


Element dynamically created by Ajax doesn't work

I have this function in my Laravel project  $(document).on('click', '.btn-success',function(){             var value=$(this).attr("value");             var qtd = $('#qtd' + value).val();             var cod = $(this).attr("codigo");              $.ajax({                 type: 'get',                 url: '/carrinhoAjax',                 data: {                     'item': value,                     'quantidade':qtd,                     'id_carrinho':carrinho                 },                 success: function(data) {                     $('.cart').append(data);                 }             });         });   That creates this element:
id_material}}" class="glyphicon glyphicon-remove" style="cursor:pointer; margin-left:25px;">
   When I click this generated element it should call this other function:  $(".glyphicon").on("click", function () {         var id = $(this).attr('id');         var tr = $(this).closest('tr');         var carrinho = {{Session::get('cart')}};          $.ajax({             type: 'get',             url: '/removeAjax',             data: {                 'item': id,                 'carrinho':carrinho,             },             success: function(data) {                 tr.remove();             }         });   But it doesn't. If I use this new element without an Ajax call it does work, so I don't think that the second function is the problem.


I've been reading Feynman's "QED: The Strange Theory of Light and Matter" and was wondering how exactly does QED treat a photon. In the book, Feynman always asserts that photons are particles and not waves because the wave theory of light can't explain the individual clicks of a photo-multiplier when its hit with low energy light. But if the wave theory is wrong because it doesn't explain the photo-multiplier clicks, then QED could also be wrong because it does not 'explain' partial reflection, it only models it using probabilities and ignores thew underlying mechanism.


How to install and test IPA file in Windows machine if I don't have real iPhone device

I want to test IPA file(iOS app) but I don't have real iOS device, only I have IPA file.   How can I test it from my windows machine, by using some third party tool like Simulator?


Linear combination of two dependent multivariate normal random variables

Suppose we have two vectors of random variables, both are normal, i.e., $X \sim N(\mu_X, \Sigma_X)$ and $Y \sim N(\mu_Y, \Sigma_Y)$. We are interested in the distribution of their linear combination $Z = A X + B Y + C$, where $A$ and $B$ are matrices, $C$ is a vector. If $X$ and $Y$ are independent, $Z \sim N(A \mu_X + B \mu_Y + C, A \Sigma_X A^T + B \Sigma_Y B^T)$. The question is in the dependent case, assuming that we know the correlation of any pair $(X_i, Y_i)$. Thank you.  Best wishes, Ivan


Obtaining extent of each polygon in shapefile using ArcPy?

In ArcGIS 10 and Python I want to get the extent (xmax, ymax, xmin, ymin) info of each of the polygons in a shapefile.  I can get the extent of the whole shapefile using  file=r"D:\SCRATCH\ARCGIS\100k_trc_tiles_TVM.shp" desc=arcpy.Describe(file) print desc.extent.Xmax      394551.52085039532   But I can't seem to figure out how to get the same info for each row in the dataset.  rows = arcpy.SearchCursor("100k_trc_tiles_TVM") for row in rows:  print row   prints the 31 rows in the dataset but   for row in rows:  desc=arcpy.Describe(row)  print desc.extent.Xmax   gives an error.     Runtime error : Object: Describe input   value is not valid type   I was thinking of adding the extent values to the table using "calculate geometry" but this only gives the centroid. Then I guess we can use something like row.GetValue("xmax").  That being said I know that we can create the X/Y, max/min using the function from  but it would be best if we can avoid having to add fields, especially if ArcPy can get these values.  Basically I need to get the extents to feed into the clip tool to clip out 30 areas of data (according to the 1:100,000 map sheets) for geoprocessing since the Split tool fails due to the large size of the dataset (see ). I want to automate this as it is repeated on a number of datasets.  === working script ===  # Emulates Arc Info SPLIT tool by using Clip but # Requires a FC from which each row is used as the input clip feature. # Each row must be rectangular. # Used on 12GB FGDB with 100 million records.   #Licence: Creative Commons #Created by: George Corea; georgec@atgis.com.au, coreagc@gmail.com import arcpy, string  #inFrame=arcpy.GetParameterAsText(0) # Input dataframe FC #inFile=arcpy.GetParameterAsText(1) # Input FC for splitting #outDir=arcpy.GetParameterAsText(2) # Output FGDB  inFrame=r"D:\SCRATCH\ARCGIS\100k_trc_tiles_TVM.shp" inFile=r"c:\junk\106\data\7_Merge.gdb\FullRez_m2b" outDir=r"D:\SCRATCH\Projects\206\datasplit\test_slaasp.gdb" #NameField="Name_1"  #arcpy.env.workspace = r"C:/Workspace" arcpy.env.overwriteOutput = True  rows = arcpy.SearchCursor(inFrame) shapeName = arcpy.Describe(inFrame).shapeFieldName for row in rows:     feat = row.getValue(shapeName)     Name = row.Name_1     print "Executing clip on: "+str(Name)     extent = feat.extent     #print extent.XMin,extent.YMin,extent.XMax,extent.YMax # Create an in_memory polygon     XMAX = extent.XMax     XMIN = extent.XMin     YMAX = extent.YMax     YMIN = extent.YMin     pnt1 = arcpy.Point(XMIN, YMIN)     pnt2 = arcpy.Point(XMIN, YMAX)     pnt3 = arcpy.Point(XMAX, YMAX)     pnt4 = arcpy.Point(XMAX, YMIN)     array = arcpy.Array()     array.add(pnt1)     array.add(pnt2)     array.add(pnt3)     array.add(pnt4)     array.add(pnt1)     polygon = arcpy.Polygon(array)     ShapeFile = outDir+"\\temp_poly"     arcpy.CopyFeatures_management(polygon, ShapeFile)      #print Name ### Set local variables     in_features = inFile     clip_features = ShapeFile     out_feature_class = outDir+"\\"+Name     xy_tolerance = "0.22"      # Execute Clip      try:         arcpy.Clip_analysis(in_features, clip_features, out_feature_class, xy_tolerance)         print "Completed: "+str(Name)     except:         error = arcpy.GetMessages()         print "Failed on: "+str(Name)+" due to "+str(error)


How to add custom objects to the "add object" menu?

I want to add things like basic tables/chairs/houses I have made over the past year to my ShiftA menu. Is it possible to do this?


A Banach space is reflexive if and only if its dual is reflexive

How to show that a Banach space $X$ is reflexive if and only if its dual $X'$ is reflexive?


I am trying to use iptables but I am clueless in understanding the documentation even so that I've locked myself out of my server twice already whilst trying to implement it.  These are the simple rules that I want to implement:   Allow ports 80, 6667 and 6697 to everyone Allow port 22 to just my IP for example 10.10.10.10   Please can someone help me implement these simple rules, without locking myself out?


In  Ted talk The Geometry of Particle Physics: Garrett Lisi at TEDxMaui 2013 is he referring to the gauge group space while using the toys ? (Seems so to me). Can someone provide some references that approach quantum gauge theory from such geometric perspective ?


Player A and B are playing a game where they roll a dice and the first player who rolls $6$ wins. What is the probability that player A wins if they goes first?  I said $\dfrac{1}{6}$ but my teacher said that was wrong. Not really the best at probability, sorry!


Smallest $n$ such that $U(n)$ contains a subgroup isomorphic to $\mathbb Z_5 \oplus \mathbb Z_5$

I solved the following exercise:  Find an integer $n$ such that $U(n)$ contains a subgroup isomorphic to $\mathbb Z_5 \oplus \mathbb Z_5$.  Here $U(n)$ is the group of units modulo $n$.   To solve it I used that $U(st) = U(s) \oplus U(t)$ when $s,t$ are coprime and $U(p^n) = \mathbb Z_{p^n - p^{n-1}}$. I tried the first few primes until I found two with the property that $\mathbb Z_{p^n - p^{n-1}}$ is divisible by $5$.   My result:  $$ U(3025) = U(5^2 \cdot 11^2) = \mathbb Z_{20}\oplus \mathbb Z_{110}$$  It seemed clear to me that I had found the smallest number with this property since I chose the first primes I found. Then I looked at the solution which is  $$ n =275$$     What other methods are there to solve this question so that I can find   the smallest such $n$?   Obviously, while possibly correct, my method does not find the smallest $n$.


Saving LAZ files to different location from input (LAS) files?

All of the command line examples I'm seeing show how to create LAZ files in the same folder as the LAS files, e.g.:  C:\Folder\tools>laszip F:\Folder\LAS_points\*.las   Unfortunately, I don't have enough space in that directory to create and save LAZ files there. I need to save them elsewhere. How can I edit the command line to get the LAZ files to save to, say, G:\Folder\LAZ_points?


Not able to login in Drupal 7 CMS as admin

I am not able to login in my Drupal admin panel, i have tried to truncate sessions, watchdog and cache table from database, also tried to reset password from database directly, but there is no luck for me. Can you please suggest how can i login and what steps i need to follow ?


I'm writing this script where I have to run a program, time it and write that time into a text file, it must be in seconds with 6 decimal places. So far I have this:    #!/bin/bash  MAX_THREADS=8   #2 x number of cores  if [ $# -ne 2 ]; then                  #checks number of arguments     echo Invalid number of arguments     exit 1 else     NUM_THREADS=$1 fi  if [ $NUM_THREADS -gt $MAX_THREADS ]; then          echo Invalid number of threads     exit 1 fi      make clean make start=$(date +%s) ./CircuitRouter-SeqSolver $2 end=$(date +%s)   cat > $2.speedup.csv << EOF  $((end-start))  EOF   You can ignore anything related to NUM_THREADS that's for another part of the script. So I make clean, make and then run CircuitRouter-SeqSolver with $2 as an argument, I saw this solution with date but it only writes the number of seconds without decimal numbers so it just writes 0 into the file since the program takes less than 1 second to finish. How can I modify date to write decimal numbers?


There's a probability I've made a mistake as Stack Exchange moderator, and I just want to understand if it is indeed the case.  So I've noticed that a particular user keeps posting quite low-quality questions. Not only were they of low quality, they were sort of immediately recognizable - by seeing only the text I was able to guess who had written it.  I've actually almost never intervened because they were still on-topic. Then I've realized that actually I'm looking at questions written by two different users that have very similar username.  I've checked and realized that this is the same person. Actually there's a third username created by that very person.  And here's the part where I possibly made a mistake coming.  I've recognized this behaviour as a sock-puppetting, chose the account with this maximum score and suspended it (for seven days) and deleted the other one.  I've explained the user that this suspension is due to sock-puppeting. But! User had reached out to me and pointed out the fact that he is not using these accounts - yes, he acknowledged he owns all three of them - for anything like up-voting himself. Thus, he sees no reason for suspension.  So I actually need an expert advise how this can be checked. If I'm wrong at least I won't mess up things again.


Where can I download historical data from OpenStreetMap? (2005-2010)


Is there any rule which tells when to use a particular measure of central tendency.


comparing one value in a column to all the values in another column at a time SQL/DB2

I have three columns as shown below. What is the best way to pull all the values from column 3 that are not the same in the other columns? the result should return 2, 7 and 9 as they are only in column 3.   Column 1 |  Column 2  | Column 3 ---------|------------|--------- 1        |    5       |     1 3        |    4       |     2 1        |    5       |     7 4        |    6       |     9   I tried  not in (Column 1, Column 2) method but it checks by row only and I need it to take first value in column 3 and compare against the whole column in 1 and 2....


Text moving outside of justification margins

Apologies if the title is incorrect, but I'm not entirely sure how to describe the issue I am having. Please see the image below for clarification. The text should be justified, but in random spots of the document, the text moves across the justification line.  This happens about 3 times in my 20 page document. Two of the occurrences are inline LaTeX as in the attached image, but the other occurrence is a text-only sentence in a text-only paragraph.  An excerpt of text (it might not seem too big a deal now, but if you've got a whole page of text properly justified, that part really sticks out):


I want to verify the fact that      every almost complex manifold is orientable.    By definition, an almost complex manifold is an even-dimensional smooth manifold $M^{2n}$ with a complex structure, i.e., a bundle isomorphism $J\colon TM\to TM$ such that $J^2=-I$, where $I$ is the identity.  For every tangent space $T_pM$, there exists tangent vectors $v_1,\cdots, v_n$ such that $(v_1,\cdots, v_n,Jv_1,\cdots,Jv_n)$ is a real ordered basis for $T_pM$. I've checked that any two such bases are related by a matrix with positive determinant.  So for each tangent space $T_pM$ I fix such a basis. Hence, I've obtained a possibly discontinuous global frame $X_1,\cdots,X_n,JX_1,\cdots,JX_n$. To show this frame determine an orientation on $M$, I've been trying to construct for each $p\in M$ a coordinate neighborhood $(U,x^1,\cdots,x^{2n})$ such that  $$(dx^1\wedge\cdots dx^{2n})(X_1,\cdots,X_n,JX_1,\cdots JX_n)>0$$ for every point in $U$.  How do I show that? Thanks!


Serial port forwarding over TCP/IP (linux server)

I am looking for a way to use a remote serial port on a linux machine over LAN. The machine is running ubuntu 10.04 and I have a arduino board connected to it, that I would like to be able to reprogram or listen/talk to serial output of it over LAN.   It would be great if the client software would be platform indepented but linux only client would be ok too.  Thanks!  UPDATE:  There are some programs like that for windows:    (this appears to have a linux version to, but its not open source...)  And finally actually wikipedia has some useful notes and references:   UPDATE2: Most interesting candidate:


How to Track visitor ip in html javascript

How to make function to get visitor ip? I try fixed using related post below   but cannot fixed yet..    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Sample Tracking Visitor</title> <script type="text/javascript">  function tracking_vistors(cid,url,curl,camp,type) {     var user_agent = getuseragent();     var ip = myIP(); // how to make this function track visitor ip      var publisher = "2000000001";     var data = "cid="+cid+"&curl="+curl+"&camp="+camp+"&type="+type+"&url="+url+"&ip="+ip+"&user_agent="+user_agent+"&publisher="+publisher;     $.ajax({       type: 'POST',       url: 'widget/clicktracker.php',       data: data     });  }  </script> </head>  <body> </body> </html>


Newton's third law and movement of 2 objects in contact

Let's say that (from left to right) we have two cubes A and B in contact on a plane.  If a force F is applied (from left to right) to A the fact that A moves towards B applies a force S to B that has a reaction $R_s$ on A.  So the equations of the total forces are: for $A: m_a \times a_a = F - R_s$;    for $B: m_b \times a_b = S$  In this situation I can't get why A and B would have the same acceleration $a_a = a_b$ that keeps them in contact. Actually why B couldn't gain an higher acceleration than A?  PS: sorry for the bad english, I'm not a native speaker, if something isn't clear I'll try to explain myself again.


Solving a transcendental equation with complex exponential

Good day. I want to solve the following equation for $z\in\mathbb{C}$,  $$e^{\alpha zi}+\beta z+\gamma=0$$ for some constants $\alpha,\beta,\gamma\in\mathbb{C}$. My question is: is there a way to solve it getting the explicit values of $z$? Is it even possible? I tried to expand the exponential in its Taylor series but it led me nowhere. Thanks for your help.


Is there any difference between "since when did it become..." and "since when has it become..."?

Could you tell me if there is any difference in meaning between since when did it become and since when has it become? For example:  Person A: I'm going to the dentist tomorrow. It's such a pleasure. Person B: Since when did it become a pleasure for you?/Since when has it become a pleasure for you?  Are both perfectly natural in the context?


Can I transfer from my Wells Fargo account to another person's Wells Fargo account?


Continuity and Compactness, Is this mapping onto? (Rudin)

Here the point $p=(1,0) \in Y$ but there is no $t \in X$ s.t. $f(t)=p$, is it still correct to say that $f$ is mapping of $X$ onto $Y$?  Also, can we say the reason why $f^{-1}$ fails to be continuous is that simply $X$ has no such $t$ so that the point $p$ is not mapped to anything?


Password doesn't work for desktop but does for terminal

I'm a Linux newbie, I'm doing quite well starting to get my head around it. But I've run into a problem. I don't plan to use the GUI much but here's the problem: My root account password works in terminal mode but when i switch to startx the same password for the same account doesn't work. after entering it, the screen flickers to a black screen then the original screen reappears asking for the password.  Oh and its a Guest on a VMware Hypervisor  Any ideas? Cheers


Rails newbie here. I'm looking for some high quality Ruby on Rails tutorials. By high quality I mean by standards of popular tech tutorial sites.  Examples:       Thanks in advance =)


How can I write characters outside a table?

I have a table and I would like to know how can  I write specific text outside the table, all around the table.  A simple example is this:  Above the table: a b c  RHS of the table: d e f  LHS of the table: g h i  Below the table: j k l  In a way that those letters are  aligned to the rows and columns respectively.  \begin{document}  \begin{table}[H]     \centering     \begin{tabular}{|c|c|c|} \hline         a & b & c \\         \hline         d & e & f \\         \hline         h & i & j \\         \hline     \end{tabular}  \end{table}  \end{document}   Could someone tell me how can I do this?  Thanks in advance


interaction of mathematical structures (rephrased)

From a physicist's perspective there are several situations in which somehow arbitrary choices of mathematical structures can be made. One can describe a system from different perspectives, etc. without changing anything in the physical properties. (see gauge invariance, picture changing etc.) In the situation when these choices impose a mathematical structure one has limitations in the subsequent choices (are these limitations physical???). However, there are situations when this prescription does not hold. The best example is in this case the Black-Hole complementarity principle (if it is well defined in the first place).  So, the question about how mathematical structures "interact" in a logical way is not a bad one. Again: what is the interaction between, say, locality and Hausdorff-ity in the case of a black hole? Or what is the true relation between metrizability and hausdorff-ity of a space in the context of a black hole? The question about how mathematical structures assigned (innocently) at some point interact in different situations is in my opinion a quite relevant one...


Why does the Palatini formalism of GR work?

We can get the Einstein field equations of GR from the  via two distinct methods:   First, by taking the metric as the only degree of freedom, and imposing right away that the connection is the Levi-Civita connection. In that case the Lagrangian will be a functional of the metric only since the Levi-Civita connection is expressible in terms of derivatives of the metric.   Second, we can follow the : Take the metric and the connection as independent degrees of freedom and vary with respect to both. It happens curiously that the Euler-Lagrange equations for the connection will just be the condition that it must be the Levi-Civita connection.   It seems to be a wonderful coincidence that we get exactly the condition that the connection must be Levi-Civita one, thus recovering the Einstein field equations. So my question is: Why does this work? Is there any deeper mathematical reason why we get the right answer?


past perfect or past simple after the conjunction 'since'

I have a question about tense in a sentence that includes the conjunction 'since'. Mostly, 'since' is used with present perfect and past tense as in the sentence(a) below.     (a) Mr.Koo wants to emphasize how much time has passed since Koreans   created white porcelains.   How can I change the tense of the sentence to the past tense? Is the following correct?     (b) Mr. Koo wanted to emphasize how much time had passed since Koreans   created white porcelains.   With my understanding, (b) seems wrong because the part that come after 'since' doesn't follow the tense agreement rule.


php multi thread on linux centos php 5.6

someone knows if is there a way to use php multi thread on php 5.6, if yes where can i found a tutorial step by step to do it?  I need some solution for multi thread, currently i'm using multi curl to do it, but i think it's not right way to do it, using curl to access script on same server.  Thanks in advanced.


Can we have settings to control notifications

I really don't like that little red box popping up every 10 minutes while trying to make a post on a question or make a question.  Most of the time, the responses aren't really related to me. Some users would like to see the edits, and some don't really care. Some users would like to see the comments on their posts, but some don't want to. Some don't care about their electric bill, some do. It would be helpful if we could block and allow certain notifications on our accounts.   It would further expand the "Edit Profile and Settings" tab and be useful to some people. Default would be allow for all, with like different check boxes for each type of response. For those who don't mind don't need to do anything. Others do and will quickly check off the boxes.  Can we have settings that can allow and block certain notifications?


Why is SQL Server 2008 MD5 displaying foreign characters?

select cast(hashbytes('md5', 'test') as varchar)   displays  載쵫ⅆ珓�荎✦   but in C#,  System.Security.Cryptography.MD5.ComputeHash('test');   displays  c8059e2ec7419f590e79d7f1b774bfe6   which looks to be correct.  Is this a problem with SQL Server's encoding?


How do I get $\cos{\theta} \lt \frac{\sin{\theta}}{\theta} \lt 1$?

How do I get:  $$\cos{\theta} \lt \frac{\sin{\theta}}{\theta} \lt 1$$


Shortcut method for time and work questions.

A tank of 425 litres capacity has been filled with water through two   pipes, the first pipe having been opened five hours longer than the   second. If the first pipe were open as long as the second, and the   second pipe was open as long as the first pipe was open, then the   first pipe would deliver half the amount of water delivered by the   second pipe; if the two pipes were open simultaneously, the tank would   be filled up in 17 hours. How long was the second pipe open?   I have solved this problem. But I need a shortcut method to solve this problem, the way which people would do in GMAT, CAT or other competitive exams where time is limited.  Attempt:  $$a(t+5)+bt=425 \tag 1$$  $$2at=b.(t+5) \tag 2$$  $$(a+b)*17=425$$  $$(a+b)=25 \tag 3$$  Solving these I got a quadratic equation:  $$15t^2-205t-300=0$$  $$t=15$$  Possible duplicate: How my question is different: I want a shortcut method to solve the problem. The answer to the previously asked question is not shortcut.


Singular or plural for multiple subjects?

Which is more correct to say:   Five and four are eight Five and four is eight   My Logic teacher has sent this to us to figure out.  What is written above is all the information we were given.  I know that in terms of math neither is correct.    I have tried to disregard that the words are numbers and think about in in a different way.  I do not know the rules for the correct use of are and is in the English language.  If you can help that would be great.


If there is no gravity, does that mean there's no mass as well?

I have demonstrated that  only is measured based on the gravitational pull of where you live.  For example, the gravity on the surface of Mars is three times smaller than the gravity on the surface of Earth.  So my question is simple: If we take into account that weight is only measured based on gravitational pull on that , if there was no gravity how would we define mass?  That is, would mass weigh anything if no gravitational pull acted on it? Then what would be mass?


Subscribing to comments on another persons question

On meta.movies.SE we tend to have longer discussions in question comments about an issue. Sometimes comments will come in days or weeks later, and unless you are the person who posted the question, you don't have any chance to be informed about new contributions to the discussion. So my only option is to check on old questions regularly to see if anyone posted anything new in the comments section. The @-syntax only helps if its a discussion between two persons (which most often it is not). It would be great if it were possible to subscribe to comments on any question, not just your own. This could either be done automatically when you "favorite" a question, or explicitly through a new button. I guess this could be limited to the  tag on meta sites, but might be helpful in other cases as well. EDIT To clarify: The reason I would need something like this is not for discussions in normal questions. This is about discussions in meta site  questions.


I need to set main font of my document using Times New Roman font. But I just found one solution that is to compile document using xelatex. But my document built since first typing using pdflatex, so when I switch the enggine to xelatex there are so many error I found. And I cannot fix that error immediately. So I need to find solution to set a font to Times New Roman in pdfLatex.


How many groups of order n are possible?

I'm wondering what total number of possible groups of order n would be if we are counting isomorphisms separately. I mean that if we were to write out the multiplication tables for elements $a_1, a_2, ... , a_n$, what is the maximum number of such tables? Can we make the bound tighter by noting that the table must satisfy the group axioms, or do we need to know something about n?


Find 2nd leg of right triangle with known leg and perimeter

This is probably a very basic question for this site, but it got me stumped.  For a right triangle with one leg (A) and perimeter (L) given, how do I calculate the hypotenuse (C) and second leg (B)? I know that $A^2+B^2=C^2$ and that $A+B+C=L$, but I couldn't find a way to find B and C given A and L.


Is it bad math style to use the same index symbol in different indexed objects?

The title says it all (I'm referring to the case, when writing for example an article to be published or something similar - something where the writing itself should also be of quality).  Example: "Let $A_1,A_2,\ldots,A_n$ be subsets of a set $L$ and $f:L\rightarrow L$. Then define $B=\cup_{i=0}^n A_i$ and $C=\cup_{i=1}^{\infty} f^i (A_2)$, where $f^i$ is $f$ iterated with itself $i$ times."  So (in this example), would it be a problem to use $i$ twice as an index variable the ranges over different sets ? Or is it ok to think of $i$ as being define like a (lets do a computer-science analogy) "local variable", that is only used to create the object "in" which it is defined ($B$ for example) and after the object is created, the variable is "freed" again (so it can be used again to define $C$) ?  If it is NOT okay to do that, when is it allowed to use the same symbol again, after its first use ? After half a page ? After two pages ? In index-heavy proofs one would very soon have finished all letters commonly used as indices, of one would always have to use a different letter. And indexing sets with letters like $x$ or $f$ seems even worse style to me (ok, maybe there are areas in math, in which this would be common practice, but I don't know any).


My Tex Live installation is up-to-date. I ran tlmgr update --all today (2016-03-31). However, I get many errors on documents that used to compile just fine.  It seems to boils down to xsparse.sty requesting:  \RequirePackage{expl3}[2016/03/28] \@ifpackagelater{expl3}{2016/03/28}   while l3kernel.sty has last been updated on 2016-03-26.  Any idea of what is going on here?


I'm trying to send a Blob Apex REST callout and it is keep failing. I tried all the examples in the web but didn't work. What is the standard and correct way to send Blob data via REST callouts?  //Parameters String strBody = 'flowIdentifier=1&flowFilename=test.jpg&flowTotalSize=14893&flowCurrentChunkSize=14893&flowChunkSize=14893&flowChunkNumber=1&flowTotalChunks=1';  bodyBlob = //Blob data  HttpRequest request = new HttpRequest(); request.setEndpoint(END_POINT); request.setMethod('POST'); request.setHeader('content-type', 'multipart/form-data'); request.setBodyAsBlob(bodyBlob); request.setBody(strBody);  try{ Http http = new Http(); HttpResponse response = http.send(request); System.debug(response.getBody()); } catch(Exception e) {      System.debug('ERROR:'+e);     }


What is the correct procedure for a visa national to enter Ireland by land?

A few years ago I travelled to the Republic of Ireland from the UK, taking a ferry to Belfast and driving across the border from NI. As a UK national this wasn't a problem, but I'm trying to work out how it would work if I weren't.  For this scenario, let's assume:   I have a valid UK long-term visa I'm not eligible for the Irish visa waiver scheme for holders of UK visas   As stated in  I would need to get an Irish visa, but once I had it would it be legal to just cross the border, or would I need to report somewhere to have it checked / get my passport stamped?


In vim I am now using wrap on. I need to indicate wrapped line by prepending character. I know it is possible - I was using it years ago, but my old .vimrc is lost. Or any other useful indication of wrapped line would be helpful.


If the $(\int_a ^b f(x))/(a-b)$ is the arithmetic average of all the values of $f(x)$ between $a$ and $b$, what is the expression representing the geometric average of all these values?


Flexbox: reverse order and put first block in a new line

I have three blocks and need to put the second and the third before the first. This one needs to go to another line, with 100% width.  .content{   display:flex;   flex-flow: row-reverse wrap; }  .box1, .box2, .box3{   height: 200px;   background: red;   margin: 10px;   flex-basis: calc(33.333% - 20px);   text-align: center;   font-weight: 700;   font-size: 30px;   font-family: sans-serif;   color: white;   line-height: 200px; }  .box2, .box3{   flex-basis: calc(50% - 20px); }  .box1{   flex-basis: calc(100% - 20px); }


Tower property of conditional expectation

I'm trying to prove the "tower property" of conditional expectations, $$  E[V\mid W] = E[\ E[V\mid U,W]\ \mid W\ ], $$  where $U$, $V$ and $W$ are any random variables. $E[X \mid Y]$ is itself a random variable $f(Y)$ where $$f(y) = E[X \mid Y = y) = \sum_x x\cdot Pr[X=x\mid Y=y].$$ Keeping this observation in mind, I still don't see why $U$ is "averaged out" when moving from the right hand side to the left side.


Prove that if $A$, $B$, and $C$ are sets then $(A - B) \cup (A - C) = A - (B \cap C)$.   I have the proof for the first direction:  Let $x \in (A - B) \cup (A - C)$ be given. Hence, $x \in (A - B)$ or $x \in (A - C)$. Suppose $x \in (A - B)$. Hence, $x \in A$ and $x \notin B$. Since $x \notin B$ it is logically true that $x \notin (B \cap C)$. So, $x \in A$ and $x \notin (B \cap C)$. Hence $x \in A - (B \cap C)$ by definition. A similar argument works in the case where $x \in (A - C)$. So, $(A - B) \cup (A - C) = A - (B \cap C)$.  I'm confused as to how to go about proving the other direction. Would I assume that $x \in A - (B \cap C)$?


can I automatically disconnect bluetooth devices on sleep

We use a Belkin SongStream BT to play music on a stereo via BlueTooth. I'd like our various devices to automatically disconnect before they go to sleep.  Alternatively, the Belkin device could drop the connection once the device goes away or it could allow new devices to connect even if there was another connection previously. The device doesn't do either though and I don't think I can configure it to.  However, shouldn't it be possible to have a MacBook automatically disconnect before sleep?  As it stands now, the LED stays on at night and I have to unplug/replug the cable to be able to connect when my girlfriend takes her connected laptop to work.  It would also be sufficient to turn off Bluetooth on sleep, since I don't use a Keyboard/Mouse that needs to be able to wake the computer.


How can I get a list of all objects named 'foo*'?

In my export script I wish to export all object named 'foo*' in one format, and all objects named 'bar*' in another format.  I could write 2 separate exporters that operate on the selection (so I select all 'foo*' objects and execute FooExporter,  rinse and repeat for 'bar*'  But I would rather get it done in one go, with:  fooList = get_objects_starting( 'foo' ) for obj in fooList:     foo_exporter( obj )  barList = get_objects_starting( 'bar' ) for obj in barList:     bar_exporter( obj )   How can I get a list of all 'foo*' objects?


Within a package I'm making, I want ignore the default draft behavior and write my own. I have tried:  \DeclareOption{draft}{ MYCOMMANDS ... \OptionNotUsed } \ProcessOptions   If draft is used, my commands are run, but all other features of the draft option (e.g. disabling images and hyperlinks) are still enabled.   I want to disable the draft option from the document class level from my package and prevent it from being passed to any packages. Is this possible to do from my package?


Should I use '' I had been listening to this concert since it started snowing, at seven.'' or ''I have been listening to this concert since it started snowing, at seven.'' I never know when to use present perfect or past perfect.


Higher Pokedex Pokemon missing from Pokemon Go?

I recently hatched a Magby, which is #240 in the Pokedex. As of February 2017 the highest other Pokemon I have seen are in the 170s though. Are there a lot of Pokemon from this part of the Pokedex not yet included in Pokemon Go? Update: The missing Pokemon appear to be there now.


How to add placeholder for contact form7 for dropdown?

I tried adding placeholder similar to the given for ContactNumber for my drop down Outlet but it doesn't appear.  Code-
       [tel* ContactNumber /8 class:form-control placeholder "Contact Number *"]

   [select Outlet id:outlet class:form-control "-- Select Outlet--" "Pasir Ris" "Thomson"]
   Tried adding first_as_label "Preferred outlet?" so this displays as ordinary drop down values.  Rest all of the fields do show the placeholder,any other way to give placeholder for drop down?


Minecraft LAN 1.9.2 not showing up. (Using direct connect does not work, disabling firewall does not work.)

My girlfriend and I are trying to play Minecraft together on the same wireless connection. It should be very simple; open a single player game, pause then open it up to LAN. Then the other person would connect. However, the game does not show up entirely, and we have tried disabling the firewall to see if that was the problem, which had no affect on the issue, also using direct connect with our IPv4 address, as well as a combination of both. Nothing seems to make the game appear, even waiting for long amounts of time. The only software I think may tamper with the connection would be Hamachi, but we both have it powered off and closed. Is there a solution for this or should I just contact my provider?


How do I find an orthogonal polynomial for the Gaussian quadrature when the weight function is $x$?  In particular, I need to find $w_0,w_1,x_0, x_1$ such that  $$\int_0^1xf(x)dx \approx w_0f(x_0)+w_1f(x_1) $$ is exact when $f \in \mathcal{P}_3$.  Which polynomials can I use to find the abscissae $x_0$ and $x_1$?


I have a problem with the \label command, it is supposed only to label your section without appearing withing the text. and in my case I want to label a section but it appears right after the section like in the picture. Is there any package to make it disapear ?  Thanks for your help Omer


Why does't the export command work on PS1

I'm trying to set PS1 as "KeepPrompt", and prevent it from being changed while entering into a subshell. To do that I entered the following: user@host:~$ echo $SHLVL  user@host:~$ 1  user@host:~$ export PS1="KeepPrompt: " KeepPrompt:   KeepPrompt: echo $SHLVL KeepPrompt: 1 KeepPrompt: bash  user@host:~$  user@host:~$ echo $SHLVL  user@host:~$ 2  As you see when I try to create a new subshell, the PS1 definition doesn't survive entering into the new shell. Why is it so?


Optimize application to handle huge spikes

Our application is growing fast so now we need to scale the infrastructure to don't slow down the entire website independently on how many users we have  The backend system is based on many curl calls lasting 1-10 seconds and they need to be executed in parallel  We currently have a 4GB ram 4 core vps but sometime we get 503 error when all the 50 channels start in parallel (we setup 50 cron job) that execute 5 curl call/each  These numbers are going to increment fast so we need to find a solution to don't let the end user wait more than a minute to get his things done  Do we need a dedicated server, or it won't make much difference? Or set up aws lambda functions with sns queue? Amazon would be the best solution because whatever amount of sns messages we put in the queue and instantly they will get processed by enabling the trigger, but the lambda function currently don't support PHP so we would to rewrite all the code in Python  How would you manage this situation to improve the performance?


Hi Guys,  I have a set of points in 3D. How can I convert this into a surface ?


Bash inconsistent behavior between echo / assigning a variable with `set -e` and subshell

#!/usr/bin/env bash set -euxo pipefail  echo $(echo "$THIS_VAR_DOES_NOT_EXIST" | cat)  echo "WTF"   Running this script produces:  ./wtf.sh  ++ cat ./wtf.sh: line 4: THIS_VAR_DOES_NOT_EXIST: unbound variable + echo  + echo WTF WTF   Why does it run the last command echo WTF? I assume it would terminate the script at line 4 (due to the presence of set -e).  Does subshells not automatically inherit the set -e option? Or is this some special behaviour?    On the other hand if it seems if I don't echo the command and instead output it to a variable it behaves as expected... What?????  #!/usr/bin/env bash set -euxo pipefail  echo $(echo "$THIS_VAR_DOES_NOT_EXIST") echo "this works fine..."  yolo=$(echo "$THIS_VAR_DOES_NOT_EXIST") echo "this does not"  echo "..."   Produces:  ./wtf.sh: line 4: THIS_VAR_DOES_NOT_EXIST: unbound variable + echo  + echo 'this works fine...' this works fine... ./wtf.sh: line 7: THIS_VAR_DOES_NOT_EXIST: unbound variable + yolo=   Why does this behave differently?


While modeling an Audi R8 I have the following problem. The thing I want to create is seen in this image:    I want to create a sharp crease (outlined in red) which starts around the first exhaust and then goes to the second.  Is there an efficient way to do this (I also use the Subdivision Surface Modifier for this model).


I'm facing this error while updating or installing anything in my ubuntu. Here is the full error:   W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com/apt/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8C718D3B5072E1F5  W: Failed to fetch http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8C718D3B5072E1F5  W: Some index files failed to download. They have been ignored, or old ones used instead.   How can I solve all this type of errors?


How can I change my Khajiit character into a werewolf?

Okay, my character on Skyrim is a Khajiit and IM not very far in the game....but i would like to know where i have to go in order to become a werewolf?


I know, it's not a macro (or, in Nikon terms, Micro) lens. But, want to use it that way sometimes.  Though, for budget's sake, i was considering a Tamron AF 70-300mm(F/4-5.6 Di LD Macro), but, ended up buying Nikon 55-300mm for overall value. I tried to utilize a closeup filter, but it was a frustrating experience.  Is there any to utilize for macro shot by using any technique, or any close-up filter, or any other way ?  Do you have any experience to share?  p.s. My camera is a D5100


I want to compute the eigenvalue of this matrix. Help me, please.

\begin{pmatrix} 2na & -a & -a & -a & -a &  -a& -a\\   -a& a+b & 0 & 0 & -b & 0 & 0\\   -a& 0 & a+b & 0 & 0 & -b &0 \\   -a& 0 & 0 & a+b & 0 &  0&-b \\   -a& -b & 0 & 0 & a+b & 0 & 0\\   -a&  0&-b  & 0 & 0 & a+b &0 \\   -a&  0&  0&-b  & 0 & 0 & a+b \end{pmatrix}   Above matrix is for $n=3$. There are block matrices $(a+b)I_3$ and $(-b)I_3$ above. I think the characteristic polynomial of this matrix for any natural number $n$ is calculated efficiently.  The rank is $2n$, so the characteristic polynomial should zero as the constant part. But I cannot calculate the determinant and I can't get zero when I put $t=0$ when I calculate $\text{char}(M)(t)$ for any $n$.   Also, I would like to know about the form, for example, spectral decomposition or Jordan from to compute eigenvalue of this matrix rapidly. Please give me a favor.


In PHP is there a difference between foreach syntax

Is there any reason to use one foreach syntax instead of another?   foreach (array_expression as $value) {     // statements }   or  foreach (array_expression as $value) :     // statements endforeach;


First off thank you for taking the time to scroll through this.  I am basically a greenhorn when it comes to Java but I am working on a program that asks the user some basic info then sets a start date and then schedules service dates at bi weekly intervals between March and October from their start date.  For the start date variable, I simply set it up as:  STARTDATE = getDate();   to give the current date when the user signs up.  I have been sifting through my searches for days but I cannot figure out how to increment the service dates by 14 days to save my life.  I tried using SERVICEDATE = STARTDATE + (0, 14, 0);  but I cant make sense of whats really happening here.  Any ideas?


Why isn't the sky violet? Is there any physical reason why the sky isn't perceived to be violet or is it all in our cones?


SF colony novel, most likely from before 1972

A librarian friend received the following query about a novel a customer read long ago. I hope somebody can help.     The situation is that it can be foreseen that the Earth will collapse/break down — for whatever reason I do not remember — perhaps pollution. To prevent this from causing the annihilation of humanity, a series of spacecraft are being built to search for planets in the galaxy where humans can survive. As the journeys are long, there are not carrying people, but a kind of fetuses that will be activated upon arrival at a suitable planet. However, these new people are cultureless and for them to find out about working together and building communities, the ships carry ideas for this as well. Different spaceships have different social models. The spaceship the narrative follows has a community software that is inspired by ancient Greek democracy where people for the governing bodies and administration are selected by lot (this is correct - the conversations and polls on the Agora are of limited importance). What happens next I can't remember. As to when the story is from, I don't know, but I think I read it before 1972.


Allow suppression of automatic linking of web addresses

As most of you know, putting a link into a post automatically makes it a link (e.g. ) We can force the linkification with angle brackets (<http://localhost/>) if the markdown somehow misses it. But (as far as I know) there's no way to force the address to not be made a link.  Such a feature would be nice when we need example addresses, there's no reason to have a link to , for instance, or , from the question where I thought of this.   I think an easy way to mark this up would be something like <!http://example.com>, making the address appear in plain text without the hyperlink.  This came to my attention in this question:


Current state of example: "Dotting i's and crossing t's can be the longest part sometimes." Sometimes I need plurals of things that are not necessarily words. Single letters, acronyms, that sort of thing. Intuitively, I append 's to the end and call it a day, allowing me to write i's  rather than is  which could be potentially confusing. Still, this does not feel like it is the correct way to do it. That is not what an apostrophe is supposed to do. How do I create proper plurals of such non-words?


I read the following in a wikipedia article about 0.9999...:     A third derivation was invented by a seventh-grader who was doubtful over her teacher's limiting argument that $0.999... = 1$ but was inspired to take the multiply-by-$10$ proof above in the opposite direction: if $x = ...999$ then $10x =  ...990$, so $10x = x − 9$, hence $x = −1$ again."   If $x=0.999.......9$, then how can $10x=......90$? It must be $9.9999.....9$.


Search Engine that will return results based on date

Is there a way to use a search engine, preferably Google, that will yield results based on a date?  For example, I would like to search on a term and only return results as if I was searching for that term back in the year 2005.  The results should not have any web page results from 2006 and forward because they did not exist in 2005.  It would be great if it could be specific beyond year, to say a specific month and day: July 1, 2005 for example.  In Google, under Advanced Search, I only see a way to filter by Date by relevance to the current date by: anytime, past 24 hours, past week, past month, and past year.


How to convert mesh back to text object?

I converted text to mesh now i want to convert mesh to text, how  i can do it?


Why does changing the bounds of integration result in the negative of the original bounds?

If we were to have the integral from a to b if some function f(x), then that integral would represent the area under the curve from a to b, now based on the properties of integrals given to us in school, we are told that changing the bounds from b to a results in the negative of the original integral. However why would it result in the negative, you would think that it doesn't matter if you go from a to b or b to a as it would result in the same area under the curve. so my question is why is the integral negative when changing the bounds?


About a year ago, in a distressed state, I posted a question on Interpersonal Stack Exchange which I would rather delete. (I know that was a while ago, but I want to remove all traces of the situation from the internet.) The post was downvoted, closed, and is probably not of use to anyone else since it was regarding a very unique and specific situation. My account was suspended when I tried to delete the question through editing, and I tried explaining the situation to the mods. I even proposed an alternative edit that would not invalidate the answers but which would remove the identifying details and make the post less embarrassing. I then received the following reply: "Okay, let me be very clear one last time: Editing the post like you've tried or are proposing is not an option. There are others outlined in that help center article." The only other option I see under their help page is to ask that the post be dissociated from my account. However, dissociating the post from my account (or even deleting my account) would not make me less identifiable (especially to anyone familiar with the situation), and it would only permanently embed the post into stack exchange. Also, their own rules permit editing to generalize a question and remove identifying information. I feel they're deliberately antagonizing me, as is evident by their rude reply, plus any reasonable person would allow the post to be removed or at least edited given the circumstances. Is there anyone to report this to and/or any way to appeal their decision?


Why work done by gravity on a satellite moving around earth is zero? Why is the displacement of the satellite taken tangential to earth as it is the velocity that is tangential to earth?


Cyanogen dialer not working after flashing C-apps bundle

Recently I installed CyanogenMod on my phone. I also decided to flash Cyanogen's new C-apps bundle.  After I did that, the new Cyanogen dialer keeps crashing whenever I try to make or receive calls. Does anybody know what's going on?


Show that $f$ is uniformly continuous given $\lim_{x \to -\infty}f(x)=a$ and $\lim_{x \to \infty}f(x)=b$

Let $f:\Bbb R \to \Bbb R$ be continuous. Assume   $$ \begin{aligned} &f(x) \rightarrow a \quad \text { for } x \rightarrow-\infty\\ &f(x) \rightarrow b \quad \text { for } x \rightarrow \infty \end{aligned} $$   Show that $f$ is uniformly continuous.   I'm lost here.


Is binary logistic regression a special case of multinomial logistic regression when the outcome has 2 levels?

Is it correct to say that binary logistic regression is a special case of multinomial logistic regression when the outcome has 2 levels?


I came across a claim that I found interesting, but can't seem to prove for some reason. I have the feeling it should be easy  a prime $p$ can be written in the form $p = a^2 -ab +b^2$ for some $a,b\in\mathbb{Z}$ if and only if $p\equiv 1\bmod{6}$


Remove an element from an array and return it

I am trying to remove an element from an array and return it. I am using a temporary variable to store the element before I make it null. However I get a null pointer exception. The array is used to store the key and the value of a Hashmap, map      if (map[location].getKey().equals(k)) {          V temp = map[location].getValue();         map[location]=null;         return temp;       }


University rank/stature - How much does it affect one's career post-Ph.D?

What I'm trying to understand is, to what degree does the status/rank of the University (where one completes his/her Ph.D) matter while shaping his/her career after graduation? I would like to know the weight given to one's school in both the following cases:   While applying for post-docs/faculty positions in academia While applying to industrial research labs   For instance, I've read on some forums (I can't locate the link now) that while considering prospective applications for tenure-track faculty positions, very few Universities accept a candidate who has completed his/her Ph.D from a lower ranked school having a lesser "brand" value, irrespective of the fact whether he/she has published equally original work as his/her counterpart from an Ivy league college. How much truth is in this statement? It would be really great if someone already in academia, either as a newly-accepted faculty or someone on the Faculty Hiring committee could share their experiences/statistics on this regard. I'm simply interested to know the answer, without commenting at all on whether such a practice is justifiable.  Similarly, what about recruitment to internationally acclaimed research labs (like  or ) - what importance do they place on the pedigree of a candidate's college, before taking into consideration what they published ?  I'm personally interested in answers related to the field of Computer Science (theory), but the question is applicable to any prospective grad student in any discipline in my opinion. Feel free to share your personal experiences post-Ph.D in detail, as that would give me (and future viewers of this question) about what its like to carve a career once you are out of school!


Rate limit how many stars you can add in a short time period

Not a huge griefing problem but annoying nonetheless. Someone joined a channel I was in yesterday and started randomly starring and unstarring chat messages over and over. There was no way to stop them without a mod or channel owner so we just had to keep asking whomever was doing it to stop. After a few minutes they did, but it begs the question why there was no limit to what they were doing. I can only assume since they didn't hit the overall cap the system can't take any action (and you can't see who is doing it to report them).  I'd like to see some sort of short term rate limit on stars. Say 2 stars in a 30 second time period. And deleting the star doesn't reset the timer. Doesn't stop anyone from bulk starring, it just slows them down to where someone else can catch on.


I would like to use beamer's fonts in a standard LaTeX article.  Something like:  \documentclass{article}  \begin{document} bla $bla$ \end{document}   But with everything with beamer's fonts inside?  I have found how to change the math fonts only (using  package) but I would like to change also the text fonts.


Is it UB to cast a pointer to a uint8_t to read a uint32_t value?

Given this concrete example #include <stdio.h> #include <stdint.h> #include <inttypes.h>     int main(void) {   uint8_t stuff[8] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88};   int64_t bigint = *((int64_t *) stuff);     printf("bigint = %ld \n", bigint);     return 0; }  Am I violating the C11 standard? Note that it appears to work right compiled with later gcc and clang with "-Wall -Wextra -fstrict-aliasing -std=c11", but for example gcc 6.4 will issue warnings that "dereferencing type-punned pointer will break strict-aliasing rules" which I expect from my understanding. Off the top of my head the safe way to do this is to perform the always safe cast to a character type and memcopy. However I want to understand whether this is UB or simply implementation defined; safe to do but not portable.


What happens when writing gigabytes of data to a pipe?

Let's say I have a makefile with a recipe called hour_long_recipe, which as its name suggests takes an hour to run. At random points throughout the recipe it asks yes/no questions. Let's say it asks 10 questions in total. One possible (and often recommended) way to run it is: yes | make hour_long_recipe  which answers all questions with y. However, from my understanding, yes keeps outputting to its stdout at  regardless of whether make is actually using that data from its stdin. Even if it was just 10 MiB/s (much slower than any implementation of yes if that reddit thread is to be believed), during the course of an hour it would add up to over 35 GiB, of which just 20 bytes will be read. Where does the data go? It's possible to save it to disk but that's wasteful, and if the disk fills up fast enough it can even cause make to fail. Presumably the operating system will stop it from getting to that, but how? What is the limit, and what happens when that limit is reached?


can the face of a person be accurately predicted from DNA information?

Can the face of a person be accurately rendered just from analysing a DNA sample of that individual?


Using the constructor of a class in a different folder Python

I have a set of classes each with a constructor. These classes are in a folder (lets call this folder ABC). I have a separate python file (lets call this file PROJECT) that is in the parent folder of ABC. I would like to use the constructors of the classes in folder ABC in PROJECT.   I know how this would be done if they were all in the same folder but how would this be done if the classes are not in the same folder.  Thank you very much for your help.


C# add new text to string WITHOUT copy it previous value

I have string that i need to combine with another string , for example  string string1 = "cars"; // the text is just for example  string string2 = "white"; // then string string1 = string1 + string2; // or string string1 += string2;   Alright , at first glance it doesn't have any problem right ?  NOPE , it does have problem  when the string.length / the string contain A LOT OF CHARACTER , for example when it contain 100.000 word , it start to get laggy or freeze when i put it inside loop, because it need to copy 100.000 word plus word from the other string everytime it combines string1 with string2 .  Is the any alternative way to add new text to string that contain massive amount of word ?


JAXB return 403 error after parsing stackoverflow RSS

JAXBContext jc = JAXBContext.newInstance(StackOverflowXPathMap.class);  Unmarshaller unmarshaller = jc.createUnmarshaller();  URL xmlURL = new URL("https://stackoverflow.com/feeds");  URLConnection conn = xmlURL.openConnection(); conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36"); conn.connect();  InputStream xml = xmlURL.openStream(); StackOverflowXPathMap stackOverflowXPathMap = (StackOverflowXPathMap) unmarshaller.unmarshal(xml); System.out.println(stackOverflowXPathMap.getAuthor()); xml.close();  Marshaller marshaller = jc.createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); marshaller.marshal(stackOverflowXPathMap, System.out);   I`m trying to parse RSS from stackowerflow, but I have some troubles. Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL:  I used to off my firewall and try run this code from other computer. I had the same 403


In Mac OS, when you have your login screen configured to show a list of users (as opposed to a username/password text box combo), each user is accompanied by a large circular image.  This is alternately known as a 'User Picture' or a 'Login Picture'.  All users have such an image even if they are the generic gray silhouette image.  Furthermore, when you enable network users to log into your mac, and have the login screen configured to show a list of users, the User Pic that accompanies the 'Other...' user is a special login picture, which is a gray silhouette of three individuals, like so:    I would like to change this image so that I can have a more fun picture for the students in my school to click on when they want to login with their network account.  I do not know how to do this.  One idea I had, and it was admittedly something of a brute force idea, was to find that image on the hard drive and replace it with a picture of my choice.  The image seems to be this one:  /System/Library/CoreServices/CoreTypes.bundle/Content/Resources/Everyone.icns   However, overwriting that file with a normal image had no effect on the login screen, so I am thinking that either, 1. that isn't really the file being used, or 2. it is the correct file but something else needs to change in addition to over writing it with a different image.  To clarify: I am solid on changing the user picture for normal users and I have a script in place already to do so. I do not need help with that.  It is the 'Everyone' image, or the gray silhouette of three heads, that accompanies the 'Other...' prompt on the login screen that I would like to change.  The "Bounty Goal" is to replace the 'everyone' image on the login screen with one of my choosing.  This is not the same thing as providing a login pic for an individual who has signed in by clicking on the Other link.  Thanks in advance for solving this!!


Can't install wine and having other issues with other installs

I am not particularly tech savvy but have been trying to understand how to use terminal and over a number of hours I find that wine won't install through any method so can't use windows programs and even programs designed for linux don't work when I install them except for .deb. I tried to figure out how to use something like tar.gz which didn't work. The one .deb program that worked makes my laptop freeze probably because it's an older laptop and the program does a comprehensive scan even the standard version. I really want to figure out how to to get recovery software that works for my laptop and android phone in case something goes wrong. I could try to switch back to windows 10 but it takes up so much space on the harddrive that my laptop can't handle it very well which is why I made the switch to elementary linux, and then ubuntu to see if it would work any better but I am struggling. I know this isn't super specific and haven't provided logs as not sure if will even get a response.


Are black holes black because of gravity or time?

I've always heard that black holes are black because light can't escape its intense gravity. If photons are massless how can they be influenced by gravity?  Or is it time that stops (relative to a distant observer) at the event-horizon that prevents photons to move towards the observer?


Understanding the parameters inside the Negative Binomial Distribution

I was trying to fit my data into various models and figured out that the fitdistr function from library MASS of R gives me Negative Binomial as the best-fit. Now from the  page, the definition is given as:     NegBin(r,p) distribution describes the probability of k failures and r   successes in k+r Bernoulli(p) trials   with success on the last trial.   Using R to perform model fitting gives me two parameters mean and dispersion parameter. I am not understanding how to interpret these because I cannot see these parameters on the wiki page. All I can see is the following formula:    where k is the number of observations and r=0...n. Now how do I relate these with the parameters given by R? The help file does not provide much information either.   Also, just to say a few words about my experiment: In a social experiment that I was conducting, I was trying to count the number of people each user contacted in a period of 10 days. The population size was 100 for the experiment.   Now, if the model fits the Negative Binomial, I can blindly say that it follows that distribution but I really want to understand the intuitive meaning behind this. What does it mean to say that the number of people contacted by my test subjects follows a negative binomial distribution? Can someone please help clarify this?


Odd integer n that divides $y^2-1$ is equal to gcd of roots.

Say $n\in \mathbb N$ with n odd and $n|y^2-1$ for some $y \in\mathbb N$. Show that $n=gcd(n,y-1)gcd(n,y+1)$. Also show a counterexample when $n$ is even.   I know that $n|y^2-1=(y+1)(y-1)$ so $n|(y+1)$ and $n|(y-1)$.   Since $n|(y+1)$ we can say $y+1=nx$ for some $x\in \mathbb Z$.  Similarly $n|(y-1)$ we can say $y-1=ny$ for some $y\in \mathbb Z$.  So $y^2-1=(y+1)(y-1)=n^2xy$.  I am having issues connecting this back to what we are trying to show.


In ArcMap, when I zoom out (or in) a single mouse-click (not dragging a rectangle, just a click), what is the change to the ratio?  If it is different between coordinate systems please explain it on GCS_WGS_1984.


I want to setup a cron job to lock my session every day at three PM. When I enter dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock  in a terminal window, the session locks immediately,  but when I do the same in crontab (even by using a BASH script) it didn't work. I want to create a BASH script to lock the session using dbus-send and add it to crontab.


How to add time-dependent actions in Lightning Process Builder?

How can I add time-dependant actions in my process flow?  I cannot see any function or button to add scheduled actions.


I have android lollipop 5.1.1 on my Samsung Galaxy Note 4. I would like to have an app start with my smartphone's boot. It's a call recorder app (automatic call recorder). How can I do that? Is that possible without root?


java.util.ConcurrentModificationException in javafx timeline

I haven't made Thread myself. I have one timeline that runs from the beginning to the end of the program which is as follows:   Timeline timeline = new Timeline(         new KeyFrame(Duration.millis(TIMELINE_DELAY), event -> {             intrudersList.forEach(Intruder::action);             towersList.forEach(Tower::action);             otherActivesList.forEach(Active::action);         })); timeline.setCycleCount(Timeline.INDEFINITE); timeline.play();   And when the die method of the Intruder class is called, i get this Concurrent Modification Exception.  First, I don't actually understand how timeline works! Does it create new Threads itself or what? and what will happen if for example we have a timeline that does a task every 10 seconds and that task takes 15 seconds to be done! And second indeed: How can i get this fixed!?  public void die() {     this.getCell().getContent().remove(this);     TimeLine.getInstance().removeIntruder(this);     System.out.println("death of intruder at: " + cell); }