syscall from within GCC inline assembly
How to invoke a system call via syscall or sysenter in inline assembly?
I have question about ArcGIS and python script. There are following sample code, So I would like to change Another Field , not OIDFieldName. Please let me know how to change Another Field.  import arcpy import itertools  arcpy.env.workspace = r"C:\path\to\workspace"  base_shapefile = "some_shapefile.shp"  oid_field = arcpy.Describe(base_shapefile).OIDFieldName feature_count = int(arcpy.GetCount_management(base_shapefile).getOutput(0))  for (i, j) in itertools.combinations(range(feature_count), 2):     arcpy.Select_analysis(base_shapefile , "combination_%i_%i.shp" % (i, j), '"%s" in (%i, %i)' % (oid_field, i, j))   These sample code is combination for 5C2. I want to create all combiantions 5C3 , 5C4 , 5C5. How to check if PHP array is associative or sequential? PHP treats all arrays as associative, so there aren't any built in functions. Can anyone recommend a fairly efficient way to check if an array contains only numeric keys? Basically, I want to be able to differentiate between this: $sequentialArray = [     'apple', 'orange', 'tomato', 'carrot' ];  and this: $assocArray = [     'fruit1' =&gt; 'apple',     'fruit2' =&gt; 'orange',     'veg1' =&gt; 'tomato',     'veg2' =&gt; 'carrot' ]; Google Chrome (Windows) not displaying text/encoding correctly on certain websites I experience a problem similar to    Here's a screenshot on the website     I've tried:   Removing fonts I have installed Setting the encoding to Western, UTF-8, Greek, Automatic Changing the fonts used in Google Chrome Removing Google Chrome, including all application data/user profiles Running CCleaner Reinstalling Google Chrome, twice Installing Chromium (fonts display fine in Chromium) Turning off Windows ClearType Changing Windows/Chrome languages from English (Australia) to US, UK Restarting Windows several times after making changes   All of which did not work. I do not connect over VPN/proxy.   Can anyone give me any tips?  Windows 7 x64 Ultimate Do I have to recompile my application when I upgrade a third party jar? Primitive of holomorphic Function $\frac{1}{z}$ on an Annulus. Given an Annulus with $A(0,r,R)$ show by considering Cauchy's Theorem for primitives that there is no holomorphic function with $f'(z)=\dfrac{1}{z}$.   I am struggling to picture this since but it seems like there are issues because $f(z)=\log z$ isn't well defined in the same range as $\dfrac{1}{z}$.  Am I looking to show that $\int_Ag(z)dz = 0$ where $g(z) = \dfrac{1}{z}$? utf8 and ISO 8859-1 encoding references trouble I have to use one particular template ( am obliged to use it for my thesis) it uses \bibliographystyle{plain} Ihave both english and frensh text on it (for abstract and résumé) there is no problem for characters like ( é, ç...) but some of references does not appear they are replaced by [?] knowing that foe encoding \RequirePackage[latin1]{inputenc} how to fix this problem please!   \documentclass{article}   \RequirePackage[latin1]{inputenc}   \RequirePackage{fancyhdr}     blabla \cite{nayak2015comprehensive, byun2002applications, shah2004sequential, fletcher2009support, cornuejols2011apprentissage, byun2002applications}   @article{nayak2015comprehensive,    title={A comprehensive survey on support vector machine in data mining     tasks: applications \&amp; challenges},    author={Nayak, Janmenjoy and Naik, Bighnaraj and Behera, HS},    journal={International Journal of Database Theory and Application},    volume={8},    number={1},    pages={169--186},    year={2015}    }      @inproceedings{shah2004sequential,     title={Sequential k-nearest neighbor pattern recognition for usable      speech classification},     author={Shah, Jashmin K and Smolenski, Brett Y and Yantorno, Robert E      and Iyer, Ananth N},     booktitle={Signal Processing Conference, 2004 12th European},     pages={741--744},     year={2004},     organization={IEEE}     }      @misc{fletcher2009support,      title  = {Support vector machines explained},     author = {Fletcher, Tristan},     journal= {University College London, London},     year   = {2009},     howpublished = "\url{http://sutikno.blog.undip.ac.id/files/2011/11/SVM-     Explained.pdf}",     note   = {Accessed: 2017-04-30}     }      @inbook{cornuejols2011apprentissage,      title={Apprentissage artificiel: concepts et algorithmes},      author={Cornu{\'e}jols, Antoine and Miclet, Laurent},      year={2011},      pages={279--309},      publisher={Editions Eyrolles}       }      @incollection{byun2002applications,      title={Applications of support vector machines for pattern recognition:       A survey},      author={Byun, Hyeran and Lee, Seong-Whan},      booktitle={Pattern recognition with support vector machines},       pages={213--236},      year={2002},      publisher={Springer}      }    \end{document}  knowing that my references work well on other template but this one no how to fix this problm please! here is the error I got   Edited here is the link to the template  in fact I have created a littele example ( since I could not publish my thesis ...) the error has disappeared but my references still [?] Reference to undeclared entity exception while working with XML I am trying to set the innerxml of a xmldoc but get the exception: Reference to undeclared entity  XmlDocument xmldoc = new XmlDocument(); string text = "Hello, I am text &amp;alpha; &amp;nbsp; &amp;ndash; &amp;mdash;" xmldoc.InnerXml = "&lt;p&gt;" + text + "&lt;/p&gt;";   This throws the exception:      Reference to undeclared entity 'alpha'. Line 2, position 2..    How would I go about solving this problem? How can I get barcode-scan information into my photo metadata, onsite, untethered? I need a DSLR camera with a barcode scanner for on-site tours photography, which means it needs to be untethered! The image would have to contain the barcode scanned information in the image metadata or in the name itself.  I've seen solutions like, Foolography and a $2600 Canon Studio Edition launched in 2010. But I'm not sure of either those products!  So I'm asking the gurus here how I can get this working, which camera would I need and any accessory necessary?  I'm trying to recreate something like I saw the on-site volume photographers do in Disney's parks. Name for “having no concern about the truthfulness of one’s own remarks” Take the following statement:     I hate the ease with which X makes disparaging remarks about their rivals without the least concern as to whether they are truthful or fair.   Now I would like a word expressing this lack of concern, so that I could just plug it in the blank below and keep the meaning of the sentence above:     I hate the _________ with which X makes disparaging remarks about their rivals.   This is an all too common attitude and I think it deserves a name of its own. The word that came to my mind was levity, but I haven’t come across this word very often and I’m not sure of its particular tones and shades of meaning.      Simple definition   : a lack of seriousness   : an amusing quality   Full definition   1 : excessive or unseemly frivolity   2 : lack of steadiness: changeableness     The attitude I’m trying to name certainly displays lack of seriousness as to the truthfulness and fairness of the remarks, but I do not want to imply they are made in jest or that X is being silly or thoughtless. X could be very serious about their aims: “I’m going to say this; don’t give a dam whether that’s true or not; even if it’s not true I’ll get away with it.” This excludes, I think, all the words Merriam-Webster lists as related to levity, which probably means it excludes levity too:     facetiousness, flightiness, flippancy, frivolousness, frothiness, frivolity, light-headedness, light-mindedness, lightness, silliness   So I’ll accept an answer that despite my reservations shows that one of these words is indeed the one that works best in the sentence above; or gives a more fitting word; or shows that no word really fits (I am of course aware of the difficulties of proving a negative).  I prefer a single word but I’m willing to trade singleness for meaning: so I would take a short phrase it fits better than any single word.  Update  I’m spoilt for choice. But I wonder whether the various suggestions implying lack of concern would in my sentence imply lack of concern specifically for truth, which is what I’m after, or could instead be interpreted as lack of regard for norms of polite behaviour, rival’s feelings, or consequences (say, libel lawsuits, rivals reacting with violence, people feeling encouraged to attack the rivals, etc.)  Tweak the example sentence if it helps (say, I hate the ____ of X’s remarks). "C" sizeof with a type or variable I am trying to use mathematical induction to prove  $$(2n)!\ge2^n(n!)^2\quad\text{for }n\in\mathbb{N}$$  I am stuck at the $n=k+1$ point. How to echo a bang! multiline command chunks in bash history into multiple lines In Bash (as well as Bash in WSL), multiline written commands can call-back with up/down arrows correctly also built-in history command report them correctly (until I'm still logged-in in bash). But after exiting from bash and press up/down arrows, multiline commands appears each as separate entries and that's because cat ~/.bash_history has chucked the command on multiple separate entries and writing problem here; the history command result messed too. I have set these options in ~/.bashrc shopt -s cmdhist lithist HISTTIMEFORMAT='%F %T '  and now writing problem fixed but history command still report in multiple line and separate entries (reading problem now). Bash version is 4.3, same issue on v4.4 there is  since a long years but no solution yet. Update: it's also to mention that below multiline command as an example is correctly displaying even after exit Bash: for i in {1..10} do echo $i done  but this is failing: awk ' { print $1}' &lt;&lt;&lt;'first last'  Update 2: the issue mentioned above is fixed in Bash v5.0.0+ that changed to recognize entries between &quot;timestamp as delimiter&quot; as single entry of command (HISTTIMEFORMAT, cmdhist and lithist must be set). Why are all snaps being mounted and listed as block devices or partitions for Ubuntu 18.04? As of Ubuntu 18.04 running lsblk shows 16 snap loops (2-3 times for each snap). The question is, why are they being listed as results for lsblk, fdisf-l, and blkid?    It creates a lot of clutter from the actual disks drive partitions I need to see, namely /dev/ partitions. I know a purported duplicate of this question exists, but it only asks why three loops are being listed per snap. I want to know why these snaps are being listed in the first place, and the purported duplicate does not answer this (perhaps those marking this as duplicate could help me by explaining why it is a duplicate). Technically, they qualify as file systems (which I neither created nor asked for), but they are getting in the way of the information output for the /dev/ partitions I am interested in. This becomes a problem when fdisk -l outputs a three page+ list filled mainly with snaps.  The output of a recent (1 week old) Ubuntu install and I have not installed any snaps:    $ lsblk   NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT   loop0    7:0    0  14.5M  1 loop /snap/gnome-logs/37   loop1    7:1    0   2.3M  1 loop /snap/gnome-calculator/170   loop2    7:2    0  86.6M  1 loop /snap/core/4486   loop3    7:3    0  86.6M  1 loop /snap/core/4650   loop4    7:4    0   1.6M  1 loop /snap/gnome-calculator/154   loop5    7:5    0  14.5M  1 loop /snap/gnome-logs/34   loop6    7:6    0   3.3M  1 loop /snap/gnome-system-monitor/36   loop7    7:7    0   2.3M  1 loop /snap/gnome-calculator/178   loop8    7:8    0    13M  1 loop /snap/gnome-characters/101   loop9    7:9    0   3.7M  1 loop /snap/gnome-system-monitor/45   loop10   7:10   0 139.5M  1 loop /snap/gnome-3-26-1604/64   loop11   7:11   0   140M  1 loop /snap/gnome-3-26-1604/59    loop12   7:12   0   3.7M  1 loop /snap/gnome-system-monitor/41   loop13   7:13   0    21M  1 loop /snap/gnome-logs/25   loop14   7:14   0  12.2M  1 loop /snap/gnome-characters/69   loop15   7:15   0    13M  1 loop /snap/gnome-characters/96   sda      8:0    0 298.1G  0 disk   ├─sda1   8:1    0   512M  0 part /boot/efi   └─sda2   8:2    0 297.6G  0 part /   sr0     11:0    1  1024M  0 rom     (supplemental screen capture of above text):     My snap list shows 6 results:       core   gnome-3-26-1604   gnome-calculator   gnome-characters   gnome-logs   gnome-system-monitor     Meanwhile, gnome-disk-utility shows nothing at all for snaps, only showing my HDD and optical drive.    It won't be very efficient if every installed snap gets listed as a block device (2-3 times each to add). Should I expect future updates to deal with this?  Edit: fdisk-l also dumps out a very long list with 16 instances of these "disk loops" (Disk /dev/loop0, Disk /dev/loop1, etc., each with details which I won't show here because it's too long). This can't be intended behaviour, can it? blkid also lists 16 loops, as TYPE="squashfs". At least parted -l works as expected, only outing my actual disk partitions.    I just tested this, and installing more snaps does add more to the lsblk output. Therefore, fdisk, lsblk, blkid could have potentially huge output lists, according to the number of snaps available, and installed. I am trying to identify a sci-fi movie from the 80's or 90's, with the following parameters:  Setting:    Scenes of a red desert planet   Culture:    Either people roam fairly solo and try to acquire resources to survive, or you live in a weird society where if a stranger is captured he needs to play in a game of fight to the death.  Mobility:      One foil character has a giant battle-bot-looking tank as his form of transportation through the desert. Protagonist has a car that has a plastic half bubble on top to look out from.   Robot:      The protagonist runs around in the beginning of the film with a female robot/android whose face is melted off after it has acid touch its face.(This scene happens next to the protagonist's rover)  Love interest:      Somehow protagonist comes across female protagonist in desert. She smells really bad and is hungry. They sleep outside, and he tells her to sleep away from him. He uses a thermal blanket(the first I ever saw in my life). She wakes up next to him, smelling horrible. He bathes her in some water hole they find(as if water were not scarce and they could just waste water.)   Pupa monsters:      Scene where they are in a building and they are trying to get out. They come across a room that is white, in which multiple giant, white, snot, pupa are hanging securely from the ceiling. Through curiosity, they disturb them, and now they have to get out of that room fast.  Boss Antagonist:      Pervert bionic man, that is actually attached to a giant robotic arm, as only form of movement. He is in black and has a pale bald head as his most human looking part. Improve file-info visibility in Finder's preview pane I find the file information in the preview pane in column view is far more useful than the thumbnail.  I wish I did not have to continually resize the Finder window or scroll the preview pane to see the info I'm looking for.  As you can see below, the useful info is hidden in default  size  of Finder's new window under the preview options like rotate etc.        Is there a way to do any of these to achieve the said goal (listed in order of decreasing likelihood!):   reduce the size of the preview "thumbnail" covered by black here,  reduce the amount of whitespace(grey here) around the preview "thumbnail" (only significant for landscape thumbnails), remove the preview "thumbnail" altogether,  reorder the content of the preview column(bring file info up and send thumbnail down)?    includes the options:   resizing the Finder in every new window (which is labor intensive). Using View menu> Show Preview Options to turn off Quick Actions (which must be done for each file-type, and only reveals a small amount of file info). Difference between information and knowledge? As far as I think projection of data unto subject mind is information for the subject whereas indentation or impressions accumulated owing to projection of data unto subject mind is knowledge for the subject. I want to know am I right? Or can someone provide a more rigorous answer! Forced to Quit PhD although the hard and proved work putting a tikzpicture inside a \caption{} I'm attempting to put a small tikzpicture inside a \caption{} belonging to a figure environment. The reason for doing this is fairly simple - to create an in-caption legend for a PGFplot, with consistency between the TikZ styles in the figure and in the caption. Previously I would have done this using dashes and the xcolor package, however, this is an awful hack. In this MWE:  \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure} \caption{\raisebox{0.5ex}{ \begin{tikzpicture}\draw[dashed,color=red,thick] (0,0) -- (0.5,0);\end{tikzpicture}} Gas--Phase}  \end{figure} \end{document}   The expected output:    is generated, but I get ! Argument of \@caption has an extra }. and ! Paragraph ended before \@caption was complete. Within the larger context of the document that I'm writing, which includes chapters in external .tex files, compilation fails catastrophically (dozens of errors) with no output, so I can't just ignore the warnings in this instance. Any ideas? Draft mode for pgfplots I'm working on a fairly big document that has a lot of graphs of functions- so far it has around 200, by the end it will have around 1500. I use pgfplots for each graphic, and the functions are pretty basic: exponential, rational, polynomial, and trigonometric.  Once I am happy with each graph, I don't necessarily need to see it every time I compile, and would like to minimize compilation time for future drafts. Naturally, the document is already chopped up into chapter files, but each chapter contains around 100 figures.  Having studied the pgfplots documentation, I haven't found a draft mode, but I'm interested in knowing if one could be created.    I'm envisaging something similar to the draft mode of the graphicx package, in which graphics are not included, and blank boxes are put in their place.  Some things I've considered:   the  documentclass; but with about 1500 figures, wouldn't this mean over-modulization?  tikzexternalize, but this still requires an initial 'monster' compilation to get the images externalized before the draft option could be invoked   Here's a MWE to play with  \documentclass{article} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture}     \begin{axis}         \addplot {x^2};     \end{axis} \end{tikzpicture}  \end{document}