Assume I have a very simple file with a matrix like  00011000 00022000 00011000 12100121 12100121 00011000 00022000 00011000   I want to import it to TikZ and transform it to a picture, where each cell in the matrix is interpreted as a small square with a color, defined by the content of the cell (e.g. 0 white, 1 gray, 2 black or so). I think that there is a quite simple solution for it. Probably I do not need a complete solution, some hints should be sufficient. Thanks in advance!
Can you create images like this:    when you have something like  0 = green (#54ff00) 1 = white (#ffffff) 2 = red   (#ff0000) 3 = blue  (#0048ff)  Image (Python list of integers defined above): [[2,0,0,0,0,0,0],  [0,3,0,0,0,0,0],  [0,3,2,1,1,0,0],  [0,3,2,2,2,1,1],  [0,3,2,0,0,1,0],  [0,0,0,0,0,1,0],  [0,0,0,0,0,1,0]]   with TikZ?  How far I got  The following MWE defines all colors, produces a grid of the correct size (though the size is determined by hand):  \documentclass[varwidth=true, border=2pt]{standalone} \usepackage{tikz} \usepackage{xcolor}  \begin{document}     \newcommand\n{7}     \definecolor{green}{HTML}{54FF00}     \definecolor{wite}{HTML}{FFFFFF}     \definecolor{red}{HTML}{FF0000}     \definecolor{blue}{HTML}{0048FF}     \begin{tikzpicture}         \foreach \x in {1,...,\n}{             \foreach \y in {1,...,\n}{                 \begin{scope}[shift={(\x,\y)}]                   \draw [fill=green] (0,0) rectangle (1,1);                 \end{scope}             }         }     \end{tikzpicture} \end{document}   Of course, I could simpy make a lot of adjusted                   \begin{scope}[shift={(\x,\y)}]                   \draw [fill=green] (0,0) rectangle (1,1);                 \end{scope}   but I've wondered if this can (with reasonable effort) be done in TikZ / LaTeX.  My problem is giving TikZ the color array. I don't have any idea how to do this. I only know two types of looks in TikZ:  \foreach \x in {0,1,2,3,4,5}{...} \foreach \number in {1,...,\n}{...}   I have never seen a nested over a 2D-array. All I have seen so far were 1D-Arrays of tuples (with fixed tuple size).
What limits a motherboard from supporting more memory? My specific question is with the ASUS M3N78-VM motherboard that my home server uses. I currently have 4x2GB installed for a total of 8GB but I was hoping to upgrade to say 16GB (4x4GB). The official specifications of that motherboard says it only supports up to 8GB but it was released back when only 2GB sticks were available. What, if any, would prevent it from working with 4GB sticks now that 4GB sticks are available?  My general question is with motherboards in general... what would prevent a motherboard from working with bigger sticks if its all just the same type (DDR2 for example and same speeds) of memory? Usually when a word starts with a vowel, we will use "an" before it. But for union, it is "a union" not "an union." It is not explained in the previously mentioned  why union is an exception. It explains how to know exceptions for h like hotels.   Also are there any exceptions for the opposite side, where there should be an "a" but is an "an" instead? (Unfortunately I have no example of a case like this.) A google search gives number of methods to hide ALL tabs in chrome , but I want to hide 1 particular tab / change the display name of that tab.   Reason: I have an online music playing website open, which keeps showing tracks in the tab name and I just want to remove it from view of my work. Block computer from joining a domain if it has the same name as another computer object in ADUC What is the purpose of the word 'self'? What is the difference between [@] and [*] when referencing bash array values? says:  If the index number is @ or *, all members of an array are referenced.  When I do this: LIST=(1 2 3) for i in &quot;${LIST[@]}&quot;; do   echo &quot;example.$i&quot; done  it gives the desired result: example.1 example.2 example.3  But when I use ${LIST[*]}, I get example.1 2 3  instead. Why? Edit: when using printf, @ and * actually do give the same results. How to get all Perfect or Near-Perfect Matchings of a graph So I installed vlc daily built snap package. It's working great, no problems there. However I noticed that after upgrade the system has 2 versions of vlc (7 and 9). That can be seen when browsing /snap/vlc/ directory and using system monitor. This is also the case with other snaps. Is there a way to automatically delete older versions of snaps? Or do I just delete them using plain &quot;rm&quot; command? Is it safe to delete them that way? If $\sum_{n=1}^{\infty} a_n$ is absolutely convergent, then $\sum_{n=1}^{\infty} (a_n)^2$ is convergent Let $\sum_{n=1}^{\infty} a_n$ be a series in R. Prove that if $\sum_{n=1}^{\infty} a_n$ is absolutely convergent, then $\sum_{n=1}^{\infty} (a_n)^2$ is convergent. Here is a simple table.  I want to merge 4 cells. I want to combine the three "this" cells area in this table. I thought I have to use multirow and multicolum at same time. However, I could not find how to use it.  If possible, could you post the modified LaTeX source code?     My LaTeX code:  \documentclass{article} \usepackage{multirow}% http://ctan.org/pkg/multirow \usepackage{hhline}% http://ctan.org/pkg/hhline \begin{document}  \begin{table}[ph] \begin{center} \begin{tabular}{c|c|c|c|c} \hline \multirow{2}{*}{Raaa (k)} &amp; \multicolumn{4}{c}{C ()} \\ \hhline{~----}  &amp; 3.3 &amp; 2.5 &amp; 1 &amp; 0.5 \\ \hline \multirow{2}{*}{Raaa (k)} &amp; \multirow{2}{*}{this} &amp; this &amp; 0.5 &amp; 0.6\\ \hhline{~~~--}            &amp;                       &amp; this &amp; 0.7 &amp; 1.2 \\ \hline \end{tabular} \caption{R, C ripple size} \label{T:peak} \end{center} \end{table} \end{document} Does $G\oplus G \cong H\oplus H$ imply $G\cong H$ in general? Where are Upstart log messages on Ubuntu 13.X? How do I check the integrity of a storage medium (hard disk or flash drive)? I've run across (personally or by proxy) a bunch of storage media that exhibited physical problems during their life. Hard disks, solid state drives and other flash storage media all fail after some time. The situation is worse with USB flash drives and flash cards because of the large amount of suppliers with inferior flash cell and flash controller quality.  How can I reliably detect if a storage drive suffers from physical damage?  Note that this question isn't about file system integrity (which can be checked with ). SQL Server: Cannot insert an explicit value into a timestamp column Reproject GeoJSON from EPSG:3857 to EPSG:4326 When in many rooms, user's info goes off screen So, I wanted to check what low-number rooms are still active so I joined a bunch of rooms in the chat.  This is the result:    Bug also exists when expending rooms on the side:    Since the position is fixed I can't scroll down.  Proposed fix:  Only show the first 10 rooms, and show ... pointing to the user's profile for other rooms. How does the bounty system work? It's possible to offer and award bounties of reputation on questions.   What is a bounty? How can I find questions that have a bounty attached? How do I start a bounty? When can I start a bounty? Why is the system requiring me to choose a bounty amount that's higher than the minimum? Can I use Markdown formatting in the bounty remarks? Can I edit the remark? How long is the bounty period? How do I award a bounty? Can I award a bounty to my own answer? Can I award a bounty to an old answer? If I offer a bounty on someone else's question, can I award the bounty to their answer? After awarding the bounty, can I remove it or move it to another answer at a later time? What happens if there's no answer after the bounty period? What happens if I feel my question is still unanswered? What is automatic awarding? Are bounty awards exempt from the 200 points/day reputation limit? How does Community Wiki mode affect bounties? How does user deletion or post dissociation affect bounties? Can I award a bounty to an answer from a deleted user or one where the author was dissociated? Can I offer a second bounty after the first one has expired? Can I raise my bounty? What happens if a bounty question is closed or deleted? Why can't I vote to close or migrate a bounty question? What happens if I delete my account while I have an active bounty? Do I keep an awarded bounty when I delete my answer? What happens if a question where I awarded a bounty later gets deleted or migrated? Can I cancel my bounty? Can I affect / divide / share part of my bounty to two (or more) users? How many outstanding bounties can a single user have?      See also:  in the Help Center Gauss's Lemma for polynomials claims that a non-constant polynomial in $\mathbb{Z}[X]$ is irreducible in $\mathbb{Z}[X]$ if and only if it is both irreducible in $\mathbb{Q}[X]$ and primitive in $\mathbb{Z}[X]$.   I wonder if this holds for multivariable case.      Is it true that a non-constant polynomial in $\mathbb{Z}[X_1,\dots,X_n]$ is irreducible in $\mathbb{Z}[X_1,\dots,X_n]$ if and only if it is both irreducible in $\mathbb{Q}[X_1,\dots,X_n]$ and primitive in $\mathbb{Z}[X_1,\dots,X_n]$?    Thank you for your help. Simple way of finding the locus of $z$? I am tasked to sketch the locus of complex numbers $z$ that satisfies $$(z-2+i)^2 + (z^*-2-i)^2 + 2zz^* + 6 = 0$$ I was wondering if there’s a special trick to this question, or if this is only solvable by plugging in $z=x+iy$ ? I noticed that the second term is the conjugate of the first, and wanted to substitute $w = z-2+i$, however this gives me a complicated expression for $zz^*$ which makes it more confusing. Is there a trick I’m missing out? Thanks! Edit: I have already solved it through direct substitution (parabola intersecting real axis at $x=3$ and $x=-1$) but it took a good 5 minutes or so, expanding everything correctly, which seems rather long (I was attempting it under exam conditions). I was just wondering if it is possible to exploit the $w$ substitution I made in particular. using trial and error in math problems Suppose one bacterium is in a jar at 12AM, and then suppose there are two bacteria at 12:30AM,  and then there are four bacteria at 1AM, etc.  (a)  How many bacteria will be in the jar at 12PM that day?  (b)  Use trial and error to estimate at what time there will be 1 billion (1,000,000,000) bacteria in the jar.  for a) is it going to be 44 bacterias ? or am i wrong? Please help with b), i have no idea how to figure it out in short term Thanks