body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
I've researched a lot about this, found how to know if the APK is 32bit or 64bit I tried going to the developer area in my phone => process manager and still couldn't see running apps' architecture. tried installing a couple of task manger apps too, still no luck. I think Google play automatically detects CPU architecture and installs the correct version and apparently since 2019 August, Google play requires all apps to have a 64-bit version. but when I go to Chrome => chrome://version, it shows 32-bit so I'm looking for a universal way to find out whether the installed app on my phone is 32bit pr 64bit. I'm using Android 9
I am writing a script to test a large quantity of apks. Some run on x86 and some run on arm. Is there a way I can tell which apks are intended for which architecture? I have looked through the report on aapt badging with aapt dump badging application.apk. For some of the arm compatible versions I see native-code: 'armeabi-v7a' but not for all of them, and I don't see any indication of what architecture the x86 compatible apks run on. I have also tried using apktool to break apart the apk and examine the AndroidManifest.xml. I don't see anything pertaining to the chip architecture in it either. I'm looking for something on a linux platform. Any ideas?
Let $aH=bH$ where $H$ is a subgroup of a group $G$ Then $$a=bh\quad \text{for}\quad h \in H.$$ I couldn't understand why. $a$ and $b$ are any numbers from the group $G$. How come some number I chose from $G$ satisfies the condition above. Is there any proof behind this, since I couldn't manage to find one. Thanks
Let $H$ be a subgroup of a group $G$. The I know that for $a,b\in G$ we have $aH = bH$ if and only if $a^{-1}b \in H$. My question is if it is also true that $aH = bH$ if and only if $ab^{-1} \in H$? Does it matter where the $-1$ goes? I am guessing that this is not true since we keep putting the $-1$ on the left element, but I am also thinking that it might be true because they look like the same. If $G$ is abelian, then it doesn't matter, so a possible counter example would have to involve a non-abelian group. If $H$ is a normal subgroup, then it should also be true because then $a^{-1}bH = Ha^{-1}b$.
Given that two projectiles are fired at the same velocity, from the same spot, and land at the same point following different trajectories, how can I find the difference between the two angles of projection and the times taken for the projectiles to land? EDIT: Not a duplicate since this one involves two projectiles and two different angles rather than trying to find one unique one.
An object which is projected from the ground with an angle of $\theta$ passes two walls(without touching) within its motion.The wall which has a height of 'a' is situated in a distance of 'v' from the projected place and the other wall which has a height of 'b' is situated in a distance of 'a' from the first wall. Find a expression with a and b for the $\tan$ value of the $\theta$. I tried to find the $\theta$, $\rightarrow s = ut \\ v=u\cos\theta.t_{1}\\$ $\uparrow s=ut+\frac{1}{2}at^{2}\\ a=u\sin\theta\times\frac{v}{ucos\theta}-\frac{g}{2}\times\frac{v^{2}}{u^{2}\cos^{2}\theta}\\ a=v \tan\theta-\frac{gv^{2}\sec^{2}}{2u^{2}}$ $\rightarrow s=ut\ v+a = u\cos\theta\times t_{2}$ $\uparrow s=ut+\frac{1}{2}at^{2}\\ b=u\sin\theta\times\frac{v+a}{u\cos\theta}-\frac{g}{2}\times\frac{(v+a)^{2}}{u^{2}\cos^{2}\theta}\\ b=(v+a)\tan\theta-\frac{g(v+a)^{2}\sec^{2}\theta}{2u^{2}}$ I don't see a way to find the $\theta$.Please help.
Here's my method: p.show = function(message, status, timer){ //do stuff }; Is there a way, so that if vars such as timer are not passed in, to have a default for them, e.g, true. In php I would do it like: private function show(message, status, timer = true){ }
I've always handled optional parameters in JavaScript like this: function myFunc(requiredArg, optionalArg){ optionalArg = optionalArg || 'defaultValue'; // Do stuff } Is there a better way to do it? Are there any cases where using || like that is going to fail?
While developing a script using Page Object Model, we use PageFactory.initElements(driver,this) to initialize the webelement. How this is done and why we pass parameters 'driver' and 'this' ?
I am a beginner in learning selenium Webdriver. I am not able to understand how page object and factory models works and how it can be beneficial? Kindly help me explain it with detailed explanation.
I am hours trying to figurate out where is the problem, but it seems so strange. I rewrote my problem in an easier way to understand. When it gets to the line where it says delete, the debbug makes a breakpoint. Ps. Intresting to note that, if we take int b1 and move it to Base2 it works. Base1: #pragma once class Base1 { public: Base1(); ~Base1(); int b1; }; Base2.h: #pragma once #include <iostream> #include <vector> class Derived; class Base2 { public: Base2(); ~Base2(); std::vector <std::vector <Base2*>> vec; void doSomething(Derived& d); }; Base2.cpp: #include "Base2.h" #include "Derived.h" Base2::Base2() { //the numbers 1 and 5 does not really metter vec.resize(1); vec[0].resize(5); } Base2::~Base2() { } void Base2::doSomething(Derived& d) { vec[0][d.b1] = new Derived(); delete vec[0][d.b1]; } Derived: #pragma once #include "Base1.h" #include "Base2.h" class Derived : public Base1, public Base2 { public: Derived(); ~Derived(); }; main: #include <iostream> #include "Derived.h" int main() { Derived d; d.b1 = 1; d.doSomething(d); }
I have a solid understanding of most OOP theory but the one thing that confuses me a lot is virtual destructors. I thought that the destructor always gets called no matter what and for every object in the chain. When are you meant to make them virtual and why?
I need to instantly access chrome or get it out of my way whenever I need to by using only a fast keyboard shortcut, is there a shortcut for this? If not, how can I do this?
I know how to Hide (Cmd+H) or Minimize (Cmd+M) a focused window in OS X, but I can't find a keyboard shortcut or even a menu item to restore, unhide, unminimize, or otherwise show a window that I've hidden or minimized. Anyone have a suggestion?
I think the following sentence is incorrect Leena is a most intelligent student. because in such constructions the must come before most But I found this sentence in a book. I think it should be Leena is the most intelligent student. or even better way to write this will be Leena is the most intelligent student in the class.
Example: Just because he does not say very much is no reason to sell him short. Actually, he's a profound thinker and a most talented writer. People tend to underestimate him and not give him the credit he deserves because they think he's shy. How do you understand it grammatically? If it means the same thing as the most talented writer, then what's the difference?
I want to create a Kaplan-Meier plot using ggplot2 with a number at risk table beneath. The number at risk table should be aligned to the x-axis ticks of the Kaplan-Meier plot. I found how to determine the number at risk with the following result for my example: Group.A Group.B 1 630 1220 2 518 1024 3 416 850 4 360 760 5 318 702 6 288 652 7 185 438 8 75 179 9 13 29 10 0 0 But how can I add these numbers at risk aligned to the x-axis ticks beneath the Kaplan-Meier plot (row names of the above shown data frame = year - 1 ... not all rows will be used, since I truncated the plot after 5 years)? The function does not help me here, since I would like to write my own more flexible plot. I wrote the following example. library(survival) data(colon) library(Hmisc) d <- colon[, Cs(time, status, rx)] rm(colon) names(d) <- c("days", "event", "group") d$group <- ifelse(d$group == "Obs", 1, 2) fit <- survfit(Surv(days,event)~group, data=d) diff <- survdiff(Surv(days,event)~group, data=d) risksets <- with(na.omit(d[, Cs(days, event, group)]), table(group, cut(days, seq(0, max(days), by=365) ) )) number.at.risk <- sapply(1:nrow(risksets), function(i) Reduce("-", risksets[i,], init=rowSums(risksets)[i], accumulate=TRUE)) number.at.risk <- data.frame(number.at.risk) names(number.at.risk) <- c("Group.A", "Group.B") number.at.risk ### p.value <- round(1 - pchisq(diff$chisq, 1), digits=4) p.value <- ifelse(p.value < 0.001, "<0.001", paste("= ", p.value)) d.mortality <- data.frame(time=fit$time, surv=fit$surv, strata=summary(fit, censored=T)$strata) zeros <- data.frame(time=0, surv=1, strata=unique(d.mortality$strata)) d.mortality <- rbind(d.mortality, zeros) levels(d.mortality$strata) <- c("Group A", "Group B") d.mortality$surv <- (1-d.mortality$surv)*100 # event free to events and in % ### g <- ggplot(d.mortality, aes(time, surv, group=strata)) + geom_step(aes(colour=strata), size=1) + theme_bw() + # white background theme( plot.background = element_blank(), panel.grid.major = element_blank(), panel.grid.minor = element_blank(), panel.border = element_blank(), legend.position="none", axis.line = element_line(color = 'black'), axis.text.x = element_text(size=15), axis.text.y = element_text(size=15), axis.title.x = element_text(size=17, hjust=.5, vjust=.25, face="bold"), axis.title.y = element_text(size=17, hjust=.5, vjust=1.5, face="bold"), plot.title = element_text(size=20, hjust=-.1, vjust=1, face="bold") ) + scale_y_continuous("Cumulative event rate [%]", limits=c(0, 60)) + scale_x_continuous("Time [years]", limits=c(0, 1825), breaks=seq(0, 1825, 365), labels=c(0, 1, 2, 3, 4, 5)) + annotate("text", x = 1000, y = 45, label = "Group A") + annotate("text", x = 1000, y = 30, label = "Group B") + annotate("text", x = 1000, y = 55, label = paste("P ", p.value, "by log-rank test", collapse="")) print(g)
I need to make a Kaplan Meier plot with an at-risk or risk-set table beneath it. Otherwise stated, I need a table of the number of subjects at risk at different time points aligned below the figure. I found a that explains how to do this for a plot that contains multiple subgroups. This is the ggkm function, the code for which is available . # Example of a plot like this library(survival) data(colon) fit <- survfit(Surv(time,status)~rx, data=colon) ggkm(fit, timeby=500, ystratalabs=c("Obs","Lev","Lev+5FU")) Looking at the data that was used to make the above plot, we see: Call: survfit(formula = Surv(time, status) ~ rx, data = colon) records n.max n.start events median 0.95LCL 0.95UCL rx=Obs 630 630 630 345 1723 1323 2213 rx=Lev 620 620 620 333 1709 1219 2593 rx=Lev+5FU 608 608 608 242 NA NA NA My question: My plot only has one group. The call looks like this: Call: survfit(formula = Surv(Recur_day/365.242, Recur) ~ 1, data = study_data) records n.max n.start events median 0.95LCL 0.95UCL 440 440 440 92 NA NA NA When I try to use the ggkm function I get an error like so: ggkm(survfit(formula = Surv(Recur_day/365.242, Recur) ~ 1, data = study_data), timeby = 2) Error in data.frame(time = sfit$time[subs2], n.risk = sfit$n.risk[subs2], : arguments imply differing number of rows: 1, 0 In addition: Warning message: In max(nchar(ystratalabs)) : no non-missing arguments to max; returning -Inf Does anyone have an idea of what I'm doing wrong? Or is there an easier way for me to do this by hand? I am open to just putting the data in a text box in PowerPoint myself, I'm just not certain of how to get the number of subjects at risk at each timepoint (I'd like to do at two years, four years, six years, etc.)
To my knowledge the only way to estimate the toll for a route, i.e. from Baltimore, Maryland, USA to Guelph, Ontario, Canada, is as follows. Get the list of highways route info from Google maps. Go to the website of each authority. For each highway, research the entry and exit points from Google map and related them to the authority defined regions. List the tolls from the authority defined regions and sum them up. I don't want anyone else to do this for me. I can do it by myself. But is there any easier way? Can anyone at least give me a rough estimate like whether it is around $50, $100, $150? Thanks.
Is there a convenient way to calculate the cost of tolls between two arbitrary points within the United States? I'm planning to take a trip along the Eastern seaboard and will be passing through multiple states with different toll-collecting authorities. The mapping and trip planning resources I've found so far will only indicate whether a particular section of road has tolls, not the price of those tolls. I'm aware that the various toll-collecting authorities post their rates online, but these charts are often difficult to use if you're not already familiar with the area. Isn't there an easier way?
I seem to have these messages pop up that says: Ubuntu has experienced an issue do you want to report it? This seems to occur a lot especially after the system freezes up for ten minutes or longer, so where do these issues get reported and how are they resolved? And (assuming they don't get sucked into a black hole) can I track the progress on my reported issues?
Until some time ago you ran apport-bug or ubuntu-bug to start reporting a bug. The system would then open launchpad with your account, upload the collected information and let you add more info to the bug report. Now when I run gksudo ubuntu-bug (for instance with a crash-file as argument) the common bug dialog appears and thats all. Where is the report being sent to? Definitely not to launchpad as a bug report (although in the concrete situation people have been able to file a report about that bug). So: where is this report sent to (and just maybe) how can I still file a bug report from my system (makes uploading of the pertaining files much easier) Could it be that "the system" decided that this would be a duplicate of an already existing bug?
I want my sidebar to have spacing from top equal to header's height. When I use clientHeightin js, although it returns the right value when I print it via alert(), it doesn't apply to other elements as marginTop or top value. (Position was included while using top). HTML <body onload="sidenav_height()"> ... </body> JS function sidenav_height(){ var height = document.getElementById("header").clientHeight; document.getElementById("sidenav").style.marginTop = height; }
In a web application, I have a page that contains a DIV that has an auto-width depending on the width of the browser window. I need an auto-height for the object. The DIV starts about 300px from the top screen, and its height should make it stretch to the bottom of the browser screen. I have a max height for the container DIV, so there would have to be minimum-height for the div. I believe I can just restrict that in CSS, and use Javascript to handle the resizing of the DIV. My javascript isn't nearly as good as it should be. Is there an easy script I could write that would do this for me? Edit: The DIV houses a control that does it's own overflow handling (implements its own scroll bar).
My question is just like the title. Here is a MWE for my case : \usepackage[paperwidth=16cm,paperheight=24cm]{geometry} \usepackage{amsmath,amsxtra,amssymb,latexsym,amscd,amsfonts,enumerate,ifthen,stmaryrd,amsthm,amstext} \usepackage[mathscr]{eucal} \usepackage[pdftex]{graphicx} \usepackage{xspace} \usepackage{multicol,color} \usepackage{mathrsfs} \usepackage{makeidx} \usepackage{indentfirst} \usepackage[utf8]{inputenc} \usepackage[utf8]{vietnam} \usepackage{eso-pic} \usepackage{perpage} \MakePerPage{footnote} \usepackage{fancyhdr} \renewcommand{\headrulewidth}{0pt} \makeindex \begin{document} \pagenumbering{roman} \pagestyle{fancy} \tableofcontents \chapter*{Foreword} Blah blah blah \chapter*{Preface} \pagenumbering{arabic} Blah Blah Mirella gọi là papa, dạy toán ở nhà cho Mirella. \thispagestyle{plain} \chapter{Dido's problem} \label{chapter:Dido} \index{Dido (công chúa)} \index{bài toán công chúa Dido} Blah blah blah \end{document} Why the unnumered chapter does not appear in the table of content ? Please help me. Thanks.
It seems I have spent two days trying to find out the solution to my problem. I have just finished typing my M.Sc thesis using Latex (MIKTEX 2.9). Unfortunately, all my chapters begin with the chapter number at the top left corner of a page. My supervisor asked me to remove that numbering of the chapters without removing them from the table of contents. I have tried my best to do that but I failed. The last attempt I made is \chapter*{chapter title}, the moment I compiled my work, I found out that it began sectioning from 0.1, 0.2, and so on, which I don't like. I have this code inside my thesis: \chapter* {\quad \quad \quad \quad \quad\quad \large{CHAPTER ONE}} \addcontentsline{toc}{chapter}{CHAPTER ONE} %Introduction}{} \pagenumbering{arabic} \onehalfspacing \begin{center} \textbf{\large \quad INTRODUCTION} \end{center} \section{Introduction} This chapter gives a brief highlight on the concept of the Newton and quasi-Newton methods for solving nonlinear system of equations. The chapter contains motivation of the study, the aim and objectives, scope and limitations, methodology of the research. It includes some basic fundamentals and definitions of some basic terms. After compiling, it gives me this: CHAPTER ONE INTRODUCTION 0.1 Introduction This chapter gives a brief highlight on the concept of the Newton and quasi- Newton methods for solving nonlinear system of equations. The chapter contains motivation of the study, the aim and objectives, scope and limitations, methodol- ogy of the research. It includes some basic fundamentals and definitions of some basic terms. NB: Please observe how the section "Introduction" is numbered. I want it to be numbered 1.1 not 0.1.
$$\int \frac{1}{2+\sin x+\cos x}dx.$$ My attempts: Let $y = \sin x+\cos x.\implies \frac{dy}{dx}=\cos x-\sin x=y'.$ $$\int \frac{1}{2+\sin x+\cos x}dx=\int\frac{1}{2+y}\frac{dy}{y'}.$$ And I tried to use the fact $(\ln x)'=1/x,$ but $(\ln(2+y))'=\frac{y'}{2+y}$ : the form doesn't match. So I think I've failed at this moment. Let $u=\sin x.\implies du=\cos x\ dx=\sqrt{1-u^2}dx.$ $$\int \frac{1}{2+\sin x+\cos x}dx=\int\frac{1}{2+u+\sqrt{1-u^2}}\frac{du}{\sqrt{1-u^2}}.$$ And it looks more uncomputable. Both of my attempts are at a dead end. How to evaluate this integral? Any help would be appreciated.
I want a hint on this following integral. I don't know the first step, do I do $u$-sub. or do I use trig. sub or something? $$\int \frac{1}{2+ \sin x + \cos x} ~\mathrm{d}x$$
This is just a random thought that came to my mind. What is the fraction of even numbers in decimal expansion of $\pi$ and $e$? Is there any research on this and it’s possible generalisations? Edit: I checked the first 100 digits and found number of even digits in $\pi$ and $e$ to be $50$ and $58$ respectively. Is there any reason we should believe that the fraction should converge to exactly $50$%?
I came across the : Which states: $\pi$ Pi Pi is an infinite, nonrepeating $($sic$)$ decimal - meaning that every possible number combination exists somewhere in pi. Converted into ASCII text, somewhere in that infinite string of digits is the name of every person you will ever love, the date, time and manner of your death, and the answers to all the great questions of the universe. Is this true? Does it make any sense ?
I designed my site with Acquia Dev Desktop on my PC and now it's finished and I uploaded folder of my site to public_html folder in cpanel. I export my database on my computer and import it to my host. but now when I enter my url in address bar of a browser only front page shown, for example when I click on other content of my site it gos to a white page and nothing will loaded. what should I do? pleas help me. which command of setting.php file should change after importing database on server? this is my site:
I'm in the process of migrating from one URL to another, and I've got a WSOD. What I had done is to import the new database from the production server. I've copied all the files from another server using SCP; I've then SCPed the database from the other server; I have imported the database from command line; I have changed the settings.php to the correct information. I have the feeling it's something simple that I haven't ruled out. Do you have any idea?
In the Forbidden Forest, it was, as Dumbledore explained, Lily's protection -- which was in Harry AS WELL AS Voldemort -- that saved Harry from the Killing Curse. But was it also the fact that Voldemort used the Elder Wand -- whose true master was Harry at the time -- which led it to kill the only foreign thing in Harry; that is to say, the part of Voldemort's soul in Harry?
I've heard differing interpretations of the role of Harry's mother's magic. The one I currently believe, is that, Voldemort did in fact evade his mother's magic, but that protective magic was reinstated as soon as Voldemort's soul fragment was removed from Harry's soul. This is justified by the fact that when Harry grabbed Voldemort and tried to fall to their death, they screamed in pain as they flew around, because the contact hurt Voldemort once more. But there's another-that was that that magic was exactly what protected him when Voldemort hit Harry with the killing curse. This is specifically in conflict with the idea that since Harry was the true owner of the Elder wand, the Elder wand would allow him to win any duel. The problem with the Elder wand idea is that, there were other cases owners of the elder wand were killed by competitors, as when Dumbledore defeated Grindelwald. If it has more to do with the fact that his mother's magic protects him, then how do we interpret the purpose of the Elder wand? If it's the Elder wand, then why didn't the Elder wand kill Voldemort in that attempt straight away, rather than before he tried to invade the castle again? Also, the idea of Elder wand ownership is kind of funny when it comes to Harry since he is occupied by two souls, his own and Voldemort's fragment. To which soul does the Elder wand attribute loyalty, and how does it determine this, if it is in fact the Elder wand's doing that stops the killing curse from rupturing Harry's own soul as well?
I have two options and both have (afaik) the same output: // 1 array = arrayList.toArray(new T[0]); // 2 array = new T[arrayList.size()]; arrayList.toArray(array); The first is shorter. Is there any reason to use the second?
Assuming I have an ArrayList ArrayList<MyClass> myList; And I want to call toArray, is there a performance reason to use MyClass[] arr = myList.toArray(new MyClass[myList.size()]); over MyClass[] arr = myList.toArray(new MyClass[0]); ? I prefer the second style, since it's less verbose, and I assumed that the compiler will make sure the empty array doesn't really get created, but I've been wondering if that's true. Of course, in 99% of the cases it doesn't make a difference one way or the other, but I'd like to keep a consistent style between my normal code and my optimized inner loops...
How do i fix this? Ive used youtube videos and online information but nothing helps. My computer is an Lenovo, Ideapad 330. Its processor is an AMD A9, Radeon R5, 5 compute Cores 2C+3G. It also had 8GB of Ram and 1TB of storage. Ive viewed the Help Link for this problem and I have tried everything and nothing changes.
I have Win 10 and when I open Blender I have the error: AL lib: UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
I have an enum like this public enum People { OUT("People out"), IN("People in"); private final String name; // **StageName**(String name) { People(String name) { this.name = name; } public String getName() { return name; } } An I want to get the Enum type given a value, something like : People.getEnumValueOf("People out") And that should return an enum People.OUT How do I do that?
Say I have an enum which is just public enum Blah { A, B, C, D } and I would like to find the enum value of a string, for example "A" which would be Blah.A. How would it be possible to do this? Is the the method I need? If so, how would I use this?
If reducing from one pipe size to another through a reducing fitting, say 6.25cm to 5cm, how do I calculate the pressure drop? Also, how does this impact a change in volumetric flow rate (or does it affect the volumetric flow rate)?
Is there any equation that states the relation between pressure and water flow. I.e. Let's say that in 1 hour with 8mca (water collum meters) pressure I obtain 50m3. What if (giving the same contditions) I execute the same test but now with 15mca? Is that just proportional?
I have a WordPress install on a dedicated server with decent memory (upwards of 8GB) Since upgrading to 3.8, I started getting mysql disconnects/timeouts, better known as MySQL server has gone away I enabled error_log for a bit, i.e. ini_set('log_errors',TRUE); ini_set('error_reporting', E_ALL); ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); This resulted in an immense file - basically the error_log grows by about a GB every 4 minutes or so. I AM caching queries query_cache_type = 1 query_cache_limit = 8M query_cache_size = 512M I was able to temporarily fix the issue by setting max_allowed_packet = 16M Then I installed and checked queries on homepage. Debug Bar tells me there are 729 queries! The slow ones are: SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes' require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), wp_not_installed, is_blog_installed, wp_load_alloptions #1 7.5ms UPDATE`wp_options`SET`option_value`...WHERE`option_name`= 'wpseo_titles' require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/weaver-ii-pro/page.php'), weaverii_get_header, get_header, locate_template, load_template, require_once('/themes/weaver-ii-pro/header.php'), wp_title, apply_filters('wp_title'), call_user_func_array, WPSEO_Frontend->title, apply_filters('wpseo_title'), call_user_func_array, WPSEO_Frontend->title_test_helper, update_option 55.0ms UPDATE`wp_options`SET`option_value`...WHERE`option_name`= 'wpseo_titles' require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/weaver-ii-pro/page.php'), weaverii_get_header, get_header, locate_template, load_template, require_once('/themes/weaver-ii-pro/header.php'), wp_head, do_action('wp_head'), call_user_func_array, Facebook_Open_Graph_Protocol::add_og_protocol, apply_filters('fb_meta_tags'), call_user_func_array, WPSEO_OpenGraph->facebook_filter, WPSEO_OpenGraph->og_title, WPSEO_Frontend->title, apply_filters('wpseo_title'), call_user_func_array, WPSEO_Frontend->title_test_helper, update_option 56.4ms UPDATE`wp_options`SET`option_value`...WHERE`option_name`= 'wpseo_titles' require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/weaver-ii-pro/page.php'), weaverii_get_footer, get_footer, locate_template, load_template, require_once('/themes/weaver-ii-pro/footer.php'), wp_footer, do_action('wp_footer'), call_user_func_array, WPSEO_Frontend->flush_cache, WPSEO_Frontend->title, apply_filters('wpseo_title'), call_user_func_array, WPSEO_Frontend->title_test_helper, update_option 56.0ms SELECT option_value FROM wp_options WHERE option_name = 'dismissed_update_core' LIMIT 1 require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/weaver-ii-pro/page.php'), weaverii_get_footer, get_footer, locate_template, load_template, require_once('/themes/weaver-ii-pro/footer.php'), wp_footer, do_action('wp_footer'), call_user_func_array, wp_admin_bar_render, do_action_ref_array, call_user_func_array, wp_admin_bar_updates_menu, wp_get_update_data, get_core_updates, get_site_option, get_option 9.6ms I do have lots (~50) plugins installed, and I use theme. Most of these plugins are essential to get what I need out of WordPress (I use WordPress as a CMS). This is a live install so I can't really disable everything and then enable one by one to see what's breaking things (if not core). Is there another way to figure out the problem by looking at the Debug Bar's output?
I have a WordPress install on a dedicated server with decent memory (upwards of 8GB). The WordPress install includes many plugins - 50 active plugins. Most important to note is the plugin to make WordPress multilingual. The theme is . The stack is LAMP - CentOS 6.3, Apache 2.4.4, Percona MySQL, PHP-FPM. I have been quite stupid, and didn't set up a test or staging server. Everything was running fine till I updated to WordPress 3.8, and also updated several plugins at the same time. I didn't pay attention at the time, but all my widgets got messed up, and so did any sort of navigation etc. I enabled error_log for a bit, i.e. ini_set('log_errors',TRUE); ini_set('error_reporting', E_ALL); ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); This resulted in an immense file - basically the error_log grows by about a GB every 4 minutes or so. The primary error I found in the error log was database server disconnect, better known as MySQL server has gone away The first priority was to patch the problem. So I installed plugin. This mostly, though not completely solved the issue. Many of the widgets came back. However, the special (non-English) characters are all messed up (converted to question marks). I tried to fix this by opening wp-mysql-ping.php and commenting out if ( !DB_CHARSET && version_compare(mysql_get_server_info($this->dbh), '4.1.0', '>=')) { $this->query("SET NAMES '" . DB_CHARSET . "'"); } Didn't help. Besides, the plugin is not a permanent or complete solution. So leaving the site in this messed up state, I started working on other possibilities: As suggested at , I edited my.cnf to add wait_timeout = 60 Didn't help. Also added caching to my.cnf query_cache_type = 1 query_cache_limit = 8M query_cache_size = 512M Didn't help. (and yes, I restarted mysql every time I edited my.cnf) Also tried the method : In wp-db.php before $this->select( $this->dbname, $this->dbh ); I added $this->query("set session wait_timeout=600" ); Didn't help. I'm at my wit's end. Please help!
Let's say I have two processes. One critical and one nice to have process. Now, let's say the nice to have process starts leaking memory. How can I stop the leaking process from using up all system memory and causing the critical one to crash or slow down? I would like that the non-critical process simply terminate or throw std::bad_alloc when it uses more memory than a certain threshold.
Is there any way to set a system wide memory limit a process can use in Windows XP? I have a couple of unstable apps which do work ok for most of the time but can hit a bug which results in eating whole memory in a matter of seconds (or at least I suppose that's it). This results in a hard reset as Windows becomes totally unresponsive and I lose my work. I would like to be able to do something like the /etc/limits on Linux - setting M90, for instance (to set 90% max memory for a single user to allocate). So the system gets the remaining 10% no matter what.
Here are some definitions that was taken of PDE Evans book: Here is a proof of a property of mollifiers: My (elementary) question is: Why is the convergence uniform on $V$? Thanks.
I'm currently reading Evans' PDE book. In it he claims that for $f \in C^2_c(\mathbb{R}^n)$ $$\frac{f(x + he_i) - f(x)}{h} \to \frac{\partial}{\partial x_i}f(x)$$ and $$\frac{\frac{\partial}{\partial x_i}f(x + he_j) - \frac{\partial}{\partial x_i}f(x)}{h} \to \frac{\partial^2}{\partial x_jx_i}f(x)$$ uniformly as $h \to 0$. My question is why must the convergence be uniform? Thanks in advance.
I found in some other languages such as Chinese an interesting idiom which describes some people; for example, when you see a person is named "Smart" and he/she is really smart, one would say: "a name fits his person" as a literal translation. I would like to see if there is some specific phrase, idiom or proverb to describe such a situation.
Is there a term for when a character is named after a trait they possess? Some examples are Hiro (from Heroes or Snow Crash); a person who is constantly talking named Gabby; or a teacher named Mr. Pencil.
I have a large number of columns in my table, like 20-30. I want to select all except 3-4 of the columns. Is there a way to to SELECT * EVERYTHING BUT COLUMNS (Address,Name etc...) FROM MyTable If not, then would such a functionality be useful ?
Is there any RDBMS that implements something like SELECT * EXCEPT? What I'm after is getting all of the fields except a specific TEXT/BLOB field, and I'd like to just select everything else. Almost daily I complain to my coworkers that someone should implement this... It's terribly annoying that it doesn't exist. Edit: I understand everyone's concern for SELECT *. I know the risks associated with SELECT *. However, this, at least in my situation, would not be used for any Production level code, or even Development level code; strictly for debugging, when I need to see all of the values easily. As I've stated in some of the comments, where I work is strictly a commandline shop, doing everything over ssh. This makes it difficult to use any gui tools (external connections to the database aren't allowed), etc etc. Thanks for the suggestions though.
I want to rewrite the recipient adress of a mail queued in a hold queue. Is it possible to rewrite the mail by hand with the mail id in the postfix queue ? Maybe a command like this : postrewrite -I ETGH12DD [email protected] Thanks for yours answers.
After running postqueue -p i sometimes finds misspelled email-adresses, is there a way to change the reception adress (envelop to adress) of the messages, so it can be delivered. exemple: postqueue -p -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- A78C42189B1 2523 Thu Jul 25 14:53:57 [email protected] (connect to tellia.com[141.8.224.25]:25: Connection timed out) [email protected] -- 2 Kbytes in 1 Request. I want to pick upp A78C42189B1, and change the adress [email protected] to [email protected]
Chrome is doing four things. The browser itself, a GPU process, the tab for this website and one extension. So why are there eight chrome.exe processes? Half of them don't even seem to be doing anything. Nothing crashes or malfunctions when they close. They just suck resources, apparently.
I know that each new tab on Google Chrome have its own process, but I have 14 chrome.exe processes running actually as I can see it on the Task Manager, and only two tabs are opened on Google Chrome. Could it be due to Chrome extensions? What other reason can open more chrome.exe process and how to avoid it?
I have the folowing code that switches out a class on a div. I need something similar but with id. Is that done with get attribute? Not sure how this should be done but it should work the same as the code below in that a clicked link changes the ID.. $('#calendar-links a').click(function(e){ e.preventDefault(); var calendar_class = $(this).attr('data-class'); $('#calendar-links a').removeClass('active'); $(this).addClass('active'); $('#aecp-calendar').removeClass('all current future events').addClass(calendar_class); });
I need to change an element's ID using jQuery. Apparently these don't work: jQuery(this).prev("li").attr("id")="newid" jQuery(this).prev("li")="newid" I found out that I can make it happen with the following code: jQuery(this).prev("li")show(function() { this.id="newid"; }); But that doesn't seem right to me. There must be a better way, no? Also, in case there isn't, what other method can I use instead of show/hide or other effects? Obviously I don't want to show/hide or affect the element every time, just to change its ID. (Yep, I'm a jQuery newbie.) Edit I can't use classes in this case, I must use IDs.
In MATLAB, while SVD gives a diagonal matrix S of decreasing singular values, PCA gives a column vector LATENT of decreasing principal component values. How can S be used to obtain a subset of original features that best describe the data? How can LATENT be used to obtain a subset of original features that best describe the data? NOTE: QR decomposition in MATLAB gives a permutation vector E which enables the above.
I'm new to feature selection and I was wondering how you would use PCA to perform feature selection. Does PCA compute a relative score for each input variable that you can use to filter out noninformative input variables? Basically, I want to be able to order the original features in the data by variance or amount of information contained.
If I buy a ticket to “LONDON TERMINALS”, such as , is that ticket valid to any London terminal, or only until the first one I arrive at? For example, from Earley such a ticket is either via Staines to London Victoria, or via Reading to London Paddington. Is this ticket then valid for subsequent travel to other London terminals such as London Euston, London St. Pancras, or London Liverpool Street?
I booked a train ticket to London Paddington with GWR. The booking confirmation however says London Terminals on top of London Paddington. Then there are words like this: The following London stations are available for travel with the chosen ticket: London Paddington (PAD) London Blackfriars (BFR) City Thameslink (CTK) London Cannon Street (CST) London Charing Cross (CHX) London Bridge (LBG) London Waterloo East (WAE) London Victoria (VIC) Vauxhall (VXH) London Waterloo (WAT) Travel is not permitted to any other London Stations with this ticket Does this mean that I can travel to any of these stations with my ticket without paying anything extra? If this is true, what should I do upon my arrival at Paddington if for example I would like to go to London Bridge station? I have never been to any railway stations in London other than Paddington, but London Bridge would be closer to my destination. My ticket is Super Off-Peak Return if this is relevant.
With respect to the figure ,we have a rectangle and two circle in it. Length are $10,20 $ The question is "what is green area "? on the other hand $$\dfrac{\text{ green area }}{\text{are of rectangle}}=?$$ I tried to solve by analytic geometry . like below $$y=\frac{10}{20}x\\(x-5)^2+y^2=25\\(x-15)^2+y^2=25$$ then use integration to find area of green filled part. But I want to know is a solution by euclidean geometry to find area ? I am thankful for any Idea in advance .
Don't let the simplicity of this diagram fool you. I have been wondering about this for quite some time, but I can't think of an easy/smart way of finding it. Any ideas? For reference, the Area is: $$\bbox[10pt, border:2pt solid grey]{90−18.75\pi−25\cdot \arctan\left(\frac 12\right)}$$
I made a website which aims at simulating a trading market. There are a list of prices and corresponding volumes that people want to purchase. Users can purchase at any price any time. My website retrieves the prices and volumes from my database every 2 seconds (I have to update the user's browser frequently to allow them to see the current market). Users' database INSERT query can be sent any time if they purchase. I used ajax to post or get data from my database (sometimes nested ajax calls). So, every 2 seconds, each user will send or retrieve data by using more than 20 database queries (in order to show a users the current prices and volumes). Also, I may have 200 users at a time. I was not using VPS before, and I got banned because of using too much CPU resources on my host. Now, I've purchased VPS*2 from a hosting servers. I have: CPU Speed: 2000 Mhz Memory: 2048 MB Disk Space: 20000 MB Bandwidth: 2000 GB Connection: 40 Mb/s Dedicated IP's 2 IP's Is this enough for my 200 users? Also, which VPS OS is suitable for me? Thank you.
This is a about capacity planning for web sites. Related: What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general.
I heard an American radio personality, university graduate, was saying below. "Me and Adam have discovered a lot of weird things since we came to Japan." My question here is not about grammatical things like the difference between I and Me, but the naturalness of the expression itself. I have this question because the example above is actually not the only case. I have noticed the radio personality uses the same wording often, but the conversations between him and his radio program partner, Adam, always keep going just smoothly as if no weird wording were used. FYI, Adam is a Canadian, and he is also university graduate. How natural does that sound to you? Can we use that in some formal settings too?
From some comments in the answers for (now deleted, 10k only), there's confusion around the usage of I vs. me: While the sentence, "the other attendees are myself and Steve," is agreed to be incorrect, there's confusion about whether the correct form is "the other attendees are me and Steve" or "the other attendees are Steve and I." (I've always used the heuristic of removing the other people from the sentence, so I always thought "the other attendee is me" would be correct, instead of "the other attendee is I." Is this true, or am I using a flawed heuristic?)
I'm reading the Introduction to Abstract Algebra by W. Keith Nicholson. In the matrix inverses section for the proving many properties, implicitly it has been used the following statement: If a square matrix is in the reduced row echelon form, it is either identity matrix or has a zero row. I really have no idea about the proof and also searching wasn't useful.
I'm reading Linear Algebra by Hoffman, Kunze where the authors explained that a $n\times n$ matrix $A$ being invertible is equivalent to the fact that $A$ is row-equivalent to $n\times n$ matrix $R$ which is an identity matrix. In the proof of the theorem, they wrote: $$R= E_k\ldots E_2E_1 A$$ where $E_1,\ldots,E_k$ are elementary matrices. Each $E_j$ is invertible, and so $$A = E_1^{-1}\ldots E_k^{-1}~R\,. $$ ... Since, $R$ is a (square) row-reduced echelon matrix, $R$ is invertible if and only if $R=I\,.$ [...] I couldn't get the conclusion, since any row of $R$ can't be zero, it has to be identity matrix $I\,.$ Why is it so? Isn't there any other row-reduced echelon matrix other than the identity matrix having no zero row and invertible? Why is it so?
I have hundreds of voice memos on an iPhone. How do I transfer all of to my MacBook Air without relying on any cloud-based solution (due to privacy/security needs)? PS: Older questions and answers talk about iTunes. Those do NOT apply in the year 2020 since iTunes is gone now and Apple recently redesigned how syncing with iDevices work. PPS: I do not want to use iCloud for this.
iOS seems to refuse to allow me to email "long" voice memos, and I'm unaware of any way to extract them from iTunes backups of my phone. How can I retrieve entire voice memos that aren't really short?
I want to install Ubuntu on an old HP-Laptop (Omnibook XE3 - Pentium III generation). Which Ubuntu version is appropriate? Is there some documentation for installation? Where can I download the selected Ubuntu version? Thanks, Martin
For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and such as: with a lighter desktop than the usual Gnome and Unity with the even lighter LXDE desktop Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?
We consider in $\mathbb{R}^2$ the set of points $$\{M_1(-1,1),M_2(0,1), M_3(2,1),M_4(-1,0),M_5(1,0),M_6(2,0)\}$$ Let $\Omega$ a rectangular structure consisting of the heads $\{M_4(-1,0),M_6(2,0), M_3(2,1),M_1(-1,1)\}$ Let the two polygones $\sum_1 = \{M_4,M_5,M_2,M_1\}$ et $\sum_2 = \{M_5,M_6,M_3,M_2\}$ let the mesh $\{(e_1,\sum_1,Q_1),(e_2,\sum_2,Q_2)\}$ such $$Q_1=\{f : \mathbb{R}^2 \rightarrow \mathbb{R} , f(x,y) = a + bx + cy + d xy , a , b, c , d \in \mathbb{R}\}$$ 1- Proove that $(e_1,\sum_1,Q_1)$ and $(e_2,\sum_2,Q_1)$ are two finite elements of Lagrange. 2- Let $V$ the finite-dimensional space that corresponds to the mesh. Proove that $V \nsubseteqq H^1(\Omega)$ Where i can found the definition of V? (book, or paper...?) please and my second question is: dimension of $\partial \sum_1 \cap \partial \sum_2$ is 1 or 2?
We consider in $\mathbb{R}^2$ the set of points $$\{M_1(-1,1),M_2(0,1), M_3(2,1),M_4(-1,0),M_5(1,0),M_6(2,0)\}$$ Let $\Omega$ a rectangular structure consisting of the heads $\{M_4(-1,0),M_6(2,0), M_3(2,1),M_1(-1,1)\}$ Let the two polygons $\sum_1 = \{M_4,M_5,M_2,M_1\}$ and $\sum_2 = \{M_5,M_6,M_3,M_2\}$ let the mesh $\{(e_1,\sum_1,Q_1),(e_2,\sum_2,Q_2)\}$ such $$Q_1=\{f : \mathbb{R}^2 \rightarrow \mathbb{R} , f(x,y) = a + bx + cy + d xy , a , b, c , d \in \mathbb{R}\}$$ 1- Prove that $(e_1,\sum_1,Q_1)$ and $(e_2,\sum_2,Q_1)$ are two finite elements of Lagrange. 2- Let $V$ the finite-dimensional space that corresponds to the mesh. Prove that $V \nsubseteqq H^1(\Omega)$ My problem is to prove 2.
I have added a single vertex and added skin modifier & subdivision surface modifier. Then I cant see the vertices in the object in edit mode & cannot extrude by points. only single vertex is visible.
I created spider web using curves. Then I joined all curves using CTRL + j. Then I wanted to apply "skin modifier" to create mash. Skin was added only to one line as shown in the picture. How to fix this?
I´d like to know whether I could say these two sentences: 1) However, I have calculated that in order to complete the exercises suggested, it would take closer to.... 2) However, I have calculated that in order to complete the suggested exercises, it would take closer to.... To my ears both sound pretty good. Thank you very much.
In some more or less archaic texts I found the order of noun and its adjective reversed at times, like: I traveled through nights starless, and roads unmapped. I wonder, is it a stylistic tool used only in poetic/artistic texts, or was it used in day-to-day speech or formal, but not poetic writing in the past?
I am a frequent traveller who enjoys getting my passport stamped (when I have pages, anyway). On a visit to Liechtenstein, I received a stamp from Liechtensteinish officials (purely for souvenir purposes since there isn't any actual border control in the principality). I was surprised to recently see that Wikipedia (without citation): Some travellers "collect" immigration stamps in passports, and will choose to enter or exit countries via different means (for example, land, sea or air) in order to have different stamps in their passports. Some countries, such as Liechtenstein,[61] that do not stamp passports may provide a passport stamp on request for such "memory" purposes. However, such memorial stamps can preclude the passport bearer from travelling to certain countries. For example, Finland consistently rejects what they call 'falsified passports', where travelers have been refused visas or entry due to memorial stamps and are required to renew their passports. Will my stamp from Liechtenstein really get me denied access to Finland? I'm sceptical of the claim, as its uncited, but then again, many countries have odd border rules.
I’m on a trip in Japan. I've seen many touristic places that offer stamps, many temples have it as a free souvenir. This is not the first time I’ve seen this type of souvenir, I also saw the same stamps at The Tall Ships Races 2012 Lisboa. It was a big concentration of tall sails ships. There every ship had a stamp for a fake Passport, mostly for kids. I would like to know if I stamp my passport with one of this stamps I will have problems of any kind with border security? samples of stamps:
In a single page, I split long post by nextpage and shows pagination number or next/previous option.But I want to display both number and next-previous option. Here is my single page screenshot one is next-previous and another is number option.And My code is that: function custom_nextpage_links($defaults) { $args = array( 'before' => '<ul class="my-paginated-posts"><ul><li>' . __( 'Section:', 'textdomain' ), 'after' => '</li></ul>', 'link_before' => '<span class="page-link">', 'link_after' => '</span>', 'separator' => ' ', 'nextpagelink' => __('Next &raquo', 'textdomain'), 'next_or_number' => '', 'previouspagelink' => __( '&laquo Previous', 'textdomain' ), 'pagelink' => '%', 'echo' => 1 ); $r = wp_parse_args($args, $defaults); return $r; } add_filter('wp_link_pages_args','custom_nextpage_links');
I want wp_link_pages (mutli-page posts) to display the page numbers, the word "previous" before those numbers, and a "next" after those numbers. It would look like this: Prev 1, 2, 3, 4 Next I'm attempting to do this without a plugin. Here's what I've tried so far, but it isn't working, it is only displaying numbers. <?php wp_link_pages(array( 'before' => '<span style="clear:both; display:block">Pages', 'after' => '</span>', 'next_or_number'=>'number', 'previouspagelink' => 'previous', 'nextpagelink'=> 'Next' )); ?>
Let $A$ be an $m \times n$ matrix with $\text{rank}(A) = 1$. Prove that for some nonzero column vector $u$ in $\mathbb{R}^m$ and a nonzero row vector $v$ in $\mathbb{R}^n$, the matrix $A$ can be written in terms of the outer product \begin{equation} A = uv. \end{equation} I do not know where to start, can someone please guide me in the right direction?
Let $A$ be an $n\times m$ matrix. Prove that $\operatorname{rank} (A) = 1$ if and only if there exist column vectors $v \in \mathbb{R}^n$ and $w \in \mathbb{R}^m$ such that $A=vw^t$. Progress: I'm going back and forth between using the definitions of rank: $\operatorname{rank} (A) = \dim(\operatorname{col}(A)) = \dim(\operatorname{row}(A))$ or using the rank theorem that says $ \operatorname{rank}(A)+\operatorname{nullity}(A) = m$. So in the second case I have to prove that $\operatorname{nullity}(A)=m$-1
I need to see all of the POST results that are submitted to the server for testing. What would be an example of how I can create a new file to submit to that will echo out all of the fields which were submitted with that form? It's dynamic, so some fields may have a name/ID of field1, field2, field3, etc.
I have a form that has multiple fields, and for testing purposes is there a way I could print out the values entered in all the fields, without having to individually print each value.
am trying to install utorrent instead of using the torrent apps and I just came off windows seven can someone help me?
I've attempted to install utorrent on 14.04 using the Terminal and attempting to install libssl 0.9.8, but with no success. Also, this utorrent version is V3.3 and is located in my Downloads. I've already attempted the post which mine was a dupe of ( )
I know that it's possible to place an image within a node at precise coordinates, and to scale the image: \documentclass[10pt]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3] \node at (1,1) { \includegraphics[scale=0.3]{"image"} }; \end{tikzpicture} \end{document} However, what I want to do is to choose a rectangle with coordinates and place an image to fit inside: \documentclass[10pt]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3] \node at (1,1) rectangle (4,4) { \includegraphics{"image"} }; \end{tikzpicture} \end{document} Thus, it can precisely be positioned relatively to other elements like lines. Is it possible to do that?
I want to create a rectangle with tikz and fill it with a predefined image. For example the following line fill the rectangle with a color. How can I fill with my images instead? \fill[color=sthlmRed] (0, 4cm) rectangle(\paperwidth, 0.5\paperheight);
Im using netbeans with design (palette). I want to show my output console into GUI in netbeans. So here is my code that I want to execute. I put this to button function, and it works. But I the result show up in output console, I intention to show it in the interface too. User user = status.getUser(); Date dated = status.getCreatedAt(); PreparedStatement stmt = null; Connection conne = null; try { Class.forName("com.mysql.jdbc.Driver"); System.out.println("Connecting to database..."); conne = DriverManager.getConnection("jdbc:mysql://localhost/jat?useUnicode=true&characterEncoding=UTF-8", "root", ""); System.out.println(status); System.out.println("Inserting records into the table..."); stmt = conne.prepareStatement("set names 'utf8'"); stmt.execute(); stmt = conne.prepareStatement("set character set utf8"); stmt.execute(); stmt = conne.prepareStatement("INSERT INTO tweet(ID,date,name,statusLocation,text,source) VALUES (?,?,?,?,?,?)"); stmt.setInt(1, (int) status.getId()); stmt.setString(2, getTimeStamp()); stmt.setString(3, status.getUser().getScreenName()); stmt.setString(4, user.getLocation()); stmt.setString(5, status.getText()); stmt.setString(6, status.getSource()); stmt.executeUpdate(); System.out.println("this record inserted!"); System.out.println("=================="); } catch (SQLException se) { se.printStackTrace(); } catch (final Exception e) { e.printStackTrace(); } } @Override public void onTrackLimitationNotice(int arg0) { } @Override public void onStallWarning(StallWarning sw) { throw new UnsupportedOperationException("Not supported yet."); } }; FilterQuery fq = new FilterQuery(); double lat1 = 121.300000d; double long1 = 25.020000d; double lat2 = 121.380000d; double long2 = 25.030000d; twitterStream.addListener(listener); double[][] bb = {{lat1, long1}, {lat2, long2}}; fq.locations(bb); twitterStream.filter(fq);} When the 'run' button executed, the result just displayed in the output console, not in my interface. And this is my interface look like: Thank you so much for any reply
How can I create an instance of the Java console inside of a GUI panel?
I am reading from Topics in Galois Theory by Serre. I love this font. He wrote this book in 1992. I want to use the same font in an article.
Is it possible to identify the font used in a specific document/picture? Answers to this question should identify: Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y"). This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's tag.
I want to install pgfornament package. I have TeX Live 2013 installed on my Windows 8.1 system. Now, I downloaded the pgfornament package and copied the .sty file to the path C:\texlive\2013\texmf-dist\tex\latex\pgfornament but yet I get the error in Texmaker that the pgfornament.sty file is not found. What should I do?
I know how to define a package or a class, but how do I make it available (to myself) at all times? Say I have the package file commonstuff.sty (or myprettyclass.cls), that I want to be able to include in any .tex file I create on my computer. Where do I put it? Do I need to run some installer on it, or is it enough to keep it in a certain folder? Note: I know I can just place it in the same folder as the .tex file, but that's not what I'm after here. I'm looking for a way to "install" the package centrally on my computer.
i am trying to make a nested list using append function, but the last value will recover pervious values, anyone can tell me why, and how to do it correctly. thanks d= [] temp = [0,0,0] for i in range(4): temp[0] = i+1 d.append(temp) the output shows: [[4, 0, 0], [4, 0, 0], [4, 0, 0], [4, 0, 0]] but the output that i want is [[1, 0, 0], [2, 0, 0], [3, 0, 0], [4, 0, 0]]
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?
I read that correlated variables are always dependent but dependent variables may be uncorrelated. Can anyone please correct me if I am wrong? And also explain me intuitively the difference between correlation and dependence in variables with an example? I will be very thankful
We know of the fact that zero correlation does not imply independence. I am interested in whether a non-zero correlation implies dependence - i.e. if $\text{Corr}(X,Y)\ne0$ for some random variables $X$ and $Y$, can we say in general that $f_{X,Y}(x,y) \ne f_X(x) f_Y(y)$?
im new in Linux and in my terminal i got this Downloads$ before typing a command. Is there a way to change it or remove it? For example: elementary@elementary-laptop: ~/Downloads$
When I start terminal in Ubuntu, I see: ilya@HOST:~$ I need to add a timestamp to this, something like: 2011-10-09T09:32:00 ilya@HOST:~$ How can I configure this?
Find the last $2$ digits of $$\large7^{7^{7^{10217}}}$$ So far I have: $17\cdot 601=10217$ and $7=7 \pmod{10}$. Any help greatly appreciated.
Calculation of last $2$ digit and last $3$ digit in $\displaystyle 2011^{{2012}^{2013}}$. $\bf{My\; Try}::$ for last $2$ digit:: which is same as when we divide $2011^{2012^{2013}}$ is divided by $100$ So $\displaystyle 2011^{2012^{2013}}\mod(100) = (11)^{2012^{2013}}\mod(100)$ Now how can i calculate after that Help Required Thanks
I would like there to be several buttons in this GUI to play multiple sounds while at the same time editing a text file so the next time the program runs the songs playing upon closing are still playing. I've gotten to one song so far but it won't open and give me this error. I haven't been coding java for that long so I think its something stupid that I've missed. The code import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.applet.Applet; import java.applet.AudioClip; import java.net.URL; public class AddSound extends JFrame { JButton Play = new JButton("Play"); JButton Loop = new JButton("Loop"); JButton Stop = new JButton("Stop"); URL music1 = AddSound.class.getResource("music1.wav"); AudioClip clip = Applet.newAudioClip(music1); public AddSound() { super("AddingSound"); setLayout(new FlowLayout()); Play.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { clip.play(); } }); Loop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { clip.loop(); } }); Stop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { clip.stop(); } }); add(Play); add(Loop); add(Stop); } public static void main(String args[]) { JFrame frame = new AddSound(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(90, 90); frame.setVisible(true); } }
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
I paid my CC bill last Friday morning. The payment appeared in my CC account that same day. But now, 3 days later, the money still hasn't left my checking account (which is in a different bank). I did verify that I used that checking account for payment. I also checked that the transaction is not marked as "pending". Should I call the bank, or should I wait? Both banks mentioned are in the U.S.
Based on , I figured that there might be multiple questions for distinct locales. Why do the most common transactions to or from bank accounts in the US require waiting one or more days before they are completed? In the information age, it seems like we should be able to transfer money instantly (or nearly so).
I have strings representing currencies from all over the world, I've stripped the currency symbols but I'm struggling with commas in the output. sum(CASE WHEN (t.value ~ '^([0-9]+.?[0-9]*|.[0-9]+)$'::text) THEN (t.value)::numeric ELSE (0)::numeric END), I get the following error with this: invalid input syntax for type numeric: "750,000" I can't make sense of the regex, everything here should parse only 0-9 and escape '.', but there's a comma leaking through and I can't see where that could happen.
I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps. It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?
In VB.NET or C#, is there a way to determine if a class has been extended with ?
In C# is there a technique using reflection to determine if a method has been added to a class as an extension method? Given an extension method such as the one shown below is it possible to determine that Reverse() has been added to the string class? public static class StringExtensions { public static string Reverse(this string value) { char[] cArray = value.ToCharArray(); Array.Reverse(cArray); return new string(cArray); } } We're looking for a mechanism to determine in unit testing that the extension method was appropriately added by the developer. One reason to attempt this is that it is possible that a similar method would be added to the actual class by the developer and, if it was, the compiler will pick that method up.
Powershell is opening with extremely small font (about 5 pts). When I go to Defaults > Font, the setting is a reasonable 8 x 12 pixels but that is not what is showing on the screen. I try changing some of these settings, but there is no change. When it first opens it appears for a split second at the expected size and then shrinks into the top left corner. This appears to be a bug. I am aware of regarding certain fonts requiring certain font sizes. Recommendations in answers to that question have been attempted with no success. This is a different problem. OS: Windows 8.1 Powershell opened as Administrator.
This is a trivial problem, but it annoys me that I can't get to the bottom of it: I'm running Windows 8, Powershell version 3.0. By right-clicking on the title bar I can go into the Properties and change the font, size, background colour etc without any problems. After closing and restarting Powershell, all of the changes I've made stick except that if I've set the font to Lucida Console then on reopening I get the Raster font. (Note that all of the above applies to when I run Powershell as Administrator.) So: If I set the font to Lucida, then it switches to Lucida for the remainder of the session. If I set the font to anything other than Lucida, then it stays as that after closing and reopening. If I alter the window sizes or text colours or anything else, the changes persist after reopening. The only thing that goes wrong is that if I set the font to Lucida, it switches to 'Raster fonts' when I reopen. But cmd and powershell ISE don't have this problem - only the powershell console. Can anyone suggest what might be going wrong? (One observation I've made is that upon re-opening Powershell after setting the font to Lucida, at first the width of the window is what it would be if the font were Lucida, but then after a second, it widens slightly to accommodate the raster font.)
I am looking for a word for "artful pictures". It includes: Paintings, sketches, drawings, etc. Artistic photography (e.g. ) Calligraphy It does not include: Technical models, blueprints, graphs As-is photography meant to capture something objectively Anything in more than two dimensions, such as statues or video Literature, poetry I could go either way on whether to include infographics or engravings. I would use the term for categorising a gallery of files that contains both art and non-art, and mostly in picture format. Some non-pictures are put in their own folders, but on the same level. So it would go: Gallery [word] (artful pictures) non-[word] (pictures that are not art) literature video A short phrase is acceptable, as long as it sounds idiomatic.
Is there a single name (word or short phrase) to cover the art of creation of images — drawing, painting, sketching etc. — and specifically excluding sculpture, crafting and other arts that create other products than still images? "Graphic design" is close, but focuses on the utilitarian side, leaving "high art" out. "Traditional art" includes sculpture and excludes digital imagery.
According to classical physics if we know space-time coordinates of every atom in the universe, we can predict the future. But quantum physics introduced probability throwing determinism out of question. But one of the famous explanations of Schrödinger's cat paradox, many worlds theory, says that at each instance the universe splits into many making all probabilities possible. In this sense, we can say that an event will have all the outputs possible in one or the other universe.Don't you think this is also deterministic in nature as we can exactly predict the future ( of course when all the universes taken together)?
I'm not sure if this is the right place to ask this question. I realise that this maybe a borderline philosophical question at this point in time, therefore feel free to close this question if you think that this is a duplicate or inappropriate for this forum. Anyway, I'm an electrical engineer and I have some basic knowledge of quantum mechanics. I know that Schrödinger's equation is deterministic. However, quantum mechanics is much deeper than that and I would like to learn more. If this question is not clearly answerable at this point than can anyone point out some recognized sources that try to answer this question. I would appreciate it if the source is scientific and more specifically, is related to quantum theory.
i've checked several posts, for example - () My apple machine is connected to the domain and i'm logged on with a domain user. the thing is, that hostname command only gives me the machine name - but i cannot find the domain part. This is also true if i use the command host 'hostname'. any clearance would be appreciated.
How can i make hostname (i.e. the unix commandline tool hostname, invoked in terminal) return a hostname including the domain information? At the moment, hostname, hostname -f and hostname -s return the same name, all without the domain information, but host <hostname> returns the full hostname: $ hostname > jvf-imac $ hostname -f > jvf-imac $ hostname -s > jvf-imac $ host jvf-imac > jvf-imac.fritz.box has address 192.168.178.31 The question is not about how I can get the full hostname in general. Some scripts I use rely on hostname -f to get the fully qualified hostname, so I need to make hostname -f return the correct hostname. Anyone any idea? Updates System Overview System Version: OS X 10.10.5 (14F27) Kernel Version: Darwin 14.5.0 Computer Name: jvf_imac Content of resolv.conf (shortened) domain fritz.box nameserver 192.168.178.1 DNS Setup (shortened) $ scutil --dns resolver #1 search domain[0] : fritz.box nameserver[0] : 192.168.178.1 if_index : 4 (en0) flags : Request A records reach : Reachable,Directly Reachable Address resolver #2 domain : local options : mdns timeout : 5 flags : Request A records order : 300000 resolver #3 domain : 254.169.in-addr.arpa ... ... resolver #7 domain : b.e.f.ip6.arpa ... DNS configuration (for scoped queries) resolver #1 search domain[0] : fritz.box nameserver[0] : 192.168.178.1 if_index : 4 (en0) flags : Scoped, Request A records reach : Reachable,Directly Reachable Address
So I'm pretty new to ubuntu and I'm trying to make a simple bash script that all it does is running Rubymine so I don't have to write it down in the command line everytime and also so I can have it on the desktop. The code I have in there is: #!/bin/bash sudo 'opt/Ruby Mine/bin/rubymine.sh' It is marked to execute as a program but everytime I try to open it it just opens with gedit.
When I double-click on a script in Nautilus to run it, the script just opens in my text editor with no option to run it. Using Nautilus, how do I run executable text files and/or scripts?
I've been discussing specifics of an electrical job with a licensed electrician and he mentioned that in my area, it's acceptable/recommended to feed 12 gauge NM wire through an outdoor conduit but that the PVC sheathing SHOULD be removed if the wiring is going to travel through more than 6 feet of conduit. This doesn't make sense to me. How/why would that be better than keeping sheathing on through the conduit run? Condensation?
If I have NM cable running into a junction box, can I strip the sheath of the NM cable starting inside the junction box and run the conductors without a sheath through conduit that is connected to the junction box? I understand that the wiring you'd typically use through conduit is THHN or NM (if you want to use the conduit solely as protection). But I'd like to be able to take this incoming NM cable and have it's conductors only continue on through conduit along with some other THHN that's coming from another source. The individual conductors of the NM cable while not labeled can still be traced back to where the sheathing ends, so technically the conductors are still identifiable as to what they are. If need be, I could splice the NM conductors to THHN wire in the junction box, but I don't see a reason to add a splice where I don't think it's needed. My reasoning for why I think this should be OK is that if you terminate NM cable in a panel, you typically have a foot or so of the conductors without the sheath and there's nothing identifying those other than tracing it back to the sheath it came from.
I am having a problem across multiple PCs where I cannot upload images on Stack Overflow any more. I few weeks ago I went to upload an image, but it was to big. Now when I ever go to upload a new one the old image is still uploading, and I cannot cancel it. This is affecting me across all the stack sites. How can I clear the old upload? I have tried this on my home PC, work PC and work laptop on Chrome and Internet Explorer. The Image wasn't huge, but it was over the limit. Surely, once I couldn't upload, it should have cleared the upload. Any advice on what I can do? This is the screen it gets stuck on: Cancel does nothing. Even when I drop a link into it clicking Upload does nothing.
When I try to upload an image, I'm presented with the following dialog box, The dialog box does not allow uploading either from my computer or by posting a link. This happens only on Chrome browser (running on Windows). Clearing cache and cookies, and restarting computer do not resolve. Is this just my computer? Or is this a site-wide bug? Additional info: Clicking on 'click' to upload does nothing. Dragging an image onto dialog redirects me to the file location on my computer. Clicking 'Add picture' redirects me to http://[SE-domain].com/upload/image?https=true. UPDATE: A Norton extension for Chrome was the source of the problem.
$ sudo apt-get install snake4 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? here, as you look in the above i am unable to access or download for example:snake4 game.so what can be the reason behind that makes to run like the above command
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?
My goal is to force all CPU cores to run at maximum turbo frequency (4 x 3.9 GHz) using CentOS 7. Here is the output of cpupower frequency-info: analyzing CPU 0: driver: acpi-cpufreq CPUs which run at the same hardware frequency: 0 CPUs which need to have their frequency coordinated by software: 0 maximum transition latency: 10.0 us hardware limits: 1.60 GHz - 3.50 GHz available frequency steps: 3.50 GHz, 3.50 GHz, 3.30 GHz, 3.10 GHz, 2.90 GHz, 2.70 GHz, 2.50 GHz, 2.30 GHz, 2.10 GHz, 1.90 GHz, 1.70 GHz, 1.60 GHz available cpufreq governors: conservative userspace powersave ondemand performance current policy: frequency should be within 1.60 GHz and 3.50 GHz. The governor "performance" may decide which speed to use within this range. current CPU frequency: 3.50 GHz (asserted by call to hardware) boost state support: Supported: yes Active: yes 3600 MHz max turbo 4 active cores 3700 MHz max turbo 3 active cores 3800 MHz max turbo 2 active cores 3900 MHz max turbo 1 active cores Turbo boost is working as expected - all 4 cores fully loaded are reaching 3.6 GHz. But it would be nice to have 3900 MHz max turbo 4 active cores or less (at least 4 x 3.7 GHz). How to control it? Is it possible?
My PC has one Intel Haswell i5 4690, which is supposed to be boosted up to 3.9GHz from the regular frequency 3.5GHz. I do not know if it is possible to use some softwares to turbo boost this cpu on Ubuntu 14.04LTS. THX!
Are there any interesting examples of number theory showing up unexpectedly in physics? This probably sounds like rather strange question, or rather like one of the trivial to ask but often unhelpful questions like "give some examples of topic A occurring in relation to topic B", so let me try to motivate it. In quantum computing one well known question is to quantify the number of mutually unbiased (orthonormal) bases (MUBs) in a $d$-dimensional Hilbert space. A set of bases is said to be mutually unbiased if $|\langle a_i | b_j \rangle|^2 = d^{-1}$ for every pair of vectors from chosen from different bases within the set. As each basis is orthonormal we also have $\langle a_i | a_j \rangle =\delta_{ij}$ for vectors within the same basis. We know the answer when $d$ is prime (it's $d+1$) or when $d$ is an exact power of a prime (still $d+1$), but have been unable to determine the number for other composite $d$ (even the case of $d=6$ is open). Further, there is a reasonable amount of evidence that for $d=6$ there are significantly less than $7$ MUBs. If correct, this strikes me as very weird. It feels (to me at least) like number theoretic properties like primality have no business showing up in physics like this. Are there other examples of this kind of thing showing up in physics in a fundamental way?
As a Graduate Mathematics student, my interest lies in Number theory. I am curious to know if Number theory has any connections or applications to physics. I have never even heard of any applications of Number theory to physics. I have heard Applications of linear algebra and analysis to many branches of physics, but not number theory. Waiting forward in receiving interesting answers!
I will be traveling on my own to Germany in a few days, and will take the train on Deutsche Bahn. I am 17, and have no credit cards, debit cards, etc. My parents will be booking the journey in advance with their credit card. I just have no idea what valid ID I could use that falls under the requirements, especially if passports aren’t allowed.
I want to go to Berlin to Gottingen by train. I found that to avail myself of the “savings fare”, I have to book a ticket at least one day in advance. And I saw a requirement on the Bahn website to have a identification card for online tickets. I am a foreigner in Germany, so does my passport count as valid identification in German trains?
Can I use a balance remaining from my first 180-day period and add 90 days from my second 180-day period, without leaving the Schengen area?
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 have 2 svg, one svg is the wave, and other one is the people in the background, i want to combine my svg so its become overlap like this here is my html code <div style="margin: -10px; text-align: center;"> <img style="width: 100%; height: 300px;" src=".background-wave.svg" alt=""> </div> <div style="width: 100%; position:absolute; top: 0px; text-align: center;"> <img style="max-width: 100%; max-height: 100%;" src="people.svg"> </div>
I want to overlay one image with another using CSS. An example of this is the first image (the background if you like) will be a thumbnail link of a product, with the link opening a lightbox / popup showing a larger version of the image. On top of this linked image I would like an image of a magnifying glass, to show people that the image can be clicked to enlarge it (apparently this isn't obvious without the magnifying glass).
Let's say I have a metal bar (which does not expand or contract at all) that's 1 light-second long which is connected to a block at the end. I am in space holding the other end of the bar. If I pull on the bar, what happens? If the block moves instantly, then shouldn't the bar appear to get longer, because I don't see the end move until one second later? On the other hand, if the block takes one second to move, does the bar actually expand, as my end has moved but the block's end hasn't?
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 think that the answer is 0.5, independently of the common distribution of $Y_1$ and $Y_2$. Attempt to a proof, assuming continuous random variables: $P(Y_1>Y_2)=\int_{\Omega}f_{Y_1,Y2}(y_1,y_2)dy_1dy_2=\int_{\mathbf {R}} \left( \int_{-\infty}^{y_1} f_Y(y_2)dy_2 \right) f_Y(y_1) dy_1 = \int_{\mathbf {R}} F_Y(y_1) f_Y(y_1) dy_1 $ Now, integrating by parts: $ \int_{\mathbf {R}} F_Y(y) f_Y(y) dy = \left[(F_Y(y))^2\right]_{-\infty}^{+\infty} - \int_{\mathbf {R}} f_Y(y) F_Y(y) dy$ (EDITED because some users didn't understand the equation layout) This implies that $ 2\int_{\mathbf {R}} f_Y(y) F_Y(y) dy= \left[(F_Y(y))^2\right]_{-\infty}^{+\infty} = 1-0 \implies \int_{\mathbf {R}} f_Y(y) F_Y(y) dy =0.5 $ Is this correct? Does it hold for generic random variables too? With generic I mean $Y_1$ and $Y_2$ not necessarily continous, but still i.i.d.
This is a follow-on from my about samples from a distribution. Suppose $X_1 \ldots X_{n-1}, X_n$ are random variables all following some fixed distribution $D$. How do I prove that $P(X_n > X_1 \wedge \ldots \wedge X_n > X_{n-1}) = \frac{1}{n}$ (this is true intuitively and experimentally).
I have a 5 node Cassandra cluster set up on EC2, all in the same region. If I connect over cqlsh (9160), queries respond in under a second. When I connect via Dev Center, or using the native Java Driver, both of which use port 9042, the queries take over 20 seconds to respond. They consistently respond in the same 21 second region. Never fast and then slow. I have set up a few Cassandra Clusters on EC2 and have seen this before but do not know how to fix the problem. The last time, I scrapped the cluster and built a new one and the response time on port 9042 was fine. Any help in how to debug or fix this problem would be appreciated, thanks.
I have been developing with Cassandra locally for a while and response times on queries are in the region of 50ms. I have set up a 5 node EC2 cluster from the cassandra community ami, everything went fine, opscenter is up and running and there are no issues. When I perform any query from a machine outside of the aws network, whether it be to create a keyspace, or do a select * on an empty table, the response time is over 20 seconds. When I query from a machine in the same region, the response time is between 1 and 2 seconds, still very slow. The EC2 Machines are all m1.large eu-west-1a Do you have any idea why this would be happening or where I should look to find the issue?
In the mini series "Chernobyl" first responders who were exposed to radiation at the scene had to be quarantined. Why? My understanding is that when Uranium 235 fissions it releases nuetrons and gamma energy. The gamma enery can penetrate the skin and 'ionize' compounds in our bodies (bad) as well as break checmical bonds in our dna (also, bad and maybe not a different thing). So that explains why direct exposure is bad, but what is the mechanism for them continuing to be dangerous to others around them? Is fissioning Uranium somehow in their body?
In the 2019 miniseries "Chernobyl", ordinary objects are depicted as being capable of becoming radioactive, such as clothes, water, stones. How exactly does something composed of a non-radioactive mass, become radioactive? I'm aware of the differences between alpha, beta, and gamma radiation, and I know how ionizing radiation works. However, it isn't clear to me how any radiation, including ionizing radiation makes something radioactive in any long-lasting sense of the word. I can imagine that ionizing radiation excites the atoms in the object, which makes the atom emit a photon until it becomes relaxed again. However, this doesn't sound like something that has a very long lasting effect? I can also imagine that radioactive particles, such as those from U-235, may stick to clothes or contaminate water. However, this too seems not that plausible, is there really that much U-235 in a nuclear reactor for dust particles to be a considerable problem in this regard? I'm not arguing that this isn't true, it simply isn't clear to me how the mechanism behind it works. I'm pretty sure this isn't clear to most non-physicists either.
Listen to all your fans Name all the states vs Listen to all of  your fans Name all of  the states What part of language is of  in these examples? Is it necessary or optional, correct or incorrect?
Is the word "of" optional in this instance? Is either of these considered preferable to the other? Taste all our delicious treats. Taste all of our delicious treats.
My laptop is a Dell XPS 15 (9550) running ubuntu 15.10. My USB to Ethernet adapter is an Aukey CB-C17 (). My question is simple: How to make appear the ethernet interface so I can configure it? My kernel seems to detect the device almost properly: [ 1.663215] usb 4-1.1: new SuperSpeed USB device number 3 using xhci_hcd [ 1.680336] usb 4-1.1: New USB device found, idVendor=0bda, idProduct=8153 [ 1.680337] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6 [ 1.680338] usb 4-1.1: Product: USB 10/100/1000 LAN [ 1.680338] usb 4-1.1: Manufacturer: Realtek [ 1.680339] usb 4-1.1: SerialNumber: 000000000000 Note that the SerialNumber is odd. Unpluging and plugin again the USB3 device produce 2 extra lines: [20385.100994] usb 3-1.1: new high-speed USB device number 3 using xhci_hcd [20385.261087] usb 4-1.1: new SuperSpeed USB device number 3 using xhci_hcd [20385.277670] usb 4-1.1: New USB device found, idVendor=0bda, idProduct=8153 [20385.277678] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6 [20385.277683] usb 4-1.1: Product: USB 10/100/1000 LAN [20385.277687] usb 4-1.1: Manufacturer: Realtek [20385.277690] usb 4-1.1: SerialNumber: 000000000000 [20390.281085] usb 4-1.1: Disable of device-initiated U1 failed. [20390.288426] usb 4-1.1: Disable of device-initiated U2 failed. Lspci: $ lspci -nn 03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device [10ec:525a] (rev 01) Some other infomation: $ lshw *-usb UNCLAIMED description: Generic USB device product: USB 10/100/1000 LAN vendor: Realtek physical id: 1 bus info: usb@4:1.1 version: 30.00 serial: 000000000000 capabilities: usb-3.00 configuration: speed=5000Mbit/s Yet ifconfig does not see this device as an interface: $ ifconfig -a lo Link encap:Local Loopback [..snip..] wlp2s0 Link encap:Ethernet HWaddr 60:6d:c7 The second is my wireless adapter. Per suggestion: $ sudo modprobe r8152 Produces no new logs from kernel (dmesg -w stayed the same). But when executed against historical kernel messages (I took some messages before and after "r8152" match): [ 13.114909] usb 4-1.1: Disable of device-initiated U2 failed. [ 13.117934] intel_rapl: Found RAPL domain package [ 13.117936] intel_rapl: Found RAPL domain core [ 13.117938] intel_rapl: Found RAPL domain uncore [ 13.117940] intel_rapl: Found RAPL domain dram [ 13.122633] usb 4-1.1: Set SEL for device-initiated U1 failed. [ 13.126856] dcdbas dcdbas: Dell Systems Management Base Driver (version 5.6.0 -3.2) [ 13.131446] usb 4-1.1: Set SEL for device-initiated U2 failed. [ 13.131521] usbcore: registered new interface driver r8152 [ 13.136022] usbcore: registered new interface driver cdc_ether Cold boot with device inserted, dmesg logs show the U1 and U2 errors too: [ 13.114909] usb 4-1.1: Disable of device-initiated U2 failed. [ 13.122633] usb 4-1.1: Set SEL for device-initiated U1 failed. [ 13.131446] usb 4-1.1: Set SEL for device-initiated U2 failed. As proposed, adding r8152 module to /etc/modules did solve one part of the problem: the ethernet adapter now appear in ifconfig -a. However automatic or manual configuration does not seem to make it able to communicate. Kernel-wise, I've tested all stable and non-stable kernels, including Mainline() which proves to be the best for some hardware strictly related to the laptop.
USB ports are working just fine - only the Ethernet does not work. uname / syslog output: Linux matteo-notebook 4.10.0-041000-generic #201702191831 SMP Sun Feb 19 23:33:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux NAME="Ubuntu" VERSION="16.04.2 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.2 LTS" VERSION_ID="16.04" Feb 25 02:26:55 matteo-notebook NetworkManager[1075]: <info> [1487986015.1755] device (enx00e14c687c7e): state change: unmanaged -> unavailable (reason 'managed') [10 20 2] Feb 25 02:26:55 matteo-notebook kernel: [ 4757.383930] IPv6: ADDRCONF(NETDEV_UP): enx00e14c687c7e: link is not ready Feb 25 02:26:55 matteo-notebook NetworkManager[1075]: <info> [1487986015.1828] keyfile: add connection in-memory (5124e103-6869-3cb6-b4bf-88de4e4bca18,"Wired connection 2") Feb 25 02:26:55 matteo-notebook NetworkManager[1075]: <info> [1487986015.1840] settings: (enx00e14c687c7e): created default wired connection 'Wired connection 2' Feb 25 02:26:55 matteo-notebook kernel: [ 4757.388887] IPv6: ADDRCONF(NETDEV_UP): enx00e14c687c7e: link is not ready
I know that wavelength $\times$ amplitude is equal to the speed of light $c$ when looking at an electromagnetic wave, but does a higher aplitude mean greate energy carried by the wave? And if so, is there a formula related to energy and aplitude?
If we have 2 beams of light with equal intensities, but with different frequencies, wouldn't the one with the higher frequency generate more power? If so, how come the intensity, which is in $W/m^2$, of the higher frequency beam is not higher?
Background: I am doing DEM resampling for a pretty big raster (341020x341020 cells, ~ 10 GB file size, ~ 433 GB uncompressed size) with arcpy. My Python script (uses 64-bit Geoprocessing) has been running for more than half a day with the output file size is ~ 20 GB so far and I have no idea how long I will have to wait for it to finish. import arcpy arcpy.env.workspace = r"C:/GIS" inRaster = 'dem_2m.tif' resampleRaster = 'dem_1m.tif' newCellSize = '1' resamplingMethod = 'BILINEAR' arcpy.Resample_management(in_raster=inRaster, out_raster=resampleRaster, cell_size=newCellSize, resampling_type=resamplingMethod) Question: Is there a way to show the percentage of completion when the script is running? Something similar to this when we use ArcToolbox within ArcGIS interface System info: Windows 10 Enterprise, ArcGIS 10.6.1 with 64-bit Geoprocessing tools, Core i7-8850H (12 cores), 32 GB RAM, 300 GB free SSD disk space
I am looking for a way to access a GP tool running in a Python script to be able to see how much of the job has already been done. I have found function, but this one is available only when running script tools via ArcGIS Desktop GUI. I am in contrary interested in obtaining the information on the progress via the code. This is to be able to track on the execution of the tool (this will be reported to a user which has triggered running the code). I don't run the code inside the ArcGIS Desktop application session. So, for instance, when calling the Buffer GP tool on a polygon feature class (via arcpy.analysis.Buffer), I want to get an estimate from the tool after several seconds how much (in %) of the work was already done and this information should be possible access via the code.
I have given a regex let reg = new RegExp("^[-]?[0-9]*.?[0-9]{1,4}$"); console.log(reg.test("45-45")); //true console.log(reg.test("sd545")); //true console.log(reg.test("5*45")); //true Expected behavior if any string or speial char it should through error the above all console should through false What i am doing wrong?
I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps. It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?
I have 4 down lights controlled by 1 dimmer switch. When I turn them off they all still glow very slightly. What causes this and how can I fix it?
(I know this question has been asked before (), but I followed the advice recommended by the users in that thread to help remedy the problem, but the lights still glow.) I recently bought dimmable LEDs for my house, and I've noticed that the lights glow a little bit even while the dimmer is turned off (I have illuminated light switches to DO NOT use the neutral wire). I suspect this is due to the wall switches using the light bulb itself as neutral. When the wall switch is on, the bulb gets full line voltage. When the wall switch is off, the bulb is the neutral for the light of the wall switch, causing a tiny current to flow through the bulb. I replaced the dimmer with the Luron MACL-153M, a digital dimmer that is specifically made for LEDs/CFLs, but that problem still persists (note: this dimmer also DOES NOT use the neutral wire, and is illuminated with a small light). I then replaced one room's dimmer with a smart WiFi switch that DOES use the neutral wire, and walla, no glow. Also, if I use a non-illuminated switch, the LEDs do no glow while the switch is turned off. So I tried a solution that seems to work for the rest of the rooms where I don't want smart light switches. I added a 10k ohm resistor in between the load and the neutral (so in parallel), and it seems to "drain" that small electricity leak from the dimmer. When I did this, the LEDs did not glow when turned off. Now, my question to the community is: Is there a safer way to do this? Of course I covered all exposed wires with electrical tape, and my resistor is rated at 200 volts (I live in the US). And theoretically, this resistor is acting just like another bulb on the circuit, but that does not emit light. I looked around for a non-wifi/Bluetooth/etc. dimmer that uses the neutral wire, and the only one seems to be a Leviton one that costs $60--way too pricey. Adding a resistor in parallel makes sense and is much more cost-effective. Please let me know if this is ok/safe long term.
I'm using Ubuntu 16.04 and I'm new to both Ubuntu and VirtualBox. I've already enabled USB controller for Windows 10 virtual machine, But no devices are available when I click to "add USB filter button". So what should I do now?
I'm using Ubuntu Maverick and Virtual Box 3+. I have Windows 7 Ultimate. The problem is that it doesn't detect USB drives in Windows 7, but USB peripherals (mouse + keybord) are working. I followed , but I can't find the user group vboxusers. How can I continue? I would also like to upgrade to the latest version without any risk (without losing my virtual hard disk drive).
The potential energy can be mathematically expressed as: $$U=-\int \vec F \cdot d\vec x$$ I do understand the negative sign is basically to adjust in the relation $$K_1+U_1=K_2+U_2$$ What is the physical significance of the negative sign.
So I have been trying to understand why there is a negative sign in the following$\Delta U= -\int\vec{F}\cdot d\vec{l}$ I wanted to try to understand it by trying to derive the gravitational potential energy $E_p=-\dfrac{GMm}{r}$ I start by defining potential energy to be $0$ at $\infty$ and see what I get if I let gravity do work on the mass until a distance r away from a planet $W_G=\int_{\infty}^{r} \vec{G}\cdot{d\vec{l}} = \int_{\infty}^{r} G\cos{\theta}dl = \int_{\infty}^{r} G dx$ G is the gravitational force so: $W_G= \int_{\infty}^{r} -\dfrac{GMm}{x^2}dx = \Bigg[\dfrac{GMm}{x}\Bigg]$ applying limits of integration gives $W_G = \dfrac{GMm}{r}$ Thus I am confused why the minus sign, from the derivation I wrote it seems to have to be $\Delta U= \int\vec{F}\cdot d\vec{l}$ at least for gravity. I also did the same derivation for a mass on earth ($W_G = -mgh$ Where $\vec{G}$ is considered to be constant) and the result indeed is the correct one $\Delta U= -\int\vec{F}\cdot d\vec{l}$ so my confusion arises, why don't i get the same result for both cases. I am also wondering if I carry out the same derivation but for elastic potential energy, what would I get... Thank you for any help!
I would like to know what Stack Exchange site is the proper one to ask this question on: I have also seen on the Stack Exchange page that it could be off topic because of: if you would like recommendations for Free & Open media
I love Stack Exchange and really hope to see it evolve, maybe into a helper page for sites like Wikipedia. One of the problems I have as a user is the kinds of questions I generally have are for lists of answers, or to get a vague and rambling set of answers to dig through and collect the pieces I'm looking for. For instance, it would be nice to ask for a list of great food websites (as an example only) and then get a listing of these sites. I'm wondering if there is a sub-section or side-section of Stack Exchange that offers this kind of back-and-forth that is restricted on the Stack Exchange topics normally? I get that sites like facebook offer this to one degree or another, and message boards, etc. But none of those sites have the indexing, tagging, searchability, and referencing options that Stack Exchange does. So I'm hoping that there is a Stack Exchange-approved model for this question that I just wasn't aware of yet.
I appear to be experiencing a bug with 'Backups' and wish to report it. , I must . However, given a list of possible options, how do I know which one it is? Namely, I surmise in this case it is 'deja-dup', but I wish to confirm before filing the bug report. How do I so? $ sudo apt-cache search backups [sudo] password for user: backuppc - high-performance, enterprise-grade system for backing up PCs deja-dup - Back up your files rsync - fast, versatile, remote (and local) file-copying tool tar - GNU version of the tar archiving utility [roughly one hundred other options are listed] Trying a different search method: $ apt search backups | grep installed | cat -b WARNING: apt does not have a stable CLI interface. Use with caution in scripts. 1 deja-dup/xenial-updates,now 34.2-0ubuntu1.1 amd64 [installed] 2 rsync/xenial-updates,xenial-security,now 3.1.1-3ubuntu1.1 amd64 [installed] 3 tar/xenial-updates,xenial-security,now 1.28-2.1ubuntu0.1 amd64 [installed] My only guess on how to confirm is to try executing the command hoping to open the same 'Backups' Graphical User Interface, but it appears dangerous or poor practice to execute commands without knowing what they will do.
I want to use some applications shown on the Unity Launcher in a terminal, but I need to know the appropriate command to run them. How can I achieve that?
I have searched for a term that describes users who post questions and then disappear without trace. These users will post and write their questions in a great flurry, sometimes ignoring the basic rules of punctuation and capitalization, they will also plead for assistance, and conclude their posts with a thnx. And yet when regular users respond and politely ask for further information these newcomers will remain mute. Answers will be posted but receive no confirmation from the OP (original poster) that their problem has been solved. Only when a day has passed by, do users realize that these newcomers have effectively gone. Disappeared. Vanished. Sparito. I am not talking about lurkers, users who sit on the sidelines and observe, reading content but never interacting or contributing. Apparently, lurkers are said to make up 99% of all Internet users. In Internet culture, the 1% rule is a rule of thumb pertaining to participation in an internet community, stating that only 1% of the users of a website actively create new content, while the other 99% of the participants only lurk. [...] The terms lurk and lurking, in reference to online activity, are used to refer to online observation without engaging others in the community, and were first used by veteran print journalist, P Tomi Austin, circa 1990, when her presence was noticed by other users in chat rooms, who queried her reasons for not engaging in chat. There were repeated inquiries about her identity and her refusal to engage in chat. Wikipedia: No, I am referring to users who do make a contribution, who have taken the plunge, and seem to want to engage but then never come back (unless they have multiple accounts, which seems very unlikely to me.) I have come to call them Hit & Run users; because they remind me of the expression , they shoot a question and then run away. But is there an established expression, word or phrase used in social media? I have honestly searched but Internet slang dictionaries are no good unless you already know the term you're looking for!
What do we call someone who asks a question and never responds to answers/comments? Think of it more as "a pattern of behavior" (somebody who has asked many questions and never responded). I had unresponsive in mind, but that doesn't say that they asked in the first place.
I am working on a navbar for a website. It contains 3 dropdowns (and a bunch of other stuff I removed to keep the code concise). I want to be able to close the dropdowns by clicking outside of them. I have found many solutions which dealt with this (including the ones on this site), but all of them only accounted for having one such dropdown and I was unable to adapt them to my situation. What I want to achieve is: If you click one of the buttons, it gets a is-active class (which makes its dropdown visible via a sibling selector in CSS) and removes it from all other buttons in the menu. If you click on an open dropdown window, nothing happens. If you click outside of any dropdown buttons and windows, the is-active class gets removed from all the nav buttons that have it. No matter which recommended solution I tried, one or more of these stopped working as expected. Could anyone help me figure it out? $('[data-toggle]').click(function() { var params = $(this).data('toggle'); $(params['target']).toggleClass(params['class']); }) <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="main-nav__inner" style="height: 100%;"> <div class="main-nav__group d-none d-md-block"> <button class="main-nav__button" data-toggle='{"target":"[data-toggle-target=\"books\"","class":"is-active"}' data-toggle-target="books">Knihy</button> <div class="main-nav__dropdown"> // Dropdown contents </div> </div> <div class="main-nav__group d-none d-md-block"> <button class="main-nav__button" data-toggle='{"target":"[data-toggle-target=\"info\"","class":"is-active"}' data-toggle-target="info">Informácie</button> <div class="main-nav__dropdown"> // Dropdown contents </div> </div> <div class="main-nav__group main-nav__group--popup"> <button class="main-nav__button" data-toggle='{"target":"[data-toggle-target=\"profile\"","class":"is-active"}' data-toggle-target="profile"> <i class="icon-left fa fa-user" aria-hidden="true"></i> </button> <div class="main-nav__popup"> // Dropdown contents </div> </div> </div> This code just toggles the dropdowns. My attempts at autoclosing functionality were in separate functions, but I no longer have them, since none of them worked - sorry. A bonus question: Is there a way of putting the self keyword into an HTML data-attribute?
I have some HTML menus, which I show completely when a user clicks on the head of these menus. I would like to hide these elements when the user clicks outside the menus' area. Is something like this possible with jQuery? $("#menuscontainer").clickOutsideThisElement(function() { // Hide the menus });
I want to set default timezone to the user's local timezone, please find my code below: date_default_timezone_set("Asia/Karachi"); $currentHour = date('h:i'); My code works correctly, but only works only for Karachi; if user in other country it may not works.
Is there a standard way for a web server to be able to determine a user's timezone within a web page? Perhaps from an HTTP header or part of the user-agent string?
Good evening community, Can anyone advise me on where I went wrong with this proof.
I'm stuck on what how to continue. I know I'm missing a few steps but this is what I have so far. Thank you in advance! ¬Cube(b) → Small(b) Small(c) → (Small(d) ∨ Small(e)) Small(d) → ¬Small(c) Cube(b) → ¬Small(e) Small(c) ¬Small(b) ¬Cube(b) Small(b) (→ Elim 1,7) ⊥ (⊥intro 6, 8) 10.Cube(b) (¬Intro 7-9) ¬Small(e) (→ Elim 4,10) Goal: Small(c) → Small(b)
TL;DR— See title: Are the attributes in “handsome girl” and “pretty boy” perfectly interchangeable? Is there an implicit, gender-specific connotation in “handsome” (♂) and “pretty” (♀)? called my attention for the first time to the none-analogy of those two German words: (“stupid”, literally lady-ly) (“magnificent”, literally mister-ly) (Both do actually have a surprisingly different etymology.) The presenter assumes that däm-lich was some sort of feminine version for herr-lich and cites, like how in English, the word “handsome” is often associated with something that is masculine, and “pretty” with something that is feminine. Is this true? Does it sound weird to call a manly man “pretty” or a beautiful, feminine woman “handsome”? Do English native speakers assume gender in consequence of the usage of either?
On the recommendation of some regulars here, I managed to watch the movie The Madness of King George over the weekend, and found it excellent. Anyway, one funny scene in the movie is when King George, who despite being contentedly married is quite flirtatious, remarks on the looks of one of the Queen Consort's ladies-in-waiting to the head of his attending guards: That's Lady Penbrook. Handsome woman, what? Daughter of the Duke of Marlborough...husband's an utter rascal. Is the usage of "handsome" here archaic, or just rarely used by those in the know? If the former, when did it become so?
Turner syndrome is a chromosomal disorder where one of the X chromosomes is missing. For more details visit the I don't understand why missing one X chromosome would be harmful. In normal females one of the two X chromosomes is inactivated at an early embryonic stage to a Barr body. For more details visit the . This X chromosome inactivation can be beneficial. For example, women are less prone to sex-linked genetic disorders due to this X chromosome inactivation. My questions are: If only one copy of an X chromosome is active in normal human females, why would having only one copy of an X chromosome cause a disorder? What does it mean to deactivate parts of a chromosome Why would it be essential to have two copies of a gene, as only the dominant one is expressed?
Why do persons with have developmental abnormalities, when normal XX-females do not, even though they only have 1 active X chromosome? From what I know, one X-chromosome is inactivated into a Barr body in normal XX-females, but these obviously don't show the symptoms of Turner syndrome. What function does the inactive chromosome have?
Do the examples 'buyers guide' and 'teachers lounge' carry an apostrophe. At first glance they appear like possessives, but actually the first words are more like descriptions. My instinct is 'buyers guide' rather than 'buyer's guide' or 'buyers' guide'. This is different to a question about children's books, as that earlier question is complicated by the plural not ending in S.
Although Children's books is what everybody says, I would like to understand why the genitive case is applied in such case. If I write books for children, children is an adjective here; not the owners of my book! The word "children" just defines or characterizes the type of books I write. Therefore, it's an adjective. So, I understand that genitive/possessive case ("I write children's book") is incorrect grammar. My question is: is the genitive case here really accepted as right? If I use "I write children books" (following the grammar principle) as as I say "I write pets books" (books about pets, and not possessions of pets) - would I be incorrect? Why?
Is it really important to specify architecture type if I'm making a simple Windows program that utilizes HttpWebRequests, or is it ok to leave it as "Any CPU"?
I have some confusion related to the .NET platform build options in Visual Studio 2008. What is the "Any CPU" compilation target, and what sort of files does it generate? I examined the output executable of this "Any CPU" build and found that they are the x86 executables (who would not see that coming!). So, is there any difference between targeting executable to x86 vs. "Any CPU"? Another thing that I noticed, is that managed C++ projects do not have this platform as an option. Why is that? Does that mean that my suspicion about "Any CPU" executables being plain 32-bit ones is right?
I have previously asked the following integral:$$\int \frac{6x^{3}+7x^2-12x+1}{\sqrt{x^2+4x+6}}dx.$$ In the meantime I have received an answer from Achille Hui , but there are still some points that I don't understand from his answer. At some point there is: Set $B(y)$ to $ay^2 + by + c$, RHS($*1$) becomes $(6-3a)y^3 + \cdots$. We should fix $a$ to $2$. Repeat this procedure once more, we find $c$ should be fixed to $24$. I don't understand how does he fix these numbers? Does he let them equal $0$ to obtain the final result?
$$\int \frac{6x^{3}+7x^2-12x+1}{\sqrt{x^2+4x+6}}dx$$ I have met this complex integral today, how do you evaluate this? Can you do this in more steps? Is this an elliptic integral? I don't know how to evaluate this integral at all.
I'm relearning Linux and I totally forgot how to do this. Please help.
I'm using Ubuntu 11.10 with Unity and would like to switch between workspaces with a keyboard shortcut. Is there any way to achieve this?
Pardon me if this is a duplicated question even though I could not find a solution yet. I have about 1000s images. I need to resize them, each to a specific size. There are no patterns to those sizes. They are different. I have the file names and the sizes in an excel file. Manually it will take a lot of time. I was wondering if this can be done in a batch process. Maybe Photoshop Scripting or something else. I do not know how to script but have the general idea of how it works. What I want to do is indicate the folder and the excel/csv/text file and the batch will run and resize each file to the given height keeping the proportion. Example: 1000s of Image files. Named: file1, file2, file3, file4. etc... file1 will have 975 px height file2 will have 486 px height file3 will have 846 px height All keeping the proportions. Hope that clarifies what I'm trying to achieve.
I want to batch resize an image in multiple sizes with Photoshop. The sizes are most of the time the same so I would like to have profiles for a set of fixed sizes. Ideally I just need to open my source image and click on "Batch Profile #1" and then Photoshop is creating/saving X different sizes of that image as an output in a specific folder. This is what i want:
I was just wondering if it was possible to have smooth lines in photoshop the same way it is in flash where when you draw a figure it will automatically change the lines you made into smoothened shapes, I would like to know if this is possible with photoshop and how you would do so. Thank you.
Illustator has a nice effect on it pencil tool : curve auto-correction. When you draw line, it automatically correct your hand, making it more neat and round. Sadly, I don't see this option on the photoshop pencil tool. And well, I can't /don't want use Illustrator for several reasons, including the fact it's not really suitable for drawing. I'm quite surprised don't found it on Photoshop, according to how usefull it is. So there is my question : is there any plugin or way to benefit it on Photoshop ? Many thanks.
I currently have ubuntu 17.04(zesty). I want to upgrade it to 18.04(bionic), but when I tried sudo do-release-upgrade I saw something weird like below and is telling ("An upgrade from 'zesty' to 'bionic' is not supported with this tool."). Need inputs to resolve and proceed upgrade. what tool it needed to upgrade from Zesty to bionic. I searched in google but didn't found any supporting solution. sudo do-release-upgrade [sudo] password for arunseege: Checking for a new Ubuntu release Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife Get:1 Upgrade tool signature [819 B] Get:2 Upgrade tool [1,257 kB] Fetched 1,258 kB in 6s (45.2 kB/s) authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg' extracting 'bionic.tar.gz' Reading cache Checking package manager Can not upgrade An upgrade from 'zesty' to 'bionic' is not supported with this tool.
I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please?
I tried to get the output of python as def main(): i=raw_input() a=input() print(i*a) main() input:hello, 2. output: "hellohello" but i am getting output as output:" hello hello " .how can i get the two strings as output continuously in same line from one print statement.for example:"hellohello "
I'd like to do it in Python. What I'd like to do in this example in C: #include <stdio.h> int main() { int i; for (i=0; i<10; i++) printf("."); return 0; } Output: .......... In Python: >>> for i in range(10): print('.') . . . . . . . . . . >>> print('.', '.', '.', '.', '.', '.', '.', '.', '.', '.') . . . . . . . . . . In Python print will add a \n or space, how can I avoid that? Now, it's just an example, don't tell me I can first build a string then print it. I'd like to know how to "append" strings to stdout.
I read in many sources about using quaternion to avoid gimbal lock but I can't apply this practically in my code, so I have a camera class I want to rotate it with mouse so I have Euler angles Pitch and Yaw, I have a camQuat qauaternion to store the rotation quaternion each frame, so I have the initCamera method which initialize the camera: void Camera::initCamera(glm::vec3& pos, glm::vec3& center, GLfloat yaw, GLfloat pitch) { view = glm::translate(view, center - pos); camQuat = glm::quat(glm::vec3(glm::radians(pitch), glm::radians(yaw), 0.0)); camQuat = glm::normalize(camQuat); glm::mat4 rot = glm::mat4_cast(camQuat); view = view * rot; view = glm::translate(view, pos - center); } then each frame I update the camera by this method void Camera::rotate(GLfloat xoffset, GLfloat yoffset, glm::vec3& c) { xoffset *= this->mouseSensitivity; yoffset *= this->mouseSensitivity; view = glm::translate(view, c); glm::quat q(glm::vec3(glm::radians(yoffset), glm::radians(xoffset), 0.0f)); q = glm::normalize(q); glm::quat temp(q); q = q * camQuat * glm::conjugate(q); camQuat = temp; glm::mat4 rot = glm::mat4_cast(q); view = view * rot; view = glm::translate(view, -c); } this makes the rotation but with gimbal look, what is the bug in my code or what is the right way to use quaternion to prevent the gimbal look? Edit: the first image is the normal camera FPS the rotation should be around the x and y axis only (No Rolling), once I rotate around any axis (as I read until the angle becomes 90) the gimbal lock appear and the camera begins to roll around z like the second image. enter image description here Solution: due to DMGregory link below this code works fine: void Camera::rotate(GLfloat xoffset, GLfloat yoffset, glm::vec3& c, GLboolean constrainpitch) { xoffset *= this->mouseSensitivity; yoffset *= this->mouseSensitivity; glm::quat Qx(glm::angleAxis(glm::radians(yoffset), glm::vec3(1.0f, 0.0f, 0.0f))); glm::quat Qy(glm::angleAxis(glm::radians(xoffset), glm::vec3(0.0f, 1.0f, 0.0f))); glm::mat4 rotX = glm::mat4_cast(Qx); glm::mat4 rotY = glm::mat4_cast(Qy); view = glm::translate(view, c); view = rotX * view; view = view * rotY; view = glm::translate(view, -c); } I get the quaternion for both x and y then post multiply the QX by the view matrix then pre multiply the QY by the view matrix, the idea is rotating pitch globally and yaw locally to avoid unwanted creeping roll.
I see questions come up quite often that have this underlying issue, but they're all caught up in the particulars of a given feature or tool. Here's an attempt to create a canonical answer we can refer users to when this comes up - with lots of animated examples! :) Let's say we're making a first-person camera. The basic idea is it should yaw to look left & right, and pitch to look up & down. So we write a bit of code like this (using Unity as an example): void Update() { float speed = lookSpeed * Time.deltaTime; // Yaw around the y axis using the player's horizontal input. transform.Rotate(0f, Input.GetAxis("Horizontal") * speed, 0f); // Pitch around the x axis using the player's vertical input. transform.Rotate(-Input.GetAxis("Vertical") * speed, 0f, 0f); } or maybe // Construct a quaternion or a matrix representing incremental camera rotation. Quaternion rotation = Quaternion.Euler( -Input.GetAxis("Vertical") * speed, Input.GetAxis("Horizontal") * speed, 0); // Fold this change into the camera's current rotation. transform.rotation *= rotation; And it mostly works, but over time the view starts to get crooked. The camera seems to be turning on its roll axis (z) even though we only told it to rotate on the x and y! This can also happen if we're trying to manipulate an object in front of the camera - say it's a globe we want to turn to look around: The same problem - after a while the North pole starts to wander away to the left or right. We're giving input on two axes but we're getting this confusing rotation on a third. And it happens whether we apply all our rotations around the object's local axes or the world's global axes. In many engines you'll also see this in the inspector - rotate the object in the world, and suddenly numbers change on an axis we didn't even touch! So, is this an engine bug? How do we tell the program we don't want it adding extra rotation? Does it have something to do with Euler angles? Should I use Quaternions or Rotation Matrices or Basis Vectors instead?
I'm fresher than the prince to Linux, I've been following the instructions here: (the link tells what I am generally trying to do). I'm all up and running in VBox, and am at the curl install part, I may have done the curl part a week ago I forget. So I ran this command anyway: danjah@danjah-VirtualBox:~$ sudo apt-get install curl Result: [sudo] password for danjah: Reading package lists... Done Building dependency tree Reading state information... Done curl is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Then: $ curl http://npmjs.org/install.sh | sudo npm_install=rc sh Result: fetching: { gzip: stdin: unexpected end of file /bin/tar: Child returned status 1 /bin/tar: Error is not recoverable: exiting now It failed Should I be concerned? How can I test curl? How can I avoid these situations? Perhaps there's a generic way of checking to see if I've already installed packages/etc? Case specific answers and general advice most appreciated. cheers, d
I have downloaded eclipse-platform-3.7-linux-gtk-x86_64.tar.gz. Using Ubuntu 10.10 64-bit on Intel 64-bit processor. While trying to unpack the contents (either double-click or right-click & open-with-archive-manager) I get this error: gzip: stdin: unexpected end of file<br/> tar: Unexpected EOF in archive<br/> tar: Error is not recoverable: exiting now Is there any remedy to repair it? or is the downloaded file corrupt & needs to be re-downloaded?