How to call a function pointer inside a function

Let's say I have a function del that I want to call as argument of a function use_del in another function my_funct, like this :  void del(void *d); void use_del(char *str, void (*del)(void *));  void  my_funct(void) {     // code     char *str = "thing"      use_del(str, (*del));      // code }   I sometime have an error message saying I should do  use_del(str, (*de)(str)); but it sounds counter intuitive to me, since I'm supposed to call a function, not pass an argument to it.  Is the big block of code the correct use of a function pointer used as an argument ? I couldn't find resources on the subject beyond genericity, and I still struggle to make tests on specific parts of a code.


Can't sign into PokemonGo with google account

When I sign in with my google account, it just shows me a white screen and doesn't change.. I was level 16 and love the game. Help please?


A more efficient way to solve system of congruences?

I'm trying to solve the problem that given any $x \in \mathbb{Z}/3705\mathbb{Z}$, I want to find all $x$ such that when mapped under the Chinese Remainder Theorem, is mapped to $(\bar{4},\bar{7})$ in $\mathbb{Z}/57\mathbb{Z} \times \mathbb{Z}/65\mathbb{Z}$.  Now I tried solving the system of congruences, $$x \equiv 4 \ (\text{mod} \ 57)$$ $$x \equiv 7 \ (\text{mod} \ 65)$$  Then I was left with, $$57k \equiv 3 \ (\text{mod} \ 65)$$ where $x=4+57k$. Now I could solve this by repeatedly adding (or subtracting) $65$ onto $3$, until I get a multiple of $57$. However when I typed it into Wolfram, the first solution that comes up is when I add or subtract $78$ and $38$ times respectively, which isn't exactly efficient in a test scenario. So I was wondering if there is some faster method to solve this question/system of congruences. Or some systematic way to find the number of times I need to add or subtract $65$.


Why are only Suggested Edits quantities shown in the toolbar?

In the toolbar, only the Suggested Edits queue quantity is shown. (I assume this because clicking on this number takes me directly to Suggested Edits every time.)    Why does this number only represent Suggested Edits and not all of the different review queues? Obviously, the close queue is always ridiculous (), so perhaps that one is worth excluding. But why are the rest not considered in this number?  If there is a disparity in mixing the different queue's totals, why show a number at all? Why not change it to some sort of icon notification if there are any review tasks available to be completed?


What is an effective way to level Archery?

Furthermore, how does Archery level? Does every successful hit on an enemy reward me with a set amount of experience, or does damage dealt also play a role?  Also, do I receive any experience for a missed shot?


Can I remove the unity launcher completely?

I'm using the MacBuntu pack, it's great but whenever I try to drag some icon/file to another place the launcher shows up. Is there a way to make it stop showing up or remove it completely?  Ubuntu 14.04 LTS


Using a regex expression to parse information between brackets

I am trying to parse information with regex, that is laid out in a style similar to json. Part of the problem I am having doing this involved identifying pairs of curly brackets.   group = {     field = element     innergroup = {         field = element         field = element     }     field = element     innergroup = { field = element } }  array = { field = element }   The first step in solving this problem is to identify the inner groups, bracketed off material that has no curly brackets between them. In the above example:  innergroup = {     field = element     field = element } #and innergroup = { field = element } #and array = { field = element }   I have tried to find these inner groups by using a few different regex commands. This is the closest I got.  \{.*?\}   I know that it has something to do with the fact that the "." character means all characters except for line breaks. I also have to figure out a way to rule out characters that are either of the curly brackets.  [Update]  Previous questions have asked how to do this when the curly brackets are all on one line. However, this does not address this innergroup.  innergroup = {     field = element     field = element }   The other questions also don't take into account the fact that there are many curly brackets, and thus other regex functions will find things like.  group = {     field = element     innergroup = {         field = element         field = element     }   Any help is appreciated. Thanks.


World Loader wont load world1.txt as an String

I have a problem with my Java Game. When i want to export it, it wont load the World. I'll get an "Thread - 0" Exception. This is my function:      private void loadWorld(String path){     String file = World.class.getResourceAsStream(path).toString();     file.toString();     String[] tokens = file.split("\\s+");     width = Utils.parseInt(tokens[0]);     height = Utils.parseInt(tokens[1]);     spawnX = Utils.parseInt(tokens[2]);     spawnY = Utils.parseInt(tokens[3]);      tiles = new int[width][height];     for(int y = 0;y < height;y++){         for(int x = 0;x < width;x++){             tiles[x][y] = Utils.parseInt(tokens[(x + y * width) + 4]);         }     } }   It needs to be loaded as a String since i need to split every String from it into an Array. What is the proper way to manage this?  EDIT: This is the Stack Trace:   C:\Users\User>java -jar C:\Users\User\Desktop\Game.jar Exception in thread "Thread-0" java.lang.NullPointerException     at dev.codenmore.tilegame.worlds.World.loadWorld(World.java:76)     at dev.codenmore.tilegame.worlds.World.<init>(World.java:36)     at dev.codenmore.tilegame.states.GameState.<init>(GameState.java:14)     at dev.codenmore.tilegame.Game.init(Game.java:61)     at dev.codenmore.tilegame.Game.run(Game.java:94)     at java.lang.Thread.run(Unknown Source)


Quick way to set background to transparant

What is the quickest way to set a transparant background to jpg image with a white background without any major editing?  I have tried a few online solutions but the quality always seems poor, so any online resources would be useful too.


First error: You have uncommitted work pending. Please commit or rollback before calling out

I am getting this error while running the batch. Any way to fix this. thanks  global class FileImpoLog implements Database.Batchable<sobject> {         global Database.QueryLocator start(Database.BatchableContext bc){         return Database.getQueryLocator('Select Id,Document_Process_Date__c,Workspace__c,CreatedBy.Name,Folder_Name__c,CreatedDate,CreatedById from FileImporter__c where  CreatedDate = today and Doc_Status__c != null');      }       global void execute(Database.BatchableContext BC, list<Sobject> obj){           List<File_Importer_Log_Entry__c> lstLogEntry = new List<File_Importer_Log_Entry__c>();          system.debug('lstFileImpor******' + obj);          for(Sobject o : obj){             FileImporter__c  M = (FileImporter__c ) o;             File_Importer_Log_Entry__c ML = new File_Importer_Log_Entry__c();             ML.created_by__c = M.CreatedBy.Name;             ML.Document_Process_Date__c = M.Document_Process_Date__c;             ML.WorkspaceId__c = M.Workspace__c;             ML.Workspace_Name__c = M.Folder_Name__c;              ML.Created_Date__c = M.CreatedDate;             lstLogEntry.add(ML);         }         system.debug('lstLogEntry*******' + lstLogEntry);          try{             insert lstLogEntry;          //List<blob> lstBody;         Blob body;         for(File_Importer_Log_Entry__c objLog : lstLogEntry){              body = Blob.valueOf('Created By:'+objLog.created_by__c+'/n'+'Document Process Date :'+objLog.Document_Process_Date__c+'/n'+'WorkspaceId :'+objLog.WorkspaceId__c+'/n'+'Workspace Name'+objLog.Workspace_Name__c+'/n'+'Created Date :'+objLog.Created_Date__c);             //lstBody.add(body);         }              system.debug('******body :' + body);             String loginToken = MSOP_iManage_Service.getLoginToken();             String targetUrl = 'https://test.com/api/v1/folders/folderName/documents';             HttpRequest req = new HttpRequest();             req.setEndpoint(targetUrl);             req.setHeader('x-auth-token', loginToken);             req.setHeader('Content-Type', 'application/json');             req.setMethod('POST');              req.setBodyAsBlob(Body);               //req.setBody(Body);             Http http = new Http();             HttpResponse res = http.send(req);             system.debug('**********res : ' + res);           }catch(DmlException e){             system.debug('***Error while inserting log entry - BatchName:FileImpoLog :' + e.getMessage());         }      }      global void finish(Database.BatchableContext BC){                           } }


The best symbol for non-negative integers?

I would like to specify the set $\{0, 1, 2, \dots\}$, i.e., non-negative integers in an engineering conference paper. Which symbol is more preferable?   $\mathbb{N}_0$  $\mathbb{N}\cup\{0\}$  $\mathbb{Z}_{\ge 0}$ $\mathbb{Z}_{+}$


Unclear occurence of Error CS0136 in 3-liner

This piece of code produces the error CS0136:  static void Main(string[] args) {     foreach (var arg in args) Console.WriteLine(arg); // error in this line (arg is underlined red)     string arg = "lol";     Console.WriteLine(arg); }      A local variable named 'var' cannot be declared in this scope because it would give a different meaning to 'var', which is already used in a 'parent or current/child' scope to denote something else.  In this case the compiler Claims that the parameter arg in the foreach loop is already declared. The Problem i have with this is , that i declare the string arg after the foreach loop, so it should work, or am i missing some point. Is some sort of "Optimizing" which rearranges the order of my code?  I understand, that if i would declare it before the foreach loop it would be an error. Furthermore i know that i could name it diffently. But i want to understand it.


It has been about a year since I graduated college and started working. So far all my earnings are going into my checking account. Since I don't have much experience with managing my finances, I was wondering is it OK to let all my money go into the checking account ? Or do I have to create a new bank account like a savings account and split the money in between ? As I understand, savings account only yield like an extra $1 every year so is it even worth it ? I am living in USA.


Alright, so I'm trying to get the percentage of uppercase letters in a string. However, I'm not having much luck as my current code only says prints out if 100% of the string is uppercase.    int capsCount = 0; foreach (char c in e.message) {     if (Char.IsUpper(c))         capsCount++; }  Console.WriteLine($"{(capsCount/e.message.Replace(" ", string.Empty).Length).ToString("0.00%")} is caps."); Console.WriteLine($"{e.message.Replace(" ", string.Empty).Length}:{capsCount}");   Output from the console, #sydth is the irc channel, sydth is the username, and test is the message.   #sydth:sydth:TEST 100.00% is caps. 4:4  #sydth:sydth:test 0.00% is caps. 4:0  #sydth:sydth:teST 0.00% is caps. 4:2


Using Illustrator CS6 to create shape out of multiple paths

I am very new to Illustrator, in fact I am only experimenting with it in an attempt to help my friend develop a logo for a new business venture. I managed to draw out the shell of the logo using the line tool and modifying the lines with the anchor tool to get the shape I wanted.  However, I would like to somehow take all of these paths and create one object, or symbol which I can then apply a drop shadow, fill and various other effects too. Currently when I try to do this I get unwanted effects...  I'd appreciate any help on the subject.


I found no \citation commands after latex-bibtex-latex-latex (TextMaker + JabRef)

This seems to be a common problem, I read all the post here but can't fix the error   This is BibTeX, Version 0.99d (MiKTeX 2.9.6350 64-bit) The top-level auxiliary file: revision6.aux I found no \citation commands---while reading file revision6.aux I found no \bibdata command---while reading file revision6.aux I found no \bibstyle command---while reading file revision6.aux (There were 3 error messages)  Process exited with error(s)   My code is super simple, just usepackage with backend and style for biblatex. Then I cited with the key generated by JabRef  \documentclass[11pt]{article}  \usepackage[letterpaper, margin=1in]{geometry} % page settings \usepackage{floatrow} \floatsetup[table]{capposition=top}  \usepackage{authblk} \usepackage{amsmath} \usepackage[ruled]{algorithm2e} \usepackage{sectsty} \allsectionsfont{\normalsize}  \usepackage{graphicx} \graphicspath{ {./figures/} } \usepackage[labelfont=bf]{caption}  \setlength{\parindent}{7mm}  \usepackage[backend=biber,style=numeric]{biblatex}  \addbibresource{ABCbib.bib} \title{ABC} \begin{document} \maketitle  \section{Introduction}     proteins \cite{Zhang2013}  \printbibliography \end{document}   The bib file looks like  @Article{Zhang2013,   author        = {Yaoyang Zhang and Bryan R. Fonslow and Bing Shan and Moon-Chang Baek and John R. Yates},   title         = {Protein Analysis by Shotgun/Bottom-up Proteomics},   journal       = {Chemical Reviews},   year          = {2013},   volume        = {113},   number        = {4},   pages         = {2343--2394},   month         = {apr},   doi           = {10.1021/cr3003533},   publisher     = {American Chemical Society ({ACS})}, }   EDIT: Then I tried both latex (or PdfLaTeX) -> Biber -> latex (or PdfLaTeX) -> latex (or PdfLaTeX) and got the error with warning Citation Zhang2013 on Page 1 undefined. May someone please guide me here? The configure is already changed to biber.exe and I input biber % for using as user command. But the error remains and ask me to rerun biber.


does fisher yates shuffle based on index?

i am currently doing leetcode to prepare for job interviews and i came across a shuffle challenge. I looked shuffles up and came across fisher yates shuffle method and i got curious to learn the basics. so my question is, how does this work? currently i figured that the random value takes the current index and adds a random value from 0 to 1 multiplied with the length of the array minus the current index. Here i am curious about if the random generates a value between 0 and length and places the shuffled value at that index, or if it generates a value there? i am a bit confused as i want to learn it and memorize it for the future this is the code: static void Shuffle<T>(T[] array)         {             int n = array.Length;             for (int i = 0; i < n; i++)             {                 //_random.NextDouble() float >= 0 and less than 1 float >= 0 < 1                 // n = 4                 int random = i + (int)(_random.NextDouble() * (n - i)); // int random = 0 + randNext * (4-0) = [0,4]                                                                         // int random = 1 + randNext * (4-1) = [1,3]                                                                         //int random =  2 + randNext * (4-2) = [2,2]                                                                         //random =      3 + randNext * (4-3) = [                 //Console.Write("rand is: " + random + " i: " + i + " next: " + (int)(_random.NextDouble()*(n-i)));                 T t = array[random];                 array[random] = array[i]; // array[0,4] = array[0] = array[2] = 1                 array[i] = t;                 Console.WriteLine(array[i]);             }         }  basically im curious if anyone can tell me if my understand is correct or im misunderstanding the algorithm :D thx a lot


I just successfully added my Close vote to a question on Stack Overflow that had already been deleted by the author.  The question can be found .        The only purpose I see for such functionality is perhaps to stop someone from escaping the initial surge of wrath from critics, then subsequently undeleting their question.  And that would be a pretty strange thing to guard against.  It seems far more likely that this is an oddity that was overlooked.  So I'm just curious - is voting to close a deleted question a bug, or is it ?  If by design, what is the rationale behind it?


We say that could is sometimes the past of can. If that's true then why can't we use it in the following context.  They didn't let us. We could walk.  Instead we say:  They didn't let us. We could have walked.  But we can say:  Listen! I can hear something. I listened and I could hear something. Why not "I listened and I could have heard something"


When I reset my password and tried to log in, it won't log in. It is just saying invalid username or password.


Cannot add record type to standard profile because of unrelated error

I want to assign a case record type to System Administrator. When I try to do this I get the error:      Please fix the following:      Permission Subscribe to Dashboards: Send to Groups and Roles depends   on permission(s): Subscribe to Dashboards   I can't change these settings because it's a standard profile. Is there any way around this?


What is the difference between "vlc" and "VLC media player" in Ubuntu Software in Ubuntu 16.04?

I want to install VLC using a GUI but I don't know which one I should choose.


The question pretty much says it all, Is there a max number of answers per day. While I'm at it is there a max number of questions.    If there isn't does anyone think it should be implemented.


The following is a JEE (A national level entrance test) question:  Find the largest value of the non-negative integer ( a ) for which:  $$ \displaystyle \lim_{x \to 1} \left( \dfrac{-ax + \sin(x-1) + a} { x + \sin(x-1) -1 } \right)^{\dfrac{1-x}{1-\sqrt x} } = \dfrac 1 4 $$  On solving this, we get $ a = 0 $ or $ a = 2 $. So we take the answer as $ 2 $. But the official answer key says that the answer is $ 0 $. The reason given (not in the official key - they simple contain the answer. I saw the reason in an "unofficial" solution to the question paper) is that if $ a = 2 $, then the term $\displaystyle \dfrac{-ax + \sin(x-1) + a} { x + \sin(x-1) -1 } $ tends to a negative value ( $-0.5$ ). So $ a = 0$.  BUT:  By putting $a = 2$ in the limit, and inputting that to wolframalpha (), the answer turns out to be $0.25$. So, by putting $ a = 2$ also, we get the same value of the limit - $0.25$.  How to solve this dispute? Also, could you please check with Mathematica? Unfortunately, I don't have access to it!  (This is very important as the change in the answer key will affect the rankings in a dramatic way)


Is the E-cat by Andrea Rossi et al. for real?

Does this thing really do what they say?    If it does, it looks like this will probably be the biggest breakthrough in science ever :)


My question is very straightforward, Why XeLateX is slower than pdfLaTex, and some times has a long pause before running the main file?  I know XeTeX/XeLaTeX has to load a lot of packages, but why, once a while, it stops for a long time after the last file loaded?  and further more why after starting to compile the pages, the average speed of XeTeX's page processing is slower than the average speed of pdfTeX's page processing?


I just installed Ubuntu On my Lenovo ideapad s145 and I don’t see a WiFi icon or a WiFi setting what can I do to fix this And my pc doesn’t not have a space for an Ethernet cable and this is my OEM Wireless WiFi Card RTL88821CE 01AX710


I created a logo for a company I'm a part of, but I've ran into an issue after trying to put it over different backgrounds. Basically, because I didn't know how to shape the black line segments in the logo, I overlayed them with white segments that would seem to erase what I wanted, and then put a framed white box behind the logo, so the white lines would disappear.     But now my team wants to get rid of the white box and for the logo to be transparent so it can be put over various backgrounds. This is a problem because the white lines still exist that were used to edit the black ones. My question is, how I can cut/chop/divide/erase the black segments so I can shape them how I need. From what I've tried, the eraser functions do not work.


Why does cornstarch and water mixed together become solid when put under stress?

is one of the many videos on youtube showing how a cornstarch and water mixture can become very hard when put under stress. I haven't found a good explanation of why it behaves the way it does. Is there any paper that has been published on this that explains the weird properties of the liquid? If not, could someone here try to explain what is going on?


Word for a person who agrees with everything the teacher says

In college, I see that some of the students who sit on the first bench just keep on smiling or laughing at every joke the teacher makes. Everytime! Even if it is not funny!  The closest word that I could find was  obsequious. But I don't think it does the job here because those students are not that much obedient or attentive to appease the teacher nor I would say they are sycophants.   They just act so fakely in that little time in order to please the teacher even though after the lecture they would just not give a damn what the teacher was talking about.


Is there a technique for combining multiple images to create a sharper result?

I've been experimenting with photogrammetry for a while, and the main hurdle I keep tripping over is the clarity (lack thereof) of my images.  Rather than spend a lot of money on a better camera, I'm wondering if there are ways to overcome the inherent imprecisions. One idea I had is to snap the exact same photo several times (from a tripod) and somehow combine those images to refine the accuracy. I'm familiar with focus stacking, and that's not what I'm thinking of (though it might still be helpful in ways I haven't thought of). I'm also not necessarily talking about stitching low resolution images into a higher resolution panorama. In fact, for photogrammetry, the image lens metrics have to be calculable and consistent.  Is there an existing technique for doing something like this, i.e. refining one image with another, or combining many images to create a finer result?


Is there anywhere on Stack Exchange that offers a comprehensive list of code that serve as examples of good programming?

I know that  is a great place to get feedback on programs and examine code. But, I would love to see a place on Stack Exchange that keeps a comprehensive list of complete programs that are voted on by a number of characteristics such as readability, concept illustration, elegance, programming classics, etc.    Reading others' code and playing with it really helps me to understand new concepts. Does anyone think that is a good idea?


Strictly RAW, is punching someone with a crossbow a melee attack with a ranged weapon?

I’m exploring ways to combine the Crusher feat with a melee rogue-paladin, and have come into a conundrum- without using my busy bonus action to two-weapon-fight with a club, is there a way to get bludgeoning damage with a melee rogue? This is my best attempt- using Tavern Brawler to punch people with a crossbow as the strangest of Improvised Weapons. As this is just a rules exploration unlikely to see the light of day, RAI isn’t very relevant here. RAW, will punching someone with a crossbow allow it to be a melee weapon attack with a ranged weapon, letting me use sneak attack and smite? Unlike questions regarding thrown improvised weapons which, outside of being improvised weapons, notably lack the finesse or ranged properties, crossbows clearly have the ranged property. This question isn’t about if improvised weapons give it a new property, but rather, if they retain their original property (in this case, ranged).


How do I create/modify Custom Labels programatically?

Is there any possibility to create/modify programmatically custom labels using APEX or any other programming language?  As far as I observe there is a possibility to access them via   Label.your_label_name   But not able to create any or update it.


I have a US Green Card and applied for UK visa (Travel Visa) last month but haven't heard anything back from the New York Office. I am travelling on the 19th and am really concerned. They don't have any phone no. or email other than NEYOZVisaInfo@fco.gov.uk (it says incoming mail cannot be monitored).  Please assist.


Do pre constructed decks refresh standard rotation?

I'm a starting player, so I'll be getting the  coming next week to hopefully get playing into Standard. I get this clash pack can be made into a BG Dredge deck, which seems nice for starting a deck but I also noticed most of these cards are from Theros, which comes out of rotation soon, also the logo in these cards is different, also different from Khans of Tarkir or Fate Reforged logos.   So my question is if where are this cards found in the standard rotation, and when would they go out. Thanks.


Local files revisited: Opening local HTML files (file:///path/to/file) in Chrome on Android 4.x

There are  on this same topic, but I'm finding that on 4.0.4 with my HTC One, I can open file:/// URLs just fine with Firefox, but not with Chrome or the Android browser. Those two simply report a security error and show no content.  Is this something that changed since the 2.x era when it was apparently possible? (edit well I realize there was no Chrome for 2.x but ...)  edit — sorry; false alarm. It works fine.  All the visible directories on the phone - those you browse through with a file explorer, or when you mount the device as mass storage - are under a top-level directory called "sdcard".  Thus, if you create a folder at (apparently) the top level, then a file in it must be accessed as:  file:///sdcard/your_folder/hello_world.html   Probably most people know that already :-)


I am trying to add smoke to a cigarette. I've created a Cylinder, hit space and chose quick smoke while this sphere was selected. It created a transparent bigger sphere and it is emitting smoke in solid and texture mode. But when I try it out in render mode, it won't show the smoke for some reason. Here is my setup:    The cylinder has a basic white material. Thanks!


How do you deal with very long dropdown values?

Usually, dropdown menus are made as long as their longest value. However, that works well only for dropdowns with a predefined set of values. How can we deal with a dropdown that receives its values dynamically and displays user-generated values which don't have a reasonable size limit? For example a file name may be extremely long. I'm looking for a way to solve this which would still let me use the dropdown in a reasonable way (e.g. without having to always place it in its own row for fear that it might grow and mess with my layout).   Truncating values at a low cutoff point won't work well since the difference between the values might be at the last characters (again, the file extensions example is a good one). I can use it for the edge cases, but I'd like to get there as late as possible.


I need some help with creating an appendix for my thesis. I have about 10 figures which need to be in the appendix. I have a good appendix with the following code:   \appendix  \addcontentsline{toc}{chapter}{APPENDICES}  \chapter{XXXX}   I have a main thesis.tex file where I call this appendix.tex file after the last chapter. Problems are:   The appendix starts without any notice that it is the appendix except for the chapter number being A, but I want to have either a separate page which says "Appendix" prior to the start of the appendix or on top of the first appendix page to explicitly say "Appendix". Now I use the \chapter{} command to have the title of the appendix but I think I will have only one chapter in the appendix. Is there some command which can make the title insited of chapter?


How can I find more music similar to the ones I like?

I'm having a hard time collecting music I'm interested in through genre. Do I have any options to look for similar music based on a recording / song name?  For example, when browsing a video tagged Music on Youtube, Youtube presents a "Youtube mix":    But there does not seem to be any known service for this.


How to use as argument the characters + , - , x , / in a script

I am trying to write a script I will call calc.sh that does basic calculations using the arguments for the script ( $1, $2 and $3). For instance I'd like to get  2 as result for  ./calc.sh 10 / 5  My start goes as this:  if [ $2 -eq "+" ] ; then res=`expr $1 + $3` ; echo "$res" ; fi   But it won't work, I  get something like : Line 2 : [ +: an integer expression was expected  NOw That I used == to make the comparison is working fine for all the operations except the division /. The code now is:  if [ $2 == "+" ] ; then res=`expr $1 + $3` ; elif [ $2 == "-" ] ; then res=`expr $1 - $3` ; elif [ $2 == "x" ] ; then res=`expr $1 \* $3` ; elif [ $2 == "/" ] ; then res=`expr $1 \/ $3` ; else res=`Operación no válida` ; fi ; echo "$res"   But if I try ./calc.sh 10 / 5  , I will get:  "line 4:  10 / 5 : syntax error: invalid arithmetic operator (the error element is "\ 5 ")... Alas as I am typing I'm realising it should be  $1 / $3 ... :)


Reflection: Dynamically get type and use to create a List (error: is a variable but is used like a type)

public class Worker<T> {   public void Work(T expected)   {      // Get a list of all the properties that the incoming object owns      PropertyInfo[] objectProperties = typeof(T).GetProperties();       // Grab the first property      PropertyInfo property = objectProperties [0];       // Get the property's type      string propertyType = property.PropertyType.Name;       // If this item is a list, then lets recreate the list      if(propertyType.StartsWith("List"))      {        Type listType= a[0].GetType();        List<listType> myList = new List<listType>();      }   } }  In the code above, the following line is wrong: List<listType> myList = new List<listType>();  How do I dynamically create a list using reflection? I am getting the error message,  " 'listType' is a variable but is used like a type "


I have a few 3D scanner meshs and I have a few .stl and .ply but when I import them in to blender I lost the color... why? and how do I fix it ? also I got a file called model_texture.jpg that comes with it, with is weird have has color on it, so I think that is important somehow, but I do not know what to do with it.


remove lines where a field's value is less than or equal to 3 - sed or awk?

I need to remove every line that has a value of 2 or less in the 8th field (column).   My data looks like this:  12-31   Airport 189 379 41  49.70946503 -124.91377258   2   2880    30.8 01-01   AlberniElementary   165 331 16  49.26100922 -124.80662537   4   5760    26.1 01-09   BamfieldMarine  161 323 23  48.83490372 -125.13572693   2   2875    27.4 01-10   BamfieldMarine  161 323 23  48.83490372 -125.13572693   3   3068    38.6   I understand that using awk I can strip off the values desired and print them to another file, and I understand that sed would edit the current file. In either case, I need to retain the original file.   Note: Please provide thorough explanations with your solutions. It is not suffice to just write the command, please annotate suggestions.   Further note: The data has a header line, so most likely solution will need to      awk 'FNR >1'   I suppose?


Characterization of sets of differentiability

If $f : \mathbb{R} \to \mathbb{R}$, define $C(f) = \{ x : f \text{ is continuous at } x \}$ and $D(f) = \{ x : f \text{ is differentiable at } x \}$. I have seen it proved that:   $C(f)$ is a $G_\delta$ set. For any $G_\delta$ set $A \subset \mathbb{R}$, there exists a function $f : \mathbb{R} \to \mathbb{R}$ such that $C(f)=A$.   I suspect there is a related characterization for $D(f)$. I see that a related question was asked at , where the accepted answer implies that $D(f)$ is a $G_{\delta \sigma \delta}$ set.   Is this optimal, that is, does there exist $f$ such that $D(f)$ is $G_{\delta \sigma \delta}$ and not $G_{\delta \sigma}$? If so, can an example be given? Conversely, given any $G_{\delta \sigma \delta}$ set $A \subset \mathbb{R}$, does there exist $f$ such that $D(f)=A$?


Illustrator: How to exclude textured strokes (Chalkboard effect)

I'm trying to create a lettering with chalkboard effect in order to print it on a chalkboard mug. However, most tutorials I found for Adobe Illustrator recommend applying a textured stroke to the text. (One of the charcoal effect brushes)  Now I would like to exclude the stroke (with texture) from the text itself. However, I can't really figure out how to do that without throwing away the charcoal texture as well.  Here's an example: The red part should be excluded from the text. Using a certain color is not an option since we don't know the exact background color and we're only allowed to use 2 colors.    Thank you!


How does LSTM prevent the vanishing gradient problem?

LSTM was invented specifically to avoid the vanishing gradient problem. It is supposed to do that with the Constant Error Carousel (CEC), which on the diagram below (from ) correspond to the loop around cell.  (source: ) And I understand that that part can be seen as a sort of identity function, so the derivative is one and the gradient stays constant. What I don't understand is how it does not vanish due to the other activation functions ? The input, output and forget gates use a sigmoid, which derivative is at most 0.25, and g and h were traditionally tanh. How does backpropagating through those not make the gradient vanish ?


Extending a domain of a function to closure of domain

Let $X$ be a topological space , $Y$ be a metric space and $A$ be a subset of $X$. Let $f$ be a continuous  function from $A$ to $Y$. (Here $f$ is continuous in the sense that any inverse of image of an open set is open.) How do I prove that there is at most one way to extend $f$ from $Cl(A)$ to $Y$ ? ( $Cl(A)$ is the intersection of all closed supersets of $A$ ). In case of $\mathbb{R}$ we can verify this easily but I am not able to do the same for topological space. Any suggestion is appreciable.


Having read the Lord of the Rings a number of times I was always curious about the significance of Goldberry. I have not managed to find any reference to her origins within the other Middle-earth books that I have read.  Is she was just a mortal woman, or is there was some deeper significance to why she ends up living with Bombadil, or is she just a token female character designed to add a little balance to the overwhelmingly male character count?


From time to time, SSH sessions to my servers just freeze up and then neither Ctrl+C nor Ctrl+\ do anything.  How do I quit the session without just closing the Terminal it's in?    Clarification:  The session is locked as in, no keys are transmitted to the server. I'd like to shut it down gracefully, such that the user isn't logged in anymore.  I know I can kill the SSH client, but that will, in time, make the "2 users" info message I get from uptime meaningless. I'd like to know how many users are really logged in.


Consider $X = \{x_1, x_2, x_3\}$. Then $\bar{x} = \frac{1}{3} (x_1 + x_2 + x_3)$ with degrees of freedom, $df(\bar{x}) = n = 3$.  Now consider the total variation in $x$:  $$S_{xx} = (x_1 - \bar{x})^2 + (x_2 - \bar{x})^2 + (x_3 - \bar{x})^2$$  If we express $x_1$ in terms of $\bar{x}$, $x_2$, and $x_3$, then  $$S_{xx} = (3\bar{x} - (x_2 + x_3) - \bar{x})^2 + (x_2 - \bar{x})^2 + (x_3 - \bar{x})^2$$  Why does $S_{xx}$ have $2$ degrees of freedom?  My professor says that our knowledge of $\bar{x}$ causes $S_{xx}$ to lose one degree of freedom, but I have no idea why.


If someone has Reduce/Enlarge Person cast on them, does equipment picked up later (after the initial casting) resize?

The rules for  and  say "All equipment worn or carried by a creature is similarly [reduced or enlarged] by the spell." Does that happen once at the beginning of the spell for the duration of the spell or do other things picked up later also change in size?  Which one of the two is it, and wouldn't the latter have really strange consequences, such as if you pick up a friend all their equipment (but not the friend itself) would become while you carry it/him?  Inspired by this .


Undefined control sequence \documentclass

First of all I would like to thank you because you helped me out a lot with all your answers to the already online questions.  Now, here is my problem. I am trying to do a bibliography file with TeXworks but I get this error when I try to compile (pdfLaTeX+MakeIndex+bibTeX):      This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit)     entering extended mode     ****PATH here******     ! Undefined control sequence.     l.1 \documentclass         [a4paper,11pt]{report}   I've been reading some similar questions but I don't find the way to fix it (maybe I am missing something). I found one that says that I am trying to compile a LaTeX file using TeX compiler but I don't know how to change the configuration.  This is the .bib fiel content:      \documentclass[a4paper,11pt]{report}     \usepackage[english]{babel}     % faire de l'anglais     \usepackage[latin1]{inputenc}   % accents dans le source     \usepackage[T1]{fontenc}        % accents dans le DVI     \usepackage{url}     \begin{document}      @Article{ref11, author={Danihelka, Jiri and Kencl, Lukas}, journal={Cloud Futures Workshop 2012 }, title={Colaborative 3D Environments over Windows Azure}, year={2012}, month={May}, pages={}, note={}     }      @book{ref12, author = {Lee, Henry and Chuvyrov, Eugene},     title = {Beginning Windows Phone 7 Development},     publisher = {Apress},     volume = {},     number = {},     series = {},     address = {},     edition = {Second edition},     year = {2011},     month = {July},     note = {}     }      @Article{ref13, author={}, journal={}, title={Cloud computing}, year={}, month={}, pages={}, url={\url{http://en.wikipedia.org/wiki/Cloud_computing}}     }      \end{document}


How can I access the size of a tikzpicture's bounding box outside the tikzpicture?

I'm trying to calculate the size of a tikzpicture using the current bounding box, but every time I try to extract the coordinates I get 0pt (for everything).    \documentclass{article} \usepackage{tikz}  \newlength{\mywidth} \newlength{\myheight}  % computes width and height of tikzpicture  \newcommand{\pgfsize}[2]{ % #1 = width, #2 = height  \pgfextractx{#1}{\pgfpointdiff{\pgfpointanchor{current bounding box}{south west}}  {\pgfpointanchor{current bounding box}{north east}}}  \pgfextracty{#2}{\pgfpointdiff{\pgfpointanchor{current bounding box}{south west}}  {\pgfpointanchor{current bounding box}{north east}}} }  \begin{document}  \noindent \begin{tikzpicture} \draw node[rotate=90]{  \framebox{  \begin{tabular}{c|c}  first column & second column\\  \hline  1 & A\\  2 & B\\  $\vdots$ & $\vdots$  \end{tabular} }}; \draw[color=red] (current bounding box.south west) -- (current bounding box.north east); \pgfsize{\mywidth}{\myheight} \end{tikzpicture}  \noindent Width = \the\mywidth \\ Height = \the\myheight \end{document}   As you can see, one can draw a line across the bounding box, so it exists and is non-trivial.  I'm thinking I may have to use \pgfgettransformentries, but when?


Is it normal for focal length to change while focusing?

When I change the focus distance on my Pentax 55-300mm lens, the focal length appears to change.  More specifically, the lens appears to zoom in as I focus towards the minimum focusing distance.  This is most noticeable at the 55mm end of the lens.  Is this normal?


How do I fix "Error C1033: cannot open program database"?

I'm trying to build a program where the user picks a consonant/vowel and a random letter is chosen and added to a string each time, similar to the TV show countdown. I'm hit with the error in the title. When I try to compile the console reads that the file is not readable as an executable.  // April16Assignment.cpp : Defines the entry point for the console application. //  #include "stdafx.h" #include <stdlib.h> #include <string> using namespace std;  int main(){  char type, letters[10]; char vowels[6] = { 'A', 'E', 'I', 'O', 'U' }; char consonants[22] = { "B", "C", "D", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "V", "W", "X", "Y", "Z" }; int i, j, k, l;  for (i = 0; i < 9; i++){ printf("Vowel or consonant? (V/C)"); scanf("%c", &type);  if (type == 'V')     for (k = 0; k<1; k++){         j = (rand() % 5);         strcat(letters, vowels[j]);      } if (type == 'C')     for (l = 0; l<1; l++){         j = (rand() % 21);         strcat(letters, consonants[j]);      } else     printf("Invalid!"); break; }     printf("%s", letters); return 0; }


Command cards (Star Trek Catan) for vanilla Catan?

I played Star Trek Catan for the first time last night and really enjoyed what the command cards (Sulu, Kirk, Spock) added to the game.  I would like to purchase a deck of command cards themed to match regular Settlers of Catan. Does this exist in one of the expansions, or as a standalone?  Edit: Sorry, this is a duplicate of


I need to select certain lines from the log file and also save them to a text file. I tried the following but none of them are working as expected. The file "todel.txt" shows 0 bytes.  tail -f general.log | grep Some_word > >(tee -a todel.txt)  tail -f general.log | grep Some_word ; tee  todel.txt  tail -f general.log | grep Some_word | tee -a todel.txt


Why use public methods in JavaScript objects?

I'm part of a small study group at work that's trying to get a better grasp on what makes JavaScript tick. In our recent discussions about objects, we've learned that an object's public methods are recreated each time an object is instantiated, while methods assigned to the object's prototype are only created once and inherited by all instances. From what I understand, both public methods and those assigned to the prototype are publicly accessible.  The question I have, then, is why bother creating public methods at all if adding to the prototype is apparently more efficient? What benefit does the public method provide that the prototype doesn't?


Solar Cell - Preventing overcharge of an NiMH battery

I am trying to design a circuit and was wondering how to design it that the 12V 800mAH NimH battery I am using will not overcharge. I have researched trickle charging and as far as I understand, a zener diode that regulates the voltage down to about 13.3-13.7V should do. I chose a 14V Zener, taking into account the .6-.7V drop.   I have heard that trickle charging is not the best for the battery, but am not sure how much more work designing a smart charger would take.  I was also thinking of using another diode to prevent flow back to the panels from the battery.         – Schematic created using  The three voltage sources on the left represent the solar cells, with the NiMH battery on the right.  I was wondering if I needed any additional components if I were to use three 5.5V solar cells in parallel outputting 40mA (16.5V total at 40mA, regulated to 13.3V by the zener) in order to prevent overcharging.  A similar question to mine was asked at  However, this dealt more with a larger lead-acid battery and used a voltage regulator with a schottky diode.   This link discusses almost my exact same question, but I was confused to the answer given which said that up to 1.45V per cell could be charged, taking my max charge voltage up to 14.5V.   Considering I am only outputting 40mA to an  800mAH battery, it seems that I may not need any more battery protection, but would love any input.


Why Arrays.sort() is not working on my arrayB? Also issues with java.lang.NullPointerException in main method

I am currently working on a project where I need to create an initial array (anArray) with randomly generated integers and make an exact copy of those random values in another array (arrayB). I then want to sort the first array with my selectionSort() method, and the second array with Arrays.sort(). I also need to time how long each sorting method takes to complete.  So far, I can populate the first array with random integers. I'm not sure if I have correctly copied the anArray into arrayB because it's not printing as I have coded so far. anArray is sorting as required, and printing through main with no problems. Please check out my code so far and if you can advise on where to add the way to time the sorting processes that would be awesome too!  import java.util.Arrays; import java.util.Random;  public class TimedSortOne {      public static int[] anArray; // initializes the first array     public static int[] arrayB; // initializes the second array      /**       * This method produces integers of random values.       * @return int randomNum       */     private static int randomFill()     {                Random rand = new Random();         int randomNum = rand.nextInt();         return randomNum;             }      private static int[] list()     {         anArray = new int[1000];         for(int i=0;i<anArray.length;i++)         {             anArray[i] = randomFill();         }         return anArray;     }      /**      * This method sorts the values of anArray into ascending order by       * repeatedly finding the largest value and moving      * it to the last index in the array.      * @param int[] anArray      */     private static void selectionSort(int[] anArray)     {          for (int lastPlace = anArray.length-1; lastPlace > 0; lastPlace--)         {             int maxLoc = 0;              for (int j = 1; j <= lastPlace; j++)             {                 if (anArray[j] > anArray[maxLoc])                  {                     maxLoc = j;                 }             }              int temp = anArray[maxLoc];             anArray[maxLoc] = anArray[lastPlace];             anArray[lastPlace] = temp;          }     }       /**      * This method populates arrayB with an exact copy      * of integer values from anArray using System.arraycopy() function.      * @param anArray      * @return arrayB      */     private static int[] arrayCopyFull(int[] anArray)     {         int[] temp = new int[anArray.length];         System.arraycopy(anArray, 0, temp, 0, anArray.length);         return temp;     }      public static void main(String[] args)     {          list();         arrayCopyFull(anArray);         selectionSort(anArray);         System.out.println("The sorted integers in  anArray are:");             for (int numbers : anArray) {              System.out.println(numbers);             }          System.out.println("The sorted integers in arrayB are:");             for (int bNumbers : arrayB) {                System.out.println(bNumbers);             }     }  }   So, I'm expecting to produce a printed list of anArray, sorted, with a record of the time it took to sort anArray.  And then, using arrayB as an exact copy of the random integers in anArray, sort arrayB with Arrays.sort() all with a record of the sorting time.


"Continuity" of stochastic integral wrt Brownian motion

I'd like to prove a nice property of a stochastic integral with respect to Brownian motion.   Let $(H_t)_{t\geq0}$ be a progressive and bounded process that is continuous at $0$ and $B$ a standard Brownian motion. Then  $\frac{1}{B_{\varepsilon}}\int_{0}^{\varepsilon}H_s\mathbb{d}B_s\rightarrow H_0$ as $\varepsilon\rightarrow0$ in probability.   Anyone got some hints ? I'm really puzzled and I don't know where to start.   EDIT_2.0. Applying Ito-Isometry might be a bit tricky. This Brownian Motion in the denominator kinda troubles me :/


PythonTEX not working on current Overleaf compiler

Is there a way to make PythonTEX compile as of today in Overleaf V2 ?  \documentclass[]{article} \usepackage[utf8]{inputenc} \usepackage{pythontex}  \begin{document} \begin{pyverbatim} def calc_ellipticity(theta, delta):     theta = np.deg2rad(theta)     psi = np.arcsin(np.sin(2*theta) * np.sin(delta))/2     return np.tan(psi) \end{pyverbatim} \end{document}   Compiling gives : ? PythonTEX ?


I need to add the boot parameter foo=bar to my kernel. How can I do this once for testing, and permanently if testing was a success?


Let $f(z) = A_0 + A_1z + A_2z^2 + \ldots + A_nz^n$ be a complex polynomial of degree $n > 0$.  Show that $\frac{1}{2\pi i} \int\limits_{|z|=R} \! z^{n-1} |f(z)|^2 dz = A_0 \bar{A_n}R^{2n}$.


is there a way to findout about a file history (create date / create directory / moved directory ) ?

so i found a shell deep in a directory of my website . my website doesn't have a upload section and i use a well known framework and it covers sql injection ( i use codeigniter active record to work with database) so i dont think its the code itself   i had a ckeditor/ckfinder in my asset folder and i think hacker has used them to upload shell on my server   to make sure where this file has come from i need to know its history ... mainly the first directory which this file has been uploaded to and  perhaps the original name of the file  .  is there any way to find this information about a file ?


Why does rule 608.2b counter Last Word, when Last Word can't be countered?

After reading , I am confused by a conflict between two of Magic's rules. At risk of being labelled a duplicate, I want to cover this edge case in more detail than answers to the other questions would, because the other question is very broad. Here's the situation:   can't be countered by spells or abilities.  According to the top answer on the aforementioned question,  can be countered by rule 608.2b if it has no legal targets. This could happen by using  to change the target of Last Word to Redirect.     608.2b [...] The spell or ability is countered if all its targets, for every instance of the word “target,” are now illegal.   I think this is wrong. Last Word can't be countered. The card's text directly conflicts with rule 608.2b. Therefore, rule 101.1 applies.     101.1. Whenever a card's text directly contradicts these rules, the card takes precedence. [...]   By rule 101.1, Last Word has precedence. It seems like it would not be countered by game rules. Instead, I think it would resolve, and rule 101.3 would apply:     101.3. Any part of an instruction that's impossible to perform is ignored.   An illegal target can't be countered, and so that instruction would be ignored. That happens to be all that Last Word does, and so the spell would resolve with no effect. The conclusion I arrived at is not the conclusion arrived at in the answer to the other question. It would make a difference if, for example, the spell had other non-targeting effects that were still possible to perform.  Why does rule 608.2b counter Last Word, and why does rule 101.1 not apply?


$f(x)$ is continuously differentiable on $[0,1]$, prove that $ (\int_0^1 f(x)dx)^2 \leq \frac {1} {12} \int_0^1 (f'(x))^2 dx $

$f(x)$ is a real function continuously differentiable on $[0,1]$. $f(0) = f(1) = 0$  Prove that  $$ \left(\int_0^1 f(x)\mathrm{dx}\right)^2 \leq \frac {1} {12} \int_0^1 (f'(x))^2 \mathrm{dx} $$


Parent object to a bone and object becomes offsets! How do I prevent object from moving?

I have just spent the better part of my day trying many different examples in an attempt to simply parent an object to a bone without the object moving (aka keep_transform). But no matter what I try it always offsets:  object.parent = armature object.parent_bone = bone #object now in weird position object.parent_type = 'BONE'   I also tried this as :  object.parent = armature object.parent_bone = bone bpy.context.active_pose_bone bpy.ops.object.parent_set(type='BONE', keep_transform=True)   But get error "Error: No active bone"  I notice the object I am parenting to the bone in the armature is always moving to the bone's tail when I need it to be positioned at the head.   Is there anything I can do to programmatically affix the object to the bone's head? Any help her would be most encouraging, I just keep hitting walls with this.  One idea I had was to just offset the object by the head/tail delta, but because blender allows parenting-in-place I figured I should stick to convention.  Thanks.


Coerciveness and Positive definiteness relation?

Let $A ∈ \mathbb{R}^{n×n}$ be  a symmetric matrix. How can I demonstrate that A is positive definite iff the function $q(x) := x^TAx$ is coercive .  I know the eigenvalues of A have to be positive for a positive definite matrix. But I don't see how this relates to coerciveness.  Does't $x^TAx$ need to be greater than $0$ to be positive definite?


Why can't ARIMA model large lags and/or long range dependence?

ARIMA cannot model large lags (obtained from autocorrelation plot) and long range dependency (hurst exponent $H > 0.5$). Why is it so?


Why didn't Elrond or Círdan take the ring from Isildur by force and destroy it?

'Alas! yes,’ said Elrond. 'Isildur took it, as should not have been. It should have been cast then into Orodruin’s fire nigh at hand where it was made. But few marked what Isildur did. He alone stood by his father in that last mortal contest; and by Gil-galad only Círdan stood, and I. But Isildur would not listen to our counsel.      ‘”This I will have as weregild for my father, and my brother,” he said; and therefore whether we would or no, he took it to treasure it. But soon he was betrayed by it to his death; and so it is named in the North Isildur’s Bane. Yet death maybe was better than what else might have befallen him.   Both knew the power of evil and could guess the amount of suffering caused by not destroying the ring. Why didn't they take it from Isildur by force? Even if they had killed him, it would be a small price to pay for saving thousands. It would even be an ethical decision towards Isildur. It was clear that he is getting corrupted in the very moment he decided to keep it (or perhaps even fight to keep it), and it was clear that he would suffer a lot from its influence and die in sorrow and pain - as Elrond himself says "Yet death maybe was better than what else might have befallen him."


I ran the windows installer with windows 7. I assumed Ubuntu would run my windows files, but my 1.5tb internal hard drive won't mount. Any help would be AWESOME!


In reference to  about showing that the following interesting series takes on the value  $$\sum_{n=0}^\infty \frac{1}{(2n+1)\operatorname{sinh}((2n+1)\pi)}=\frac{\log(2)}{8}$$  I tried the approach of using the residue theorem, from which one can show that  $$\sum_{n=-\infty}^\infty f(n) = -\sum_k \mathrm{Res}_{z=z_k} [\pi \cot{\pi z} \: f(z)] $$  where $z_k$ are non-integral poles of $\pi \cot{\pi z} f(z)$.  In this case,   $$f(z) = \frac{\mathrm{csch}{[(2 z+1) \pi]}}{2 z+1}$$  There is a pole of order $1$ at $z=-1/2$.  Note that is is not of order $2$ because $\cot{z} \sim (\pi/2) - z$ as $z \rightarrow \pi/2$.  One may then compute the single residue of $\pi \cot{\pi z} f(z)$ as  $$\mathrm{Res}_{z=z_k} \left [\pi \cot{\pi z} \: \frac{\mathrm{csch}{[(2 z+1) \pi]}}{2 z+1} \right ] = -\frac{\pi}{4} $$  So I get as a value for the posted series as $\pi/8$, which is not correct.  Nevertheless, I cannot locate my error.  Perhaps someone can.  For example, the series obviously converges, and quickly.  But is there an error in my assumption that  $$\lim_{N \rightarrow \infty} \oint_{C_N} dz \: \pi \cot{\pi z} \: \frac{\mathrm{csch}{[(2 z+1) \pi]}}{2 z+1} = 0$$  where $C_N$ is a rectaingle symmetric about the real and imaginary axes, extending from $[-N-1/2,N+1/2]$?  Or is there something else I do not see?


Express Planck's Law for blackbody radiation in terms of frequency

I'm having trouble with substituting $\lambda$ with frequency.   The problem:  Show that $$u(f)=\frac{8\pi f^2}{c^3} * \frac{hf}{e^{hf/kT}-1}$$  Where I'm at:  $$\frac{8 \pi f^2}{c^3} * \frac{hf^3}{ce^{hf/kT}-1}$$  As you can see, the left half of my solution matches what I'm supposed to get but there is a $\frac{f^2}{c}$ on the right side that I can't seem to eliminate. I used the relation $\lambda = c/f$ to do all this.  Side note - if anyone could make a tag for Planck's law that's be great. Or something related to this problem, like deriving equations....idk.


Is current a tensor or a scalar quantity? The internet seems to be divided on this one. Tensors are too complicated. So I am unable to find an answer. Can someone please clearly state whether it is a scalar or a vector?


Today's rep changes not shown in Achivements menu

When I open the Achievements menu it's not showing any of the rep I've earned today:    Here's my Reputation tab showing I've earned 85 rep today:    The Android app's Achievements menu is also missing today's rep. I tried from another browser with the same result.  What's going on?


When I'm browsing the mathematics SE, all the titles have horrendous looking latex code that looks beautiful when compiled, except it's not compiled in titles (only in body).


I am trying to capture mysql traffic and pass those traffic to strings command as follows:  tcpdump -i any -s 0 -l -w - dst port 3306 | strings   This is working as expected and printing all mysql queries like  select * from mytables show databases   But when i am trying to redirect the output to a file, its not printing the output to /tmp/out file:  tcpdump -i any -s 0 -l -w - dst port 3306 | strings > /tmp/out   Can someone explain me the behaviour of above command and why it is not redirecting the output to file.


How to create a usb stick that does a complete unattended installation of xubuntu

We want to install several pc's with XUBUNTU from a usb stick. The user may not be asked any questions.   The installation must include kingsoft which is a dpkg. Is this possible?  Thanks  Joeri


Does raster interpolation recognize multiple z values for one x, y point?

I am working with lithological data, where I have multiple z depths for one set of coordinates. How is this read by the raster interpolation toolset? Does it utilize only one or all of these z values?  If it does not recognize multiple values, is there a type of interpolation I can use that can?   My ultimate goal is to create something in ArcScene that has a 3D appearance and can demonstrate the profundity of a certain lithology.


With all the wealth and black magic across the sea in Essos why, can't they just take over Westeros?

That assassin that Arya frees seems to be invincible and says he can slay anyone.  (I don't know how he was captured in the first place.)  Arya is learning that same assassin art.  The red priests all seem invincible.  All the merchants of Essos seem to have much more wealth.  The Iron Bank on Essos.  The Targaryans actually came from across the sea with dragons and took over.  Plus only Westeros lives in the shadow of the threat from the Others.  Is there any explanation about why Westeros isn't just a vassal land to Essos?


I want to find the limit of $\left(1+\frac{1}{n^{2}} \right)\left(1+\frac{2}{n^{2}} \right)...\left(1+\frac{n}{n^{2}} \right)$ as $n \rightarrow \infty$, any hint?


I installed Ubuntu 20.04.2 LTS I need to install "quickly" package,to be able to develop new application. How I can do that? Also I am not finding the "quickly" app in Ubuntu Software Center? How can I find it?


Sometimes I see that, during a $u$-substitution in an integral (which is something I hardly understand), once $u$ is chosen it is differentiated to obtain $du/dx$. I understand this. After, however, people solve for $dx$ as though it is a regular variable, and treat $du/dx$ as though it is a regular fraction. My googling has told me that $du/dx$ isn't a fraction and that $dx$ or $du$ aren't really regular variables, as one is dependent on the other. So why can they behave like what they are not?  For example, if $u$ is $x^2$, then $du/dx$ ends up being $2x$, and so $du = 2x dx$ and $dx = du/2x$. What my question is, why is this allowed?  (Also, sorry that I haven't properly formatted the previous equations using latex or whatever it should be, as i don't know about any of that right now.)


Why does there seem to be a missing component in many PCBs?

I've seen some PCBs were some components have been sketched, but they don't seem to be mounted on the board. See, this image (of a PlayStation 2) where the transformer has been drawn:    Why is this done on some circuits?


How to take out the File Path above my image

I've tried all the links nothing works. I'm using a mac. Packages I'm using are:  \usepackage{graphicx} \usepackage{caption}   Keeps coming out with the stupid Board.png on top how do I delete?    \begin{figure}[ht!] \centering \includegraphics[width=64mm]{Top Board.png} \caption*{Particles striking 2+ fibers on the top boards \label{overflow}} \end{figure}


Why is the supremum of the empty set $-\infty$ and the infimum $\infty$?

I read in a paper on set theory that the supremum and the infimum of the empty set are defined as $\sup(\{\})=-\infty$ and $\inf(\{\})=\infty$. But intuitively I can't figure out why that is the case. Is there a reason why the supremum and infimum of the empty set are defined this way?


I was told by one of my teachers that Galois Representation is a major tool to study Gal($\overline{\mathbb{Q}}|\mathbb{Q}$). If we know this Galois group, what knid of questions can we answer ? In short, what motivated people to study this group ?


Excluding situations where you die from accidents, the main reason for death is -generaly- .  And usually it is about an organ which becomes "tired" after many years. These results are all from experience and statistics:    But I've never heard of any study that said: "people can't live longer than x age because the heart can't live longer than that".  From my point of view, I think it's us who control the way we live and consequently someone can live longer than the other. For example,   But even the , lived for 122 years and 164 days. For me this isn't enough. It seems that someone can't control his age after all.  Basically my question is: Does science provide any limit that a person isn't able to live more than it? For instance can someone live more than 1000 years?    Note: I don't think someone is able to do this because simply even our healthiest habits are not "so" healthy. But imagine someone who doesn't live like any of us as humans, i.e. Can have a very healthy and natural life


My laptop sleeps unexpectedly while working

My DELL Inspiron 15 3000 Series 3567 It sleeps while working on it due to palm rest pressure or some jerk. I have disabled sleep from settings that What closing the lid does but the problem is still there but now it flicks for 2 seconds and revives back to normal. I could not find any solution to it over Internet. But i found something about Sleep Sensors in laptop under the palm rest still I'm clue less. Please give me some insight into it. I checked my driver Also my Optical Drive is not Ejecting(just telling for information this one is old issue but maybe some relation) Then I checked devmgmt.msc (Device Manager) there clicked Hidden Drivers and then saw something acpi processor aggregator hidden. Maybe it was hidden forever I don't know.


Changing raster cell values within polygon using QGIS GUI

How do I change the values of raster cells which are within a polygon, leaving all cell values outside the polygon unchanged? I would like to subtract 1.5m from each raster cell value within the polygon, rather than make them all the same value. I don't know how to use GRASS so I'm hoping there is a way to do it using the tools within the QGIS GUI, raster calculator, or processing toolbox. I'm using QGIS 2.0.


Detect if executable file is on user's PATH

In a bash script, I need to determine whether an executable named foo is on the PATH.


Options with color package clash with acmart documentclass?

I'm trying to use a package that imports color with the dvipsnames,usenames options. Unfortunately, my document uses the ACM format, which appears to already import the color package with no options.  The following file:  \documentclass[acmlarge,dvipsnames,usenames]{acmart} \usepackage{booktabs} % For formal tables \RequirePackage[dvipsnames,usenames]{color}  % Document starts \begin{document} % Title portion \title{A Multifrequency MAC Specially Designed for Wireless Sensor   Network Applications} \titlenote{We can add a note to the title}  \maketitle Body \end{document}   Gives the following, highly unhelpful error error:     LaTeX Error: Option clash for package color.   Is this a known problem? Is there an easy workaround for importing packages that conflict in their options?


Is it possible to use custom colors and background images in a UITabBar?  I realize that Apple would like everyone to use the same blue and gray tab bars, but is there any way to customize this?  Second, even I were to create my own TabBar-like view controller, along with custom images, would this violate Apple's Human Interface Guidelines?


What's the difference between suffix "c" and "cal" in adjectives?

I know there is a difference in meaning between "economic" and "economical" but what about "geographic" and "geographical" or "analytic" and "analytical"?


Can the Sorcerer's Flexible Casting feature make a "Warlock spell slot" for Eldritch Invocations such as Bewitching Whispers?

There are certain  a Warlock can get such as Bewitching Whispers which states:  [...] You can cast compulsion once using a warlock spell slot. You can’t do so again until you finish a long rest.  This means that an ordinary Sorcerer/Warlock multiclass could not use spell slots from their Spellcasting feature (Sorcerer spell slots) with Bewitching Whispers. However, the Sorcerer also gets the  feature which states:  [...] You can transform unexpended sorcery points into one spell slot as a bonus action on your turn [...]  I am aware that  to allow features such as Flexible Casting and Metamagic to apply to Warlock spells as they state:  Multiclassing allows you to gain levels in multiple classes. Doing so lets you mix the abilities of those classes to realize a character concept that might not be reflected in one of the standard class options. If you have both the Spellcasting class feature and the Pact Magic class feature from the warlock class, you can use the spell slots you gain from the Pact Magic feature to cast spells you know or have prepared from classes with the Spellcasting class feature, and you can use the spell slots you gain from the Spellcasting class feature to cast warlock spells you know.  However it is unclear to me whether spell slots created through Flexible Casting count as Warlock spell slots for the purpose of things such as Bewitching Whispers. Can Flexible Casting spell slots be used with this invocation?


What can I do with the Ender Dragon Egg?

Can the Ender Dragon Egg be used in a recipe, or just kept as a decoration in a museum? What's the use of taking it? I don't think that this is specified in the .


Select and Option tag i.e dropdown in html show complete list

I have 25-30 options in my <select> </select> tag, when i click on the select from drop down list. I get the list of first 20 options only and after that i have to scroll down the the list to select onwards i.e. for 21 to further.  But my requirement is that when click on dropdown to select, the complete list should be shown that is all 25-30 options should be shown, no scroll bar.  Pleae help me.. I had done lot of googling on it, but not got any solution.


According to the the definition of anti-particles, they are particles with same mass but opposite charge. Neutrinos by definition have no charge. So, how can it have an anti-particle?


How do I create a .desktop file for a .jar file?

My problem is, that I do want to create a .desktop file for Technic Launcher, which is an alternative launcher for Minecraft. It comes in the form of a .jar file and I want to create a menu entry for it. How would I write such a .desktop file?  My attempt was the following:  [Desktop Entry] Type=Application Name=Technic Launcher Comment=Minecraft Launcher for Technic Pack, Tekkit, Hack/Mine and Yogbox Exec=/home/benjamin/Applications/Minecraft/TechnicLauchner/technic-launcher-latest.jar Icon=/home/benjamin/Applications/Minecraft/TechnicLauchner/icon.png Terminal=false Categories=Game;ActionGame;AdventureGame;RolePlaying;   This didn't work, hence my question. What did I do wrong? Is it even possible to point to a .jar file?


Instead of space expanding maybe atoms are shrinking?

Naturally we would not be able to detect this effect directly by measuring the size of objects using rulers because any such ruler would be shrinking too. Also cosmological redshift can be explained by either stretching photon wavelengths or increasing energies of absorber atoms.  But I think the following experiment would be able to detect if atoms are shrinking.  Consider two charged objects with mass $m$ and charge $q$ separated by distance $d$.  Let us assume that the system is stable so that the electrostatic repulsion of the charges $q$ is balanced by the gravitational attraction of the masses $m$.  Thus we have:  $$\frac{q^2}{4\pi\epsilon_0 d^2}=\frac{Gm^2}{d^2}\tag{1}$$  Now in natural units ($\hbar=c=4\pi\epsilon_0=1$) the gravitational constant $G=1/M_{Pl}^2$ where $M_{Pl}$ is the Planck mass.  Thus equation $(1)$ becomes:  $$\frac{q^2}{d^2}=\frac{m^2/M_{Pl}^2}{d^2}\tag{2}$$  The balance of electrical and gravitational forces does not depend on the separation $d$ so that finally we have the simple equality   $$q=\frac{m}{M_{Pl}}\tag{3}$$  Now if atomic distances are shrinking then atomic rest-mass energies are increasing with the scale factor $a(t)$. But both $m$ and $M_{Pl}$ expand by the same scale factor $a(t)$ so that equation $(3)$ remains the same.  Thus the separation $d$ of the objects does not change with time.  But if our rulers are shrinking then we will measure the separation distance $d$ apparently increasing.  Does this make sense?


Should a question be downvoted only because the downvoter thinks it is morally wrong?

It looks like this answer may have been down voted because a commenter doesn't like that it's a violation of Amazon's terms of service. Is this a valid reason for a downvote?    This question is not a duplicate as it lists a specific situation that is not mentioned in the question or any of the answers of its proposed duplicate. Changing the title to clarify the point.  The answer in here relates directly to the question that was asked, and did not relate to whether or not it will break Amazon's terms of service.  That's not really relevant to whether or not an HTTP request can be made from Node.js to Amazon. The downvote appears to be whether it should be made against the will of Amazon.


when i tried to run my app after adding INTENT in MAINACTIVTY it show this error


Why is a stock that pays a dividend preferrable to one that doesn't?

I understand that a dividend is a way for a company to return money to shareholders. But I'm not quite understanding why it is preferable to capital appreciation and putting the money to work increasing the earnings and revenue of the company. I get that people who buy stocks to get income from dividends, but the decrease in the price of a stock that correlates directly to the amount of the dividend seems to me like it's a zero-sum game.  Part of me thinks that I just fall into the Warren Buffet camp of thought that the money can be spent more wisely in house. But the other part feels like the desire for a dividend is to reinvest and add shares at a lower price (the price the stock goes to ex-dividend).   What am I missing here?


Why doesn't an electromagnetic wave violate conservation of energy?

I'm starting to study electromagnetic waves and as i understand, an electromagnetic wave projects a varying electric field. This electric field can in turn give forces of repulsion/attractions to the electrons and protons it passes very close to. Why doesn't it violate the law of conservation of energy?


Question: Bernardo chooses a three-digit positive integer $N$ and writes both its base-5 and base-6 representations on a blackboard. Later LeRoy sees the two numbers Bernardo has written. Treating the two numbers as base-10 integers, he adds them to obtain an integer $S$. For example, if $N = 749$, Bernardo writes the numbers $10,\!444$ and $3,\!245$, and LeRoy obtains the sum $S = 13,\!689$. For how many choices of $N$ are the two rightmost digits of $S$, in order, the same as those of $2N$? $\textbf{(A)}\ 5 \qquad\textbf{(B)}\ 10 \qquad\textbf{(C)}\ 15 \qquad\textbf{(D)}\ 20 \qquad\textbf{(E)}\ 25$  I am not sure where to start with this question (the only thing that I can think of is an equation). Also, I read the aops solutions and didn't understand them.   My equation: $$(625a+125b+25c+5d+e)+(216f+36g+6h+I)=N$$ (I am not sure if this is correct).


I have spent many many hours failing to implement nomencl for my PhD thesis. The problem seems to be with invoking makeindex and creating the .nls file  I keep reading that I must invoke makeindex or write a Unix command:  makeindex filename.nlo  -s nomencl.ist -o filename.nls   But I don't know how to do this. I would be grateful for some instructions i.e. where do I type the command?    I am using TeXShop 2.43.


'undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' while compiling bochs

I'm trying to compile bochs with this command:  ./configure --with-x11 --with-wx --enable-ne2000 --enable-iodebug --enable-disasm --enable-debugger --enable-e1000 --enable-usb --enable-pci   it works, but then when I run make I got:  usr/bin/ld: gui/libgui.a(gtk_enh_dbg_osdep.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line   Any Help ? :/


This term appears frequently in the .  Is blending a specific method in data-mining and statistical learning? I cannot get a relevant result from google.  It seems blending is mixing up outcomes from many models and resulting in a better result. Is there any resource that helps me knowing more about it?


What is represented by $\sum_{n=1}^{\infty} n^2 x^{n-1}$?

Is it possible to represent the following series in term of a non-infinite function: $$ \sum_{n=1}^{\infty} n^2 x^{n-1} $$


Getting all files from a web page using curl

I would like to get all files from the web page below using curl:  I tried: curl http://www.ime.usp.br/~coelho/mac0122-2013/ep2/esqueleto/ It returned a bunch of lines in the terminal, but didn't get any file.


I was ripping off a . The basic functionality is to sense the temperature and display it on an LCD. The LCD turned out to have no interface to the controller. The PCB had 3 LEDs which were focused onto the LCD to provide backlight. Other than that there was no other active component(/connector) that can transmit the data to the LCD.  How is this interface done?  I tried googling and tried searching for connectors/interfaces without electrical contact. But, I got no idea how it works.  Attached


How to patch the Heartbleed bug (CVE-2014-0160) in OpenSSL?

As of today, a  has been found affecting versions 1.0.1 through 1.0.1f (inclusive) and 1.0.2-beta.  Since Ubuntu 12.04, we are all vulnerable to this bug. In order to patch this vulnerability, affected users should update to OpenSSL 1.0.1g.  How can every affected user apply this update now?


If $n^s\in \mathbb{N}$ for all $n\in\mathbb{N}$, must $s\in\mathbb{N}?$

My friend and I were discussing this, and while it looks obviously true, weren't very successful in getting anywhere with it. I'm not sure whether I lack the tools to solve this or whether I am missing something obvious. Any insight would be much appreciated.


Given a  finite set $A$, is there a way to quantify the number of transitive relations over $A$? Thanks for any ideas/thoughts


Minecraft command execute problem + 1.9 scoreboard tag problem

I'm trying to make a kit pvp map in vanilla Minecraft, but I ran into a problem. I want specific people to get a certain effect. So I got a /testfor command:  /testfor @a{SelectedItemSlot:0,Inventory:[{Slot:0b,tag:{display:{Name:"Fire Wand"}}}]}   This command tests if any person has this specified item name in slot 0. It then turns on a comparator which activates the second command once it finds that person:  /execute @p ~ ~ ~ summon Fireball ~2 ~1 ~ {ExplosivePower:10,direction:[0.0,0.0,0.0]}   How can I specify this command to the person holding the named item?  So  which seems to solve all my problems!     You have to use a command to apply a label to the player based on   their data rather than using /testfor. For example, /scoreboard   can assign a label:  /scoreboard players tag @a[tag=HasItem] remove HasItem /scoreboard players tag @a[tag=!HasItem] add HasItem {SelectedItemSlot:0,Inventory:[{Slot:0b,tag:{display:{Name:"Fire Wand"}}}]}       And you'd then target players based on their label. The correct tag   for fireball damage is ExplosionPower:  /execute @a[tag=HasItem] ~ ~ ~ /summon Fireball ~2 ~1 ~ {ExplosionPower:10,direction:[0.0,0.0,0.0]}    I thought this is really cool! But how does the scoreboard command activate the execute command? Is it with a comparator? Do both command blocks have to be on a clock?


gcd of two polynomials using euclidean algorithm

Using the Euclidean algorithm, I need to find the gcd. I believe it needs to be a linear combination, but I honestly don't understand how to find it.  So ($x^4+x^3+2x^2+x-1$)-(something)$\cdot (x^3+1$) I believe but I don't know how to find the something


I have a strings like  1 - Copy (2) 2 - Copy (2) 3 - Copy (2). Here I want replace string which contains Copy (2) with string demo.      1 - Copy (2)  to demo     2 - Copy (2)  to demo     3 - Copy (2)  to demo    I tried like ^.*Copy (2).*$ but it is not working.


Why have my privileges on Stack Overflow changed?

On Stack Overflow, I have a reputation of 189 and I used to have the ability to review posts. On Stack Overflow chat, I had no restrictions on chatting.  Now, suddenly, the "Review" option has disappeared, and in chat, most rooms seem to be locked.  Nothing appears to have changed on my SO profile, and I received no notifications of any sort that my rights were somehow being limited.  Has there been changes to SO policies/levels? If so, what were those changes? If there hasn't been any change to SO policies, then what gives with my account?


How to manage the leverage browser caching for third party JS files?

Is it possible to set and expiration date for the file http://assets.pinterest.com/js/pinit_main.js? And the other stuff down the list?   I want to bring up my score as high as possible. I'm using WordPress by the way.


$\exp(A)$ is orthogonal iff $A$ is skew symmetric

Let $A \in M_n(\mathbb R)$ and $\exp(A)=\sum_{i=0}^{\infty}\frac{A^i}{i!}$. How to prove $\exp(A)$ is an orthogonal matrix iff $A^t=-A$?  I can get that $\exp(A)$ is an orthogonal matrix iff $\exp(A^t)=\exp(-A)$, but how to get $A^t=-A$ from it?  What's more, is $\exp(A)$ injective or not?


Why is research called research if it is newly searched?

Why does the word "research" sound like one is "re-searching" if it is meant to product original findings? Surely it is just searching?  What is the etymology of the word research? Thinking about it, it doesn't make much sense to me. Its unlike other "re" words, for example:   Revise -  to visualise again Redo - to do again Reform - to form again Retract - to follow a tract again? Regain - to gain again   Clearly research seems a bit out of place with its definition.


For $1\over 3$, you get $0.\overline3$, which is $0.33333...$.  The threes go on forever.  You can't ask "What happens if it ends in an eight?" because it simply doesn't end.  For SSSSS..., what if it ends in a T?  Well, an infinite series of Ss followed by a T would never have a T because it never ends.  There can be infinite points in a point, even a very small one.  Are they true or false?  I think they're true, aren't they?  If not, why not?


I seem i have put My Texture in the UV Map,but it doesn't show up In the Model itself  I don't really Know blender that well.


If $E(XY)=E(X) \cdot E(Y)$, why is not $E(X^2)=[E(X)^2]$

My book states that the expected value of the product of two independent random variables equal the product of their expected values. Why cannot one use this to give the following?  $$E(X \cdot X) = E(X) \cdot E(X) = [E(X)]^2$$  Of course, this is incorrect, as if this were true the variance would always be 0.


What is Lazy Loading?  [Edit after reading a few answers] Why do people use this term so often?   Say you just use a ASP/ADO recordset and load it with data or ADO.NET Datasource for a gridview.  I guess I should have asked why people use the term Lazy Loading, what "other" types are their?


Circular dependency on apt-get upgrade (not package dependency)

I have unmet dependencies so my upgrade command fails with:  You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  linux-image-extra-3.19.0-80-generic : Depends: linux-image-3.19.0-80-generic but it is not going to be installed  linux-image-generic-lts-vivid : Depends: linux-image-3.19.0-80-generic but it is not going to be installed                                  Recommends: thermald but it is not going to be installed   the problem is that I have full boot partition so apt-get -f install fails.  Unpacking linux-image-3.19.0-80-generic (3.19.0-80.88~14.04.1) ... dpkg: error processing archive /var/cache/apt/archives/linux-image-3.19.0-80-generic_3.19.0-80.88~14.04.1_amd64.deb (--unpack):  cannot copy extracted data for './boot/vmlinuz-3.19.0-80-generic' to '/boot/vmlinuz-3.19.0-80-generic.dpkg-new': failed to write (No space left on device)   I tried to remove unused kernels with   apt-get purge linux-image-3.19.0-25-generic   but it fails with original error - unmet dependencies.  So I have circular dependency in issues with upgrade. What is the safest way to resolve it? Is it safe to manually delete kernels from /boot?


How do I dereference links when extracting from a tar file?

If I have a tar file, bob.tar, which contains real_file and link_to_real_file, in which the latter is a symlink, is there a way to extract the contents of bob.tar so that link_to_real_file will not be a symlink, but be a copy of real_file.    I know this is indeed possible on the creation side, if I use the -h flag.    The command tar -cvhf bob.tar real_file link_to_real_file will dereference link_to_real_file, but I want to do this on the extraction side regardless of how the tar file was created.


C# .NET Is it possible to only run code if DLL file is present

is it possible to check for the presence of a DLL file and if it is present run some code that is accessing the DLL, but if you then remove the DLL file the code will not be run and start throwing exceptions?


I am using texlive2014.But When i import a picture,it just move away.  This is my source code:  \usepackage{graphics}   \begin{figure}[htbp]     \centering     \includegraphics[scale=0.5]{ProjectStartWorkflow.jpg}     \caption{项目启动流程} \end{figure}   My compiler is xelatex.The picture move to next page,i can not understand where i am going wrong?


I cannot log into the Minecraft launcher

I can't log into the Minecraft launcher, because it tells me that the username or passowrd is incorrect. I have tried resetting my password and have even given the account to my freidn and he was able to sign in perfectly, i cannot. If I try to login in through the official website the login button just doesn't simply doesn't work. I have even tried waiting to login in later, restarting my computer, but it hasn't worked. I have used my email and username to login. I have contacted Minecraft support via email and it told me that it is currently reviewing cases for the 30th of April, so I'd  rather try to fix the issue here. Thanks for your help!


For Python language, What is the difference between single and double quotation marks

While I am developing the Python code, I found I used to use single quotation marks all the time, but some experienced programmers used double quotation marks more often. I couldn't find the difference between them, could anyone help to give me some examples if there is a difference? Or is it just a personal preference? For example: class TextBox(UIControl):     def draw(self):     print('TextBox')  class TextBox2(UIControl):     def draw(self):         print("TextBox")  class TextBox and TextBox2 seems like have no difference while running. Thanks for your help!


Is Cesaro convergence still weaker in measure?

I've encountered a question I couldn't answer, and I would appreciate any help: Is it true that $$f_n \xrightarrow{m}0\,\,\implies \,\,\frac{1}{n} \sum_{k=1}^{n}f_k \xrightarrow{m}0$$ where $(X,{\mathcal{B}},m)$ is a probability space, and $\xrightarrow{m}$ means: $\forall \epsilon>0,\,  m\left(|f_n|\geq \epsilon\right) \rightarrow 0.$  This is similar to Cesaro convergence, which is weaker than regular convergence, but it is not the case here. I've tried to prove the proposition, or to give a counter example, but didn't manage to succeed in either. Any insights will be appreciated!


Hello I upgraded all packages on my Ubuntu, and kernel also. But in upgrading process kernel upgrade failed, and I must always after grub load select older kernel. It is a terminal command to reinstall latest kernel?


Problems with positioning footers using fancyhdr

I'm having a problem placing footers on my document. On the first page it shows ok, but in the next pages it doesn't show at all. A bit of thinkering made me realize that the footer was indeed appearing, but out of page boundaries, so it wasn't visible. So the question is, how can I fix the height at which the footer is expected to appear? my code (part of it) is as follows:  \documentclass[10pt,letterpaper]{article} ....... \usepackage[margin=4.5cm,headheight=28pt]{geometry} \usepackage{fancyhdr} ....... \hoffset-2.8cm \voffset-2.3cm \setlength{\textwidth}{18cm} \setlength{\textheight}{22.5cm} \renewcommand{\baselinestretch}{1.2}  \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{1pt} %\renewcommand{\footrulewidth}{0.3pt} \fancyhead[C]{     \hspace*{-1cm}\begin{tabular}{>{\centering\arraybackslash}p{3cm}b{12cm}>{\centering\arraybackslash}p{3cm}}         % & \\[0.05ex]         \hspace*{0.5cm}\includegraphics[width=2.5cm]{logo.png} & \hspace*{-2.5cm} Some random text I need... & \includegraphics[width=3cm]{LogoONAC.png} \\     \end{tabular}    } \fancyfoot[C]{ - Some text I need to appear as footer on every page - }   Thanks in advance!  EDIT:  Ok, so I've reproduced my problem as suggested by Werner. The code is as follows:  \documentclass{article}  \usepackage[margin=1.5cm,headheight=10pt]{geometry} \usepackage{fancyhdr,graphicx} \usepackage{lipsum} \usepackage{array}  \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{1pt} \fancyhead[C]{     \hspace*{-1cm}\begin{tabular}{>{\centering\arraybackslash}p{3cm}b{12cm}>{\centering\arraybackslash}p{3cm}}         % & \\[0.05ex]         \hspace*{0.5cm}\includegraphics[width=2.5cm]{logo.png} & \hspace*{-2.5cm}\begin{tabular}{>{\centering\arraybackslash}b{17cm}} \\[5ex] \textbf{XXXXXXXXXXXXXXXX}\\ \textbf{XXXXXXXXXXXXXXXXXXXXXXX}\\ \textbf{\footnotesize XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}\\ \end{tabular} & \includegraphics[width=3cm]{LogoONAC.png} \\     \end{tabular}    }  \fancyfoot[C]{ - OPERADOR - }  \begin{document}  \lipsum[1-20]  \end{document}


Isomorphic Lie Algebra $so(4)$ and $su(2) \times su(2)$

Show that the Lie algebras of $SO(4)$ and $SU(2) \times SU(2)$ are isomorphic.  I managed to show that $so(4) = \{A \in M_4(\mathbb{R}) \mid A^T = -A\}$ and $su(2) = \{A \in GL_2(\mathbb{C}) \mid A^\dagger = -A, \text{tr}(A) = 0\}$ with $su(2) \times su(2)$ being the Lie algebra of $SU(2)\times SU(2)$. However I am not able to find any mapping that preserves the Lie bracket structure. I am aware of the Pauli matrices being the generators of $su(2)$ but I can't find similar generators of $so(4)$ that preserve the bracket.


What's the secret for Chinese fried rice?

I see a lot of recipes for fried rice, but never seem to be able to give the gorgeous lightly browned color (and therefore flavor) to my rice.   This is before adding soy sauce or anything else. Is this a question of heat, or quantity of oil? How do they do it in the restaurant (e.g. young chow fried rice)?


I made a .desktop file for Androxyde's Flashtool (utility for Sony Xperia devices that I have to open with an executable file in its folder) that requires root privileges to use fastboot utilities. I used to make it work with gksu, but I'm on Ubuntu 15.04 and gksu is now old.  I tried to modify the exec line from Exec=gksu /home/natasha/FlashTool/FlashTool to Exec=pkexec /home/natasha/FlashTool/FlashTool Then, I read about pkexec doesn't allow to run X11 applications and so I override in this way:      The problem now is: It asks me the password but the Flashtool's GUI doesn't start. BUT if I execute that command in terminal, the program starts without problems. What can I do?


All my pen-drive content appear inside a single shortcut

I have been noticing this problem in a few pen-drives for quite a lot of time, and now this has occurred to mine.  When I double click on the pen-drive icon, I find a pen-drive short-cut icon to %windir%\System32\rundll32.exe  \~$n.dqu,cxcxcscxgxcbgpzm.  Here is a screen-shot:   When I open it, this appears:   What is the problem? Is it safe? And how can I make it normal?  If it helps, I am using this pen-drive on Windows 8.1 and 7 laptops. The problem started after plugging it to the Windows 7 one (not immediately after plugging it, but after a few weeks).


Why does a reaction force still allow the thing exerting the force to move?

A $5$ kg and a $10$ kg box are touching each other. A $45N$ horizontal force is applied to the $5$kg box in order to accelerate both boxes across the floor. Ignore friction forces and determine the force between the hand and the boxes.  Considering the body as a single mass, we can find the acceleration of the body as $3\ \mathrm{ms}^{-2}$. The force between the blocks can similarly be found as $30\ \mathrm{N}$. But coming to the question, I cannot be sure as to whether to take the two blocks as a single body. If I do so, then as per my understanding of Newton's Third Law, the hand should experience a force of $-45\ \mathrm{N}$. Now, despite my hand experiencing an equal force in the opposite direction, I am able to keep contact with the block and continue pushing the 2 blocks over a distance (say $d$). Could someone please help me by explaining why this is so? Thanks a lot! (This is not an original question. I had come across it 'the Physics Classroom'  and thought of this variant.)


$ \int_0^x f(t)dt=\int_0^{ax}f(t)dt+ \int_0^{bx}f(t)dt$ implies $f$ constant

Let $a,b \in (0,1)$ be such that $a+b=1$ and $f:[0,1] \to \mathbb R$ be a continuous function such that $ \int_0^x f(t)dt=\int_0^{ax}f(t)dt+ \int_0^{bx}f(t)dt$. We have to prove that $f$ is constant.  Using the derivative, we get: $f(x)=af(ax)+bf(bx)$   I did the case $a=b=1/2$, but I don't know how to make it with $a,b$ arbitrary and $a,b \in (0,1)$ $a+b=1$


Can you swap online progress from one account to another?

I had a high rank on my girlfriend's account, but now have my own place and want to take my progress from her account to mine. Is this possible?  Starting back from 0 doesn’t seem right, I had houses, cars and was a CEO. I can log in as her and play on her account, but she doesn’t have PSN anymore and I don’t want to buy it just to play GTA 5, as I already have PSN for myself and all the games I got to play are there.   Is there any way I can transfer her account's progress (my old profile) to my new one, which is rank 9?


Why does mirror modifiers mirrors on the same side of object that is to be mirrored?

the image displayed is mirrored one but it is mirrored on the same side of the object that i want it to be mirrored on the other side of the axis    I just added mirror modifiers from modifiers option in the properties .  I even tried duplicating and adding mirror from the tools , it somewhat works but there is not merge limit and came to know it isn't mirroring properly...because moving half part of the character doesn't make sense to the half mirrored one....morevoer joining and merging those two disables mirror modifiers     otherwise just mirroring it from the tools panel makes half part to disappear


What to do when grub rescue does not recognize any of the partitions?

I had Win 7, Ubuntu (old), Kali 2017.  I wanted to erase Ubuntu so I deleted a partition using Win7, but I wasn't sure if it was Ubuntu's partition or not. When I restarted my computer the grub rescue> prompt came up. Now I can't do anything.   I tried checking the partitions using the ls command, but I couldn't find anything useful. I urgently need to get my system running again. What should I do?


I am generating pgfplot files (PGF) with Python and matplotlib.pyplot as well as the following configuration for pgf export to be used with pdfLatex compiler:  import matplotlib as mpl mpl.use("pgf") pgf_with_pdflatex = {     "pgf.texsystem": "pdflatex",     "pgf.preamble": [          r"\usepackage[utf8x]{inputenc}",          r"\usepackage[T1]{fontenc}",          #r"\usepackage{cmbright}",          ] }   Using the comon plt.plot() commands and so on into Python, I manage to generate a 20cm wide plot and then export it into a pgf file using the plt.savefig('Graphes/pompage_pCav.pgf', format = 'pgf') Pyplot command.  That pgf file seems pretty proper. I then include it into a tex file as a figure:  \begin{figure}     \begin{center}         \input{Figures/pompage_pCav.pgf}     \end{center}     \caption{test}     \label{test} \end{figure}   The page size is A4 (so 21cm wide) and here is the result:   As you can see, the figure isn't centered whether I use the center latex environment or the \centering command. How to solve this issue? Thanks.


Using Google Music Manager in Linux from the command line

My goal is to use Google Music Manager on a Linux server.  I'm wondering if the music manager can operate from the command line and with no GUI.  If I could set the software up to watch a particular directory on the server and upload from there, that would be the only necessary functionality.  Thank you.


How do I make a debian package install or upgrade other packages?

I'm using Ubuntu in my work and I have just created a small .deb package to make some configs in my system. I need this package to install or upgrade some other packages, so I put some installing commands in the postinst script, but installation exits with an error telling me there is another package manager already running.  How can I make my .deb package install or upgrade other packages as part of its installation process?


I'm writing my thesis using the memoir class and natbib, with citations such that, at the first occurrence, the full list of authors is given, and "et al." from the second onwards:  \usepackage[authoryear, longnamesfirst]{natbib}   Since all chapters can be read independently, I was wondering whether there's a way to define the longnamesfirst option such that it applies for each chapter separately rather than the entire document...


How to fix Matlab system error after Mathematica installation?

I installed Mathematica on a system with Matlab already installed. Matlab started giving a system error as shown in the image. I can not do anything nor even close it. I have to kill it.    I think it might have to do with the Mathematica installation which asked what to do regarding the mcc under /usr/local/bin.  I attempted to install Mathematica twice. The second time, I requested that it rename mcc to mcc.old. But after I had the Matlab problem I reverted it back and moved the new mcc to mcc.bk but the problem persists:  Currently this is what I have under /usr/local/bin:  mcc -> /usr/local/MATLAB/R2016a/bin/mcc mcc.bk -> /usr/local/Wolfram/Mathematica/11.0/Executables/mcc   It's also worth mentioning that Mathematica seems to work just fine after this.  User edwinksl indicated in the comments that it is the same as . . So I am marking the question as a duplicate.


Proof for triangle inequality for vectors

Generally,the length of the sum of two vectors is not equal to the sum of their lengths. To see this consider the vectors $u$ and $v$ as shown below.  By considering $u$ and $v$ as two sides of a triangle, we can see that the lengths of the third side is $\| u + v \|$ and we have $\| u + v \| \leq \|u\| + \|v\|$.  Under what circumstance equality occurs and how can one prove that?


Test the convergence of $\sum_{n=3}^{\infty}\frac{1}{(\log n)^{\log\log n}}$

I know that $$\sum_{n=3}^{\infty}\frac{1}{(\log n)^{\log n}}$$ converges and hence applying the Comparison test, I get the ratio $$\frac{a_n}{b_n}=\frac{(\log n)^{\log n}}{(\log n)^{\log\log n}}.$$ What I want to know is whether $a_n/b_n$ is bounded above or not. Or is there different approach to solving this problem?


I'm looking for a piece of code that can tell me the offset of a field within a structure without allocating an instance of the structure.  IE: given  struct mstct {     int myfield;     int myfield2; };   I could write:  mstct thing; printf("offset %lu\n", (unsigned long)(&thing.myfield2 - &thing));   And get offset 4 for the output. How can I do it without that mstct thing declaration/allocating one?  I know that &<struct> does not always point at the first byte of the first field of the structure, I can account for that later.


Paper status changed from under review to Awaiting Decision

I submitted my manuscript to a journal from 1 month ago in scholar one. The status changed to admin check to under review after one week. Now, it shows Awaiting Decision.    Does this mean that the paper has passed the editorial check and the external reviewer completed?


Does there exist a bijective $f:\mathbb{N} \to \mathbb{N}$ such that $\sum f(n)/n^2$ converges?

We know that $\displaystyle\zeta(2)=\sum\limits_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}$ and it converges.        Does there exists a bijective map $f:\mathbb{N} \to \mathbb{N}$ such that the sum $$\sum\limits_{n=1}^{\infty} \frac{f(n)}{n^2}$$ converges.      If our $s=2$ was not fixed, then can we have a function such that $\displaystyle \zeta(s)=\sum\limits_{n=1}^{\infty} \frac{f(n)}{n^s}$ converges