body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
I normally use \verb|\LaTeXe| to typeset the command \LaTeXe in my document. But now I want to frame or/and colorize the command \LaTeXe. How can we do that? \documentclass{article} \usepackage{xcolor} \begin{document} \textcolor{blue}{text}\\ % without \verb is ok \textcolor{blue}{\verb|\LaTeXe|}\\ % this is illegal, but I want to colorize the command \LaTeX2e \fbox{text}\\ % without \verb is ok \fbox{\verb|\LaTeXe|} % this is illegal too, but I want to frame around the command \LaTeXe. So how can I do that? \end{document}
It looks like you can't use \verb|...| inside of \textbf{...}. I tried the following: \textbf{Be very careful when using \verb|-i| as it's destructive and it's not reversible!} And got this error: ! LaTeX Error: \verb illegal in command argument. Any ideas?
So I've installed TOR, via the directions sudo apt-get install tor deb.torproject.org-keyring Reading package lists... Done Building dependency tree Reading state information... Done deb.torproject.org-keyring is already the newest version. tor is already the newest version. 0 to upgrade, 0 to newly install, 0 to remove and 109 not to upgrade. But I can not locate my tor browser in apps?
I tried to install Tor on my new version of Ubuntu, but it seems that Tor is not available in the repositories. How else can I install and use Tor?
I've recently been soldering ball-grid-array parts to boards. This is relatively new to me, and there has been a few mishaps with my technique. I was just wondering how does the community perform BGA soldering? What techniques/equipment do you use to make this process more efficient and less error prone? My technique involves using a Hakko FR-830 Preheater to do the work. I use an old board holder to hold my board in place, and then I apply some solder to the board using a syringe (ChipQuik SMD291AX). My part is a 6x6 BGA array, with the pads 1mm apart from each other in a square grid. Once I place the solder onto the pads, I slowly put the part onto the pads, aligned as close as possible. Then, once it's ready, I turn on the preheater through its temperatures from 150-300 degrees Celcius at 50 degree intervals for about a minute and a half at each temperature. The apparatus is not enclosed, so I put a piece of metal over my board holder so that the top of my PCB board is not exposed to open air. My process is not exactly ideal, but thus far, it works alright. However, I noticed that the solder doesn't seem like it really 'melted'. I think that this might be because of my methods, and running a hot air gun on the sides doesn't really help much. Any tips or suggestions? This is all done in-house, and I have to do this by myself, so learning how to do it better would be helpful.
BGA seems to be somewhat of a showstopper for the diy community, especially with the newer more powerful parts being almost exclusively bga. I know it can be done with the skillet/toaster oven method, but it seems like there is no way of inspecting for defects without an x-ray machine except for maybe this method . So is reflowing using these methods relatively high yielding or is this just not worth doing at home?
After the read-only period yesterday the autologin fails to login on StackExchange network sites. OS: Windows 8.1 Browser: Google Chrome 37.0.2062.76 (x64)
My old computer broke down a few days ago, so I'm using a laptop until I can get it fixed. As a side effect, I no longer have my usual browser cookies, so I had to log back into Stack Exchange. While doing so, I noticed that I kept having to log in to every Stack Exchange site I visited — the usual "Welcome back [username], you've been logged in." auto-login banner seemed to be conspicuously missing. In fact, a quick look at the "network" tab in the developer tools suggested that no requests to stackauth.com were being made at all. Eventually, I decided to dive into . Turns out that the code to make the global auth check and bring up the banner is simply: gauth.checkStackAuth(StackExchange.options.stackAuthUrl); And, what do you know, running that command from the developer console does auto-log me in. However, the reason this code isn't being run automatically is because it's disabled in the site config (apparently for all SE sites). For example, the page I'm typing this question on has the following config options set: StackExchange.init( { "locale": "en", "stackAuthUrl": "https://stackauth.com", "serverTime": 1408393334, "networkMetaHostname": "meta.stackexchange.com", "styleCode": true, "enableUserHovercards": true, "site": { "name": "Meta Stack Exchange", "description": "Q&A for meta-discussion of the Stack Exchange family of Q&A websites", "isNoticesTabEnabled": true, "recaptchaPublicKey": "6LdsB7sSAAAAAAzjgEF_Hd8vXv-C42sa_KyofaGR", "recaptchaAudioLang": "en", "enableNewTagCreationWarning": false, "globalAuthDisabled": true, // <--- HERE "isMetaSite": true, "enableSocialMediaInSharePopup": true, "useGoogleOAuth2": true }, // etc. So, apparently, global auto-login has been deliberately disabled for some reason. Why is that, and is there any planned timeline for re-enabling it?
So I was just playing Pokemon Y. My Braixen (female) evolved yesterday and I just realized that its gender switched to male. How is that possible? Does Delphox have a 100% male gender ratio or something? Please note though- I'm actually not exactly sure when it switched- I just noticed it, but I think it was at evolution. I know that it's not a case of having mistook its gender when I first received my starter- I named it Aurora and even thought that I was lucky to have a girl Fennekin. So... can pokemon switch gender when they evolve? Is there a way to change it back?
My female Charmeleon evolved into a male Charizard. How is this possible? Charmeleon was from Diamond transferred to Pokemon X.
I am in Ubuntu 14.04 amd64, I have met all updates available, but also I am getting these errors in media codecs. First I got this error: gstreamer1.0-libav:i386: Depends: libavcodec-extra-54 (>= 6:9.13) but 6:9.16-0ubuntu0.14.04.1+fdkaac is to be installed Depends: libavformat54 (>= 6:9.1-1) but 6:9.16-0ubuntu0.14.04.1+fdkaac is to be installed Depends: libavutil52 (>= 6:9.1-1) but 6:9.16-0ubuntu0.14.04.1+fdkaac is to be installed Depends: libc6 (>= 2.7) but 2.19-0ubuntu6.3 is to be installed Depends: libglib2.0-0 (>= 2.37.3) but 2.40.0-2 is to be installed After getting this error I tried to install those libraries, i then did sudo apt-get install libavcodec-extra-54 That went good, and i could download that package. But any other packages were not installed, terminal said they were already installed. But again I am getting this error. The following packages have unmet dependencies: libavcodec54:
Suddenly my Ubuntu stopped playing video. When I open a video, the player suggests that I install gstreamer1.0-libav. However, it fails to install. I tried installing it manually, here is the error message: $ sudo apt-get install gstreamer1.0-libav Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: gstreamer1.0-libav : Depends: libavcodec54 (>= 6:9.1-1) but it is not going to be installed or libavcodec-extra-54 (>= 6:9.13) but it is not going to be installed Depends: libavformat54 (>= 6:9.1-1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
This command is not giving me the the skull in Minecraft Pocket Edition: /give @p skull 1 3 {display:{Name:"Popcorn"},SkullOwner:{Id:"11ad1a4f-ddba-4550-abd7-14288f367d90",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTQ5N2IxNDdjZmFlNTIyMDU1OTdmNzJlM2M0ZWY1MjUxMmU5Njc3MDIwZTRiNGZhNzUxMmMzYzZhY2RkOGMxIn19fQ=="}]}}}
This question was recently split into different questions for each workaround. See meta posts for more information. Can you use NBT tags in commands? I’ve tried commands that normally work in Java Edition like: give @s minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}} give @s stone_pickaxe{Unbreakable:1b} give @s item_frame{EntityTag:{Invisible:1b}} summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"emerald",Count:5b},sell:{id:"diamond_sword"}}]}} summon tnt ~ ~ ~ {Fuse:20s}
I have a form which will get user information, I am parsing most of the text already. I have set up a [code] tag which will allow users to insert any code they like. Once it's submitted, it will have syntax highlighting, etc. The problem I am running into is that when using htmlentities, htmlspecialchars, or similar to sanitize bad input, we get left with some funky looking outputs sometimes from inside the [code] block. I wish for this to look exactly how the user enters it, but to not actually do any actions on the website. For instance, echo('test'); becomes echo(\'test\'); eliminating the highlighting for the string. I wish for this to be displayed exactly as: echo('test'); however, it should not execute anything to remain safe. Thanks in advance.
I want to turn off PHP's magic quotes. I don't have access to php.ini. When I tried to add php_flag magic_quotes_gpc off to my .htaccess file, I get a 500 internal server error. This is what my .htaccess file looks like: AddType x-mapp-php5 .php php_flag magic_quotes_gpc off Then I tried to use ini_set('magic_quotes_gpc', 'O'), but that had no effect. How do I turn magic quotes off?
Why are the two outputs different: The only difference in the 2 approaches is the way the matrix has been initialized. I expect to get the same output in both the scenarios but the output seems to be different? Is there something I am missing? x = 4 table = [[0]*(x)]*x for i in range(x): table[i][i] = 1 print(table) table: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]] x = 4 table = [[0]*x for i in range(x)] for i in range(x): table[i][i] = 1 print(table) table: [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]
I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3 The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]] Then I changed one of the innermost values: my_list[0][0] = 5 Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]] which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?
So I've gotten to a stage where whenever I throw candy on the ground, the same thing keeps happening. Is there anything else that could happen? Or should I just stop throwing candy on the ground? This is what appears for me currently: You threw 4 330 candies on the ground | ________________________________________________________| | | | | | | | | | | _ | ||_| | |--- -----------------------------------------------------| | | ___ *nom* ____ | | | \/ \/ \/ \/| | | _____ /\___/\ _ ____(^_^)_ /\____/\| | | \/ \/ (_) (_)\/ \/ (_) (_) | | | /\_____/\ | | /\____/\ | ___ | | | | \/ \/ | | \/ \/ | \/ \/ | | | /\_____/\ | | /\____/\ | /\___/\ | | |-------------------------------------------------------------|
What is the point of throwing candy on the ground using the "Throw 10 candies on the ground"? All that seems to happen is that the text under it becomes more and more disappointed in me. ಠ_ಠ
I have a new Lenovo g700 notebook, and just installed Ubuntu 14.04 , but it seems not to be able to configure or list the wireless networks, How can i solve this problem :\ Any advice will greatly appreciated, regards trying lspci -nn| grep 0280 gives back: 02:00.0 Network controller [0280]:broadcom Corporation BCM43142 802.11b/g/n [14e4:4365](rev 01)
My laptop is Dell Inspiron 17R 5720. My OS is Ubuntu 13.10. I was using WiFi before but one day it stopped working. Outputs of some commands: enedil@enedil-Dell:~$ lspci -k | grep -A2 Broadcom 02:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01) Subsystem: Dell Wireless 1704 802.11n + BT 4.0 Kernel driver in use: wl enedil@enedil-Dell:~$ rfkill list all 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no 1: brcmwl-0: Wireless LAN Soft blocked: no Hard blocked: no 2: hci0: Bluetooth Soft blocked: no Hard blocked: no enedil@enedil-Dell:~$ lsmod | grep wl wl 4207760 0 cfg80211 480503 1 wl lib80211 14381 2 wl,lib80211_crypt_tkip enedil@enedil-Dell:~$ uname -a Linux enedil-Dell 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux enedil@enedil-Dell:~$ lspci -vvnn | grep 14e4 02:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01) I don't know what to do, especially that yesterday, I changed my Internet connection to wireless. EDIT: When I click on network applet (I'm using Unity) I see message under grey Wi-Fi: Device unsupported.
Can someone explain why some people use this kind of symbols in their code? it's kind of confusing for me and maybe for all the newbies out there. I am learning Python and I reached a lesson where i should build a web-crawler (spider),in the example they use only how to grab data from a specific url in a specific way i looked in the internet for a general way and found this Code with lot of symbols i know some of them but the rest i have no clue here is a chunk of the code i found with symbols import sys, thread, Queue, re urllib, urlparse, time, os dupcheck = set() q=Queue.Queue(100) q.put(sys.argv[1]) def queueURLs(html,originalink): for url in re.findall('"'<a[^>]+href["'](.`[^"']+)["']'"', html,re.I):) what does symbols like this ^> mean in the code i know that a stand for anchor and what href stands for but those symbols are confusing
I don't really understand regular expressions. Can you explain them to me in an easy-to-follow manner? If there are any online tools or books, could you also link to them?
Given the rectangle $Q$, find a subset $S$ of $Q$ whose closure equals $Q$, such that $S$ contains at most one point on each vertical line and at most one point on each horizontal line. I really don't figure out why there must exists such a set; can you give me an example?
Given a subset $A$ of $\mathbb{R}^{n}$, a point $x \in \mathbb{R}^{n}$ is said to be in the boundary of A if and only if for every open rectangle $B\subseteq\mathbb{R}^{n}$ with $x\in B$, $B$ contains both a point of $A$ and a point of $\mathbb{R}^{n}\setminus A$. My question is from Spivak's Calculus on Manifolds: Construct a set $A \subseteq [0,1]\times [0,1]$ such that $A$ contains at most one point on each horizontal and vertical line but has boundary equal to $[0,1]\times[0,1]$.
A mix between: ls -rtl | more and find . -type f -name '*.xml' | more Just filtering XML files.
When I need to find my recently used files, this command: ls -lt lists in ascending order (by time), when there are lots files, I need to scroll to the top to see needed files, because won't fit in terminal screen. After finding out that tac inverses the output, I use: ls -lt dir/ | tac Is there more fun way of doing it, without using external scripts/utils?
I have a javascript coding exercise to do which has got me a bit stuck (I'm only just starting javascript). The exercise is as follows: Write a function multiply(a) that returns a function capable of multiplying by a. Call this function with b as a parameter. So far I have the main skeleton (not difficult): function multiply(a) { return //Stuck here } I'm not sure if the question is to call multiply(b) and have it give us the result of a*b or something else... I tried writing a function directly after the return statement but this just printed out the function name. function multiply(a) { return function f { return a * b } //Here I assume b is a variable defined somewhere } Thanks in advance!
I've seen references to curried functions in several articles and blogs but I can't find a good explanation (or at least one that makes sense!)
using g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 I have tried different typecasting of scaledvalue2 but not until I stored the multiplication in a double variable and then to an int could I get desired result.. but I can't explain why ??? I know double precission(0.6999999999999999555910790149937383830547332763671875) is an issue but I don't understand why one way is OK and the other is not ?? I would expect both to fail if precision is a problem. I DON'T NEED solution to fix it.. but just a WHY ?? (the problem IS fixed) void main() { double value = 0.7; int scaleFactor = 1000; double doubleScaled = (double)scaleFactor * value; int scaledvalue1 = doubleScaled; // = 700 int scaledvalue2 = (double)((double)(scaleFactor) * value); // = 699 ?? int scaledvalue3 = (double)(1000.0 * 0.7); // = 700 std::ostringstream oss; oss << scaledvalue2; printf("convert FloatValue[%f] multi with %i to get %f = %i or %i or %i[%s]\r\n", value,scaleFactor,doubleScaled,scaledvalue1,scaledvalue2,scaledvalue3,oss.str().c_str()); } or in short: value = 0.6999999999999999555910790149937383830547332763671875; int scaledvalue_a = (double)(1000 * value); // = 699?? int scaledvalue_b = (double)(1000 * 0.6999999999999999555910790149937383830547332763671875); // = 700 // scaledvalue_a = 699 // scaledvalue_b = 700 I can't figure out what is going wrong here. Output : convert FloatValue[0.700000] multi with 1000 to get 700.000000 = 700 or 699 or 700[699] vendor_id : GenuineIntel cpu family : 6 model : 54 model name : Intel(R) Atom(TM) CPU N2600 @ 1.60GHz
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
I am doing some reading and am seeing phrases such as the following. For context, I am learning about Bayes Inference and prior/posterior distributions so theta is the parameter: In such problems, we shall refer to the distribution indexed by θ for the other random variables of interest as the conditional distribution for those random variables given θ. ... In many problems, such as Example 7.2.1, the observable data X1, X2, . . . are modeled as a random sample from a univariate distribution indexed by θ. ... In these cases, let f (x|θ) denote the p.f. or p.d.f. of a single random variable under the distribution indexed by θ. What does "indexed" mean and how do I conceptualize it?
Does a family of a distribution have a different definition for statistics than in other disciplines? In general, a is a set of curves, each of which is given by a function or parametrization in which one or more of the parameters is varied. Such families are used, for example, to . For statistics, a family according to is the result of varying the shape parameter. How then can we understand that the gamma distribution has a shape and scale parameter and only the generalized gamma distribution has, in addition, a location parameter? Does that make the family the result of varying the location parameter? According to @whuber the meaning of a family is implicitly A "parameterization" of a family is a continuous map from a subset of ℝ$^n$, with its usual topology, into the space of distributions, whose image is that family. What, in simple language, is a family for statistical distributions? A question about relations among of the statistical properties of distributions from the same family has already generated considerable controversy for a so it seems worthwhile to explore the meaning. That this is not necessarily a simple question is born out by its use in the phrase , which has nothing to do with a family of curves, but is related to changing the form of the PDF of a distribution by reparameterization not only of parameters, but also substitution of functions of independent random variables.
This is to show that the minimal polynomial does not determine the jordan normal form. I've tried a few but haven't got anywhere. Why is this marked as duplicate? The other post does not give me an answer.
Why and how is the of a matrix in $M_3(\mathbb C)$ fully determined by its characteristic and minimal polynomials? And why does it fail for $n >3$?  Thanks.
I have two applications: HTML+JS frontend and PHP backend. I would like to set Nginx up so that both are served from the same domain. Requests to the backend are made uing URLs starting with /api. My attempt was this: server { root /path/to/frontend; index index.html; server_name example.com; location / { try_files $uri $uri/ /index.html; } location /api { alias /path/to/backend; index index.php; try_files $uri $uri/ /index.php; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; } } However, for all requests to the backend, I end up with a 404: primary script unknown. Is there a way to achieve what I'm trying to do here? How?
Due to a in nginx I was to switch my alias directive with a root directive. Unfortunately this now breaks my static files, which are located in a different directory to my site path (mysite.com/blog -> /var/www/mysite/wordpress). How can I get around this, without changing my static file structure? Here's my full location block: location /blog { root /var/www/mysite/wordpress; try_files $uri $uri/ /blog/index.php$is_args$args; location ~ \.php { fastcgi_pass 127.0.0.1:9000; include fastcgi_params; fastcgi_split_path_info ^(?:\/blog\/)(.+\.php)(.*); fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; } }
I'm having trouble installing anything through the terminal, I'm using Ubuntu GNOME 15.10. After typing in my password I get this message E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? Any help would be appreciated, thank you
I get this error when trying to use apt-get: E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? How can I fix this?
Would the speed of 'push' be equal to the speed of sound?
Is it possible for information (like 1 and 0s) to be transmitted faster than light? For instance, take a rigid pole of several AU in length. Now say you have a person on each end, and one of them starts pulling and pushing on his/her end. The person on the opposite end should receive the pushes and pulls instantaneously as no particle is making the full journey. Would this actually work?
I've got this task to prove that, given $\forall x \geq a$ : f is monotonically decreasing, $ f \geq {0}$ $\int_a^\infty f(x)dx $ converges. Then $\lim\limits_{x\to\infty}xf(x) = 0 $ I proved successfully that $\lim\limits_{x\to\infty}f(x) = 0$ but I don't know if it helps me anyhow.
Let $f(x)$ be a monotone non-increasing function such that $\int_{0}^{\infty}f(x) dx$ converges. Prove: $\lim\limits_{x \to \infty} xf(x)=0$. My question is, why can't I simply contradict any other possibility by using the Integral Limit Comparison Test with $1\over x$? I am, after all, to show that $f(x)=o(x)$ as $x\to \infty$. I really don't understand why monotony is crucial here. I could use some help.
I was trying to connect to a server that is running on another pc in my house. I've tried all the other ip's in the ipconfig in the cmd and doesn't work. I need help with this. When I try to join using the external ip it just times out the server is port forwarded. I've had other people join to test to see if they can get in and they can but I can't.
My LAN server won't let my cousin join me or me join my cousin. It won't show up on the multiplayer screen - it keeps saying "scanning for LAN servers" but it never finds it. I am at his house and we use different computers but it won't connect. How can I fix this?
I have an XML file in FTP server, I need to read that file and loaded into document object in salesforce. I have read the below link but I am not able to understand. . Can we do an HTTP request to the FTP server..? If yes how I can achieve this without using Third-party tools like jitterbit or skyvia .Can anyone help me to solve it? Thanks
My question is how I can intergrate Salesforce with different FTP servers in real time. I have read some articles about it, but to be absolutely sure I thought it would be a good idea to post a question here. I want to be able to send and receive data from Salesforce as a csv file to a ftp server. How I'm thinking about doing this is listed below. Send the data: Create a apex class which query the necessary data in Salesforce and create a csv file. I guess this is trivial? Then send the file to a web service created in Salesforce, just by calling it in the apex code. Create a web service in Salesforce which receives the data from the apex code. This web service should in some way send the data to the appropriate ftp server. I guess I can simply modify some of the code provided by Salesforce to make this work? The file is sent. Receive the data This one is a bit trickier. I guess I have to pull the data from the FTP server by using my web service, which then send the file collected to the appropriate apex class. Or, the FTP server could send the data to the SFDC web service, I don't know if this is possible? The web services on the other side that sends the data to the ftp server, could send it directly to the SFDC web service, which then again forward it to the apex class. I guess the web service will use the remote site url to connect to the SFDC web service?
I need a very lean system with minimum of packages installed for development in C programming language. I know about build-essential meta-package but it's too big for my intents as I'm just working with C, not C++ etc. I've tried to install just gcc but it still requires a lot of extra packages. What is the best approach to get the bare minimum for C development of Ubuntu 14.04?
I use Ubuntu 12.04 64-bit, I did the following: sudo gedit /etc/apt/apt.conf and added APT::Install-Recommends "false"; APT::Install-Suggests "false"; But it did not work. When I try to install a package, it still wants to install the suggested and recommended packages. How can I solve this?
For example: sudo cp /etc/apt/sources.list /etc/apt/sources.list~ With this command I not see any changes. What does the final tilde do?
In Windows, I believe that files with a tilde in the file name represent files that are currently open in an application. For example, Microsoft Word creates a file with almost the same name as the file you currently have open, but with a tilde in the name. It's icon is also partially faded. As far as I'm aware, this signifies a temporary file that exists in case the application crashes and you didn't get a chance to save your file, or to allow the original file to remain unlocked by the file system and accessible to other applications. In Linux, I ran into a *.log file with a tilde at the end of the file name (scan.log~). Does that mean the log file is currently open in another application that is potentially writing to it?
I installed Ubuntu GNOME On my PC and i switched to it but now i want to switch back to the normal desktop every time i click the little foot logo it just shows a bar can't login nothing i have to force restart my PC
In general what is the approach to switch the desktop environment or window manager on Ubuntu? The main difference between stock Ubuntu, Kubuntu and Lubuntu is supposedly the use of Unity vs. KDE vs. LXDE. However, in order to try various desktop environments and window managers I don't want to have to reinstall the respective flavor from scratch just to get a particular desktop environments or window manager. There probably is an easier method than that. The question: How can I easily test different desktop environments and respective compatible window managers (say KDE, LXDE, Unity, GNOME, XFCE and StumpWM)?
I am making a map and I need to testfor the last player alive in the arena. I tried with selectors, but I am not really into this. Can someone help me out?
I want to run a command when there are only 10 entities left. I know you can use /execute unless entity to detect when all matching mobs have died, but it doesn't work if you want to run a command when there are for example 10 entities left. A command like /execute if entity @e[limit=10] does not work, it also triggers if there is only one entity. Such a counting system could also be used to determine once there is only one player left in an arena, meaning they have won a battle or similar.
Does there exist a nonzero $R$-module $M$ so that $M \cong M\oplus M$, where here $R$ is any ring with unity? I'm not sure if this is true; I don't think it's true but I can't prove that. Clearly $M$ must be infinite for this to be true.
I was reviewing my homework and it seems I overlooked something crucial while proving some ring has no Invariant Basis Number property. This is exercise VI.1.12 in Aluffi's Algebra: Chapter 0 The setup: $V$ is a $k$-vector space and let $R = \mathrm{End}_{k}(V)$. Prove that $\mathrm{End}_{k}(V\oplus V) \cong R^4$ as an $R$-module Prove that $R$ doesn't satisfy the IBN property if $V = k^{\oplus \mathbb N}$. For the first, I used to the fact that $V \oplus V$ is both the product and coproduct (in $k$-Vect) of $V$ with itself to get the isomorphism. What I just realized is I only showed that the two are isomorphic as groups not $R$-modules. So what would be the $R$-module structure on $\mathrm{End}_{k}(V \oplus V)$? For the second, I used the fact that $V = k^{\oplus \mathbb N}$ implies $V \cong V \oplus V$ which in turn implies $R = \mathrm{End}_{k}(V) \cong \mathrm{End}_{k}(V \oplus V)$. Again, I just realized that I only showed the latter two are isomorphic as groups. It may be obvious (and maybe why my professor let it pass?) but I can't come up with a good $R$-module structure that makes the two group isomorphisms $R$-linear. Edit: Explicitly, these are the isomorphisms I'm dealing with. Let $\pi_j, i_j$ be the natural projection/inclusion maps of the $j$-th factor resp. and $\psi: k^{\oplus \mathbb N} \oplus k^{\oplus \mathbb N} \to k^{\oplus \mathbb N}$ the isomorphism given by $\psi(e_i, 0)=e_{2i-1}$ and $\psi(0, e_i)=e_{2i}$. Then the first isomorphism $\mathrm{End}_k(V \oplus V)\to R^4$ is given by $\varphi \mapsto (\pi_1\varphi i_1,\pi_2\varphi i_1,\pi_1\varphi i_2,\pi_2\varphi i_2)$ The second isomorphism $R \to \mathrm{End}_k(V \oplus V)$ is given by $\alpha \mapsto \psi^{-1} \alpha \psi$ The composition doesn't seem to be $R$-linear if I use the obvious $R$-module structure on $R$ and $R^4$.
After Rounding to two decimal places, i alwayse get the same value float TestT =round(t*100)/100; i would like to round it and fix it to two decimal places: 0.009999 -> 0.01
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
I have a list of data from 2015-2016 and want to keep the two years together based on a common data point. I would also like to exclude anything that does not have both years on file because I only care about the year to year change, so single values are just clutter. So my table looks something like this. I want to take out the "oranges" line. Thanks! edit: and by "apples" "pears" etc., I mean, unique reference numbers--these being the data point that I would like to connect the years to. 2015 apples 4 $0.79 2016 apples 2 $0.83 2016 oranges 14 $1.12 2015 pears 22 $0.74 2016 pears 17 $0.79
How do I 'Remove Non-Duplicates' keeping only the duplicate records? I know I can highlight duplicate records with a different color, but I'd prefer to remove the non-duplicates instead, as I don't want to scroll though thousands of records looking for the needle in the haystack. I want to keep the duplicates and remove the slingletons.
My reading of is that elves recover spell slots after a 4-hour long trance. However, if that is the case, then what good is Arcane Recovery to an Elf Wizard?
The Long Rest rules read: A long rest is a period of extended downtime, at least 8 hours long, during which you sleep or perform light activity: reading, talking, eating, or standing watch for no more than 2 hours of the rest period. If the rest is interrupted by a strenuous activity—such as attacking, taking damage, or casting a spell—you must start the rest over to gain any benefit from it, unless the interruption takes less than an hour. You must have at least 1 hit point to take a long rest. At the end of the rest, you regain all your hit points and half of your maximum number of Hit Dice (round up). You cannot benefit from more than one long rest in a 24-hour period. The elven Trance racial trait reads as: Trance: Elves do not need to sleep. Instead, they meditate deeply for 4 hours a day. (The Common word for such meditation is “trance.”) While meditating, you can dream after a fashion; such dreams are actually mental exercises that have become reflexive through years of practice. After resting in this way, you gain the same benefit that a human does from 8 hours of sleep. I have heard two views regarding these rules: An Elf can get the benefit of a Long Rest in only 4 hours. The 4 hours only applies to not being exhausted, 8 hours is still required get the benefits of a Long Rest. Which is it? Please provide supporting information, possibly from previous versions.
Let $f:\mathbb{R}\rightarrow\mathbb{R}$ be a monotone increasing function. We know from a general fact that the set of discontinuities of $f$ is countable. Denote the set of discontinuities by $D$. I want to construct a continuous function $g$ such that there exists a function $h$ defined on $D$ with $f(b)-f(a)=g(b)-g(a)+\sum_{x\in (a,b)\cap D}h(x)$. The problem is that there can be a countable number of discontinuities, and it is not necessary that we can order them as $\cdots<x_{-2}<x_{-1}<x_0<x_1<x_2<\cdots$. How can we construct this function $g$?
Let $f:\mathbb{R}\rightarrow\mathbb{R}$ be a monotone increasing function. We know from a general fact that the set of discontinuities of $f$ is countable. Denote the set of discontinuities by $D$. Define $g:\mathbb{R}\rightarrow\mathbb{R}$ as follows: $$g(x)=f(x^-)-\sum_{y\in D \text{ and }y<x}(f(y^+)-f(y^-))$$ It should be relatively clear that $g$ is monotone increasing. But is $g$ necessarily continuous?
Since today Ubuntu 20.04.1 LTS stopped waking up after being suspended by the closing of my laptop's lid, just showing a blank screen. I've tried lots of differents solutions, from modifying some GRUB arguments values to changing lid behavior on systemd's logind.conf file, but none of them seemed to work. Then I remembered that I updated Linux kernel version 5.4.0.56 earlier today, so I checked to see if the same problem ocurred with version 5.4.0.54. And well, it didn't, with version 5.4.0.54 suspension seeming to work properly still, given that the notebook woken up correctly and that I was able to have access to my laptop again after logging in. For that I ask how could I report a Linux Kernel issue to its developers, because I'm quite convinced that this a kernel related issue, given that changing the kernel version used solved this issue.
I found a problem with an application on Ubuntu. Questions : How do I best report the issue? What sort of information should I provide?
Textbook suggests that before conducting a double slit experiment, incoherent light is first passed through a single slit to make a coherent point source of light; the point source can be explained by Huygen's Principle. However, how would incoherent light before the slit become coherent if the point sources are created unperiodically (at uneven intervals)? Diagrams seen on text books seem to assume a conherent light source before the slit, so the conversion to coherent light is not explained. Thanks in advance.
This is a diagram showing the single slit interference set up: The pinhole (or 'peep hole') is said to 'produce a parallel beam of coherent light, because the time interval between light passing through the pinhole and single slit is constant, producing a constant phase difference'. However, how would this create coherent light, because the filament lamp is an incoherent source, meaning it emits light at random, so wouldn't rays emerging from the peep-hole also emerge at random? Also is the peephole even necessary? Because the slit by itself would be narrow enough to create coherent light?
Show without evuluating the integral that $\int_{-\infty}^{0} \frac{x^2}{(x^2+1)^2(x^2 + 2x + 2)} dx$ converges. There is a similar question posted whereby nobody actually showed that the above integral is convergent without evaluating the integral. Is it right that I first let $u = -x$, then $$\int_{-\infty}^{0} \frac{x^2}{(x^2+1)^2(x^2 + 2x + 2)} dx = -\int_{0}^{\infty} \frac{u^2}{(u^2 + 1)^2(u^2 -2u + 2)} du$$ Afterwards I can apply the Comparison test on the Right hand side? The only comparison test I know of is the one stated in Stewart's book, Suppose $f$ and $g$ are continuous functions with $f(x) \geq g(x) \geq 0$ for $x\geq a$. If $\int_{a}^{\infty} f(x) dx$ is convergent, then $\int_{a}^{\infty} g(x) dx$ is convergent. If $\int_{a}^{\infty} g(x) dx$ is divergent, then $\int_{a}^{\infty} f(x) dx$ is divergent. Or what is the better approach here?
Show that $$\int_{-\infty}^{\infty} \dfrac{x^2}{(x^2+1)^2(x^2+2x+2)} \ dx$$ is convergent. $$\int_{0}^{\infty} \dfrac{x^2}{(x^2+1)^2(x^2+2x+2)} \ dx$$ is convergent by comparison test with $\int_{0}^{\infty} \dfrac{1}{x^4} dx$. How do i show that $$\int_{-\infty}^{0} \dfrac{x^2}{(x^2+1)^2(x^2+2x+2)} \ dx$$ is convergent?
Are M2 and M5 membranes in M-Theory excited states of some underlying field, or are they fundamental? In what sense are membranes solitonic? In the reference question, someone made a comment that had no reply and I am just as curious "My question is, what is the M brane itself? Is there an underlying M brane field where the branes are excitations of the field? Or is the M brane simply a fundamental object made out of no fields?" I am confused what an M Brane really is. M2 membranes are strings when you compatify a membrane on a circle, if I am not wrong, so this means all strings and branes are really just solitons?
I'm really confused. In M theory/String theory, the fundamental objects are M/D branes. However, branes by defintion are just solitons. Solitons are just waves that maintain there shape. So if a brane is a soliton wave, then what is it a wave of? Would it be the excitation of a field?
I want to parse markdown emphasis automatically in XeLaTeX. This basically means converting asterisks either side of a word into the \emph{word} that LaTeX uses. I know that more complex Markdown parsing is impossible, but this seems quite simple. Unfortunately, I don't know how to go about replacing something that is not a command.
I understand that \bf and \it are now obsolete in LaTeX and that \textbf and \textit are proper, as they produce more sophisticated (in particular, cumulative and properly kerned) changes to font style. I have read the and I understand the rules and their reasons, as well as the several other commands that are affected. However, I find it convenient to use LaTeX for notetaking during lectures, and in that rushed environment, shortening a command by any number of keystrokes helps keep me from falling behind. \bf and its two-letter kin are still very useful to me for that reason, and once a presentation is finished I can go through and replace all appearances of \bf et al. with \textbf et al. My question is this: is there a plan eventually to replace the short font style commands like \bf with the implementations of \textbf etc. some day, or should I expect \bf always to remain in existence but obsolete, for reasons of backward compatibility with original TeX? Original TeX has been greatly improved on in countless ways, but in the heat of transcription I sometimes miss its conciseness.
Can I run packages like metasploit, ngrok, gparted, etc all install from terminal but run or install to external hard drive? I am running Ubuntu on USB 3.0 but I want all packages installed to an external hard drive. Can I do that?
I am running Xenial 16.04 and looking to install packages to an external drive - my computer has a 32gb SSD so it would be very useful to me to be able to use an external drive. In a quick search I found a framework called which seems to be designed to package all dependencies for a program (chromium, GIMP, some python packages, etc), but haven't had time to look into it. seems to be looking for the same solution I am. Thanks, Chris
Whenever I try to run my project as maven install, it creates a completely normal jar file. It is a swing gui application. However, when I click a button in the GUI that uses this , it ouputs the error below. Exception in thread "Thread-2" java.lang.NoClassDefFoundError: com/neovisionaries/ws/client/WebSocketException at bot.BotFunc.run(BotFunc.java:30) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: com.neovisionaries.ws.client.WebSocketException at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 2 more my pom.xml looks like this: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>HelixBot</groupId> <artifactId>HelixBot</artifactId> <version>1.1</version> <build> <sourceDirectory>src</sourceDirectory> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.2.0</version> <configuration> <archive> <manifest> <mainClass>gui.GUIMain</mainClass> </manifest> </archive> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.neovisionaries</groupId> <artifactId>nv-websocket-client</artifactId> <version>2.14</version> </dependency> </dependencies> <packaging>jar</packaging> </project> As you can see, the correct dependency is added, so I am not sure why this error is appearing. I have tried clean building it and checked the .project and .classpath files. It may be due to the fact that I converted it to maven from a regular java project, but I have not found anything. Please let me know if there is a possible solution.
I want to package my project in a single executable JAR for distribution. How can I make a Maven project package all dependency JARs into my output JAR?
One calculation question… I’m an American on a Schengen 90/180 day tourist visa. I was in Oslo, Norway from Jan 9 - March 19. My plan is to go back from… May 15 - May 27, 2019. Then again July 1st - Sept 1, 2019. Then again Dec 1, 2019 - Feb 28, 2020. Is that all legal and ok Schengen visa-wise? I don’t go over the 90 days in 180 day sliding ruler do I? Thank you so much!
I have searched the web a lot and could not find an answer that fits my situation. Here are two links that are quite contradictory: My situation: I've visited Portugal in December 2012 for 29 days on a Schengen visa valid from December 1st, 2012 to February 1st, 2013 for research purposes (I am a Ph.D. student). I want to visit Sweden from February 10th, 2013 to May 10th, 2013 (89 days). I have applied for a Schengen visa again (for research). How will the 90/180 rule work in my situation?
I dropped my external monitor and its top left corner is cracked. I no longer can see the top left section of my monitor. It's pixelated. If I'm in full-screen mode, I can't see this reigon of my monitor Is there a way to shift everything away from the left side of my monitor? Or is some other useful hack or accessibility feature for my situation? I've already adjust the Hover Text feature and bumped Text Size to 90pt and moved the location to bottom right, but wondering if there is any other solution.
I have a Macbook with a cracked screen, only the top left half of the screen works, is there anyway to reduce the screen resolution, keep the DPI the same, and thus have the entire OS visible in the top left section of the screen which works? The below photo demonstrates what I mean, with parts of the creen totally unusable, it would make sense to be able to display the whole screen in the remaining usable part.
For example if I have one god of Theros in my hand like Can I play it using a even though I dont have enough devotion?
Gods, such as or , are not creatures if your devotion is not high enough. Does this count when casting them? If, for example, an opponent tries to counter with when the player casting a god doesn't have the required devotion, is the god a valid target? Or, if Purphoros is on the battlefield and the controller tries to cast another god, for which they don't have the required devotion, do opponents suffer the 2 damage?
In linear regression we can use A:B to show the first order interaction of variable A and B. But it is hard to know what effect was caused by A and what was caused by B. So I want to understand how exactly A:B worked
I have a model: $$ \ln({\rm earnings}) = a+b_1{\rm female}+b_2{\rm white}+b_3{\rm female}\times{\rm white} $$ ${\rm female}$ and ${\rm white}$ are dummy variables. I have interpreted $b_1$ and $b_2$: $b_1$ = change in female earnings comparing to male given you are non white $b_2$ = change in white earnings comparing to non white given you are male But I am unable to interpret the coefficient of the interaction term ($b_3$). Please help me with this. Let me make it more clear what I need out of this regression $$ \ln({\rm earnings}) = 2.618656-.0899657{\rm female}+.382019{\rm white}-.2754126 {\rm female}\times{\rm white} $$ Now i know there is gender pay difference with b1, i also know there is race pay difference with b2. Now with b3 i need to know is their a gender pay gap for whites only. How can i figure that out with regression above and without test.
How can I bind the meta key (a.k.a. / Windows key) to a left click? Hitting the meta key should trigger a left click, and pressing down on it should allow me to drag and drop (just like it would do when holding down left click). I tried using System Preferences -> Shortcuts and Gestures: but I cannot set "meta" alone as being a shortcut. I use Kubuntu 14.10 Plasma 4. (On Windows 7 SP1 x64 Ultimate I can achieve that using the program .)
How can I bind the meta key (a.k.a. / Windows key) to a left click? Hitting the meta key should trigger a left click, and pressing down on it should allow me to drag and drop (just like it would do when holding down left click). I tried using System Preferences -> Shortcuts and Gestures: but I cannot set "meta" alone as being a shortcut. I use Kubuntu 14.10 Plasma 4 and Kubuntu 14.04 LTS x64. (On Windows 7 SP1 x64 Ultimate I can achieve that using the program .)
I am writing a longtable that spread across 2 pages. But LaTeX always adds starts the table in a new page rather than the previous blank page. Now I want my longtable starts in the previous blank page (like the pictuer bellow), how can I do that? Thank you. Here is my *.tex: \documentclass[12pt]{article} \usepackage{longtable} \usepackage{lipsum} \begin{document} \lipsum[1-3] \begin{center} \begin{longtable}{|p{2cm}|p{10cm}|} \hline \textbf{First} & \textbf{Second entry} \\ \hline \endfirsthead \hline \endhead \hline \endfoot \hline \endlastfoot 1 & \lipsum[1] \\ \hline 2 & \lipsum[2] \\ \hline \end{longtable} \end{center} \end{document}
I am editing a longtable. Some of my cells contain a lot of text. Page breaks seem to happen only where table rows end/begin. I'd like, however, for the rows to span pages; it's fine with me if, for example, the first few lines of a row are at the end of one page and the rest of the row's lines are on the next page.
I'm trying to install Lubuntu on my laptop (sorta old 2005). [Laptop stats: Intel® Celeron® CPU 410 @ 1.46 GHz 1.47GHz, 448 MB of RAM] I press Install and this message appears: This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU. What can I do to install Lubuntu on my computer?
The error message is This kernel requires an x86-64 CPU,but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU. How can I overcome this?
As I know all arithmetic operations in AES are done over $GF(2^8)$ so I want to know which field generator AES uses? is it 0x11B? and choosing another field generator would it give a different results?
So we've already had a question on . My question is - can we use a different finite field other than the one given by $x^8 + x^4 + x^3 + x + 1$ in $GF(2^8)$. In other words, would any irreducible polynomial over this field do the trick or are the special considerations and properties of that particular reducing polynomial? If a more general discussion on appropriate fields for cryptographic operations, such as those used in ECC, is necessary, then I'd be happy to hear it. What I'm trying to get to is an understanding of whether there are any important properties in terms of the "randomness" of the operation - for example, are there weak fields to operate over? For example, $x^8 + x^3 + x + 1$ ought to also be irreducible - so would it be suitable? I ask partly because of the which lead me to think not all fields might hold equal strength. Right? Wrong? Inconsequential?
I've checked the migration stats pages on the sites I have access to them and and the stats don't reflect the actual migrations at all. It seems to be having trouble attributing the migrations to the sites they came from or were sent to. Here's the ELL page: As you can see, there are 190 migrations that apparently come out of thin air (most of them are from ELU). The system is able to correctly attribute a few from ELU and one from French. Similarly, in the away column, the two that were migrated away don't note where they were migrated to. In this case, they were both migrated to ELU. A few months ago we noticed an . I don't think this is related because these questions aren't from Meta to Main site, they are between sites.
I was just looking at the statistics for migrated questions in the mod tools, and noticed this oddity: The actual statistics, as visible to any 10k+ SFF user , are: 6 migrated to Worldbuilding, 2 to Literature, 2 to SFF meta, 1 to Movies & TV, 1 to Writers, and 1 to Aviation. Why is one of the meta migrations showing up with a blank icon rather than with the other? Both migrated questions were closed as duplicates on meta. Both were migrated by 5 community members without mod involvement. One of the stubs on main has since been deleted, but so have the stubs for some of the other migrated questions. I can't think of anything to explain this discrepancy.
I am looking to clean up a large data set (~300) with a large number of features (~140). I would like to explore outliers in the data. My first thought was to use PCA to reduce these features to a few components that explain most of the variance, and then exclude outliers of these new n factors. However, there are a few issues with this approach. The first is that PCA is affected by outliers itself. Robust PCA may be a good alternative here? The second issue is that some of the variables I would like to partial out, like age, sex, etc..., but not remove data based on these. I would like to control for them first, and then apply some outlier detection on the result. Does it makes sense to partial these out first, and then apply a robust PCA outlier analysis on the results of that?
Suppose I have a large set of multivariate data with at least three variables. How can I find the outliers? Pairwise scatterplots won't work as it is possible for an outlier to exist in 3 dimensions that is not an outlier in any of the 2 dimensional subspaces. I am not thinking of a regression problem, but of true multivariate data. So answers involving robust regression or computing leverage are not helpful. One possibility would be to compute the principal component scores and look for an outlier in the bivariate scatterplot of the first two scores. Would that be guaranteed to work? Are there better approaches?
I am from India and I applied for a skilled professional visa for Australia with my old passport but it didn't have a spouse name on it. So I applied to add it and had issues with a new passport. I informed DIBP regarding this, but I got the visa on my old passport only. Now I have informed DIBP to update the passport details on their end... but haven't received any reply till now. Just need to confirm if I can travel by taking along both old and new passports... in case I don't get any confirmation from DIBP regarding the update of my passport details.
I was granted a visa to Australia few months ago. I’d like to travel to Australia in few days. However, I’ve just renewed my passport and I don’t have enough time to inform them about my passport renewal. Can I travel to Australia by carrying both my old and my new passports?
I have been trying to find the image of $S=\{z\in\mathbb{C}; 0<|z|<r\}$, with $r>0$, under $w=e^{1/z}$. I started this way: if $z=|z|e^{i\theta}\in S$, by Euler's formula $$ 1/z = |z|^{-1}(\cos\theta-i\sin\theta) = |z|^{-1}\cos\theta-|z|^{-1}i\sin\theta. $$ Considering $w=|w|e^{i\alpha}$ as image of $z$, $$ |w|e^{i\alpha} = e^{|z|^{-1}\cos\theta} e^{-|z|^{-1}i\sin\theta}. $$ And then $$ |w| = e^{|z|^{-1}\cos\theta} \implies \ln|w| = |z|^{-1}\cos\theta \implies \cos\theta = |z| \ln|w|. $$ And also $$ \alpha =-|z|^{-1}i\sin\theta \implies \sin\theta =-\alpha |z|. $$ What do I have to do now?
I can't do this exercise of Conway's Book: For $r>0$ let $A=\{w:w=\exp(1/z), 0<|z|<r\}$, determine the set $A$. Any hints?
For example, I have a target string like: str='Every "red","white","blue" flower is $7.' If I run /Every ("(.+)",?)+ flower is \$(.+)/.exec(str), I will get "red","white","blue" as a whole output element, but what I want is ["red,"white","blue"]. Is there a way to do this, or I can only use split? Thanks!
I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}: The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?
what is ths reflective, glossy, smooth white texture? Kindly help me answer steps to create this white reflective texture
I'm pretty new to this and this is my first question here, any help would be greatly appreciated. So basically what I want to achieve is a floor material as seen in this photo... ...the reflections are very crisp but dim. With a glossy shader I get the following results: First picture: reflections are blurry Second picture: roughness of the material looks right but reflection is bright red Third picture: If tinted in any other color than white, it seems to produce the result I want. Reflection is sharp and gets tinted blue. What I need is the reflection to be tinted white. Thanks for any help.
I read this story ten years ago, and can't find it or remember it's name. It's about two kids who live in a house that spoils them.They have a holo room that turns into Africa when they play in it. I think their parents tell them to stop doing something with the room, so they set lions on their parents.
I read this short story(I believe it was under novella length, but I could be mistaken) a while back, and I am trying to identify the title for a friend. Plot: Parents(male and female) get a computer aided/holographic nursery for their children. The mother becomes increasingly agitated as the children withdraw more. The children are barely even featured in the story, and the ending concludes with lions possibly eating the parents. Publishing date: Years ago. Tech level: Seemingly functional AI, not much more.
I am dual booting a computer to build android but it is a family computer and my mother wants it so that it boots straight to Ubuntu so she doesn't have to choose Ubuntu or windows. Is there a way to set it where it boots straight to windows and if I want to boot into Ubuntu I mash a button that takes me to a menu? If so help would be appreciated. Thanks everyone!
In Ubuntu 12.04 (or above), how do I set the GRUB time and the default OS (that I see at boot time) as I'm dual-booting Windows (7/8) and Ubuntu (12.04 or above)?
Please let me know which sentence is proper? Summer has always been an imaginative time for Jamie and me. Summer has always been an imaginative time for Jamie and I.
When the phrase is used as an object, why so many native speakers are saying "you and I" instead of "you and me"? I'm not a native speaker but I thought "you and me" is correct. Not sure if this falls into the same category, but "Just between you and me" sounds more natural than "Just between you and I".
The scene in where Batman sees future Flash has prompted a lot of debate online, but there's a question I haven't seen addressed yet. The "nightmare" that Batman had of a Superman gone bad would seem to be the fruition of all his concerns regarding the Kryptonian. Assuming that Flash caused the nightmare, it begs the question of whether that was an actual glimpse into the future (presumably the one that THAT Flash came from)... or if it was a just a nightmare Flash used to get his attention for the message he gave. I know there are lot of extra scenes in the Ultimate Edition cut, but I haven't seen that cut yet. Has Zack Snyder or anyone involved with the production of "Batman vs. Superman" commented on whether this was an actual glimpse into a possible future?
About halfway through Batman vs Superman, Bruce Wayne falls asleep and has couple of rather unusual dreams. In one of them, a person appears to be trying to give him a message. He appears to be coming out of a portal and surrounded by lightning, and is trying to tell Bruce about Lois Lane and Superman. The whole scene is incredibly confusing, since the message is definitely something Bruce wouldn't know enough to dream about, and it's never brought up again. Multiple people have complained about this "confusing Flash cameo". When I saw it, it never occurred to me that it was supposed to be the Flash, because He seemed to be wearing a mechanical suit, and had no control over his use of the portal; not to mention, the message made no sense. Was the actor in this scene Ezra Miller -- the same one who later appears in a definitive Flash cameo -- and was this supposed to be a message from the Flash? UPDATE: Please note: I am not asking what the message meant, or how The Flash might be the one sending it, or what the comics have to say, because I know the answers to all of those things. I'm only asking if the character in this scene is shown to be the same character we see in the security footage from the convenience store in a later scene.
I don't see any option for sharing the screen as we see in this . Also, the sharing button automatically switches off if I navigate away from this screen. If I try to share the entire screen from the browser(during discussions), a black page is shared. vino is already the newest version (3.22.0-3ubuntu1). I've tried many available solutions related to this issue. I don't know what's wrong. Kindly help. The ubuntu version I'm using is 18.04
After upgrading to Ubuntu 17.10 I noticed some of my screencasting applications are not working, for example screencasting tools like SimpleScreenRecorder and vokoscreen. () Also I noticed features like screenshot from GIMP is not working properly, producing blank screenshots (). Shutter too is producing glitchy screenshots (). Screen-sharing option on Skype is also not working (). The issue occurs sometimes on later Ubuntu releases too. Why is this happening and how do I fix this?
I have a datepicker that needs to take the date "12/31/9999" even though maxDate is set to today. I have it type in like this. However, when I run the comparison in the code, it returns false. private CheckDate(form: FormGroup, group: any) { if (form.controls["date"].value == new Date("12/31/9999")) { //form.controls["date"].valid = true; (group.questions["date"] as DateTimePickerQuestion).maxDate = null; } } However, when I compare form.controls["date"].value to new Date("12/31/9999") it comes back as false and doesn't execute my code in the middle. Why is that? Here is a copy/paste of the immediate window checking the values new Date("12/31/9999") Fri Dec 31 9999 00:00:00 GMT-0500 (Eastern Standard Time) {} form.controls["date"].value Fri Dec 31 9999 00:00:00 GMT-0500 (Eastern Standard Time) {} form.controls["date"].value == new Date("12/31/9999") false
Can someone suggest a way to compare the values of two dates greater than, less than, and not in the past using JavaScript? The values will be coming from text boxes.
I'm working on a database abstaction for mongodb in .NET Core 2.1. For this I use the mongo driver from Nu-Get. Now I'm working on a simple generic extension method to include referenced objects in a similar way like other database abstractions for relational databases do that. The following example shows how I plan to get a customer collection and include the related job offers: //get the customer collection and include the related job offers var result = Database.Customers.Find(x => x.Id != null).Include(x => x.JobOffers); And this is the code of the Include extension method: public static IList<T> Include<T>(this IFindFluent<T, T> result, Expression<Func<T, object>> filter) { var propertyName = filter.Body.ToString().Split(".")[1]; var idFieldName = typeof(T).Name.Substring(0, typeof(T).Name.Length) + "Id"; var list = new List<T>(); foreach (dynamic item in result.ToList()) { try { var type = item.GetType().GetProperty(propertyName).PropertyType.GenericTypeArguments[0]; var builder = Builders<JobOffer>.Filter; var queryFilter = builder.Eq(idFieldName, (string)item.Id); var prop = item.GetType().GetProperty(propertyName); var relatedItems = _database.GetCollection<JobOffer>(propertyName).Find(queryFilter).ToList(); prop.SetValue(item, relatedItems); } catch (Exception e) { } list.Add(item); } return list; } So far it works but as it is now it just works for the object with the type JobOffers and it should work for any type of objects. So my Question is: In the try {} section there is a variable type where the needed class is stored as Type. How can I use this type in the angle brackets? I 'd like to do something like this: var type = item.GetType().GetProperty(propertyName).PropertyType.GenericTypeArguments[0]; var builder = Builders<type>.Filter; var relatedItems = _database.GetCollection<type>(propertyName).Find(queryFilter).ToList(); But I get the error: type is a variable but is used as a type. How am I suppost to solve this?
I have a string variable that represents the name of a custom class. Example: string s = "Customer"; I will need to create an arraylist of customers. So, the syntax needed is: List<Customer> cust = new .. How do I convert the string s to be able to create this arraylist on runtime?
In my Class I declared an Array myUsers = new Array(); Where I want to Add Usernames, unique. So i thought I would check if the ArrayLenght is 0, if yes, add a User. Which works fine. I if a Username wants to be added, which exists in the Array, it should be deleted. But this way, If I add one User the console says ["User1"] If I try to add another one (another one User2) the console says ["User1", empty] Can't get behind that... isChecked(e) { var usersArray = this.myUsers; console.log(usersArray.length); if(this.myUsers.length == 0) { console.log("is 0"); this.myUsers.push(e); } else { console.log("is not 0"); for (var i= 0; i < this.myUsers.length; i++) { if (this.myUsers[i] == e) { console.log("is in array"); delete this.myUsers[i]; } else { this.myUsers.push(e); } } } }
What is the difference between using on the array element as opposed to using ? For example: myArray = ['a', 'b', 'c', 'd']; delete myArray[1]; // or myArray.splice (1, 1); Why even have the splice method if I can delete array elements like I can with objects?
Is it true that $\int_{- \infty }^{\infty} \frac{1}{1+x^2}\, dx=[\tan^{-1} x]_{- \infty }^{\infty} = \frac{\pi}{2}-(-\frac{\pi}{2})=\pi$? I'm integrating after a long period of time of inactivity, and sometimes I have doubts.
How $$\int_{-\infty}^{\infty}\frac{dx}{1+x^2}$$ exists? It is difficult question to me. i have tried to evaluate by using fact that $$\int_{-\infty}^{\infty} f(x) \ dx =\int_{-\infty}^{0} f(x)\, dx + \int_{0}^{\infty} f(x)\, dx$$ but i have failed in this one. any hints on this one?
When we have a sex with partner, we feel so tired that we don't have any power to do anything. Then it would be disadvantage to the animals, of course humans too, for they are exposed to danger. For example, the predator's atack. But you know, we cannot help having a sex. Then what is the advantage of being tired after having a sex?
If a trait would be advantageous to an organism then why hasn't it evolved yet? Conversely, if a trait is not advantageous or mildly disadvantageous, why does it exist? In other words why does evolution not make the organism more "perfect"? This is a general question that would be applicable for any kind of trait. Please keep the answers precise and scientific. Read this meta post for more information:
In a standalone outside script for QGIS 2.18, i have a layer which contain multiple features to bufferize : vlayer = QgsVectorLayer(out_dir + "selected_shape.shp", "blabla", "ogr") I try to run processing for each features from qgis.core import * from processing.core.Processing import Processing Processing.initialize() from processing.tools import * import processing buff_res = processing.runalg("qgis:fixeddistancebuffer", vlayer, 0.2, 99, False, None,) get_output= processing.getObject(buff_res['OUTPUT']) for f in get_output.getFeatures(): print f.attributes() The qgis:fixeddistancebuffer compute the buffer only on the first feature from my layer. How can i compute the buffer on each feature on this vlayer ?
I'm looking for some examples to do simple python scripts in QGIS. How would I do a buffer analysis on a dataset? I can't seem to find much in the manual and QGIS python that quite matches the ESRI documentation.
I'd like to allow a user to select a path to local audio files, in Android and iOS devices. Is there a way I could provide a list of available songs, in Android or iOS devices, so the user could pick and play them?
I am creating a car game. Is any way to play the music stored on the phone inside the game? I'd like the player to choose files that are already on their device and hear them played in the game. For example, in GTA Vice City game there was a folder named Music, and if we placed songs in there they would play on the car radio while we're driving around inside the game. If we want to switch the songs around, we can do so. how can I do the same in Android and iOS? I am using unity 5.2, C#.
How can I run the jQuery script for new created DOM elements? Look at the following code, if I click the class .elem it will run the code, but if I append new .elem the script won't run. JS: $('.elem').on('click', function(){ $('.result').show().fadeOut('slow'); }); $('.add').on('click', function(){ $('.block').append('<div class="elem">Element</div>'); }); HTML: <div class="block"> <div class="elem">Element</div> <div class="elem">Element</div> <div class="elem">Element</div> </div> <p><span class="add">Add new</span></p> <div class="result">Result</div> JSFiddle here: Any help is hightly appreciated. Thanks you;
I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off. This happens on page ready and works just fine. The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound. I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.
select a.name from student a, student b where a.id = b.id and a.id = 1; vs select a.name from student a inner join student b on a.id = b.id and a.id = 1; Are they actually the same?
Is there any efficiency difference in an explicit vs implicit inner join? For example: SELECT * FROM table a INNER JOIN table b ON a.id = b.id; vs. SELECT a.*, b.* FROM table a, table b WHERE a.id = b.id;
I'm using natbib, setcitestyle packages and agsm style. I want to italicize words "et al" so that they appear as "et al". I have located and changed the agsm.bst file (5 instances of et~al to **\emph{et~al}**) and placed it in the same folder as my work. I have also pointed the biography style to new bst file. However, I see no change in citations. I'm using TexStudio and Windows 8. I have gone through previous posts concerning this issue without success. Previous posts on this issue: ..and many others. Please help. MWE: MinimumWorkingExample.tex: \documentclass[a4paper, 12pt, oneside]{Thesis} \usepackage{natbib} \setcitestyle{aysep={,}} \begin{document} Here is a minimum working example: Single author~\cite{yeung2007reducing}. In the second line, we provide an example of citing more than 3 authors so as to test of the words et al are italicized~\cite{samadi2010optimal}. \bibliographystyle{agsm} \bibliography{MWERef} \end{document} MWERef.bib File: @inproceedings{samadi2010optimal, title={Optimal real-time pricing algorithm based on utility maximization for smart grid}, author={Samadi, Pedram and Mohsenian-Rad, Amir-Hamed and Schober, Robert and Wong, Vincent WS and Jatskevich, Juri}, booktitle={Smart Grid Communications (SmartGridComm), 2010 First IEEE International Conference on}, pages={415--420}, year={2010}, organization={IEEE} } @article{yeung2007reducing, title={Reducing energy costs with peak shaving in industrial environments}, author={Yeung, Phillip}, journal={Schneider Electric, September}, year={2007} } Output: Thanks for your comments guys. MWE works, but my thesis document still cannot italicize the words et al. I will have to look for conflicting packages in the thesis document because MWE contains fewer packages than the thesis document.
I am using natbib and agsm for harvard-style referencing. My related code is \usepackage{natbib} \bibliographystyle{agsm} Then I am using \citep{} for citations. My problem is that in text I am getting (Author et al. 2012) but and I want (Author et al. 2012) Does anyone know how to change this and get 'et al' in italics in the text? I am using TexPad and BibDesk and I have not been able to find the .bst files in Terminal. I know that it is often correct to have the 'et al.' unitalicised but my university regulations requires italics.
What is the best way to implement a timer? A code sample would be great! For this question, "best" is defined as most reliable (least number of misfires) and precise. If I specify an interval of 15 seconds, I want the target method invoked every 15 seconds, not every 10 - 20 seconds. On the other hand, I don't need nanosecond accuracy. In this example, it would be acceptable for the method to fire every 14.51 - 15.49 seconds.
Just this - How do you add a timer to a C# console application? It would be great if you could supply some example coding.
I am attempting to solve part (d) of the following problem from Artin's algebra book. I have already solved parts (a) through (c). (a) Let $p$ be an odd prime. Prove that exactly half of the elements of $\mathbb{F}_p^\times$ are squares and that if $α$ and $β$ are nonsquares, then $αβ$ is a square. (b) Prove the same assertion for any finite field of odd order. (c) Prove that in a finite field of even order, every element is a square. (d) Prove that the irreducible polynomial for $γ=\sqrt2+\sqrt3$ over $\mathbb{Q}$ is redubile modulo $p$ for every prime $p$. Now, I have shown that $g(x)=x^4-10x^2+1\in \mathbb{Q}[x]$ is the irreducible polynomial for $γ$. Let $p$ be a prime. Let $f(x)=x^4-10x^2+1 \in \mathbb{F}_p[x]$. I want to show $f$ is reducible. I see that either 2, 4, or 6 is equal to $s^2$ for some $s\in\mathbb{F}_p$. I think it will be useful to proceed by cases here. It someone could show me a complete, elementary, simple proof for the $s^2=2$ case, I should be able to finish the rest on my own.
So I have seen the similar question and answers on here for $x^4 +1$, but I am having trouble extending anything there to this polynomial... I understand it is fairly trivial with Galois theory, but my class has just barely covered Field Extensions, so suffice it to say we have no Galois theory to play with. I managed to prove it for the primes such that $p \equiv 1, 7 \pmod 8$, by noting that $2$ is a square modulo those primes and thus $x^4 - 2x^2 +1 = (x^2 -1 + 2qx)(x^2 - 1 - 2qx)$ for those $\mathbb{Z}_p$... however, trying to get a similar result for $3 \pmod 8$ and $5 \pmod 8$ has been stumping me for a long time, I am having a hard time making $q^2 = -1$ and $q^2 = -2$ give me something factorable... I guess the worst part of all of this is that I don't think this solution is even particularly enlightening, in terms of abstract algebra. It's really just some number theory trickery. I don't think my course has prepared me theoretically for this problem, does anyone have an elementary approach to it?
I changed some settings in Unity and then I ran the Setsid unity command and now every time I try and boot up Ubuntu I can login just fine but the desktop is completely empty besides my background picture. I'm not sure how to fix it as I can't open the terminal or anything. Please help? Thanks!
When I login, nothing happens. I am presented with my desktop wallpaper. No Dash, no Launcher, nothing.
I am forced to manually document a legacy enterprise database. Are there some standard good practices or tools to do this? To give you some more context, I have recently been given restricted access to a legacy enterprise database. There is very little documentation. I don't have permissions to view system tables or generate ER diagrams. I am exploring/using the database and manually documenting it as I go. I would like to represent the schema with code (manually) in such a way that it can be parsed, say, with Python, to generate an ER diagram? Are there tools to do this kind of thing? Or standard good practices to document the schema, annotate definitions and common keys etc? I'm imagining some kind of a tree or graph like data structure that can be used to encode the schema, parsed with Python etc, and used to generate ERDs, etc, outside of the db management tool; (since I don't have permissions to do this inside the db management tool (Oracle SQL Developer)).
I find that most of my clients are not documenting their databases at all and I find that pretty scary. To introduce some better practice, I would like to know what tools/process people are using. How do you document your database? (SQL-Server) What tool do you use? Documentation Storage Format for database schema/meta-data? Word documents Excel spreadsheet Plain Text Documentation process or policies? I am not talking about reverse engineering / document a existing database, but mainly on the documentation best practices while you develop your system/database.
I live in London, and would like to find a SIM card that has an attractive EU wide data plan for my iPad. I know I can get individual SIM cards for each country, but that's something I'd like to avoid when going on road trips. Any suggestions? Ideally I'd like prepaid, but I'm open to a UK contract that would offer a good plan.
Next month I am traveling to country X, where I would need Y minutes of calls, Z text messages and most importantly Q megabytes of data. How can I find the cheapest/most reliable SIM card for my needs?
Interested in changing to disc brakes on my bike. I hear they're a lot better, although I am rather new to this sport and this (Mr. Pink) is my first road bike. Any insight on the process of switching or any thoughts that I shouldn't switch the braking would be appreciated.
I've decided I want a disc brake, at least on the front, which seems a good enough reason to go bike shopping, but am I overlooking the possibility of fitting a cable pull disc brake to my current bike? I've been using a ten year old road bike as a commuter. It has carbon front forks with road caliper/rim brakes and integrated Shimano road brake/gear levers.
So this popped up But the prompt makes absolutely no sense since the post is locked. Should this be fixed?
I just opened a URL to a question on programmers.SE and got the message: But the question was locked, so I couldn't do what it asked me to do. I consider this to be a very minor edge case bug and it's likely not worth investing developer time into it. But since this I guess it's worth reporting even if it's just for making you aware of it.
I am looking for the best way to format fractions in the upper limit of summations. In particular, the fraction is the argument of the floor function. In the following example, the floor function and fraction appear disproportionately large. \begin{equation} \sum_{k=1}^{\left \lfloor{\frac{n+1}{2}}\right \rfloor}\frac{1}{2k-1} \end{equation} I'm sure there is a better way to achieve this result...
When I write \lfloor\dfrac{1}{2}\rfloor the floors come out too short to cover the fraction. How can I lengthen the floor symbols?
I am writing a thesis in LaTeX with predefined styles which works fine. However, sometimes, when I finish a sub-section and start writing the new sub-section, LaTeX automatically stretches the text and adds more space (between paragraphs) in order to put the new title on the next page. Once I use \clearpage at the end of the current sub-section, it removes the spaces in between and makes it fine, but again starts the new part in the next page while there is still some space left at the last page before the new sub-section.
I'm writing my bachelor-thesis and have a couple of small sub-sub-sections explaining conversions, like in the following \subsubsection*{Assignment} This document only explains non-compound assignments. The other kind, i.e \texttt{a += b}, is supported by the language too, but is not yet implemented. \begin{itemize} \item If the first is an \texttt{auto} variable, no conversion takes place when assigning the right hand side to the variable designated by the left hand side. \item Otherwise, an assignment conversion takes place converting the given value to the type of the designated variable. \item Assignment requires an lvalue as the left hand side, and yields an lvalue result. \end{itemize} \subsubsection*{Multiplication} % ... But latex renders it quite ugly with much space in between the items. I think it does so to fit the whole page. How can I tell it not to do so? Is what I'm doing right at all?
I was just wondering if it functions the same as the martial adept feat's dice, which do become d8s as confirmed by Jeremy Crawford.
Assume two 1st level Rogues, Alice and Beatrice. Alice gained 3 levels of Rogue and on her 4th level of Rogue, instead of an ability score increase she picked up the Martial Adept feat. She later gained 3 levels in Fighter, and chose the Battle Master archetype. Beatrice gained 3 levels of Fighter, and chose the Battle Master archetype. She then gained 4 levels of Rogue, and instead of an ability score increase she picked up the Martial Adept feat. Alice and Beatrice each now total four Rogue levels and three Fighter levels, obtained via different paths. Is the superiority dice gained from the Martial Adept the same dice for both Alice and Beatrice? (The text above was posted as an example in that was closed as too broad. After talking to a moderator, it was decided the best thing would be to post the example as a separate question.) The second bullet point of the Martial Adept feat says (PHB, p. 168): If you already have superiority dice, you gain one more; otherwise, you have one superiority die, which is a d6. [...] The already have implies that you need to have superiority dice when you acquire the feat, otherwise it is a d6. Beatrice is safe. RAW, she already has superiority dice when she gets the feat. Is Alice stuck with a d6 superiority die for the rest of her career?
I know that the operators is and is not test for object identity: x is y is true if and only if x and y are the same object I initialize two variables i and j with the same value 10, and when I am comparing the id of both variable with is operator it gives me a False even though the id(i) and id(j) are the same. I need a clarification, Here is my code >>> i = 10; >>> j = 10; >>> print(10==10); True >>> print(id(10)==id(10)); True >>> print(10 is 10); True >>> print(5+5 is 10); True >>> print(i == j); True >>> print(id(i) == id(j)); True >>> print(i is j); True >>> print(id(i) is id(j)); # Why this statment Evaluate to False this is my quetion? False >>> id(i); 140718000878704 >>> id(j); 140718000878704
My has failed me. In Python, are the following two tests for equality equivalent? n = 5 # Test one. if n == 5: print 'Yay!' # Test two. if n is 5: print 'Yay!' Does this hold true for objects where you would be comparing instances (a list say)? Okay, so this kind of answers my question: L = [] L.append(1) if L == [1]: print 'Yay!' # Holds true, but... if L is [1]: print 'Yay!' # Doesn't. So == tests value where is tests to see if they are the same object?
I'm currently learning objective-c. What exactly do the square braces around things signify and is there any difference between using that and using a period (I'm from a .NET world so this would be simpler for me). Thanks.
You can use a standard dot notation or a method call in Objective-C to access a property of an object in Objective-C. myObject.property = YES; or [myObject setProperty:YES]; Is there a difference in performance (in terms of accessing the property)? Is it just a matter of preference in terms of coding style?
I have a requirement in which I have to create a custom lookup field on lead object which selects the account Account__c and during the lead to account conversion I have to map the field with 'Parent Account' field of the account which is a standard field.So i am trying to write the code on before insert trigger that maps the custom lookup field of lead to the standard field of account. trigger populateParentAccount on Lead(after Update) { List<Account> newAccList = (List<Account>)Trigger.New; List<Account> updateAccontList = new List<Account>(); Set<Id> accountIds = new Set<Id>(); system.debug('newAccList: ' + newAccList); for(Lead record: [SELECT ConvertedAccountId, Agency_Account__c FROM Lead WHERE ConvertedAccountId = :newAccList]) { // Avoid multiple leads with same account system.debug('ConvertedAccountId:' + record.ConvertedAccountId); system.debug('record:' + record); if(!accountIds.contains(record.ConvertedAccountId)) { updateAccontList.add(new Account(Id=record.ConvertedAccountId, ParentId=record.Agency_Account__c)); accountIds.add(record.ConvertedAccountId); } } if(!updateAccontList.isEmpty()){ update updateAccontList; } }
I have a requirement in which I have to create a custom lookup field on lead object which selects the account Account__c and during the lead to account conversion I have to map the field with 'Parent Account' field of the account which is a standard field.So i am trying to write the code on before insert trigger that maps the custom lookup field of lead to the standard field of account. trigger populateParentAccount on Account (before Insert){ List<Lead> convertedLeads=[SELECT Id, ConvertedAccountID,Agency_account__c FROM Lead WHERE IsConverted=True AND ConvertedAccountId IN :trigger.new]; Map<ID,ID> acctParentMap=new Map<ID,ID>(); for (lead l: convertedleads){ acctParentMap.put(l.ConvertedAccountId,l.Agency_account__c); } for (account a:trigger.new){ if (acctParentMap.containsKey(a.Id)){ a.ParentId = acctParentMap.get(a.Id); } } } But It is not working.. Please help..
Is there any way to show that for $a,b \in F$ , the ideal $\langle x-a , y-b\rangle$ is maximal in $ F[x,y]$ , by showing that the quotient $F[x,y]/\langle x-a , y-b\rangle$ is a field ? Is the quotient $F[x,y]/\langle x-a , y-b\rangle$ isomorphic with $F$ ? ( Here $F$ is a field ) I can show that the map $g : F[x,y] \to F$ given by $g( p(x,y))=p(a,b)$ is a surjective ring homomorphism with $\langle x-a , y-b\rangle \subseteq \ker g$ but I cannot show that the kernel is exactly that ; PLease help, Thanks in advance
$K$ is field. $a_1$,$a_2$ elements of $K$. Show that $(x_1-a_1,x_2-a_2)$ is a maximal ideal of $K[x_1,x_2]$. $K[x_1,x_2]$ is UFD so if $K[x_1,x_2]/(x_1-a_1,x_2-a_2)$ is field then $(x_1-a_1,x_2-a_2)$ is maximal ideal. If I can show that $K[x_1,x_2]/(x_1-a_1,x_2-a_2)$ isomorphic to $K$, we can verify that $(x_1-a_1,x_2-a_2)$ maximal ideal of $K[x_1,x_2]$. thanks for helps and comments.
I'm trying to edit a file on a remote server via a terminal and to make a change in said file I have to (or have used so far) use the 'sed' command. in the below file i want to delete the string STUFF_456 and its new line character. STUFF_123 STUFF_456 STUFF_789 However when I use this command in sed i'm left with a blank line. $ sed -i 's/STUFF_456//' /file/path/here.txt STUFF_123 STUFF_789 I need to get rid of the blank line and keep the other two entries. How can I accomplish this?
I have a Bash script that writes data into a log file, then from that I take out stuff I want using the sed command. That gives me a file data.txt. What I want to know is how I go about deleting specific line inside that data.txt file. For example: 123 456 789 I want to remove the 2nd line, containing 456 so that I only have 123 789 I tried with sed '2d' data.txt but it doesn't work. I use this command to create data.txt from log.log: sed -nE '1s/.{1}(.{2}).*/\1/p;' log.log >> data.txt
I am creating worksheets and I would like to have multiple rows with 2 columns. I would like the numbering to go horizontally, i.e., 1. math problem 2. math problem 3. math problem 4. math problem 5. math problem 6. math problem 7. math problem 8. math problem I am working in the article class (although I need this for the exam class as well) and have been playing around with array/tabular, minipage, and creating my own commands... I am still new at this, thank you for your patience. \documentclass[twoside]{article} \usepackage{amsmath,amsfonts,amssymb,graphicx,mathtools,flexisym, array, multirow, tabularx, enumitem, multicol} \newlist{mparts}{enumerate}{1} \setlist[mparts]{label*=(\arabic*)} \newcommand{\mpart}{\item} \SetEnumitemKey{twocol}{ before=\raggedcolumns\begin{multicols}{2}, after=\end{multicols}} \begin{document} \subsection{Finding Limits Analytically} When a function is defined and continuous at a value $x=a$, how can $\lim \limits_{x\to a} f(x)$ be found analytically? \vspace{0.5in} \begin{mparts}[twocol] \mpart $\lim \limits_{x\to 3} \dfrac{1}{2}x^2-2x+3$ \mpart $\lim \limits_{x\to 3} \dfrac{5x+2}{2x-3}$ \mpart $\lim \limits_{x\to 2^{-}} \dfrac{\sqrt{x+2}-1}{x+1}$ \mpart $\lim \limits_{\theta \to \frac{\pi}{2}} \sin{2\theta}$ \end{mparts} \end{document} As you can see, the numbering goes vertically down as I add more problems. While this is largely cosmetic, I'd like to know how to change it to look they way I'd prefer it to look. I also don't know how to insert an image here. But the format looks generally like this: 1. math problem 3. math problem 2. math problem 4. math problem Many thanks!
How can I get lists arranged in two columns throughout the document. I would like to make changes only in preamble and not in the list. I am thinking of this structure . First item . second item . third item Here is MWE. \documentclass{article} \usepackage{multicol} \begin{document} \begin{multicols}{2} \begin{itemize} \item 1 \item 2 \item 3 \item 4 \item 5 \item 6 \item 7 \item 8 \item 9 \item 10 \item 11 \item 12 \item 13 \end{itemize} \end{multicols} \end{document}
Here is the sample format of non-integers number 12.5+13.8=26.3
In LaTeX2e,how can I sum two values and assign them to other variable? I want to compute something like: var=\textwidth - 1cm And if both were constants: var=1+1
I just got a little lost in the assumptions, I first assumed that $~y> x~$, but then I wasn't very successful.
I think I have proved that that a cannot be greater than b (ie a & b must be equal) then using this fact I got a quadratic in terms of a and c, trying out some values I got that (3,3,4) is a solution, but how do I prove this is the only solution or if this is not the only solution then what are the other solutions and how do I find them?
As climate change is a hot topic in the scientific community nowadays, with broader and broader subtopics, I thought it could be interesting to introduce a Stack Exchange on Climate Change. What do you think of it?
I have an idea or subject that should have a Q&A, and want to propose a new site. How can I do this? Related:
In Grammar and Vocabulary for First Certificate (Prodromou, 2005), Chapter 2 covers "the future", "be going to", "present continuous", and "present simple". I put three of the End-Of-Chapter questions below with the corresponding back-of-the-book answers. My concern is with Question #1 only. (I wrote #2 and #3 for context.) Put the verb in brackets into the most suitable form of the future.* "What ________ you __________ this evening?" (do) 'Nothing.' [Answer: are ... doing] "Well, _______ we ___________ to that new pizzeria?" (go) [Answer: shall ... go] In 2004 the Olympic Games _________ in Athens. (take place) [Answer: will take place] For Question #1, the only answer in the back-of-the-book answer is the present continuous: "What are you doing this evening?" This has effectively ruled-out the possibility of using 'be going to' to complete the sentence. In other words, I think what he is saying is that "What are you going to do this evening?" is incorrect. Do you think he is right?
In his book, Grammar and Vocabulary for First Certificate, Luck Prodromou has ruled out the possibility of using 'be going to' to complete the following sentence : 'What .......... you .......... this evening?' (do) 'Nothing'. And the only correct answer he offers is using : 'What are you doing this evening?' ' Nothing'. However, I feel 'be going to' can also be used. 'What are you going to do this evening?' ' Nothing'. Is it valid or will it change the meaning of the sentence?
I need to check whether the String is an Integer. And I found such solution: private boolean isInteger(String str) { try { Integer.parseInt(str); return true; } catch (NumberFormatException e) { return false; } } Is there a more beautiful and proper way to do this without try/catch clause?
I normally use the following idiom to check if a String can be converted to an integer. public boolean isInteger( String input ) { try { Integer.parseInt( input ); return true; } catch( Exception e ) { return false; } } Is it just me, or does this seem a bit hackish? What's a better way? See my answer (with benchmarks, based on the by ) to see why I've reversed my position and accepted to this problem. I think this original code will be used by most people because it's quicker to implement, and more maintainable, but it's orders of magnitude slower when non-integer data is provided.
I needed some help trying to understand why the sum of the observed values $Y_i$ equals the sum of the estimated values $\hat{Y}_i$.
I'm taking a course on regression models and one of the properties provided for linear regression is that the residuals always sum to zero when an intercept is included. Can someone provide a good explanation for why this is the case?
If Linux shuts down, but the computer stays in terminal, I can still print the sysRq help, but no longer enter commands. Is there any way to escape that and undo shutdown while circumventing the Linux death sin, called reb***ing?
Assuming you've just entered the command shutdown -h now (or something equivalent), is there realistically anything you can do (if you're quick enough) to prevent the machine shutting down?
I keep getting an error in a simple for loop trying to insert value from one array to another. My JS code is as: var myApp = angular.module('myApp', []); myApp.controller('UserCtrl', function($http) { let vm = this; var datetime = []; var venuename = []; var venuecity = []; var venuecountry = []; var url = []; var arr = []; var id = "secret key"; vm.searchText; var i=0; vm.getByID = function() { $http.get("https://rest.bandsintown.com/artists/" + vm.searchText + "?app_id="+id) .then(response => { console.log(response.data) vm.name = response.data.name vm.thumb = response.data.thumb_url vm.fb = response.data.facebook_page_url vm.up = response.data.upcoming_event_count $http.get("https://rest.bandsintown.com/artists/" + vm.searchText + "/events" + "?app_id="+id) .then(response2 => { console.log(response2.data) vm.arr = response2.data console.log(vm.up) console.log(vm.arr[0].datetime) console.log(vm.arr[1].datetime) for (i = 0; i <=(vm.up-1); i++){ vm.datetime[i] = vm.arr[i].datetime; vm.venuename[i] = vm.arr[i].venue.name; vm.venuecity[i] = vm.arr[i].venue.city; vm.venuecountry[i] = vm.arr[i].venue.country; vm.url[i] = vm.arr[i].url; } console.log(vm.up) }) }) } }); The datetime part of the arr returns just as i want it to. I just cant store it into the new array. What im trying to do is that the array 'arr' contains all the objects of concerts of an artist. I want to display the individual details, for that I need to store each element in a new array, and repeat to create and show separate event details. Im a newbie at this and any help would be appreciated. Thanks in advance!
What's the best way of checking if an object property in JavaScript is undefined?
I am trying to write a script where the user can pass startDate and endDate via arguments when running the script. Here's my script (saved as test.sh)- VAR="$(curl -f -X POST -H 'X-API-TOKEN: XXXXXX' -H 'Content-Type: application/json' -d '{"format": "csv", "startDate": $1, "endDate": $2}' 'https://xxx.qualtrics.com/export-responses' | sed -E -n 's/.*([^"]+).+/\1/p')" echo $VAR When running the script I type the following - ~/test.sh '"2020-05-13T17:11:00Z","2020-05-13T20:32:00Z"' The script throws an error.
Consider I've set variable site and needs to be printed by echo or printf, but If I use single quote to write something and want to use variable then how? Example: $ site=unix.stackexchange.com $ echo "visit:$site" visit:unix.stackexchange.com But If I use single quote: $ echo 'visit:$site' visit:$site Then we know that '' is strong quote and will not expand the variable I've tried something: $ echo 'visit:"$site"' visit:"$site" but do not succeed. So, I am looking for way to print value inside variable while using single quote.
Out of the blue it happened that a custom content type won't display some of the cck fields I constructed for the custom content type. This happens when I just visit the a full node of that content type. When I go see in firebug, I also notice that the HTML elements to those custom made fields are entirely missing. I checked the display options under admin->content type->customcontenttype and everything looks the way it should. I checked view permissions and those are also set for anonymous and admin roles. Does this sound familiar to someone that cck fields cease to be displayed in full node?
in short: Something in my zen-based custom theme is keeping a couple of cck fields from being display on my page. Basically my question is where to get access to the variables that are supposed to contain the html for the cck fields (which are missing when I was looking them in firebug). Below I explain why I think it's looking up the variables that might bring me closer to a solution So I made this custom node type (events) with cck fields added. Also made some content using those fields. Added some css and it all displayed fine. Later the taxonomy terms below the title and some metadata bugged me so I followed along with a 'theming cookbook' pdf book that taught me how to make a node-events.tpl.php and simply deleted php variables like $terms. This worked great. Obviously this also means that all this time, the view permissions of those fields have been checked and also that the display options under 'display fields' have been set to standard all the time. I also ruled out that the issue could be anything else than theme related as my cck fields do show up in a stock Drupal theme. The theme for my site is a zen-based custom theme. So then even later, after I made a view for this node type and started adding css to that view I noticed at some point that my image field and two other fields are missing. It's hard to tell if they disappeared because of things that I did when creating the view and adding css (which would surprise me)
I offered a bounty on this that I asked last year. I have provided the answer with working code, and days later someone else provided a "duplicate" answer without code. Currently the highest voted "duplicated" answer is borrowed from existing comments and answers, and more importantly does not even contain a code example. Because the bounty can't go back to the poster, now the bounty goes to him. I feel this is not fair.
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
What is a tensor quantity , how is it different from vector quantity or scalar quantity and why is pressure a tensor. It would be very helpful if you could give me an intuitive idea of tensor quantities.
I have a pretty good knowledge of physics, but couldn't deeply understand what a is and why it is so fundamental.
I have a list of lists of values. In some instances, I have to print names of the lists but not their values. onesoil = [dates_bwn_twodates('2019-03-22','2019-04-09'),onemod] sixsoil = [dates_bwn_twodates('4/10/2019','4/29/2019'),sixmod] explist = [onesoil,sixsoil] print(explist[0]) >> [dates_bwn_twodates('2019-03-22','2019-04-09'),onemod] Above is fine but I want to print the name but not is value. My expected output print(explist[0]) >> onesoil How to achieve this?
I have enum and use the variables like myEnum.SomeNameA, myEnum.SomeNameB, etc. When I return one of these variables from a function, can I print their names (such as myEnum.SomeNameA) instead of the value they returned?
Looking for info. All I can find on Google is a pic that matches but no information. Its apparently a Cycle Rite Dilecta made in Austria single speed with coaster brake. Looking for some information on this bike. It has cycle rite as the badge its a single gear with coaster brake. It either say Dilecta, or Oilecta on the side. Has made in Austria on it as well.
We often get questions on bicycles.stackexchange about identifying a bicycles manufacturer, model, make, and year. Often these questions are downvoted or closed -- usually with a comment attached to them that it's not necessary to know the exact model/make/year of a bicycle if you want to fix, repair, or ride your bike. Why should owners not care about the model/make/year of their bicycle? Especially when it comes to less expensive bikes (aka BSOs) and BMX bicycles? This is intended as a canonical question that we can point closed questions to. Also see (generally not helpful for identifying a brand/model)
I’m a beginner and . The problem is that inside of the bone tissue there are areas denser than others. To obtain the .stl file I have to decide which range of density value I want to include in my object. That fact results in an STL file with some holes bubble inside the volume. To explain it better I could do an analogy: the volume that obtained is similar gruyere-cheese: outside the surface is smooth without any interruption inside there are a lot of bubbles/holes. I can’t correct this problem during the transformation from CT to stl, so the question is: Do you know a method to fill the holes/bubbles? I don’t want to do it manually point by point because it will take hours. I thought that I could make a hollow shell only of the external surface and fill it but I don’t know how to do it. If you have other solution faster or smarter let me know.
My mesh object is based on a CT bone scan so there are many inner geometries due to natural spaces in human bones. But I need a model that has no inner geometries. How do I fill inner holes and spaces with completely solid mesh? Thanks Update: I attached a screenshot of the "holes" in my mesh after boolean op. booleaned: original: