body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
If I am testing whether my HTML form (with method post) has been submitted (vs a fresh page load), is there any benefit to using if( $_SERVER["REQUEST_METHOD"] == "POST" ) { } as opposed to if( $_POST) { }. Let's assume that either way, after this check I am checking for isset( $_POST['my_var'] ).
Some guy called one of my Snipplr submissions "crap" because I used if ($_SERVER['REQUEST_METHOD'] == 'POST') instead of if ($_POST) Checking the request method seems more correct to me because that's what I really want to do. Is there some operational difference between the two or is this just a code clarity issue?
In my app I am having a continuous communication with TCP server , now if server sends a command to close the app, i want to close the app completely and when user taps the app again, it should start with Application launch method itself. I have tried using exit(0) in the code, using this application goes into background.But it doesn't kill the app. How can i do that?
I am programming an iPhone app, and I need to force it to exit due to certain user actions. After cleaning up memory the app allocated, what's the appropriate method to call to terminate the application?
Here is the output of my normal ls command: f1 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19 f2 f20 f3 f4 f5 f6 f7 f8 f9 So I have 20 files. I need them displayed as : f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19 f20 Is there any single-line command to this other than writing a script? I am sure some of you must have faced this weird situation. Note: the above is just a sample. In the actual scenario I need a list of all the file names in proper sorted order. (ranging from f{0..10000})
I have a bunch of files from log1 to log164. I'm trying to LIST the directory (sorted) in a UNIX terminal but the sort functions are only providing the format like this: home:logs Home$ ls -1 | sort log1.gz log10.gz log100.gz log101.gz log102.gz log103.gz log104.gz log105.gz log106.gz ...etc What I want is home:logs Home$ ls -1 | sort log1.gz log2.gz log3.gz log4.gz log5.gz log6.gz log7.gz ...{more here} log99.gz log100.gz log101.gz log102.gz ...etc Any suggestions in what I could use to do this?
Given $f:\mathbb{R}\rightarrow\mathbb{R}$, and the function $f$ satisfies $f(x+y)=f(x)+f(y)$ for any $x,y\in S$. Can we say that this function $f$ must be continuous? I think it is false, but couldn't give an example. Can someone tell me whether it is true or not? Thank you very much.
The asks about functions $f \colon \mathbb R \to \mathbb R$ such that $$f(x+y)=f(x)+f(y).$$ It is a very well-known functional equation, which appears in various areas of mathematics ranging from exercises in freshman classes to constructing useful counterexamples for some advanced questions. Solutions of this equation are often called . Also a few other equations related to this equation are often studied. (Equations which can be easily transformed to Cauchy functional equation or can be solved by using similar methods.) Is there some overview of basic facts about Cauchy equation and related functional equations - preferably available online?
I would like to backup my Ubuntu OS (I just got it all configured VBox additions and a couple VM's) and need a snapshot of it in the event something goes wrong. A simple GUI and free way would be preferred, in the past I have used Ghost on Windows ... but not sure the same/similar in Ubuntu land. I have read many posts but most all of them are old and I'm looking for the best way to do this. Thanks
I'm a new Linux user. I've reinstalled my Wubi from scratch at least ten times the last few weeks because while getting the system up and running (drivers, , etc.) I've broken something (X, grub, unknowns) and I can't get it back to work. Especially for a newbie like me, it's easier (and much faster) to just reinstall the whole shebang than try to troubleshoot several layers of failed "fixing" attempts. Coming from Windows, I expect that there is some "disk image" utility that I can run to make a snapshot of my Linux install (and of the boot partition!!) before I meddle with stuff. Then, after I've foobar'ed my machine, I would somehow restore my machine back to that working snapshot. What's the Linux equivalent of Windows disk imagers like or ? Note: I found a similar question:
I want to be able to reboot my mac mini with a wireless keyboard (non apple keyboard) and . I don't want to pull the power or set a scheduled time - just be able to accelerate the shutdown without using a mouse or trackpad. Is this possible by using some pre-arranged combination of keyboard commands or shortcuts?
I'm getting more interested in using Terminal as an alternative way to address solutions on my Mac. I have seen this question entitled . I would therefore like to know: How to shut down, restart and sleep my Mac using the Terminal command exclusively ?
When I try to install an app that is 13 mb it is downloaded but when the part of the installation comes it can't be installed it says I don't have enough space. I tried downloading the apk file of that application and still I downloaded it successfuly and I couldn't install it because it said i don't have enough memory even if I have 250mb. I am using Lg L Fino and It is rooted. Please help if you know how. I appreciate all of your answers and I will give you more infromations if needed. Thanks in advance!
In "Settings" > "SD card & phone storage settings" under "Internal Phone Storage" it lists "Available Space" as 13.78MB. I'm trying to install an app that is 2.38MB. Why do I get the "Insufficient storage available" error message? I clearly have enough space. If it's relevant, my phone is an LG Optimus V.
I was resolving some problems on codewars and tried to convert a string to a list of numbers like this: "102904".split("").map(parseInt); The expected result would be something like this: [1, 0, 2, 9, 0, 4] But it returns instead: [1, NaN, NaN, NaN, 0, 4] At believe that map should apply to each element in the list which are strings of 1 digits. One could believe that it isn't parsing correctly because the base isn't used but: "102904".split("").map(function(x){ return parseInt(x);}); [ 1, 0, 2, 9, 0, 4] Using parseInt(x, 10), doesn't change the result. But sending directly parseInt to map creates NaN... I tried on Chrome and Firefox and I receive the same results.
From the : [1,4,9].map(Math.sqrt) will yield: [1,2,3] Why then does this: ['1','2','3'].map(parseInt) yield this: [1, NaN, NaN] I have tested in Firefox 3.0.1 and Chrome 0.3 and just as a disclaimer, I know this is not cross-browser functionality (no IE). I found out that the following will accomplish the desired effect. However, it still doesn’t explain the errant behavior of parseInt. ['1','2','3'].map(function(i){return +i;}) // returns [1,2,3]
Calculate $$\int_C \frac{2xy^2dx-2yx^2dy}{x^2+y^2},$$ where $C$ is the ellipse $3x^2 +5y^2 = 1$ taken in the positive direction. $\\$ my trial : $~~~~~~~~~~~~~~~~~$The Elipse $x(t) = \frac{\cos(t)}{\sqrt{3}}$ $~y(t) = \frac{\sin(t)}{\sqrt{5}}$ $t \in [0,2\pi]$ $ dx = \frac{-\sin(t)}{\sqrt{3}}~dt$ $ dy = \frac{\cos(t)}{\sqrt{5}}~dt$ $ 2xy^2~dx = \frac{2\cos(t)}{\sqrt{3}}\frac{\sin(t)^2}{5}\frac{-\sin(t)}{\sqrt{3}}~dt = \frac{-2\cos(t)\sin(t)^2\sin(t)}{15}~dt$ $ -2yx^2~dy = \frac{-2\sin(t)}{\sqrt{5}}\frac{\cos(t)^2}{3}\frac{\cos(t)}{\sqrt{5}}~dt = \frac{-2\cos(t)\cos(t)^2\sin(t)}{15}~dt$ $ x^2 + y^2 = \frac{\cos^2(t)}{3} + \frac{\sin^2(t)}{5} = \frac{3+2\cos^2(t)}{15}$ so $~\int_C \frac{2xy^2dx-2yx^2dy}{x^2+y^2} = \int_0^{2\pi}\frac{-2\sin(t)\cos(t)}{3+2\cos^2(t)}~dt = \frac{ln(3+2\cos^2(t))}{2}|_0^{2\pi} = 0$
Calculate $$\int_C \frac{2xy^2dx-2yx^2dy}{x^2+y^2},$$ where $C$ is the ellipse $3x^2 +5y^2 = 1$ taken in the positive direction. I tried to calculate the integral using green theorm. now i need to build enclosier that doesn't enclose $(0,0)$ i am having hard time guessing what to build. a circle and ellipse might be perfect but then the domain is not easy to write. can i have hint please ?
How could I produce such an image in code? I'd also like to draw vector arrows by the end of the lines, in order to see the order of the calculations. I saw a TikZ solution on other answer that didn't work for me. Not only the code gave me an error, it's not fully what I want (I want it to look like a parentheses matrix, and I'd also like to have a convenient macro to produce it with just some few inputs). Here's this partial solution (given by Andrew ) I'm talking about: Here is a quick hack using a matrix of math nodes and : Code \documentclass[border=5mm,tikz]{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[auto] \matrix (M)[matrix of math nodes,row sep=1cm,column sep=16mm]{ a & b & c & a & b\\ d & e & f & d & e\\ g & h & i & g & h\\&&[blue]adi&[red]-bfg&[blue]cdh\\ }; \draw[blue](M-1-1)--(M-2-2)--(M-3-3)--(M-4-3); \draw[blue](M-1-2)--(M-2-3)--(M-3-4)--(M-4-4); \draw[blue](M-1-3)--(M-2-4)--(M-3-5)--(M-4-5); \end{tikzpicture} \end{document} Also, that little product he put just below the lines showing the multiplication results are pretty awesome. Any way to implement it with what I've asked?
Is there a way to create a new command with 9 arguments ({a_{11}},{a_{12}},{a_{13}},{a_{21}},{a_{22}},{a_{23}},{a_{31}},{a_{32}},{a_{33}}) that has as output a matrix with the Sarrus Rule? For instance: to obtain just use the command that we will call sarrus: \sarrus{-k}{k-1}{1}{0}{k-1}{k}{2}{0}{1}. If it is possible i want to use the command sarrus in math mode just like matrix for istance.
OS is Debian 10. Using thunar as my file manager. I'm assuming some sort of error occurred trying to read a cheap SD card, and now thunar is not responding. I tried kill -9, no such luck. ps shows the process is in the "Uninterruptible Sleep" state. I would like to be able to: Launch a new instance of thunar so I can continue to use my system, and Clean up the 30 old thunar windows that will not redraw. I absolutely do not want to restart my system, the whole point for me of switching from Windows and to Linux is high uptime (which it mostly succeeds at). Perhaps there is some kernel feature that must be enabled, that covers a user like myself. I understand that the kernel is designed to work for most users, but perhaps there is some sort of flag that can be enabled "tolerate cheap io devices" or something similar, that will allow me to use SD cards without having to reboot constantly.
I am running Linux Mint 18.2 with KDE Plasma. Recently I noticed that most of the times I copy large files to removable drives the process hangs just before finish. I opened KSysGuard and saw that the process of file.so is in disk sleep. When this happens the process seems not receiving any kill or end signal. I decided to reboot, opened a terminal in Konsole and ran reboot command. But the reboot also got stuck in the middle! I had to press the power button and force shutdown my laptop. Now I want to know is it impossible to kill or end a process that is in I/O Sleep state ?
Everyone agrees that: Semantically "It's not" and "It isn't" mean the same thing: "It is not". No doubt here. See: The reason why I'm asking is because Google is suggesting one way regardless the fact the one other one has more hits, see: and In general: which one is more common and what examples where it makes difference come to your mind?
Is one stronger than the other? More correct? Just curious, one of the many abstract things to pop into my head on the drive home today...
I've been given the following design for an error modal dialog (the rest of the page is grayed out and can't be clicked): To me, instinctively, it seems redundant having two ways (close button and ok button) to do the same thing (close the dialog). I don't see the need to have the close button. Can you provide some more solid reasons to avoid that, or good reasons to have both if I am wrong?
I am working with a basic which is a popular modal used on many sites. I noticed that the default template comes with both a close button on the bottom, as well as an x on the top, these two buttons essentially having the same purpose. Are the two redundant and the close button completely unnecessary and just taking up extra space? Or, is having multiple usage options more user friendly? To make this even more fun, suppose I throw in a Save button: Is it now clearer that if you don't press save and just press the x, your changes will be canceled, or is there now more of a need for a cancel button for users who are scared that a mistake will become permanent? Update: To clarify for those who feel this question is similar to - That question is asking if a clickable background is sufficient to close a popup. I'm using buttons and it is just a matter of how many buttons to use. (I do also have a clickable overlay and ESC key enabled, but that is irrelevant to my question)
I was building a village and wondered why villagers interacted with certain building but not others, e.g. they entered the library I built by not the church. I have been told that a bed and a door makes the building a house but I’m starting to question my knowledge of this. Please help.
I was trying to create a small village in Minecraft. As I am in Single Player and wanted some neighbours, I spawned a few NPC villagers using spawn eggs. Even though they are good neighbours (they don't play the music too loud and don't argue with their wives), they won't spend the night in any of the houses I built. Buildings are very basic structures made of wooden planks with a wooden door (I read on the Wiki it was the door that made the house for NPCs). Am I missing something? How can I decide my NPCs to live in the houses I made? Do I need to build a real estate agency (;-D)?
I'd love to play Diablo 1 on Ubuntu. How can I do that?
Can .exe and .msi files (Windows software) be installed in Ubuntu?
Why can't I vote for the answers given for the question I have asked? I am currently on 4 reputation because somebody down voted my last question. I have now lost 6 rep. Your rule says I should have 15 rep to vote for an answer. How can I get 15 rep on this platform from this kind of ridiculous rules. Your current rules are beyond laughable. Please reform your policies.
I've been lurking Stack Overflow whenever I had a problem for at least the last 2+ years. More times than not, I find my solution (or cobble one together) before I get frustrated enough to have the innernets help me with my specific custom problem. Many times, the only commentary I would be able to add would be "thanks!" which really only wastes bits and bandwidth. I understand implementing measures to keep the bots and SEO kids out, but sometimes it's a PITA to start participating in a community. If you couldn't extract my question from the above rant (or title), this might be a little more clear: Why do I require 15 reps to just up-vote something? I feel like it's kinda silly. Additionally, I noticed the quote off to the left: We prefer questions that can be answered, not just discussed. yet I have looked around here and haven't been able to find any justifiable explanation.
For a while I had an account with the name . I asked to delete that account, because my English was too broad for understanding. Now it is a little bit better and I made a new account The notifications go to my old account. Is it possible to fix it? No, I don't want merge the two accounts. Deleting something means for me it's gone. But if there is no other way, I'll try to merge it.
I accidentally posted a question without being logged in. Is there a way to associate that question with my account? For more information, visit "" in the . a.k.a. How can you link a registered account to a cookie-based account? a.k.a. How do I merge an unregistered account with a registered account a.k.a. Merging users a.k.a. How do I associate anonymous questions I’ve asked with my registered account? a.k.a. Is there a way to claim an unregistered user? (in case anyone searches with those terms)
A friend in Prague just contacted me asking the possibility of traveling back to Italy. He is Pakistani passport holder and lives in Italy on student residence permit. He was traveling in Prague where somebody has stolen his documents and credit cards and also the residence permit. He has already filed a theft report of residence permit and other documents with local police in Prague. Now, he wants to travel back to Italy. He has a flight back to Italy tomorrow booked with Czech airlines. So, what do you guys suggest about traveling within Schengen area with lost residence permit?
I have already booked my flight from Italy to the Netherlands through Ryanair. I'm staying in Italy legally and have a carta di soggiorno. However, after booking my flight, my wallet was stolen, which contains all my IDs except my passport. I filed a police report, and I'm trying to get a new residence card. However, I need to go to the Netherlands ASAP. Will Ryanair accept the police report and receipt of getting a new residence card from the post office? UPDATE (17.07.2014) Thanks for helping me out. BTW it's OK now. I went to our local CISL here in Florence, Italy, where they process your envelope for renewing your permesso di soggornio or carta di soggiorno (residence permit for foreigners) to be submitted to the post office. That's where you pay and get your postal receipt, and they make an appointment for you at the questura. Anyway, long story short, they processed a application for IMPROVISED residence permit which is good for 30 days to travel within the Schengen area, so all I have to do is go to the questura, bring my travel booking, the police report and copy of my passport. Now I can travel, and it's my first time to fly with Ryanair because I always use Transavia to go to Holland. =) Hope this helps for future persons who will have the same issue with lost or stolen residence permits...Just wish me luck that the questura will process my improvised residence permit immediately.
I have a class User object. I am trying to load this object from the Database using Hibernate. My SQL statement is: SELECT users.uid AS uid, users.deleted AS deleted, users.username AS username, users.passwd AS passwd, users.disabled AS disabled, users.lockout AS lockout, users.expires AS expires, data_firstname.value AS firstname, data_lastname.value AS lastname FROM ac_users as users LEFT JOIN ac_userdef_data as data_firstname ON users.uid = data_firstname.parentuid AND data_firstname.fieldname like 'firstname' LEFT JOIN ac_userdef_data as data_lastname ON users.uid = data_lastname.parentuid AND data_lastname.fieldname like 'lastname' WHERE users.deleted = 0 My mapping for the User class is: <class name="com.agetor.commons.security.User" table="ac_users"> <id name="uid" column="uid" type="long" > <generator class="native"/> </id> <property name="deleted" column="deleted" /> <property name="username" column="username" /> <property name="password" column="passwd" /> <property name="firstname" column="firstname" /> <property name="lastname" column="lastname" /> <property name="disabled" column="disabled" /> <property name="lockout" column="lockout" /> <property name="expires" column="expires" /> </class> My problem is that the table ac_users does not have a column 'firstname' or 'lastname' These columns, only exist in my resultset from the SQL-join statement. They do also not exist in the ac_userdef_data table. There i have 2 colums: fieldname and value. and 2 rows: fieldname = 'firstname' with some value in the value column and another row with fieldname = 'lastname' with some value in the value column How do i change my mapping file, so that Hibernate will understand that it needs to load the firstname and lastname column into my firstname and lastname fields on my POJO, while those columns dont actually exist on the referenced ac_users table.?
Hello Stack Overflow Experts, i have need of your expertice: I am trying to use Hibernate on an Existing DB. Currently im trying to load a User object and a list of UserData objects that go along. in the DB the (simplified) layout is | User | | UserData | ---------------- ----------------------------------- uid | username | | uid | parentuid | field | value | So each User object matches all the UserData objects where UserData.parentuid = User.uid. My User class mapping file <class name="com.agetor.commons.security.User" table="ac_users"> <id name="uid" column="uid" type="long" > <!--<generator class="native"/>--> </id> <property name="username" column="username" /> <list name="fieldData" cascade="all"> <key column="parentuid" not-null="true" /> <index column="parentuid" /> <one-to-many class="com.agetor.commons.fields.FieldData"/> </list> </class> Mu UserData mapping file <class name="com.agetor.commons.fields.FieldData" table="ac_userdef_data"> <id name="uid" column="uid" type="long" > <!--<generator class="native"/> --> </id> <!--<property name="parentuid" column="parentuid" /> --> <property name="fieldname" column="fieldname" /> <property name="value" column="value" /> </class> So far i have tried many different configurations and all of them have had various degrees of failue. The code pasted here, does not work. The parentuid property is commented out, because Hibernate gives a "Repeated column in mapping" error otherwise. Currently there is still a "Repeated column in mapping" on the uid field, i use for <list-index /> I do not understand where i specify that UserData.parentuid is the foreign key and that the list should use User.uid as key. I hope someone is able to help. When you define both a One-To-Many and a Many-To-One, does this not make it Bi-Directional? The current working model, is Unidirectional and UserData does not have a reference to User. Your suggestion fails, because Hibernate could not find a get or set method for User on UserData. Is it implied that, this code uses User.uid as a key and matches this against the UserData.parentuid column? Or is this fact specified somewhere else? <list name="fieldData" inverse="true"> <key column="parentuid" not-null="true" /> <one-to-many class="com.agetor.commons.fields.FieldData"/> </list> I am still learning Hibernate and working my way through documentation and examples i can find.
I'm currently running 18.04 LTS. I'd like to upgrade my existing machine to 20.04 LTS. If I enter sudo update-manager -d in the terminal, it finds an updated release (20.04). When I proceed with the installation the release notes that appear on screen indicate this is still a development release. Is there a way I can run update-manager -d so it updates and points to the non-development branch release of 20.04? Or do I simply have to wait? Thanks
Update appear to have been updated recently (as of writing this the last update appears to have taken place on 3rd of June) to include the following statement: The -d switch is necessary to upgrade from Ubuntu 18.04 LTS as upgrades have not yet been enabled and will only be enabled after the first point release of 20.04 LTS. Also note that . TLDR (as of 15 Aug 2020): is the canonical tracking document for the first Focal Fossa point-release (20.04.1). It’s a live document. The Ubuntu release team will be updating it as we work on releasing 20.04.1. […] Upgrades from 18.04 to 20.04.1 are still disabled as we are working through a few upgrade blockers Edit The answers (so far) do not answer the question. The question is pretty simple. Ubuntu.com points to a "FinalRelease", which turns out to be a "Development Release", see evidence below. I'm not asking how and when to upgrade. I'm pointing out what seems to me to be an apparent inconcistency (in semantics, linguistics, logic) in the way Ubuntu names or labels its releases. From an answer to the question I'd except someone to pick up and acknowledge this inconsistency. An answer could start with a "Yes, ..." or a "No, ...", for starters. (Moreover, a good answer could distinguish between the release being in dev stage and/or the upgrade process (e.g. from LTS to LTS) being in dev stage, if appropriate.) This question, as I see it, is not a duplicate. Futher, I think it is a question which deserves a non-patronizing answer. Thanks. indicates that today (23rd April 2020) the new Ubuntu 20.04 LTS is to be released. See "condensed screenshot" here: Indeed, it seems that that's what happened, see and : However, when following the instructions to upgrade (from 18.04 LTS to 20.04 LTS) found and elsewhere (edit: actually , too!), even prior to the July point release, I'm a bit confused to see that the instruction is to use update-manager -d which also points to the "Development Release" (see screenshot below) rather than the "FinalRelease" (see screenshot and link above). Is the "Final Release" (which I'm after) the/a "Development Release"? Why isn't it called something like "Production Release" or "Final Release"? When will it no longer be referred to as "Development Release"? In July? I'm confused :(
May I simply know the exact reason of downvoting from the voters? It could be helpful to anyone who is new at this community. Thanks.
Note: If you're looking for a simple explanation as to why comments aren't required on downvotes, see . I used to get "upset" (though that is too strong a term) when I got downvoted without comment. If my answer isn't good enough then I'd like to know why. Not only does it improve the answer for the OP but it improves my knowledge too. Where the down-vote has been explained I've found it useful & it has improved my answer, or forced me to delete the answer if it was totally wrong. So is there any way we can encourage people to leave a comment? Perhaps they don't lose rep if they explain their down-vote? I must admit though that I haven't always explained my down-vote either so you could call me a hypocrite. I've also grown a thicker skin over the months of using SO (it seems to have come with the higher rep score ;-)), so I'm less bothered about this now.
This is the course content for a waves and optics course that I am currently taking: Oscillations: Review of simple harmonic motion and damped oscillations, coupled oscillators and normal modes.(4) Waves: wave equation, superposition of waves with same and different frequency, Lissajous figures, standing waves, dispersion relations and group velocity.(4) Maxwell's equations: Wave equation, plane, spherical, cylindrical and beam like solutions of the wave equation.(3) Boundary conditions: reflection and transmission at the boundary.(2) Propagation of light in anisotropic media.(2) Coherence: Spatial and temporal.(2) Polarization and double refraction, quarter and half wave plates.(2) Geometrical optics: Paraxial approximation, lens aberrations, ray matrix approach to Gaussian optics, optical systems and resolving power.(8) Interference: Division of wavefront (Young's double slit) and amplitudes (Newton's rings, Michelson interferometer), multi-wave interference-Fabry-Perot interferometer, thin optical coatings (single and multilayer), interference filters.(6) Diffraction: Huygen-Fresnel and Kirchhoff's theories.(2) Fresnel diffraction: rectangular, circular and zone plates.(2) Fraunhoffer diffraction: Slits (single, double) and grating and circular aperture.(2) Introduction to metamaterials.(1) Due to Covid-19, this semester was botched up and the instructor managed to teach only a fraction of the course. I am currently using Vibrations and Waves by AP French and Griffiths for the waves section. I am looking for textbook recommendations for the other topics in the above list. If possible, please mention the topic which is present in each book.
Every once in a while, we get a question asking for a book or other educational reference on a particular topic at a particular level. This is a meta-question that collects all those links together. If you're looking for book recommendations, this is probably the place to start. All the questions linked below, as well as others which deal with more specialized books, can be found under the tag (formerly ). If you have a question to add, please edit it in. However, make sure of a few things first: The question should be tagged It should be of the form "What are good books to learn/study [subject] at [level]?" It shouldn't duplicate a topic and level that's already on the list Related Meta:
First off, hooray for the app \o/ It is a substantial upgrade from the mobile browser . I have started using it quite a bit lately and really like the feed and other features. I find myself using it as a searching device and use it frequently for wandering through posts. Often times, I will find an interesting question that I'd like to view in another device and possibly engage in. I generally am long-winded and don't answer with one or two liners so, I am going to prefer a different device other than my phone. There are a few built in ways to navigate to this post from the app to a different device (that I'm aware of): Favorite it. This is fine for getting to it, but it kind of abuses the Favorites because, in my opinion, favorites are questions that you want to be able to get back to at any point, not a device sharing tool. I really only use favorites for questions that I am going to access on a regular basis and I'd like to keep it that way. Share it. You have a few options here, but they all include using some third-party for getting the Post Id via copy/paste, email, etc. There's no way to view a post's Id when viewing a post. What I'd really prefer is some way of seeing the post's Id so I can quickly navigate to it on other devices. I don't really care how noticeable it is, as I know not all users will care to have this, but I still think it'd be nice to have a way of quickly identifying a post so that I can switch to another device, navigate to the site that I was viewing and search the post Id to go directly to the question. As a suggestion, maybe adding it to the question options header so that it reads: Question 12345 options Edit: Another suggestion Make a question option View details or something similarly worded that show a pop-up of details about the post, which obviously will include my coveted post id as well as maybe some metadata about the question, ie created datetime, amount of edits, view count, last active date, related content, ect. Most of this suggested metadata come from the content in the sidebar of a post.
When I want to close a question as duplicate using the app, I have to enter the question ID as usual. Problem is, as far as I can tell, the question IDs are shown nowhere! Please add the ID somewhere.
I have tried several things to get my image data from the file input and send it to the NodeJS server but nothing has helped me so far. I had a lot of different solutions with formData, FileReader etc. but I never had my data. My HTML is following: <button type="button" id="uploadButton" onclick="openFilepicker()"> Upload file </button> The openFilepicker() function triggers a click via jQuery on the file-input element: <form id='uploadForm' encType="multipart/form-data"> <input type="file" accept="image/*" name="uploader" class="hidden" id="input-file" onchange="submitUploadForm()"/> </form> The submitUploadForm() function gets executed when a file has been selected: function submitUploadForm() { if ($('#input-file').val() != '') { const input = document.getElementById('input-file'); const file = input.files[0]; /* Process my data here to be ready to send it */ $.ajax({ url: '/upload', type: 'POST', data: '', /* Here I want my file data to be sent */ cache: false, contentType: false, processData: false, success: function (data) { console.log(data); }.bind(this), error: function (err) { console.log(err); }.bind(this) }); } }
I would like to upload a file asynchronously with jQuery. $(document).ready(function () { $("#uploadbutton").click(function () { var filename = $("#file").val(); $.ajax({ type: "POST", url: "addFile.do", enctype: 'multipart/form-data', data: { file: filename }, success: function () { alert("Data Uploaded: "); } }); }); }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <span>File</span> <input type="file" id="file" name="file" size="10"/> <input id="uploadbutton" type="button" value="Upload"/> Instead of the file being uploaded, I am only getting the filename. What can I do to fix this problem?
Does anyone know if these work together? I see there are dedicated iPhone +altimeter apps for the iPhone, but I can't find info if there is an altimeter built into the iPhone that works with these Endomondo/Strava apps. So my fear is that my gps is not tracking the correct altimeter information. Should I be worried?
So, I think it'd be cool - for goal setting for example - if I could keep track of my elevation change. The problem is, the local cyclocomputers I looked at seem to use barometric pressure to determine the change. This is fine, unless some weather is moving in, which happens not infrequently in the Midwestern United States. Or do some of them try to use an inclinometer, your speed, and some math you learn in Calculus II to keep track of your change? That would seem more accurate! I could try to use a GPS meter, but those things are expensive - and based on back when I had service to my smart phone, not guaranteed to match my car's odometer for distance even - I've read from some other riders that the distance varies at least slightly from local measurement on a bike as well. Alternatively, let's say that I ride along a known route. Is there any good way of plotting that route for elevation change? Thanks!
I'm using default gnome-screenshot and I enabled include pointer in dconf Editor /org/gnome/gnome-screenshot/delay and cursor nowhere to be seen. I used the terminal to set it and still nothing happened. gsettings set org.gnome.gnome-screenshot include-pointer true Checked if it worked gsettings get org.gnome.gnome-screenshot include-pointer true
I want to make it so that when I press the print screen key on my keyboard, it actually includes the cursor. I know that it is calling gnome-screenshot, but I can't find any way to change the arguments it is using with it. If anyone knows about this, it would be greatly appreciated.
I created a client/server program where the server sends a packet to the client which has a randomly picked string from an array. But when ever I run the server and then the client which send data about it's byte array the server after receiving the packet throws an exception which looks like this: Exception in thread "SDServerThread" java.lang.NullPointerException at SDServerThread.run(SDServerThread.java:56) This exception points to this line of code: buf = GetText.getBytes(); The buf is a byte array list: byte[] buf = new byte[256]; GetText is a string which calls a method to pick a random string.: String GetText = getText(); The code starting from byte[] buf = new byte[256]; to buf = GetText.getBytes(); looks like this: byte[] buf = new byte[256]; DatagramPacket packet = null; packet = new DatagramPacket(buf, buf.length); socket.receive(packet); System.out.println("packet received"); textArea.append("packet received\n"); String GetText = getText(); buf = GetText.getBytes(); I haven't tried a lot because i can't find any fixes relating to my kind of problem. Thanks in advance for the help.
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?
In the picture the sun makes a diffuse shadow on the interior wall of the poolhouse. I want this to be a sharp shadow (as would be the case in real life, with a full sun). Don't know if and how I have to change the wall material and/or the lighting (or whatever). (the material of the wall is shown on the right panel, as "concrete")
In Cycles, a sun lamp is treated as infinitely far away - only the angle matters, not the position. Other lamps have their sizes defined in blender units: a point lamp with size 1 emits light from a area with size of 1. But if a sun lamp at infinity had a size of 1 blender unit, the angular arc of that sun would be nonexistent. Clearly, when you change the size of a sun lamp, shadows get fuzzier or sharper. But what does that actually mean? What are you changing?
All the help centre pages seem to be broken. looks like this: looks like this: It's also on sites, but always nonsense. What gives? Did April Fool's come early?
I posted it on as well, but in any case: there's a network-wide bug affected all sites' Help Centers. E.g. this link: shows long-deleted Stack Overflow content : What topics can I ask about here? a "reticulated spline" is a valid geometrical entity. They're used a lot in terrain modelling. Because you can get non-reticulated splines, someone wiseguy obviously thought it good to start reticulating them.
When I hold a letter button on Mac, a pop-up appears asking if I'd like to enter an accented version of this letter (like é or ë for e). Can this be configured to work the same way on GNU/Linux?
I've been wondering if there's any add on available that does something like Mac OS X. My mother tongue is Spanish, and now I live in a Francophone environment, I also do English a lot, so I'm in need of different accents, specially in French, I have been using Linux for two years now and have also been using Mac OS X every now and then, for testing purposes. I find really useful the functionality available on Mac OS X, where you keep pressing the key and it displays a list of available options on the same character, different accents, or punctuation. Can I do this on Linux?
When do we use 'a few'instead of 'few'? For example, why is it incorrect to say "I have few dollars left" instead of "I have a few dollars left"? Most people reason it should be few dollars because "dollars" is a plural noun.
I have few friends. I have a few friends. I thought "few" means just one, two or even none. "A few" typically means more than two. However it seems to me some people say "few" when they really mean "a few", am I right?
Can I run Ubuntu 12.04 on P4 3.06 Ghz . I am currently using Windows 7 with no Aero Features. I have no Graphics Card and a 16 MB video card.
I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use? This is an attempt of a canonical answer. My answers have the "official requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.
My Laptop is Samsung ATIV BOOK 4 NP450R4V-XO2, Can I Install Ubuntu On My Laptop Dual Boot With Windows 7,if Can, Please Give me Information For Install That?
I would like to see a full how-to guide on how to install Ubuntu.
I would assume that $\Delta m$ would mean a finite change in mass and $dm$ to be an infinitesimal change in mass. But many physics textbooks use it to denote a small but finite mass and an infinitesimal mass element respectively while writing a differential equation. Why? And how does this make sense? Similarly, $dU$, which should mean the infinitesimal change in the potential energy function is treated as the "small" potential energy of mass $dm$. Same for $dF$ etc. One e.g would be to look at the derivation of the gravitational potential energy of a point mass and a shell. The potential energy of the ring is changed from $U_i$ to $dU$ and the mass of the ring is taken as $dM$. Doesn't $d$ mean an infinitesimal change in some quantity?
I have read the thread regarding , but it does not answer my question. I am confused about the notation for change in Physics. In Mathematics, $\delta$ and $\Delta$ essentially refer to the same thing, i.e., change. This means that $\Delta x = x_1 - x_2 = \delta x$. The difference between $\delta$ and $d$ is also clear and distinct in differential calculus. We know that $\frac{dy}{dx}$ is always an operator and not a fraction, whereas $\frac{\delta y}{\delta x}$ is an infinitesimal change. In Physics, however, the distinction is not as clear. Can anyone offer a clearer picture?
How to return more than one variable from a function in Python?
I have a function where I need to do something to a string. I need the function to return a boolean indicating whether or not the operation succeeded, and I also need to return the modified string. In C#, I would use an out parameter for the string, but there is no equivalent in Python. I'm still very new to Python and the only thing I can think of is to return a tuple with the boolean and modified string. Related question:
My Controller: class Page extends CI_Controller {} public function add() { // $this->input->post('title') $models = $this->load->model('Page_Model', 'page'); echo $models->page->insertData(); } My Model: class Page_model extends CI_Model {} public function insertData() { echo 'sdvsdf'; } Error: Fatal error: Call to a member function insertData() on a non-object in I do not know what happened. Seems working correctly.
So I'm refactoring my code to implement more OOP. I set up a class to hold page attributes. class PageAtrributes { private $db_connection; private $page_title; public function __construct($db_connection) { $this->db_connection = $db_connection; $this->page_title = ''; } public function get_page_title() { return $this->page_title; } public function set_page_title($page_title) { $this->page_title = $page_title; } } Later on I call the set_page_title() function like so function page_properties($objPortal) { $objPage->set_page_title($myrow['title']); } When I do I receive the error message: Call to a member function set_page_title() on a non-object So what am I missing?
Since it is very much possible to have functors with $F_0 \dashv F_1 \dashv F_2$ or even $F_0 \dashv F_1 \dashv F_2 \dashv F_3$, it begs the question: Can there be an example of infinitely many, non-repeating mutually adjoint functors? Obviously, "non-repeating" is important, since $\operatorname{id} \dashv \operatorname{id} \dashv \dots$ would otherwise of course be a boring example (and every other pair of pseudo-invers functors would be too).
Suppose we have (some categories and some functors such that) $F_1$ is left adjoint to $G_1$, $G_1$ left adjoint to $F_2$, $F_2$ left adjoint to $G_2$. Will $F_1$ then be equal to $F_2$ (and $G_1$ to $G_2$)? Or can there exist arbitrarily long 'chains' of adjoint functors that do not trivialize?
I am trying to calculate variances via np.std(array,ddof = 0). The problem emerges if I happen to have a long delta array, i.e., all values in the array are the same. Instead of returning std = 0, it gives some small value which in turn causes further estimation errors. The mean is returned correctly... Example: np.std([0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1],ddof = 0) gives 1.80411241502e-16 but np.std([0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1],ddof = 0) gives std = 0 Is there a way to overcome this except for now checking for uniqueness of data for every iteration without calculating std at all? Thanks P.S. Following marking as duplication of , copy-pasting the reply by @kxr on why it's a different question: "The current duplicate marking is wrong. Its not just about simple float comparison, but about internal aggregation of small errors for near-zero outcome by using the np.std on long arrays - as the questioner indicated extra. Compare e.g. >>> np.std([0.1, 0.1, 0.1, 0.1, 0.1, 0.1]*200000) -> 2.0808632594793153e-12 . So he can e.g. solve by: >>> mean = a.mean(); xmean = round(mean, int(-log10(mean)+9)); std = np.sqrt(((a - xmean) ** 2).sum()/ a.size)" The problem certainly starts with floating representation but it does not stop there. @kxr - I appreciate the comment and the example
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
If you look closely and see the main roads, they break down into blocks [][][][]. I was wondering in QGIS how can I have them appear continuous and not blocked up as shown below. This is one file and not multiple ones.
My client wants a map of bus routes rendered as white lines with blue casing. I'm using QGIS 2.8.2 on Mac OSX 10.10.5. I found a .kml dataset here: . I also tried using the .shp. When I add the layer to the map and apply a cased line styling, some of the routes render as nice unified lines and others render as segmented, like earthworms: I could easily cheat and render a duplicate layer (featuring only the thin white lines) on top of this one. Why do the lines render in different ways? Is there a way to render them all as unified?
What is the common term to refer to someone who answers a question (written or spoken)? Is answerer a correct term? If so, is it common? If not, what is the correct term to refer to such person?
I just went to post a question on another Stack Exchange site and my spell checker is telling me that asker is incorrect but answerer is correct. Is asker wrong? What should I use instead?
I seem to remember learning a rule that the following sentence should be written like this (because of the conjunction "and") : The future strength AND long-term stability of our company ARE rooted in a disciplined risk management strategy. However, I'm seeing the singular 'is" used a lot in the company I work for: The future strength AND long-term stability of our company IS rooted in a disciplined risk management strategy. My question is whether or not they are both acceptable?
I was surfing the internet the other day when I found this phrase: Instead your precious time and attention is wasted. To my ears, it sounds wrong. But I'm not a native English speaker, so I consulted with a number of them, and some of them said that it was "is" because the adjective modifies only the noun "time" and not "attention". Others said it "is" because that's just how it is. But I still believe it should be "are". Any help is appreciated.
I am trying to upgrade an old Windows XP machine to Ubuntu. My question is can I install Ubuntu and keep my Windows XP files and how do I upgrade and keep those files?
I would like to see a full how-to guide on how to install Ubuntu.
I'm currently working on some maps, but I always find myself lost when I'm trying to find a specific item in a slot in my inventory. This time it's the head, which is 103b. Currently, I don't have any way to check for it, so all I'm doing is checking for a skull, which makes it easy to bypass. Here is an example: /scoreboard players set @a Hulk 1 {Inventory:[{Slot:103b,id:"minecraft:skull"}]} This is an easy way to find the skull, but I want it to be more specific. For example, a skull with a name, enchantments, etc. This is the specific item I'm looking for: /give @p minecraft:skull 1 3 {HideFlags:1,display:{Name:"The Hulk",Lore:[The head of the Hulk]},SkullOwner:Oconna,ench:[{id:0,lvl:10}]} But since I can't copy {HideFlags:1,display:{Name:"The Hulk",Lore:[The head of the Hulk]},SkullOwner:Oconna,ench:[{id:0,lvl:10}]} into the other command (which would result in this): /scoreboard players set @a Hulk 1 {HideFlags:1,display:{Name:"The Hulk",Lore:[The head of the Hulk]},SkullOwner:Oconna,ench:[{id:0,lvl:10}]} I can't find it easily. Is there any way to easily find a head with specific attributes, or do I need to type it all down?
I am making a Minecraft Mini Game adventure map, and one of the levels has a /setblock command, I am using the command in a way to spawn an item in a chest (Wooden Button) I need the wooden button to have CanPlaceOn tag so it can be placed on a log. I have tried this command: setblock 294 5 -1251 minecraft:chest 0 replace {Items:[{Count:1,Slot:0,id:minecraft:wooden_button,CanPlaceOn:[log]}]}`
Suppose we have $x_1=\sqrt{2}$ and we have $x_{n+1}=(\sqrt{2})^{x_n}$. We have to find out the limit of the sequence. I was observing that $x_2=(\sqrt{2})^\sqrt{2}$ and $x_3=(\sqrt{2})^{{\sqrt{2}}^{\sqrt{2}}}$ and so on now it is clear that the function is increasing. Now how to prove that the sequence is convergent and then how to find the limit? The calculative value is going towards $2$. But how to prove it!!
How can I prove $$\sqrt{2}^{\sqrt{2}^{\sqrt{2}^{\sqrt{2}^{\sqrt{2}...}}}}=2$$ I don't know which method can be used for this?
I really don't know how to start with this. Can you please help me with this? Suppose $\displaystyle{f: \overline{B_1(0)} \rightarrow \overline{B_1(0)}}$ is continuous and $f$ is analytic in $\displaystyle{B_1(0)}$. Prove that $f(z)$ has a fixed point in $\displaystyle{\overline{B_1(0)}}$. How to do this? Please. I would appreciate any help. Thanks a lot.
Let $f$ be holomorphic on $\overline{N(0,1)}$. Suppose $|f(z)| \leq 1$ for every $|z| = 1$. Without using fixed point theorem, show that there exists $z \in \overline{N(0,1)}$ such that $f(z) = z$. My attempt: Using Rouché's Theorem, I managed to show that if $|f(z)| < 1$ for every $|z| = 1$, then there is a unique $z$ such that $f(z) = z$. However, I am not sure how I should proceed if $|f(z)| = 1$ for some $|z| = 1$.
what is causing gravitational pull in between massive bodies? according to books, what i learnt is graviton particle & some books are saying quantum field is the cause, so which is causing gravitational pull?
Ok,this is a silly question. But for quite long I have been thinking about this. What is gravitation all about?? My book directly writes since force of gravitation is directly proportional to the masses and inversly proportional to the square of the distance ie. $$F = G\frac{M_1 . M_2}{r^2}$$ . So is this gravitation all about? What is the cause of it? The book then says We are not in the scope in classical approach so as to discuss the cause of this. However,as a matter of fact that if there are more than one mass,then there is gravitation as it is their fundamental property.( Cause of gravitation can be attributed to exchange of non-classical particles between the masses) . Then it ended the talkings. What are those non-classical particles? Why and how are they exchanged? So far I have studied physics , I never found such weird phenomenon like this. I want to know what is the cause of gravitation and what is the cause of exchange of those so-called non-classical particles? And how do they do it?
Is this video a one time link? I realize it's still very new and we're all still working out the kinks and such but I was able to view and share it once, then I deleted it. Now when I go back to the link, it just thanks me and the video is no longer there. So is there no chance of viewing this again or what??
I was able to successfully create and share the FB Lookback movie, but had to delete it when I saw a picture had been included that should not be shared (someone with their ex). After deleting the picture I tried to go back to but it now only gives me a still collage of 6 pictures. Does anyone know how to get a second chance at the movie?
Which is correct: "Our team of engineers is standing by" or "Our team of engineers are standing by"?
I'd say Microsoft have a way of bending the rules and I know that McLaren have won the championship. While this sounds strange, I believe it is correct English (sorry, I'm not native). But when it's a small company, would you still use it this way? Is a company always plural, or are small companies singular? I.e., would you say Bakery Johnson makes fine bread or Bakery Johnson make fine bread? Is it My book seller, Woody's, have moved or is it has moved?
Let $X_{1}, X_{2}, X_{3}, ...$ be a sequence of iid and integrable random variables with $E[X_{1}] = \mu$. Show that $$ \frac{1}{n} (X_{1}+X_{2}+X_{3}+...+X_{n}) \to \mu $$ in $L^{1}$. My thoughts so far: Strong law of large numbers implies almost surely convergence. So I still need to get from a.s. convergence to $L^{1}$ convergence. In my lectrure notes I have found two possible ways of doing so: (a) If $\quad$ $X_{n} \to X \; a.s.$ $\quad$ and $\quad$ $E(|X_{n}|^{p}) \to E(|X|^{p})$ $\quad$ then $\quad$$X_{n} \to X$ in $L^{p}$. (b) If $\quad$ $X_{n} \to X \;$ in prob. $\quad$ and $\quad$ $\{X_{n} : n \in \mathbb{N}\}$ is UI $\quad$ then $\quad$$X_{n} \to X$ in $L^{1}$. Which is more promising? I tried both but...it didnt really work out... Many thanks in advance.
I've seen the stated mainly in two (or three) forms: $S_n/n$ converges in probability (weak law) and converges almost surely (strong law). Also, there is convergence in the $L^2$-norm for uncorrelated random variables ($L^2$ weak law). However there is a backwards martingale proof of the strong law of large numbers (any graduate level probability theory book, for example Durrett, should have it). The important thing is that $M_{-n}:=S_n/n$ is a backward martingale, and backward martingales converge both a.e. and in the $L^1$-norm. Then, in particular, $S_n/n$ converges in the $L^1$-norm. Does $S_n/n$ really converge in the $L^1$-norm? If yes, why is this never mentioned? If no, what is wrong with my above proof?
I am trying to diagnose a network problem and noticed that my computer is communicating with an IP address that I'd like to understand. First, all apps on the desktop were closed so the only thing I have open is my terminal window which is doing nothing but running wireshark. The computer continuously is communicating with Google at 35.224.99.156 and it says connectivity-check.unbuntu.com. But a whois on the ip shows Google as the owner. On a side note: My router keeps pinging my computer over and over again. Is that normal?
I just installed Ubuntu 18.04 and going through all my dotfile-scripts to properly configure Ubuntu automatically as much as possible. Looping through gsettings I was able to configure most settings as I want them but I haven't found anything in gsettings related to "Connectivity Checking" which is new in Ubuntu 18.04 LTS (at least not included in 16.04 LTS). I can turn off Connectivity Checking through Settings -> Privacy but how can I do this programmatically? Just uninstall network-manager-config-connectivity-ubuntu? I was able to turn off other privacy settings through gsettings. Viewing the file list of this package at indicates that there is just one settings file (/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf) but it does not show any possibility to enable/disable the feature. Any help is appreciated.
I'm trying to find the top rated users for specific tags, but I am not sure if I can do this. I see but want something like (which obviously doesn't work).
How can I find the top users for a specific tag? For example, Java on Stack Overflow. I want to filter the "Users" tab by Java the tag.
today morning I woke up and saw our MongoDB databases are removed and just this DB HOW_TO_RECOVERY_BASE is there. that have a collection which is README and here is content: { "_id": { "$oid": "5e94ba92ab2c988a0e61117e" }, "content": "All your data is a backed up. You must pay 0.015 BTC to 1DGkm33MMPRzjn2ruDEJeZdBuytBmCwqfZ 48 hours for recover it. After 48 hours expiration we will leaked and exposed all your data. Also do not forget about GDPR. You can buy bitcoin here, does not take much time to buy https://localbitcoins.com with this guide https://localbitcoins.com/guides/how-to-buy-bitcoins After paying write to me in the mail with your DB IP : recovery_bas3@protonmail.com" } fortunately, I made a backup last month using rsync command. now I can't find how I can restore my whole server using this backup. and how can I safe my centos VPS and prevent this type of attack?
This is a about Server Security - Responding to Breach Events (Hacking) See Also: Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism: What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning? Original Version 2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a attack on our provider. The servers access to the Internet has been shut down which means over 5-600 of our clients sites are now down. Now this could be an FTP hack, or some weakness in code somewhere. I'm not sure till I get there. How can I track this down quickly? We're in for a whole lot of litigation if I don't get the server back up ASAP. Any help is appreciated. We are running Open SUSE 11.0. 2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed to resolve this problem, although it may not apply to many others in a different situation. I'll detail what we did. We unplugged the server from the net. It was performing (attempting to perform) a Denial Of Service attack on another server in Indonesia, and the guilty party was also based there. We firstly tried to identify where on the server this was coming from, considering we have over 500 sites on the server, we expected to be moonlighting for some time. However, with SSH access still, we ran a command to find all files edited or created in the time the attacks started. Luckily, the offending file was created over the winter holidays which meant that not many other files were created on the server at that time. We were then able to identify the offending file which was inside the uploaded images folder within a website. After a short cigarette break we concluded that, due to the files location, it must have been uploaded via a file upload facility that was inadequetly secured. After some googling, we found that there was a security vulnerability that allowed files to be uploaded, within the ZenCart admin panel, for a picture for a record company. (The section that it never really even used), posting this form just uploaded any file, it did not check the extension of the file, and didn't even check to see if the user was logged in. This meant that any files could be uploaded, including a PHP file for the attack. We secured the vulnerability with ZenCart on the infected site, and removed the offending files. The job was done, and I was home for 2 a.m. The Moral - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole world is made aware of the vulnerability. - Always do backups, and backup your backups. - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server Fault.
I'm trying to write a regex to scrape text for a jobs site I'm building. I'm relatively new to scraping (and coding) and have been using Parsehub to assist with the former. That's useful for scraping where a job element consistently matches an html element (eg job_title matches , same position, on a page). I can use Parsehub to scrape a relevant block of text but I'll need to use a regex to give Parsehub more direction when the info I need can only be distinguished in relation to other text. I've spent hours trying to figure out the following. For example, I want to extract the deadline date from the following text: To Apply Deadline for applications is the 10th January 2021. Interviews will take place in the third week of January 2021. I've written the regex: /Deadline for applications is the\s([0-9a-zA-Z]\w*)\s([0-9a-zA-Z]\w*)\s([0-9a-zA-Z]\w*) But how do I pull just the groups 1-3? If I add \1 or $1 for example, at the end, I get an error "regular expression does not match the subject string." I have some way to go in learning here but if anyone has some pointers, they'd be much appreciated. Once I get the basic principles of the above, I'll be in a much better place.
I want to match a portion of a string using a and then access that parenthesized substring: var myString = "something format_abc"; // I want "abc" var arr = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(myString); console.log(arr); // Prints: [" format_abc", "abc"] .. so far so good. console.log(arr[1]); // Prints: undefined (???) console.log(arr[0]); // Prints: format_undefined (!!!) What am I doing wrong? I've discovered that there was nothing wrong with the regular expression code above: the actual string which I was testing against was this: "date format_%A" Reporting that "%A" is undefined seems a very strange behaviour, but it is not directly related to this question, so I've opened a new one, . The issue was that console.log takes its parameters like a printf statement, and since the string I was logging ("%A") had a special value, it was trying to find the value of the next parameter.
If I don't use any Anti-Virus is there any problem ? To keep my data safe what should I do ?
I thought that there was no need to scan for viruses either in Ubuntu or any Linux distros until I found virus scanner packages clamtk and klamav in Ubuntu software center yesterday. This leads to the following questions: How do viruses differ between Linux and Windows? How do the strategies for protection differ between Linux and Windows? Should a virus scanner package be installed on my system? If so, which would be a better option?
So something's swallowing about 800gb of disk space on my mac. I've ran Disk Inventory X and Omni Sweeper, and both show that my main OS drive only houses 30 GB worth of data. 10GB of that is Home folders from the network share, and the rest I'm guessing is OS based guff. But where the hell is the other 200 or so?! Any ideas? Thanks.
I have a 128gb MacBook Air running Lion. I am constantly having issues with disc space, but have no idea what is consuming it all. When I look at the disc utility break down, it says about 80% of the used space is taken up by 'Other' while the remaining 20% is photos, music and applications. I've searched everywhere but have no idea what is using all this space. The biggest program I have on is Photoshop and perhaps XCode. I dont have any video files and I dont even tend to save .PSDs. Would anyone know what could be taking up this space? Thanks!
Say we construct the Lagrangian for a system and minimise the action, what happens if this is not unique? In other words the action is minimised by two distinct (not infinitesimally separated) paths. Is there something else that governs the evolution of the system, or is there always a unique solution to the Euler-Lagrange equations?
A few months ago I was telling high school students about Fermat's principle. You can use it to show that light reflects off a surface at equal angles. To set it up, you put in boundary conditions, like "the light starts at A and ends at B". But these conditions by themselves are insufficient to determine what the path is, because there's an extra irrelevant stationary time path, which is the light going directly from A to B without ever bouncing off the surface. We get rid of this by adding in another boundary condition, i.e. that we only care about paths that actually do bounce. Then the solution is unique. Of course the second I finished saying this one of the students asked "what if you're inside an elliptical mirror, and A and B are the two foci?" In this case, you can impose the condition "we only care about paths that hit the mirror", but this doesn't nail down the path at all because any path that consists of a straight line from A to the mirror, followed by a straight line to B, will take equal time! So in this case the principle tells us nothing at all. The fact that we can get no information whatsoever from an action principle feels disturbing. I thought the standard model was based on one of those! My questions are Is this anything more than a mathematical curiosity? Does this come up as a problem/obstacle in higher physics? Is there a nicer, mathematically natural way to state the "only count bouncing paths" condition? Also, is there a "nice" condition that specifies a path in the ellipse case? What should I have told that student?
Let $f:\mathbb{C} \rightarrow \mathbb{C}$ be holomorphic on the form $f(x+iy)=u(x)+iv(y)$ where $u,v$ are real functions. Prove that $$f(z)=\lambda z+c$$ for $\lambda \in \mathbb{R}$ and $c \in \mathbb{C}$. How do I prove this? I think I have to use the Cauchy-Riemann equations somehow but I can't quite figure it out. Thank you!
Finding all differentiable $f(z) = u(x) + iv(y)$ in $\mathbb{C}$ where $u(x),v(y)$ are real valued functions. I’m not sure what to do. Would $f$ be differentiable simply if and only if both $u$ and $v$ were differentiable? My thinking is that if the limit $$ \lim_{h \to 0}\frac{f(z+h)-f(z)}{h} $$ exists then it would be equal to $$ \lim_{h \to 0}\frac{u(x+h)-u(x)}{h} + i\lim_{h \to 0}\frac{v(y+h)-v(y)}{h} $$ and therefore would exist if they existed. But that doesn’t seem quite right. I also thought about using Cauchy-Riemann equations, but seeing that I’m trying to find ones that are differentiable rather than those that aren’t, I thought they wouldn’t be of much help.
I have a little PHP script which just needs to get all the rows from a table in a SQLite database. The name of the table is always something like 174597131028398082-199534472775860224. This name is composed from two variables (sid and cid) which are defined through the parameters of a GET request. The problem is that instead of returning all the rows (which I would display later in the script), I get this error : SQLSTATE[HY000]: General error: 1 no such table: :sid-:cid. It seems like PHP does not replace :sid and :cid with the correct values. I've seen about a similar problem, but I still can't get it working. Here's my code : $query = "SELECT * FROM `:sid-:cid`;"; $queryparams = array( ':sid' => $_GET['sid'], ':cid' => $_GET['cid'] ); try { $stmt = $db->prepare($query); $result = $stmt->execute($queryparams); } catch(PDOException $ex) { die($ex->getMessage()); } Also, here is how I connect to the database : try { $db = new PDO("sqlite:scores.db"); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); } catch(PDOException $ex) { die($ex->getMessage()); }
Why can't I pass the table name to a prepared PDO statement? $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) { var_dump($stmt->fetchAll()); } Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do $sql = "SELECT * FROM $table WHERE 1"
I have a question on this electronic APIS. If I fly from China to USA and book ticket and check in using Chinese passport, but enter USA using US passport, will this be a problem? I am concerned due the the information mismatch between APIS (immigration) and US passport, there will be a problem entering US? thanks
I am a citizen of two different countries, and have two passports. How should I use my passports when traveling?
How can I show there's exist Bijection between Q x Q and natural numbers (Q × Q ~ N)
I am new to functions and relations, and with some concepts I am not so familiar. I have a question in an homework: Show that $\mathbb{Q} \times\mathbb{Q}$ is denumerable. From what I understood, denumerable means that it is infinitively countable. There are some on the web about this topic, but I am still not understanding their explanation, maybe because they are not explained so easily (for me). From what I understood, a set is denumerable if there's a relation with the natural numbers (but I am still not understanding what is this relation). I have heard also about equinumerous sets (contain a bijective function = onto + one-to-one function), but I cannot relate this information with the problem to try to solve it.
How do I reduce the spacing between the last line of "regular" text and the footer? I tried increasing \footskip, but instead of moving the footer up, this results in the main text wrapping onto the next page earlier... \documentclass[fontsize=11pt, paper=letter, parskip=half, firstfoot=on,]{scrlttr2} \usepackage{lipsum} %\setlength{\footskip}{4cm} \firstfoot{\centering\emph{(please turn)}} \LoadLetterOption{DIN} \begin{document} \begin{letter}{ Foobar\\ } \setkomavar{subject}{It won't work!} \opening{Dear Sir or Madam,} \lipsum \closing{Yours sincerely,} \end{letter} \end{document}
i have the following formatting problem writing a cover letter, using scrttr2`. The main text is very long, but as you can see from the given example - there is a lot of unused space. I want the letter fit to one page; for example by reducing the space to the bottom edge. \documentclass[a4paper,11pt,version=last,ich]{scrlttr2} %Standard: 12 DIV, BOIC 0% \usepackage[utf8]{inputenc} % erkennen von Umlauten % \usepackage[ngerman]{babel} % Silbentrennung nach deutschem Standard % \usepackage{charter} %Schriftart% \KOMAoptions{foldmarks=off,fromrule=false} % die hässlichen Striche am Rand wegmachen % \setkomavar{backaddress}{} % die Unterstreichung der eigenen Adresse weglassen % \usepackage{blindtext} \setkomavar{place}{Mars} % um den Ort hinzuzufügen % \setkomavar{fromname}{Space Cowboy} \setkomavar{fromaddress}{Milkiway 5\\ 99999 Town} \renewcommand*{\raggedsignature}{\raggedright} % um die Unterschrift bündig zu machen % % so kann man den Text direkt unter die Anschrift setzen \setlength{\oddsidemargin}{\useplength{toaddrhpos}} \addtolength{\oddsidemargin}{-1in} % in sind inch % % how can i change this - ist there a more elegant way??? \makeatletter \setlength{\@tempskipa}{-12ex}% \@addtoplength{toaddrvpos}{\@tempskipa} \makeatother \makeatletter \setlength{\@tempskipa}{-12ex}% \@addtoplength{refvpos}{\@tempskipa} \makeatother \makeatletter \setlength{\@tempskipa}{12ex}% \@addtoplength{firstfootvpos}{\@tempskipa} \makeatother \begin{document} \begin{letter} { Sausage Shop\\ Recruiting Management\\ Mr Sausage \\ Street 5 \\ 99999 Town\\ } \opening{Dear Mr Sausage,} \blindtext \\ \blindtext \\ \blindtext \closing{Greets,\\} \setkomavar*{enclseparator}{Anlagen} \encl{Notenspiegel, Excelschein} \end{letter} \end{document}`
I have been facing a serious problem for many months. Usually I get a 2-factor authentication code from 51501 when I am supposed to log into Gmail. But for months I am getting a code from a USA-based mobile number: +15155327373. When I call this number, the ring goes on and on and no one picks up, I am facing this problem since October 2015. There is also a mobile number from Sweden - +46701327805 that sometimes sends the code. I change my passwords every time this happens. What could be the possible reason for this and how to overcome this problem? By the way, - I must say I have been hacked for years. - I don't use VPN; my internet runs off a broadband modem.
I have been facing a serious problem for many months. Usually I get a 2-factor authentication code from 51501 when I am supposed to log into Gmail. But for months I am getting a code from a Sweden-based mobile number: +46701327805. The first code I received from this number was in October 2015. There is also a mobile number from USA that sometimes sends the code. I change my passwords every time this happens. What could be the possible reason for this and how to overcome this problem? By the way, I must say I have been hacked for years. I don't use VPN; my internet runs off a broadband modem.
This particular question was part of a multiple choice question asked in my quiz. I contradicted other $3$ options but this one is true and I have no idea how to prove it. Assume that $f$ is entire and satisfying $Im(f(z)) > 4$ for all $z \in \mathbb{C}$. Then show that $f$ is constant. Kindly shed some light on which result I should use to solve this problem.
$f$ is an entire function, and it satisfies $f(\mathbb{C}) \subseteq \{z \in \mathbb{C} \mid \operatorname{Im} z > 0\}$. Show that $f$ is constant. I want to take advantage of the Liouville's Theorem, but I just can't figure out the relationship between its image part with its module.
When I try give myself my custom command sign using a command block, it says this: [14:16:02] Data tag parsing failed: Unexpected token 'H' at: Honjo Masamune\\",Lore:[\\"The Honjo Masamune is the finest sword ever made.\\",\\"It was created by Masamune,the best swordsmith to ever live\\"]},AttributeModifiers:[{AttributeName:\\"generic.movementSpeed\\",Name:\\"generic.movementSpeed\\",Amount:40,Operation:1,UUIDMost:70725,UUIDLeast:981697},{AttributeName:\\"generic.attackDamage\\",Name:\\"generic.attackDamage\\",Amount:140,Operation:1,UUIDMost:84742,UUIDLeast:31325}],ench:[{id:0,lvl:120},{id:1,lvl:120},{id:2,lvl:120},{id:3,lvl:120},{id:4,lvl:120},{id:5,lvl:120},{id:6,lvl:120},{id:7,lvl:120},{id:8,lvl:120},{id:16,lvl:120},{id:17,lvl:120},{id:18,lvl:120},{id:19,lvl:120},{id:20,lvl:120},{id:21,lvl:120},{id:32,lvl:120},{id:34,lvl:120},{id:35,lvl:120},{id:48,lvl:120},{id:49,lvl:120},{id:50,lvl:120},{id:51,lvl:120}],HideFlags:7,Unbreakable:1}\"}}" Here is the command I'm trying to use: /give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"Honjo Masamune\",\"color\":\"gray\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/give @p iron_sword 1 0 {display:{Name:\\"Honjo Masamune\\",Lore:[\\"The Honjo Masamune is the finest sword ever made.\\",\\"It was created by Masamune,the best swordsmith to ever live\\"]},AttributeModifiers:[{AttributeName:\\"generic.movementSpeed\\",Name:\\"generic.movementSpeed\\",Amount:40,Operation:1,UUIDMost:70725,UUIDLeast:981697},{AttributeName:\\"generic.attackDamage\\",Name:\\"generic.attackDamage\\",Amount:140,Operation:1,UUIDMost:84742,UUIDLeast:31325}],ench:[{id:0,lvl:120},{id:1,lvl:120},{id:2,lvl:120},{id:3,lvl:120},{id:4,lvl:120},{id:5,lvl:120},{id:6,lvl:120},{id:7,lvl:120},{id:8,lvl:120},{id:16,lvl:120},{id:17,lvl:120},{id:18,lvl:120},{id:19,lvl:120},{id:20,lvl:120},{id:21,lvl:120},{id:32,lvl:120},{id:34,lvl:120},{id:35,lvl:120},{id:48,lvl:120},{id:49,lvl:120},{id:50,lvl:120},{id:51,lvl:120}],HideFlags:7,Unbreakable:1}\"}}"},display:{Name:"Custom Sign"}}
I need help with a specific command that I am using in a new game that I am creating inside of Minecraft. The command is: /give @p sign 1 0 {BlockEntityTag:{Text1:"{"text":" [MF2]","color":"gold","clickEvent": {"action":"run_command","value":"tellraw @a [""{"text":"[MF2] ","color":"gold"},{"selector":"@p","color":"dark_aqua"},{"text":" is now an admin of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}"},display: {Name:"Custom Sign"}} If I take out the /tellraw command then the command works fine, but I need the command in there to announce to the game that a new admin has joined. With the tellraw command, the error message is the following: Data tag parsing failed: Unexpected token 't' at: text":" [MF2]","color":"gold","clickEvent":{"action":"run_command","value":"tellraw @a [""{"text":"[MF2] ","color":"gold"}, {"selector":"@p","color":"dark_aqua"},{"text":" is now an admin of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}" If anyone knows how to fix this, please let me know.
I just bought a bicycle/bike tube (20"), when i inflate it, 1 side of it goes big/fat and the other just inflates normally, what should i do? , its happened with some of my other tubes.
I recently bought a pair of inner tubes and when I partially inflated one of them before putting it into the tire (only a few pumps with a floor pump), I noticed a portion of it was bulging out considerably. It looked like a snake who had swallowed a giant mouse, there was a huge bulge on one section of the tire. I went to get my camera to take a photo of it, but it then burst before I could take a photo. Went back to the LBS and got a replacement tube, and when I partially inflate this one it also bulges quite a bit too, although not nearly as extreme as the last one that popped. Is it normal for an inner tube to bulge out as much as this? I'm just worried this one will pop as well.
I'm currently investigating a bug in our system which is related to rounding errors. I just discovered that Math.floor() produces different results when using an operation as argument - e.g.: Math.floor(1681); // produces 1681 Math.floor(16.81 * 100) // produces 1680 Math.floor(16.811 * 100) // produces 1681 Can anyone explain why? This is hurting my brain.
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
I'm new to CSS, and after learning about ID selectors, the only difference between them and class selectors is the fact you can only have one specific id per element, whereas multiple elements can share the same class name. But then it's easy: name an element a class name that you won't use for any other element. So it seems in that sense, a class can be treated as an I.D. I'm new to CSS, so I may be missing something here. What advantage do I get using an ID selector over a class selector in a particular case? Thanks.
What's the difference between <div class=""> and <div id=""> when it comes to CSS? Is it alright to use <div id="">? I see different developers doing this in both ways, and since I'm self taught, I've never really figured it out.
I will first say that I fully understand how to prove this equation from the use of power series, what I am interested in though is why $e$ and $\pi$ should be linked like they are. As far as I know $\pi$ comes from geometry (although it does have an equivalent analytical definition), and $e$ comes from calculus. I cannot see any reason why they should be linked and the proof doesn't really give any insights as to why the equation works. Is there some nice way of explaining this?
Could you provide a proof of Euler's formula: $e^{i\varphi}=\cos(\varphi) +i\sin(\varphi)$?
Yesterday ArcMap crashed and corrupted the toolbar layout of a map I used as model. No TOC, the Menu bar is on the left, ... Nothing dramatic, so I replaced them to something that is more of my liking: I saved, closed my map (to save the display in my Normal.mxt) and reopened the map. I was back at its corrupted "look"! I deleted my Normal.mxt template. Open ArcMap, and it was ok. I added the toolbars I use the most, saved it and made a copy of my Normal.mxt. If I open an new map, the display is fine. If I try to open any existing map (even one created a couple months ago), the display is "re-corrupted" but I know I was fine in that document. I used a script to create 45 maps from the model mentioned earlier, so I expect to them to have the corrupted layout (didn't notice this before creating them). But I don't want to have to replace all my toolbars everytime I open a map I created before. Never had that behavior before. I look like it's the same question as , but I didn't find an answer there for me.
I have a set of Arcmap map templates, the toolbars within them at one time where fixed in position. Now for whatever reason, every time I or another open the template the ordering of the toolbars has changed. Any Idea how to fix this? ****Research**** May be related to this bug.
The standard way of defining the localization of a commutative ring is as follows: given a multiplicatively closed subset $S\subset R$ the localization is defined first by considering the set $R\times S/\sim$ where $$ (r,s) \sim (r',s') \text{ if there exists a } u \in S \text{ such that } u(rs' - r's) =0 $$ the rest is just equipping this set with a ring structure, but my question lies here: why do we want the $u$? Don't we not want nilpotents in our denominator?
Let $A$ be a ring and $S$ a multiplicative closed set. Then the localization of $A$ with respect to $S$ is defined as the set $S^{-1}A$ consisting of equivalence classes of pairs $(a, s)$ where to such pairs $(a,s), (b,t)$ are said to be equivalent if there exists some $u$ in $S$ such that $$u(at-bs)=0$$ Now, in the about the localization of a ring, it says that the existence of that $u\in S$ is crucial in order to guarantee the transitive property of the equivalence relation. I've seen the proof that the equivalence relation defined above is indeed an equivalence relation, but I fail to see how crucial the existence of $u$ is. For example, why doesn't it work if we simply say that two pairs $(a,s),(b,t)$ are equivalent iff $at - bs = 0$? I tried to come up with a counterexample for such case, but failed in the attempt.
Question I have a full name of a type, for example "StrategyA",and I want to get new Strategy(value) that assigned to its interface "IStrategy", how to get it? What I have tries I have tried this: IStrategy strategy; if (strategyName == "StrategyA") { strategy = new StrategyA(value); } else if(strategyName == "StrategyB") { strategy = new StrategyB(date); } ... but when I create a new strategy , I have to add another branch to the code, and I think it is a bad code style. Is there any better way to solve this problem?
Is there a way to create an instance of a class based on the fact I know the name of the class at runtime. Basically I would have the name of the class in a string.
Prove that lim sin (1/x) as x-> 0 does not exist. Not really sure where to go with this, do I approach from both the right and left?
Prove that the following limit does not exist. $$ \lim_{x\to 0} \sin\left(1 \over x\right) $$ Our definition of a limit: Let $L$ be a number and let ${\rm f}\left(x\right)$ be a function which is defined on an open interval containing $c$, expect possibly not at $c$ itself. If for ever $\epsilon > 0$ there exists a corresponding $\delta > 0$ such that $0 < \left\vert\,x-c\,\right\vert \left\vert\,{\rm f}\left(x\right) - L\,\right\vert$ Not really sure how I go about doing this?
How can I change default orientation of swing to RTL? All components of my application must be RTL and I need to change default orientation to RTL. I know we can change Component orientation by this line: Component.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); But if I do this, I must change orietation of all buttons, textfields, ... one by one. My question just is how change default orientation of swing (maybe by use of UIDefaults). If I can't do this, please say best way to implement such project. (All of components must be RTL) for example we can see solution of changing default FONT in swing here: Im looking for same solution for ORIENTATION.
How can i make my Java Swing GUI Components [Right To Left] for Arabic language from NetBeans Desktop Application?
Yep, I think this question has been asked quite a number of times, just thought I should ask based on what I need. I'm currently using a (close to) 4 year old 550D, so I was thinking it was time for me to upgrade. I am now choosing between upgrading to either a 7D or 5D mark II (mark III is pretty out of my price range for now, so hopefully no one suggests the mark III instead). I'm leaning quite heavily towards the 7D, because I'm really very happy with how my current crop lens is serving me quite well for basically every single purpose I use it for, be it portraits, landscapes or even the occasional sports photography like the cheerleading competition I did last week. And also I just bought a cropped aspherical lens which I haven't really gotten around to playing around with, and I'm rather reluctant to sell it without using it much. Upgrading to another crop body like the 7D would allow me to keep all these and save me the trouble of upgrading lenses together with the camera. But there's the issue of the 7D and 550D having the same sensor, I feel like I will be upgrading just for better functionality and build. On the other hand, the 5D mark II obviously will have better image quality, but it's the thought of upgrading my lenses together with the camera that turns me off, it just feels like extra cost on top of the already more expensive 5D mark II, which I don't think be able to afford (the lenses, not the body). The only EF lens I own is the 50mm f1.8, which isn't flexible enough for my needs. For the record, I do mainly travel-type photography and some cosplay portraits whenever there are conventions. Anything else is based on what I feel like shooting at that time. My current main lens is the Sigma 18-200mm, which I really love due to its versatility, I feel like there's nothing I can't take with this lens. One of my ideas was to upgrade to the 7D first, then slowly phase out my crop lens and introducing FF lenses to my inventory, then make the jump to FF when I think I need another upgrade. Do you guys think this is a good idea, or should I make the direct jump to FF? My priority right now is actually cost, because I'm not really working as of now so I have no income, but its the allure of higher image quality in the 5D II that's giving me a headache. Any advice would be welcome here. Thanks a lot in advance.
Today I own a Digital Rebel XSi and the only EF-S lens I have are those that came in the kit. I've been reading a lot trying to decide for my next body, but oh boy, what a tough decision! I'm between the 5D Mark II and the 7D. Among the type of pictures I plan to take are: Portraits; Landscape/Nature Pictures at parties and other environments in low light condition. Should I go 5D Mark II or 7D? Updated for clarification: "the only EF-S lens I have are those that came in the kit." does not mean I only have the kit lens. It means my investment in EF-S lenses is limited to those that came in the kit. Besides the kit lens, I do also have a and a . Neither of which are EF-S lenses. I also have a . I have found that under some situations where I can't use the speedlite, I have already maxed out shutter speed, aperture and ISO settings on my XSi. That's the reason for wanting to upgrade to a body that offers better ISO and performance under low light conditions.
I've got a pretty simple question: Is a question asking why people dislike/like something appropriate for discussion on Stack Exchange websites? For instance, if somebody asked, "Why do some people dislike HTML?" would that be okay for Stack Overflow, and if not would there be a different way to word it, in a way which might not sound as aggressive or angry?
I would like to ask a question about Java that doesn't have a specific answer. It's a question to see what people think and to share their opinion. Will Stack Overflow tolerate this, or is there another Stack Exchange resource where I may ask a question like this?
Is there ever an advantage of declaring a struct in C++? Why shouldn't I just make a class consisting only of data members(i.e. no methods)? Thanks,
In what scenarios is it better to use a struct vs a class in C++?
Suppose we have two co prime numbers a and b. Then it is always possible to form any number greater than or equal to a*b - a - b +1 by using the given co primes only that is ax + by where x and y will be non negative integers. I can't seem to find the logic behind it? How it is happening and why?
e.g. given two numbers $5$ and $6$ the maximum number is $19$, as after $19$ each number can be formed using equation $5n+6m$ by putting different (non-negative) values for $n$ and $m$. Such number is not possible for $4$ & $6$. I am not sure how to go-forward. The only thing I have till now is that the number is possible only if the given numbers are pseudo-prime. Any help is appreciated.
I'm curious if the order implies anything here. I'm pretty sure "Mom and Dad" is standard in English. The issue was hard for me to google, so I'm asking it here: Is using "Dad" before "Mom" incorrect, or is it just not often seen/bad practice? I see both, but "Mom and Dad" is far more prevalent. Edit: What puzzles me is that usually masculine comes before feminine. The given umich article on word order is quite instructive, and I have yet to read all of it. In Chinese and I think Spanish, the father comes first usually. Now that I think of it, I think German features "Mutter & Vater" more often. Probably carried over into English. Edit 2: Some reveals that "Mom and Dad" is far more prevalent during 2005-2013. It can make a difference though, as in an example I found: "I became my girls’ Dad and Mom when one was four years, the other three months old." This is quite clearly in the voice of the father, as shown .
Is there a word or phrase for two nouns or adjectives joined by a conjunction (usually "and") in a fixed sequence? alive and well fast and furious hat and gloves pen and pencil law and order wit and wisdom salt and pepper bacon and eggs horse and carriage Adam and Eve ladies and gentlemen loud and clear heads or tails yes or no dead or alive
How do I make Ubuntu 16.04 not ask me for my password? I have turned on and off the autologin on my user on System Settings > User Accounts (the only user) but it stills ask me for password on the startup. Ubuntu was not asking for password at startup until I upgraded from 14.04 to 16.04. Any ideas? Thank you.
I want user foo to auto-login using LightDM (which has been used by Ubuntu since version 11.10). How would I do that?
In 2014 has any SEO value rewriting urls? If my site consistently links product page, and that product page shows a consistent canonical url, is there a real SEO doing this http://example.com/products/woman-tracksuit-in-hemp instead of this http://example.com/product.php?id=6588 I know that a human being would be more comfortable with a rewrited url, but I would like to focus on SEO and bots, especially Google
A coworker and I are locked in a debate over the value of SEO keywords in the URL of a page. She wants to change all the filenames of the HTML pages of a fencing company so they look like residential-home-chicago.html, contact-chicago-contractor.html, and so on. She is convinced that because Google highlights keywords in URLs in search results, that means that putting keywords here is more valuable. My position is that these do not improve SEO, since Google doesn't seem to give keywords in the URL any more weight than keywords in the body of the page, and . In the meantime, they make it harder for me to find the pages I want when its time to edit them, and the site as a whole looks cheap and spammy. suggests to me that yes, keywords in URLs are useful, but not superior, and that they are more useful for human readability than search engine rankings. I'm looking for authoritative sources that support either position, not blog articles from SEO optimization companies trying to promote themselves.
I'm trying to read an excel sheet and displaying contents to console. the code is here FileStream fileStream = new FileStream(@"E:\USERS\MyWorkbook.xlsx", FileMode.Open, FileAccess.Read); byte[] byteCode = new byte[fileStream.Length]; fileStream.Read(byteCode, 0, (int)fileStream.Length); foreach (var byteValue in byteCode) { Console.Write(Convert.ToChar(byteValue)); } Console.ReadLine(); the output is PK♥♦¶ ♠ ! bî?h^☺ ?♦ ‼☻[Content_Types].xml ¢♦☻(  ☻ ¬?ENA0►E÷HüCä-Jܲ5í?Ç↕*Q>AÄ?ƪc[?iiÿ??û►B¡§j7±↕IÜ{2ñIh²nm¶??Æ»R♀??EAU^←7/>ÅÇ ì%¿↨↓?rZYï ¶←@1↓__?f? ?q·AR4DáAJ¬→h§▬>?a?UÇV◄߯1♀ªZ"9EUAàNV_◄8EcO►aÑ‼Oji){^óa-I♦ ?"{Ü▬v^¥P!XS)bR1rú?K_s(,3O`▬_§ïßeÖ↔♦»ß1æ►@(?a?sí?►[í?☼öB·LA?F←I↔"fKlk↑--¿$♣?A pN$å What's wrong with it?
Is there a free or open source library to read Excel files (.xls) directly from a C# program? It does not need to be too fancy, just to select a worksheet and read the data as strings. So far, I've been using Export to Unicode text function of Excel, and parsing the resulting (tab-delimited) file, but I'd like to eliminate the manual step.
A couple of days ago I installed Firefox developer edition using the command line but it seems to have removed my 'standard' Firefox. No matter what I try I cannot get it back, I've followed guides online which say they completely remove Firefox but then when I reinstall it from the software center I'm using the developer edition again. Is there a way to fix this? I'd like to have both the standard & developer edition installed ideally.
Mozilla released the Firefox Developer Edition! How do I install it on Ubuntu? Source:
I bumped in to an error when trying to overload operator = Not sure what is wrong with the code. Thanks for help! Here is my code: matrix.h namespace MATRIX{ class Matrix{ // other private methods public: // other public methods template < typename T > Matrix& operator=(std::list<T> & data) ; } }; matrix.cu namespace MATRIX{ // other definitions template < typename T > Matrix& Matrix::operator=(list<T> & data) { // method definition } } test.cu #include <list> #include "matrix.h" // other includes int main(void){ using namespace std; using MATRIX::Matrix; Matrix k_matrix; list<double> k_list(100); // initialize k_list k_matrix = k_list; } Build nvcc -c matrix.cu nvcc -o test test.cu matrix.o Error on second command tmpxft_00001f0f_00000000-3_test.cudafe1.cpp:(.text+0x202): undefined reference to`MATRIX::Matrix& MATRIX::Matrix::operator=<double> (std::list<double, std::allocator<double> >&)'
Quote from : The only portable way of using templates at the moment is to implement them in header files by using inline functions. Why is this? (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)
If an electromagnetic waves frequency is generated by the change of voltage / current in a wire or a atom decaying to get gamma waves. What is the highest frequency possible give the faster the change in voltage/currect the higher frequencies generate? So as the frequency goes up and as the change in voltage/current becomes instant, (if possibe) what is the state on the wave between the upper and lower limits of the wave? Is this a state possible?
In an alternating current, the flow of electric charge periodically reverses direction, and the number of times it does that is called the frequency of the current. However, if the frequency of an AC is made infinite, would any current flow? I asked this question to my school teacher and he was unable to provide me with an answer unfortunately. If I consider a horizontal wire, through which an AC is flowing, then I can say that an electron in the wire is moving 50 times left and 50 times right, if the frequency is assumed to be 50Hz. It seems to me that if I increase the frequency, the displacement of the electrons in both the directions, that is left and right, will gradually decrease, and finally become 0, when frequency is infinite, thus making I = 0. What have I got wrong?
This is my Api and i need to pass values for Passport number Expiry data and other fields i know to pass data when its just normal values. I am not sure how to pass data inside the Dictionary Passport field { "CustomerID":0, "UploadType":"String", "Passport": { "PassportNumber":"String", "ExpiryDate":"\/Date(-62135596800000-0000)\/", "CountryOfIssue":"String", "FileName":"String", "FileDescription":"String", "FileExtension":"String", "MimeType":"String", "FileData":"AA==" }, "RequestID":"String" } I tried this but it didnt work out NSString *urlString =[NSString stringWithFormat:@"UploadPassport/?CustomerID=%@&UploadType=%@&Passport=&PassportNumber=%@&ExpiryDate=%@&CountryOfIssue=%@&FileName=%@&FileDescription=%@&FileExtension=%@&MimeType=%@&FileData=%@",customerID,uploadType,passportNumber,expiryDate,CountryIssue,fileName,fileDesc,fileExtn,mimeType,fileData];
With all the URL-handling objects lying around in the standard Cocoa libraries (NSURL, NSMutableURL, NSMutableURLRequest, etc), I know I must be overlooking an easy way to programmatically compose a GET request. Currently I'm manually appending "?" followed by name value pairs joined by "&", but all of my name and value pairs need to be manually encoded so NSMutableURLRequest doesn't fail entirely when it tries to connect to the URL. This feels like something I should be able to use a pre-baked API for.... is there anything out of the box to append an NSDictionary of query parameters to an NSURL? Is there another way I should approach this?
What is the LaTex command for common notation for time scale as shown in picture?
I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?
I'm trying to install Google Chrome in my Ubuntu 11.10 OS however I'm getting this error: $ sudo dpkg -i google-chrome-stable_current_amd64.deb [sudo] password for xybrek: Selecting previously deselected package google-chrome-stable. (Reading database ... 167351 files and directories currently installed.) Unpacking google-chrome-stable (from google-chrome-stable_current_amd64.deb) ... dpkg: dependency problems prevent configuration of google-chrome-stable: google-chrome-stable depends on gconf-service; however: Package gconf-service is not installed. google-chrome-stable depends on libgconf-2-4 (>= 2.31.1); however: Package libgconf-2-4 is not installed. google-chrome-stable depends on libx11-6 (>= 2:1.4.99.1); however: Version of libx11-6 on system is 2:1.4.4-2ubuntu1. dpkg: error processing google-chrome-stable (--install): dependency problems - leaving unconfigured Processing triggers for gnome-menus ... Processing triggers for desktop-file-utils ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for man-db ... Errors were encountered while processing: google-chrome-stable
Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found: $ sudo apt-get install vlc Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package vlc
So after installing Ubuntu, I wanted to get rid of Windows. So I installed GParted and then looked through it. I deleted just 1 Partition and restarted my System. Now ever since I installed Ubuntu(Which is today), everytime I booted-up my PC, it would automatically go onto Windows and then I'd have to boot-up Ubuntu from there. And since I've deleted 1 Partition, I cannot get back into Windows. All it shows is the Troubleshooting-Panel and what OS I want to boot-up(Luckily enough, I can still boot-up Ubuntu). I really want to recover this Windows Partition. I'm really scared in case I can't get Windows back or I've broken a really important part of my PC.
I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions (C:) Vista (D:) Entertainment (E:) Work (F:) Sources and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB. I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse? I need these data badly as I don't have a backup for them.
Has the travel ban been fully revoked formcitzens of Syria and others? Is it possible to apply for a Visitor visa if you are a syrian Citizen? I know the odds are slim when it comes to getting one but can one still apply?
About the Muslim ban (executive order 13769) I've searched about it and what I could understand is that people from Iran, Libya, North Korea, Somali, Syria, Yemen and Venezuela are banned from entering the US or getting a US Visa. My question is until when will the people from these countries will stay banned, and can those people now in May 2019, get a Visa for the US or enter it normally?
I'm trying to create a grass effect on a small landscape I've created. My current approach is to use a hair particle system, and style the hairs to look like grass. I've got a simple particle system added, and adjusted a few settings (note: I haven't made the grass green yet. It's just grey for now), but for some reason the particles don't go on certain parts of the mesh: You can see that to the left of the "lake" there is a lot of missing particles, in triangular areas. Although this screenshot was taken in rendered 3d view, it also has the same issue when I press the render button and do a "true" render. Here's some of the geometry: Any ideas why it isn't completely covered with particles?
My scene involves a plane that has several modifiers: Subdivide, set to six. Array, set to -1 Y axis Array, set to +1 X axis Displace with a basic cloud texture I tried following Andrew Price's tutorial on realistic grass, by adding the default hair particle system to the plane and setting the render to a group of grass, but the grass only appears in a small space in the render. What am I doing wrong?
I got "yellow card" from StackOverflow with message "Your review on triage/### wasn't helpful". I do not complain about it. Purpose of this post is to fill the bug. The problem is that I knew about getting yellow card wrong way. I became aware of it only when I manually directed browser to review queues page . StackOverflow usually invites you to participate in review by displaying red dot on review queues icon. In my case I saw red dot and when I pressed review queues icon I saw message "There are no review queues available to you" (without any clickable URLs). Well, it could be that queue got cleared before I clicked icon or some glitch. But when I saw it appear again and again with the same message and without any URLs I wondered what could be the case and visited reviews page by directly specifying URL in browser. Red dot disappeared once I visited review page and saw the warning so it is OK. The problem is that red dot appears with no actionable URLs or explanation so user has no chances to know that something strange happens. It would be nice to add some clickable item under message "There are no review queues available to you" or make this message clickable so user could see what is going on.
This is not a duplicate of , because this reports different things from that question. That question is specifically about the case where the user has run out of daily reviews; this question reports different problems outlined in the below bullets. While this post also formerly covered that, that has since been edited out. The review queues indicator shows all reviews in a queue a user has access to, no matter if that user is able to review them. As a result, there are various circumstances where the review indicator gives false information: There are items in a queue which the user does not have the reputation to review. (I only know of this happening in the suggested edits queue, where tag wiki edits land in the same queue as post edits.) This once . The only pending edits in the suggested edits review queue are the user's own tag wiki edits. (Users with 5,000 reputation but less than 20,000 can review tag wiki edits, but can't bindingly edit them.) There is a single pending suggested edit, which is currently being reviewed by someone else and has been "checked out" to that reviewer. The reviewer has already voted on a post in the queue (e.g. flagging a current Low Quality post as NAA or VLQ externally, or externally voting to close or reopen a post currently in one of those queues) The reviewer has skipped reviews The user has reviewed all items in a queue, but they have not left it yet There have been numerous calls to fix all different aspects of this, as you can see by the links above. However, at heart it is all one problem: the indicator appears for queues when a user can’t review the items in the queue. I suggest solving this problem once and for all, by making sure that users are not notified for reviews they can do nothing about. So here’s my plea: please don’t show us the indicator for reviews we cannot perform!
I am considering including duplicating to bluray once or twice a year into my backup strategy and would appreciate input on pros and cons. Advantages I assume: immune to EMP/electric surge Disadvantages I assume: slow limited space only write once Am I correct in my assumptions? What other advantages and disadvantages do this medium have? What is the life expectancy of an optical disc? How far from an atomic blast will they survive? Edit: I do not feel that my question is a duplicate of the suggested questions. Their answers do contain relevant information but the questions themselves have a different primary focus.
This question was inspired by . There have been other similar questions, but none with the same criteria. This is two questions in one. How do you store financial/critical records that should survive anything but a fire and should be available for decades? Lets say I want to store family photos/videos and want people do be able to find them in storage 100 years from now and still be able to use them. How would this be done? Criteria Long term means 30+ years guaranteed. 100+ years average. [If this is not practical, use the closest solution] High volume means a couple terabytes. Answers can be 'no-compromise/industrial' solutions or practical solutions for the home office/small business user. Media will not be active during the timespan. (i.e., if you suggest hard drives, they will not be spinning). Further, there is no expectation of needing to read these archives. They are there for emergency or "for future generations" purposes. Should not require maintenance (if at all possible). My thoughts: CD-R/DVD-Rs have proven to me, even in the short term, to be a terrible medium for backups. They seem to be very fragile and seem to lose their data a very short time even when in pristine condition. I can't help but think that storing data on a couple of 1TB hdd's and then expecting them to spin up correctly a decade or two later to be a terrible idea. Am I wrong? Industrial tape drives seem like a viable option?
I've installed Ubuntu in one disk and windows 10 is in another disk. I'm not able to boot into windows 10. So to reinstall, I need that windows 10 key. How can I recover windows 10 key from my Ubuntu? I can able to mount my Windows disk in Ubuntu.
My new laptop came preinstalled with Windows 8. Naively, as I am, I just formatted the harddrive and installed fine old Ubuntu. Now I want to install Windows 8 for dual boot again, but I have no DVD and do download the ISO one needs a product key. That key is not on the back of the laptop anymore but somewhere on the mainboard. Is there any way to recover the product key from the mainboard using Ubuntu?
I need to print all digets of some double number. I have following code: double number; while (number != floor (number)) number = number * 10; But when number = 0.222, I have following result 22200000000000004. How can I avoid this inaccuracy. P.S. I can use only double, so I can't parse this like a string.
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
I am trying to create a script to protect my formulas in sheets that co-workers will use. I have 10 workbooks with 26 sheets each, all are virtually identical as far as the the locations of the protected and unprotected ranges. As far as I can tell the best way to do this is to protect the whole sheet then unprotect certain cells for data entry. This is the script I have so far, I've cut out about 90% of the ranges I need unprotected to make it smaller. function ProtectRanges() { var sheet = SpreadsheetApp.getActiveSheet(); var protection = sheet.protect().setDescription("Protect Formulas"); var unprotected = sheet.getRange("S6:AF51") sheet.getRange("S66:AF66") sheet.getRange("S70:AF70") sheet.getRange("S72:AF72") var me = Session.getEffectiveUser(); protection.addEditor(me); protection.removeEditors(protection.getEditors()); if (protection.canDomainEdit()) { protection.setDomainEdit(false); } } The problem I'm having is that the people that I share this with can't edit any of the cells, protected or not. I need to be the only one who can edit the formulas, but the data entry cells need to be open for them to edit.
I have created 50 spreadsheets for 50 students. Each spreadsheet contains 33 sheets, numbered 1 to 33, along with a couple of other sheets. Within each of these 33 sheets, there are many protected ranges. I accidentally protected a range that ought not to have been protected. So, with 50 students each having 33 sheets, I have over 1800 sheets to unprotected. I want to loop through each sheet, 1 to 33, and remove protection from cell F15. Right now, I (the owner) am the only editor. Since I'm not an actual programmer, I've clearly not done this properly. Can someone offer a suggestion of how I can change my Google Script to make this work? var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheets = ss.getSheets(); for (var i=2; i <sheets.length; i++) { var sheet = ss.getSheets()[i]; sheet.activate(); SpreadsheetApp.flush(); var range = sheet.getRange('F15'); var protection = range.protect().setDescription('Protected range'); var me = Session.getEffectiveUser(); protection.addEditor(me); protection.removeEditors(protection.getEditors()); if (protection.canDomainEdit()) { protection.remove(); } //end of if statement }
Let $T = \lambda z + \mu \bar z$ where $\lambda, \mu \in \mathbb{C}$. Show that $T$ is bijective exactly when $\lambda \bar\lambda \ne \mu \bar\mu$.
We consider $T:\mathbb{C}\to\mathbb{C}$ defined by $T(z)=\lambda z+\mu\overline{z}$, where $\lambda ,\mu\in\mathbb{C}$. I want to prove that if $T$ is injective, then $\lambda\cdot\overline{\lambda}\neq\mu\cdot\overline{\mu}$. Clearly, if $\mu =0$, then $\lambda\neq 0$ because $T$ is injective. Now, if $\lambda\cdot\overline{\lambda}=\mu\cdot\overline{\mu}$ and $\mu\neq 0$, then I wanted to find a $z\in\mathbb{C}\setminus\{0\}$ such that $z=-\dfrac{\overline{\lambda}}{\overline{\mu}}\overline{z}$, because we would have that: $T(z)=-\lambda\dfrac{\overline{\lambda}}{\overline{\mu}}\overline{z}+\mu\overline{z}=\overline{z}(-\lambda\dfrac{\overline{\lambda}}{\overline{\mu}}+\mu)=0$ ('Cause this would prove that $\lambda\cdot\overline{\lambda}=\mu\cdot\overline{\mu}$ implies $T$ is not injective.) So, the question is, can we always find such a $z\in\mathbb{C}\setminus\{0\}$?
I find viewing everyone else's deleted answers kind of distracting, and sometimes it's hard to not pass judgement when viewing some of them. Any chance of getting an option to be able to just not load them?
When Stack Exchange site users reach (or for beta sites) they can view deleted posts. This can be very useful but deleted answers stay in their default ordering unless sorted by votes, so viewing a question with a lot of deleted answers can be cumbersome if you only want to see non-deleted posts. The at is a particularly good example: Can we have an option to not show deleted answers? This is not a dupe of because, as : That was posted 6 years ago and the resolution was to just simply sort deleted posts to the end. This is asking for the ability to toggle viewing them at all. It'd at least be nice to revisit the issue, 6 years later
Please help me, my thL T6 pro device has enough memory available but I can't download. It's so annoying. Please help me. Available storage 3.5g but it says insufficient storage.
In "Settings" > "SD card & phone storage settings" under "Internal Phone Storage" it lists "Available Space" as 13.78MB. I'm trying to install an app that is 2.38MB. Why do I get the "Insufficient storage available" error message? I clearly have enough space. If it's relevant, my phone is an LG Optimus V.
I came across the following code structure in C++: uint32_t AClass::Action(....) { .. status = ::Action(...); .. } I am not sure what ::Action() means. Which class does it belongs to? NOTE: the argument list of ::Action(...) is different from AClass::Action(...).
In C++, what is the purpose of the scope resolution operator when used without a scope? For instance: ::foo();
I have the following hierarchy: class Base { public Base(string sMessage) { //Do stuff } } class Derived : Base { public Derived(string someParams) { string sMessage = "Blah " + someParams; //Here I want to call the base constructor //base(sMessage); } }
If I inherit from a base class and want to pass something from the constructor of the inherited class to the constructor of the base class, how do I do that? For example, if I inherit from the Exception class I want to do something like this: class MyExceptionClass : Exception { public MyExceptionClass(string message, string extraInfo) { //This is where it's all falling apart base(message); } } Basically what I want is to be able to pass the string message to the base Exception class.