qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
35,824,750
``` ;WITH tblEmployee AS ( SELECT * FROM (VALUES (1, 'Tom', 'Male', 4000, 1), (2, 'Pam', 'Female', 3000, 3), (3, 'John', 'Male', 3500, 1), (4, 'Sam', 'Male', 4500, 2), (5, 'Todd', 'Male', 2800, 2), (6, 'Ben', 'Male', 7000, 1), (7, 'Sara', 'Female', 4800, 3), (8, 'Valarie', 'Female', 5500, 1), (9, 'James', 'Male', 6500,...
2016/03/06
[ "https://Stackoverflow.com/questions/35824750", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
"SQL Intelligent Joins" is a rare phrasing. In fact, the only solid reference (as well as the dataset in this question) comes from a YouTube SQL tutorial: [Advanced or Intelligent Joins by Kudvenkat](https://youtu.be/GKGtOABAO9s?t=199) In short, "intelligent joins" are cleaner in syntax, and far more explicit in decl...
OP's assumption is correct, the following are a few aspects about `SQL` *JOIN* syntax that will be helpful for beginners to understand once they have grasped the concept of what a *join* is. Its often not enough to know that something is correct or works, we need to understand the reasons behind it. > > [This answer ...
243,322
State should include at least the following: * All settings set via SetStreamResource() * Indices I have a class whose Draw() function will call SetStreamResource, set Indices and eventually call DrawIndexedPrimitive(). I would like to restore the device state before Draw() returns. I am looking for something along ...
2008/10/28
[ "https://Stackoverflow.com/questions/243322", "https://Stackoverflow.com", "https://Stackoverflow.com/users/45603/" ]
State blocks are the mechanism provided by the API to save and restore chunks of device state. I cover the details of state blocks in Chapter 3. Direct3D Devices from my book [The Direct3D Graphics Pipeline](http://www.xmission.com/~legalize/book/download/). You can download the PDF for that chapter from the link above...
Looks like these will do it: ``` Microsoft::DirectX::Direct3D::Device::BeginStateBlock Microsoft::DirectX::Direct3D::Device::EndStateBlock ```
59,138,825
I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. Currently, I am able to send out messages already, but without emojis. When I include emo...
2019/12/02
[ "https://Stackoverflow.com/questions/59138825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11690017/" ]
It works for me: ``` from selenium import webdriver JS_ADD_TEXT_TO_INPUT = """ var elm = arguments[0], txt = arguments[1]; elm.value += txt; elm.dispatchEvent(new Event('change')); """ browser = webdriver.Chrome('C:\\Python37\\chromedriver.exe') browser.get("https://google.com/") elem = browser.find_element_...
You can use ``` js_code = """ var elm = arguments[0], txt = arguments[1]; elm.value += txt; elm.dispatchEvent(new Event('change')); """ your_text = 'this my text ' element = driver.find_element_by_xpath('//*[@data-testid="input"]') driver.execute_script(js_code, element, your_text) ```
59,138,825
I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. Currently, I am able to send out messages already, but without emojis. When I include emo...
2019/12/02
[ "https://Stackoverflow.com/questions/59138825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11690017/" ]
This error message... ``` selenium.common.exceptions.WebDriverException: Message: unknown error: ChromeDriver only supports characters in the BMP ``` ...implies that the **ChromeDriver** was unable to send the **emoji** signal through `send_keys()` method. [ChromeDriver only supports characters in the BMP](https://...
there was an open bug on chrome driver website, the bug as been fixed this month (14.11.21) <https://bugs.chromium.org/p/chromedriver/issues/detail?id=2269> this is the bug report. **how to use new chrome driver:** first go to: <https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=W...
59,138,825
I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. Currently, I am able to send out messages already, but without emojis. When I include emo...
2019/12/02
[ "https://Stackoverflow.com/questions/59138825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11690017/" ]
This error message... ``` selenium.common.exceptions.WebDriverException: Message: unknown error: ChromeDriver only supports characters in the BMP ``` ...implies that the **ChromeDriver** was unable to send the **emoji** signal through `send_keys()` method. [ChromeDriver only supports characters in the BMP](https://...
Here is how I fixed this using VBA and ChromeDriver in Excel SeleniumBasic: ``` objIE.ExecuteScript "arguments[0].value = arguments[1]", Array(objIE.FindElementById("sqlvalue1"), Sheets("SheetName").Range("A1").Value) ``` This avoids using `SendKeys` which is what errors when it is run with this error message.
59,138,825
I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. Currently, I am able to send out messages already, but without emojis. When I include emo...
2019/12/02
[ "https://Stackoverflow.com/questions/59138825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11690017/" ]
Copy & Paste it !!! It was so easy to round on this issue by copying the text to the clipboard and then pasting it into the element. [![pasting a text that contains emojis](https://i.stack.imgur.com/X9GFT.png)](https://i.stack.imgur.com/X9GFT.png) ``` import pyperclip from selenium import webdriver from selenium.webdr...
You can use ``` js_code = """ var elm = arguments[0], txt = arguments[1]; elm.value += txt; elm.dispatchEvent(new Event('change')); """ your_text = 'this my text ' element = driver.find_element_by_xpath('//*[@data-testid="input"]') driver.execute_script(js_code, element, your_text) ```
59,138,825
I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. Currently, I am able to send out messages already, but without emojis. When I include emo...
2019/12/02
[ "https://Stackoverflow.com/questions/59138825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11690017/" ]
there was an open bug on chrome driver website, the bug as been fixed this month (14.11.21) <https://bugs.chromium.org/p/chromedriver/issues/detail?id=2269> this is the bug report. **how to use new chrome driver:** first go to: <https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=W...
You can use ``` js_code = """ var elm = arguments[0], txt = arguments[1]; elm.value += txt; elm.dispatchEvent(new Event('change')); """ your_text = 'this my text ' element = driver.find_element_by_xpath('//*[@data-testid="input"]') driver.execute_script(js_code, element, your_text) ```
59,138,825
I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. Currently, I am able to send out messages already, but without emojis. When I include emo...
2019/12/02
[ "https://Stackoverflow.com/questions/59138825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11690017/" ]
It works for me: ``` from selenium import webdriver JS_ADD_TEXT_TO_INPUT = """ var elm = arguments[0], txt = arguments[1]; elm.value += txt; elm.dispatchEvent(new Event('change')); """ browser = webdriver.Chrome('C:\\Python37\\chromedriver.exe') browser.get("https://google.com/") elem = browser.find_element_...
Here is how I fixed this using VBA and ChromeDriver in Excel SeleniumBasic: ``` objIE.ExecuteScript "arguments[0].value = arguments[1]", Array(objIE.FindElementById("sqlvalue1"), Sheets("SheetName").Range("A1").Value) ``` This avoids using `SendKeys` which is what errors when it is run with this error message.
59,138,825
I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. Currently, I am able to send out messages already, but without emojis. When I include emo...
2019/12/02
[ "https://Stackoverflow.com/questions/59138825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11690017/" ]
This error message... ``` selenium.common.exceptions.WebDriverException: Message: unknown error: ChromeDriver only supports characters in the BMP ``` ...implies that the **ChromeDriver** was unable to send the **emoji** signal through `send_keys()` method. [ChromeDriver only supports characters in the BMP](https://...
You can use ``` js_code = """ var elm = arguments[0], txt = arguments[1]; elm.value += txt; elm.dispatchEvent(new Event('change')); """ your_text = 'this my text ' element = driver.find_element_by_xpath('//*[@data-testid="input"]') driver.execute_script(js_code, element, your_text) ```
59,138,825
I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. Currently, I am able to send out messages already, but without emojis. When I include emo...
2019/12/02
[ "https://Stackoverflow.com/questions/59138825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11690017/" ]
It works for me: ``` from selenium import webdriver JS_ADD_TEXT_TO_INPUT = """ var elm = arguments[0], txt = arguments[1]; elm.value += txt; elm.dispatchEvent(new Event('change')); """ browser = webdriver.Chrome('C:\\Python37\\chromedriver.exe') browser.get("https://google.com/") elem = browser.find_element_...
there was an open bug on chrome driver website, the bug as been fixed this month (14.11.21) <https://bugs.chromium.org/p/chromedriver/issues/detail?id=2269> this is the bug report. **how to use new chrome driver:** first go to: <https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=W...
59,138,825
I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. Currently, I am able to send out messages already, but without emojis. When I include emo...
2019/12/02
[ "https://Stackoverflow.com/questions/59138825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11690017/" ]
there was an open bug on chrome driver website, the bug as been fixed this month (14.11.21) <https://bugs.chromium.org/p/chromedriver/issues/detail?id=2269> this is the bug report. **how to use new chrome driver:** first go to: <https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=W...
Here is how I fixed this using VBA and ChromeDriver in Excel SeleniumBasic: ``` objIE.ExecuteScript "arguments[0].value = arguments[1]", Array(objIE.FindElementById("sqlvalue1"), Sheets("SheetName").Range("A1").Value) ``` This avoids using `SendKeys` which is what errors when it is run with this error message.
59,138,825
I am automating whatsapp messages and would like to send them out through a tkinter window. In this tkinter window I have created a message box with the help of .label() and I am able to connect to whatsapp web through selenium. Currently, I am able to send out messages already, but without emojis. When I include emo...
2019/12/02
[ "https://Stackoverflow.com/questions/59138825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11690017/" ]
This error message... ``` selenium.common.exceptions.WebDriverException: Message: unknown error: ChromeDriver only supports characters in the BMP ``` ...implies that the **ChromeDriver** was unable to send the **emoji** signal through `send_keys()` method. [ChromeDriver only supports characters in the BMP](https://...
Copy & Paste it !!! It was so easy to round on this issue by copying the text to the clipboard and then pasting it into the element. [![pasting a text that contains emojis](https://i.stack.imgur.com/X9GFT.png)](https://i.stack.imgur.com/X9GFT.png) ``` import pyperclip from selenium import webdriver from selenium.webdr...
37,371,081
Here is the mongodb documentation <https://docs.mongodb.com/manual/reference/configuration-options/> it specifies that > > The IP address that mongos or mongod binds to in order to listen for > connections from applications. You may attach mongos or mongod to any > interface. When attaching mongos or mongod to a p...
2016/05/22
[ "https://Stackoverflow.com/questions/37371081", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2446144/" ]
On `bindIp` ----------- **`127.0.0.1`** by convention is the IP address of [localhost](https://en.wikipedia.org/wiki/Localhost) and is bound to the loopback interface, which is only accessible from the same machine. Using this address as default is best practice, since doing so makes it impossible to accidentally exp...
In my case i change **bindIp** to 0.0.0.0 in **/etc/mongod.conf** > > sudo nano /etc/mongod.conf > > > ``` # network interfaces net: port: 27017 bindIp: 0.0.0.0 ```
22,578,328
I have multiple backend servers continuously building and refresing the public parts of an api in order to cache it. The backend servers are builing depending on what has to be done in the job queue. At a time, backend server 1 will build : ``` /article/1.json /article/5.json ``` backend server 2 will build : ``` ...
2014/03/22
[ "https://Stackoverflow.com/questions/22578328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1277413/" ]
You don't say how long it takes to build a single article, but assuming it's not horrifically slow, I think you'd be better off letting the app servers build the pages on the fly and having the front end servers doing the caching. In this scenerio you could put some combination of haproxy/varnish/squid/nginx in front o...
If you don't want to hit the rails stack, you catch the request with something like rack-cache before it ever reaches the whole app: <http://rtomayko.github.io/rack-cache/> At least that way, you only have to bootstrap rack. It also supports memcached as a storage mechanism: <http://rtomayko.github.io/rack-cache/sto...
22,578,328
I have multiple backend servers continuously building and refresing the public parts of an api in order to cache it. The backend servers are builing depending on what has to be done in the job queue. At a time, backend server 1 will build : ``` /article/1.json /article/5.json ``` backend server 2 will build : ``` ...
2014/03/22
[ "https://Stackoverflow.com/questions/22578328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1277413/" ]
You don't say how long it takes to build a single article, but assuming it's not horrifically slow, I think you'd be better off letting the app servers build the pages on the fly and having the front end servers doing the caching. In this scenerio you could put some combination of haproxy/varnish/squid/nginx in front o...
You are right, S3 is pretty slow by itlsef, especially HTTPS session setup can take up to 5-10 seconds. But S3 is the ideal storage for primary data, we use it a lot but with combination of **S3 Nginx** proxy to speed data delivery up and inject caching facilities. Nginx S3 proxy solution well tested on production and...
6,414,816
When writing a query using C# LINQ syntax, is there a way to use the Queryable.SelectMany method from the keyword syntax? For ``` string[] text = { "Albert was here", "Burke slept late", "Connor is happy" }; ``` Using fluent methods I could query ``` var tokens = text.SelectM...
2011/06/20
[ "https://Stackoverflow.com/questions/6414816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/449837/" ]
Yes, you just repeat the from ... in clause: ``` var words = from str in text from word in str.Split(' ') select word; ```
You can use a [Compound from Clause](http://msdn.microsoft.com/en-us/library/bb383978.aspx): ``` var tokens = from s in text from x in s.Split(' ') select x; ```
6,414,816
When writing a query using C# LINQ syntax, is there a way to use the Queryable.SelectMany method from the keyword syntax? For ``` string[] text = { "Albert was here", "Burke slept late", "Connor is happy" }; ``` Using fluent methods I could query ``` var tokens = text.SelectM...
2011/06/20
[ "https://Stackoverflow.com/questions/6414816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/449837/" ]
Yes, you just repeat the from ... in clause: ``` var words = from str in text from word in str.Split(' ') select word; ```
Your query would be re-written as: ``` var tokens = from x in text from z in x.Split(' ') select z; ``` Here's a good page that has a couple of side-by-side examples of Lambda and Query syntax: [Select Many Operator Part 1 - Zeeshan Hirani](http://weblogs.asp.net/zeeshanhirani/archive/2008...
6,414,816
When writing a query using C# LINQ syntax, is there a way to use the Queryable.SelectMany method from the keyword syntax? For ``` string[] text = { "Albert was here", "Burke slept late", "Connor is happy" }; ``` Using fluent methods I could query ``` var tokens = text.SelectM...
2011/06/20
[ "https://Stackoverflow.com/questions/6414816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/449837/" ]
You can use a [Compound from Clause](http://msdn.microsoft.com/en-us/library/bb383978.aspx): ``` var tokens = from s in text from x in s.Split(' ') select x; ```
Your query would be re-written as: ``` var tokens = from x in text from z in x.Split(' ') select z; ``` Here's a good page that has a couple of side-by-side examples of Lambda and Query syntax: [Select Many Operator Part 1 - Zeeshan Hirani](http://weblogs.asp.net/zeeshanhirani/archive/2008...
6,478,914
I've been working on putting together the Javavscript code for Reverse Geocoding in Google maps. I thought I'd solved all the issues I had, but I'm still having problems. When I embed the Javascript code within the HTML file it works without any problems. However if I try and run the javascript (with some alterations)...
2011/06/25
[ "https://Stackoverflow.com/questions/6478914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/794000/" ]
This is the short version of Khepri's (thank you!) Code ``` function getReverseGeocodingData(lat, lng) { var latlng = new google.maps.LatLng(lat, lng); // This is making the Geocode request var geocoder = new google.maps.Geocoder(); geocoder.geocode({ 'latLng': latlng }, function (results, status) { ...
I took what you had an modified it to something that functions for me... Html ``` <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Google Maps JavaScript API v3 Example: Reverse...
34,773,596
I'm working on a PHP project where I've to constantly analyse a MySQL query. The problem is that sometimes, this query has more than 1000 chars and I have to break it down manually so I can read it. Is there a way to add `<br>` in this string before every uppercase word? For example, this query: ``` SELECT Cid0....
2016/01/13
[ "https://Stackoverflow.com/questions/34773596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2011284/" ]
I've found an incredibly useful PHP class created by [JDorn](https://github.com/jdorn) called [sql-formatter](https://github.com/jdorn/sql-formatter). Here is an example of the input and output: Input: ``` SELECT count(*),`Column1`,`Testing`, `Testing Three` FROM `Table1` WHERE Column1 = 'testing' AND ( (`Column2...
You could use a SQL prettifier, e.g. <http://www.dpriver.com/pp/sqlformat.htm> This is the output for your sample query: ``` SELECT cid0.*, cid1.*, cid2.*, cid3.* FROM `users_cars_brands` cid0 LEFT JOIN `cars` cid1 ON cid0.cars_id = cid1.id LEFT JOIN `cars_texts` ci...
34,773,596
I'm working on a PHP project where I've to constantly analyse a MySQL query. The problem is that sometimes, this query has more than 1000 chars and I have to break it down manually so I can read it. Is there a way to add `<br>` in this string before every uppercase word? For example, this query: ``` SELECT Cid0....
2016/01/13
[ "https://Stackoverflow.com/questions/34773596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2011284/" ]
I've found an incredibly useful PHP class created by [JDorn](https://github.com/jdorn) called [sql-formatter](https://github.com/jdorn/sql-formatter). Here is an example of the input and output: Input: ``` SELECT count(*),`Column1`,`Testing`, `Testing Three` FROM `Table1` WHERE Column1 = 'testing' AND ( (`Column2...
You can actually look for *positions* with regular expressions, too. Here, no character is consumed, instead the engine looks for the correct position which can be used to insert something (in your case a newline character). The following regex uses a lookahead and some alternatives (which can be expanded as well): ``...
20,791,674
I am attempting to get a very simple HTML/JavaScript application working for SDK 5.0b, the instructions for which are here... <http://samsungtvdev.blogspot.com/2013/04/smamsung-smart-tv-how-to-write-hello.html> I can launch VirtualBox 4.2.16 and see my application in the menu for the emulator. However, when I launch ...
2013/12/26
[ "https://Stackoverflow.com/questions/20791674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1196279/" ]
You should take a look at my github project, I had a very similar problem. <https://github.com/Loki-Afro/multi-tenant-spring-mongodb>
See same kind of issues [Spring-data-mongodb connect to multiple databases in one Mongo instance](https://stackoverflow.com/questions/12078669/spring-data-mongodb-connect-to-multiple-databases-in-one-mongo-instance?rq=1) There is also the possibility of sharding and set as part of the key the id you want to use and sea...
20,791,674
I am attempting to get a very simple HTML/JavaScript application working for SDK 5.0b, the instructions for which are here... <http://samsungtvdev.blogspot.com/2013/04/smamsung-smart-tv-how-to-write-hello.html> I can launch VirtualBox 4.2.16 and see my application in the menu for the emulator. However, when I launch ...
2013/12/26
[ "https://Stackoverflow.com/questions/20791674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1196279/" ]
You should take a look at my github project, I had a very similar problem. <https://github.com/Loki-Afro/multi-tenant-spring-mongodb>
I too faced similar problem while using spring mongodb as multitenant. Finally i figured out a way by using Adapter to manage the MongoTemplates in a static Collection. SpringMongoConfigAdapater is a sample snippet which can help the overview. Spring Config: ``` <bean id="springConfig" class="com.company.config.Sp...
20,791,674
I am attempting to get a very simple HTML/JavaScript application working for SDK 5.0b, the instructions for which are here... <http://samsungtvdev.blogspot.com/2013/04/smamsung-smart-tv-how-to-write-hello.html> I can launch VirtualBox 4.2.16 and see my application in the menu for the emulator. However, when I launch ...
2013/12/26
[ "https://Stackoverflow.com/questions/20791674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1196279/" ]
You should take a look at my github project, I had a very similar problem. <https://github.com/Loki-Afro/multi-tenant-spring-mongodb>
Refer this for springboot 2.3.3 <https://github.com/jose-m-thomas/mongo_multi_tenancy_spring_boot_2_3_3> overriding doGetMongoDatabase helped to achieve multi tenancy ``` protected MongoDatabase doGetMongoDatabase(String dbName) { } ```
512,155
I have a laptop `HP probook 4520s` with > > Core i5 M480 @ 2.67Ghz, > > 4Gb RAM, > > 640 GB HDD > Radeon HD 6370m 1GB video card. > > > It would seem like a good stack for work, right? But My HDD has crashed after everyday walking with laptop about 1 year. After buying my new **SSD (Patriot memory - T...
2012/11/29
[ "https://superuser.com/questions/512155", "https://superuser.com", "https://superuser.com/users/176751/" ]
What you need to do, is to see what process is utilising your disk. Click on the Open Resource Monitor at the bottom of Task Manager. Then click the Disk tab and see what process is hogging up your drive, then post back here. This could be a number of issues from SSD Trash management to a rouge driver / app.
If you have formatted the SSD disk and reinstalled Windows 8 from scratch, letting it partition the disk, then I suppose that all partitions are well-aligned. For Windows, check if the performance degradation also exists when booting in Safe mode. If it doesn't, then it is some installed non-Microsoft product that is ...
512,155
I have a laptop `HP probook 4520s` with > > Core i5 M480 @ 2.67Ghz, > > 4Gb RAM, > > 640 GB HDD > Radeon HD 6370m 1GB video card. > > > It would seem like a good stack for work, right? But My HDD has crashed after everyday walking with laptop about 1 year. After buying my new **SSD (Patriot memory - T...
2012/11/29
[ "https://superuser.com/questions/512155", "https://superuser.com", "https://superuser.com/users/176751/" ]
What you need to do, is to see what process is utilising your disk. Click on the Open Resource Monitor at the bottom of Task Manager. Then click the Disk tab and see what process is hogging up your drive, then post back here. This could be a number of issues from SSD Trash management to a rouge driver / app.
Select the "Open Performance Monitor" link at the bottom of Task Manager (I don't know what it is called in Russian). When that opens, go to the "Disk" tab and sort the list of "Processes with Disk Activity" by the last column "Total (B/sec)". The one at the head of the list should be the process responsible for your e...
512,155
I have a laptop `HP probook 4520s` with > > Core i5 M480 @ 2.67Ghz, > > 4Gb RAM, > > 640 GB HDD > Radeon HD 6370m 1GB video card. > > > It would seem like a good stack for work, right? But My HDD has crashed after everyday walking with laptop about 1 year. After buying my new **SSD (Patriot memory - T...
2012/11/29
[ "https://superuser.com/questions/512155", "https://superuser.com", "https://superuser.com/users/176751/" ]
What you need to do, is to see what process is utilising your disk. Click on the Open Resource Monitor at the bottom of Task Manager. Then click the Disk tab and see what process is hogging up your drive, then post back here. This could be a number of issues from SSD Trash management to a rouge driver / app.
Also have same problem. I have Lenovo Z370 with OCZ Agility4 512 Gb. It was lightspeed fast on Windows7, but dramatically slow on Windows8. I **solved this problem** by installing driver for Intel SATA AHCI Controller from **default lenovo driver** pack (*D:\drivers\AHCI*). Not need to make a clean install! Now I lik...
512,155
I have a laptop `HP probook 4520s` with > > Core i5 M480 @ 2.67Ghz, > > 4Gb RAM, > > 640 GB HDD > Radeon HD 6370m 1GB video card. > > > It would seem like a good stack for work, right? But My HDD has crashed after everyday walking with laptop about 1 year. After buying my new **SSD (Patriot memory - T...
2012/11/29
[ "https://superuser.com/questions/512155", "https://superuser.com", "https://superuser.com/users/176751/" ]
What you need to do, is to see what process is utilising your disk. Click on the Open Resource Monitor at the bottom of Task Manager. Then click the Disk tab and see what process is hogging up your drive, then post back here. This could be a number of issues from SSD Trash management to a rouge driver / app.
Iv had this issue, just press 'windows key + R' then type 'services.msc' and locate 'background intelegent transfer service' and set it to manual/disabled and scroll down to 'superfetch' and do the same
512,155
I have a laptop `HP probook 4520s` with > > Core i5 M480 @ 2.67Ghz, > > 4Gb RAM, > > 640 GB HDD > Radeon HD 6370m 1GB video card. > > > It would seem like a good stack for work, right? But My HDD has crashed after everyday walking with laptop about 1 year. After buying my new **SSD (Patriot memory - T...
2012/11/29
[ "https://superuser.com/questions/512155", "https://superuser.com", "https://superuser.com/users/176751/" ]
Also have same problem. I have Lenovo Z370 with OCZ Agility4 512 Gb. It was lightspeed fast on Windows7, but dramatically slow on Windows8. I **solved this problem** by installing driver for Intel SATA AHCI Controller from **default lenovo driver** pack (*D:\drivers\AHCI*). Not need to make a clean install! Now I lik...
If you have formatted the SSD disk and reinstalled Windows 8 from scratch, letting it partition the disk, then I suppose that all partitions are well-aligned. For Windows, check if the performance degradation also exists when booting in Safe mode. If it doesn't, then it is some installed non-Microsoft product that is ...
512,155
I have a laptop `HP probook 4520s` with > > Core i5 M480 @ 2.67Ghz, > > 4Gb RAM, > > 640 GB HDD > Radeon HD 6370m 1GB video card. > > > It would seem like a good stack for work, right? But My HDD has crashed after everyday walking with laptop about 1 year. After buying my new **SSD (Patriot memory - T...
2012/11/29
[ "https://superuser.com/questions/512155", "https://superuser.com", "https://superuser.com/users/176751/" ]
If you have formatted the SSD disk and reinstalled Windows 8 from scratch, letting it partition the disk, then I suppose that all partitions are well-aligned. For Windows, check if the performance degradation also exists when booting in Safe mode. If it doesn't, then it is some installed non-Microsoft product that is ...
Iv had this issue, just press 'windows key + R' then type 'services.msc' and locate 'background intelegent transfer service' and set it to manual/disabled and scroll down to 'superfetch' and do the same
512,155
I have a laptop `HP probook 4520s` with > > Core i5 M480 @ 2.67Ghz, > > 4Gb RAM, > > 640 GB HDD > Radeon HD 6370m 1GB video card. > > > It would seem like a good stack for work, right? But My HDD has crashed after everyday walking with laptop about 1 year. After buying my new **SSD (Patriot memory - T...
2012/11/29
[ "https://superuser.com/questions/512155", "https://superuser.com", "https://superuser.com/users/176751/" ]
Also have same problem. I have Lenovo Z370 with OCZ Agility4 512 Gb. It was lightspeed fast on Windows7, but dramatically slow on Windows8. I **solved this problem** by installing driver for Intel SATA AHCI Controller from **default lenovo driver** pack (*D:\drivers\AHCI*). Not need to make a clean install! Now I lik...
Select the "Open Performance Monitor" link at the bottom of Task Manager (I don't know what it is called in Russian). When that opens, go to the "Disk" tab and sort the list of "Processes with Disk Activity" by the last column "Total (B/sec)". The one at the head of the list should be the process responsible for your e...
512,155
I have a laptop `HP probook 4520s` with > > Core i5 M480 @ 2.67Ghz, > > 4Gb RAM, > > 640 GB HDD > Radeon HD 6370m 1GB video card. > > > It would seem like a good stack for work, right? But My HDD has crashed after everyday walking with laptop about 1 year. After buying my new **SSD (Patriot memory - T...
2012/11/29
[ "https://superuser.com/questions/512155", "https://superuser.com", "https://superuser.com/users/176751/" ]
Select the "Open Performance Monitor" link at the bottom of Task Manager (I don't know what it is called in Russian). When that opens, go to the "Disk" tab and sort the list of "Processes with Disk Activity" by the last column "Total (B/sec)". The one at the head of the list should be the process responsible for your e...
Iv had this issue, just press 'windows key + R' then type 'services.msc' and locate 'background intelegent transfer service' and set it to manual/disabled and scroll down to 'superfetch' and do the same
512,155
I have a laptop `HP probook 4520s` with > > Core i5 M480 @ 2.67Ghz, > > 4Gb RAM, > > 640 GB HDD > Radeon HD 6370m 1GB video card. > > > It would seem like a good stack for work, right? But My HDD has crashed after everyday walking with laptop about 1 year. After buying my new **SSD (Patriot memory - T...
2012/11/29
[ "https://superuser.com/questions/512155", "https://superuser.com", "https://superuser.com/users/176751/" ]
Also have same problem. I have Lenovo Z370 with OCZ Agility4 512 Gb. It was lightspeed fast on Windows7, but dramatically slow on Windows8. I **solved this problem** by installing driver for Intel SATA AHCI Controller from **default lenovo driver** pack (*D:\drivers\AHCI*). Not need to make a clean install! Now I lik...
Iv had this issue, just press 'windows key + R' then type 'services.msc' and locate 'background intelegent transfer service' and set it to manual/disabled and scroll down to 'superfetch' and do the same
4,775,101
I want to search the foullowing a ``` <style type='text/css\'> ``` and replace it with `'text/css'` i am using ``` $filenew = str_replace("'text/css\'" , "'text/css'", $filenew); ``` But it isn't working, How shall i make it to work ? How do you use an escape character. is there some application that generat...
2011/01/23
[ "https://Stackoverflow.com/questions/4775101", "https://Stackoverflow.com", "https://Stackoverflow.com/users/571319/" ]
A `\` is special in a string used for escaping and to define escape sequences. To mean a literal `\` you need to escape it with another `\` that is `\\`. ``` $filenew = str_replace("'text/css\\'" , "'text/css'", $filenew); ^^ ```
If this is the only possible string that you may be replacing, the code below will work ``` $filenew = str_replace("'text/css\\'" , "'text/css'", $filenew); ``` you have to escape the slash itself. I strongly suggest that you look closely at text in question to make sure that there are no unwanted replacements.
7,502,069
Is there such a thing as *automated security testing* in Java? If so, how is it implemented? Is it just JUnit tests written to try and exploit known server vulnerabilities, or are their security-centric testing frameworks? As a segue I'm also interested in this OWASP Security Testing Framework, but can't tell if they'...
2011/09/21
[ "https://Stackoverflow.com/questions/7502069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892029/" ]
Fuzz testing never hurts: <http://www.ibm.com/developerworks/java/library/j-fuzztest/index.html> Fuzz testing helps you make sure that your application is secure against any opportunity for user input. Fuzz testing is a little awkward for JUnit tests in a way, because they are "random". You might want to loop and run...
There are commercial tools such as VeraCode that do security scanning. I don't work for them but my company uses it. It seems quite thorough.
7,502,069
Is there such a thing as *automated security testing* in Java? If so, how is it implemented? Is it just JUnit tests written to try and exploit known server vulnerabilities, or are their security-centric testing frameworks? As a segue I'm also interested in this OWASP Security Testing Framework, but can't tell if they'...
2011/09/21
[ "https://Stackoverflow.com/questions/7502069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892029/" ]
There are commercial tools such as VeraCode that do security scanning. I don't work for them but my company uses it. It seems quite thorough.
It depends what your Java app actually is. If you are building a web service/API, for example, OWASP have a separate Top 10 just for API's which have things listed in a different priority than the regular top 10. See [OWASP Project API Security](https://owasp.org/www-project-api-security/) According to Nordic API's, y...
7,502,069
Is there such a thing as *automated security testing* in Java? If so, how is it implemented? Is it just JUnit tests written to try and exploit known server vulnerabilities, or are their security-centric testing frameworks? As a segue I'm also interested in this OWASP Security Testing Framework, but can't tell if they'...
2011/09/21
[ "https://Stackoverflow.com/questions/7502069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892029/" ]
Don't know is it exactly what you are looking for, but there is a blog post by Stephen Colebourne (author of joda-time and future new standard java8 date-time API) about testing security permissions with junit: [Stephen Colebourne's blog: Testing a security permission](http://blog.joda.org/2004/11/testing-security-perm...
Tools like [Sonar](http://www.sonarsource.org/) and [FindBugs](http://findbugs.sourceforge.net/) can also be an automated way to find at least some security issues (FindBugs is at quite effective at finding risks of SQL injection and such).
7,502,069
Is there such a thing as *automated security testing* in Java? If so, how is it implemented? Is it just JUnit tests written to try and exploit known server vulnerabilities, or are their security-centric testing frameworks? As a segue I'm also interested in this OWASP Security Testing Framework, but can't tell if they'...
2011/09/21
[ "https://Stackoverflow.com/questions/7502069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892029/" ]
Fuzz testing never hurts: <http://www.ibm.com/developerworks/java/library/j-fuzztest/index.html> Fuzz testing helps you make sure that your application is secure against any opportunity for user input. Fuzz testing is a little awkward for JUnit tests in a way, because they are "random". You might want to loop and run...
Automated security testing is *hard* but that doesn't mean its not worth doing. My suggestion for web apps - use your existing Unit and Integration tests (like Selenium) and then proxy them through a security tool like OWASP ZAP (Zed Attack Proxy). See <http://code.google.com/p/zaproxy/wiki/SecRegTests> for more detai...
7,502,069
Is there such a thing as *automated security testing* in Java? If so, how is it implemented? Is it just JUnit tests written to try and exploit known server vulnerabilities, or are their security-centric testing frameworks? As a segue I'm also interested in this OWASP Security Testing Framework, but can't tell if they'...
2011/09/21
[ "https://Stackoverflow.com/questions/7502069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892029/" ]
Fuzz testing never hurts: <http://www.ibm.com/developerworks/java/library/j-fuzztest/index.html> Fuzz testing helps you make sure that your application is secure against any opportunity for user input. Fuzz testing is a little awkward for JUnit tests in a way, because they are "random". You might want to loop and run...
It depends what your Java app actually is. If you are building a web service/API, for example, OWASP have a separate Top 10 just for API's which have things listed in a different priority than the regular top 10. See [OWASP Project API Security](https://owasp.org/www-project-api-security/) According to Nordic API's, y...
7,502,069
Is there such a thing as *automated security testing* in Java? If so, how is it implemented? Is it just JUnit tests written to try and exploit known server vulnerabilities, or are their security-centric testing frameworks? As a segue I'm also interested in this OWASP Security Testing Framework, but can't tell if they'...
2011/09/21
[ "https://Stackoverflow.com/questions/7502069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892029/" ]
Fuzz testing never hurts: <http://www.ibm.com/developerworks/java/library/j-fuzztest/index.html> Fuzz testing helps you make sure that your application is secure against any opportunity for user input. Fuzz testing is a little awkward for JUnit tests in a way, because they are "random". You might want to loop and run...
Tools like [Sonar](http://www.sonarsource.org/) and [FindBugs](http://findbugs.sourceforge.net/) can also be an automated way to find at least some security issues (FindBugs is at quite effective at finding risks of SQL injection and such).
7,502,069
Is there such a thing as *automated security testing* in Java? If so, how is it implemented? Is it just JUnit tests written to try and exploit known server vulnerabilities, or are their security-centric testing frameworks? As a segue I'm also interested in this OWASP Security Testing Framework, but can't tell if they'...
2011/09/21
[ "https://Stackoverflow.com/questions/7502069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892029/" ]
Don't know is it exactly what you are looking for, but there is a blog post by Stephen Colebourne (author of joda-time and future new standard java8 date-time API) about testing security permissions with junit: [Stephen Colebourne's blog: Testing a security permission](http://blog.joda.org/2004/11/testing-security-perm...
Fuzz testing never hurts: <http://www.ibm.com/developerworks/java/library/j-fuzztest/index.html> Fuzz testing helps you make sure that your application is secure against any opportunity for user input. Fuzz testing is a little awkward for JUnit tests in a way, because they are "random". You might want to loop and run...
7,502,069
Is there such a thing as *automated security testing* in Java? If so, how is it implemented? Is it just JUnit tests written to try and exploit known server vulnerabilities, or are their security-centric testing frameworks? As a segue I'm also interested in this OWASP Security Testing Framework, but can't tell if they'...
2011/09/21
[ "https://Stackoverflow.com/questions/7502069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892029/" ]
Don't know is it exactly what you are looking for, but there is a blog post by Stephen Colebourne (author of joda-time and future new standard java8 date-time API) about testing security permissions with junit: [Stephen Colebourne's blog: Testing a security permission](http://blog.joda.org/2004/11/testing-security-perm...
It depends what your Java app actually is. If you are building a web service/API, for example, OWASP have a separate Top 10 just for API's which have things listed in a different priority than the regular top 10. See [OWASP Project API Security](https://owasp.org/www-project-api-security/) According to Nordic API's, y...
7,502,069
Is there such a thing as *automated security testing* in Java? If so, how is it implemented? Is it just JUnit tests written to try and exploit known server vulnerabilities, or are their security-centric testing frameworks? As a segue I'm also interested in this OWASP Security Testing Framework, but can't tell if they'...
2011/09/21
[ "https://Stackoverflow.com/questions/7502069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892029/" ]
Don't know is it exactly what you are looking for, but there is a blog post by Stephen Colebourne (author of joda-time and future new standard java8 date-time API) about testing security permissions with junit: [Stephen Colebourne's blog: Testing a security permission](http://blog.joda.org/2004/11/testing-security-perm...
Automated security testing is *hard* but that doesn't mean its not worth doing. My suggestion for web apps - use your existing Unit and Integration tests (like Selenium) and then proxy them through a security tool like OWASP ZAP (Zed Attack Proxy). See <http://code.google.com/p/zaproxy/wiki/SecRegTests> for more detai...
7,502,069
Is there such a thing as *automated security testing* in Java? If so, how is it implemented? Is it just JUnit tests written to try and exploit known server vulnerabilities, or are their security-centric testing frameworks? As a segue I'm also interested in this OWASP Security Testing Framework, but can't tell if they'...
2011/09/21
[ "https://Stackoverflow.com/questions/7502069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892029/" ]
Don't know is it exactly what you are looking for, but there is a blog post by Stephen Colebourne (author of joda-time and future new standard java8 date-time API) about testing security permissions with junit: [Stephen Colebourne's blog: Testing a security permission](http://blog.joda.org/2004/11/testing-security-perm...
There are commercial tools such as VeraCode that do security scanning. I don't work for them but my company uses it. It seems quite thorough.
26,223,487
I would like help with a batch script that will list all files in a folder and its sub folders to run as a scheduled task. Thanks in advance and best regards to all.
2014/10/06
[ "https://Stackoverflow.com/questions/26223487", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4114623/" ]
If I got it right, you want to run a Batch file that displays the Files on a folder (including files in subfolders) as a scheduled task: ``` @echo off DIR <directory of the folder, i.e "c:\dell\drivers\*.*"> /s pause ``` I don't get why would you want to schedule this kind of task, but Dir lists the files with some...
Like this? ``` @echo off dir /S > list.txt pause ```
19,380,576
In Java 1.4+, there're 3 ways to interrupt a stream which is blocked on socket I/O: 1. If the socket was created using a regular [`java.net.Socket(InetAddress, int)`](http://java.sun.com/javase/6/docs/api/java/net/Socket.html#Socket%28java.net.InetAddress,%20int%29) constructor, I can [close it](http://java.sun.com/ja...
2013/10/15
[ "https://Stackoverflow.com/questions/19380576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1343979/" ]
> > Is closing a socket from a separate thread thread-safe when using old-style I/O? If not, what are the alternatives? > > > yes. An alternative is to use blocking NIO (which is the default behaviour for a SocketChannel BTW) I prefer this for a small number of connections as it has the efficiency of NIO, but som...
1) Since the underlying OS call error that rasies the exception comes from a TCP stack that is multithread aware, there should not be any problem. 2) Not sure- have not tried it, but would be surprised if there was any issue. 3) There may be some performance differences. An OS close() call requires a 4-way handshake ...
19,380,576
In Java 1.4+, there're 3 ways to interrupt a stream which is blocked on socket I/O: 1. If the socket was created using a regular [`java.net.Socket(InetAddress, int)`](http://java.sun.com/javase/6/docs/api/java/net/Socket.html#Socket%28java.net.InetAddress,%20int%29) constructor, I can [close it](http://java.sun.com/ja...
2013/10/15
[ "https://Stackoverflow.com/questions/19380576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1343979/" ]
A *little* late to the party, and the answers already cover the topic, but I think I can still add something useful. I'll try to be clear about what guarantees are made by the API spec, and what is implementation specific (using Oracle's Java 8 sources for details). For example, if something is safe in Oracle's Java 8...
1) Since the underlying OS call error that rasies the exception comes from a TCP stack that is multithread aware, there should not be any problem. 2) Not sure- have not tried it, but would be surprised if there was any issue. 3) There may be some performance differences. An OS close() call requires a 4-way handshake ...
59,026,941
I would like to have a "not found"-result if the query has no matches in the database. Here is my `result.blade.php`: ``` @extends('layouts.app') @section('content') @foreach ($result as $object) <div class="container pb-5"> <div class="row justify-content-center"> <div class=...
2019/11/25
[ "https://Stackoverflow.com/questions/59026941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11942079/" ]
You can check the size of result in view. ``` @if(sizeof($result)) @foreach ($result as $object) //whatever you have to do @endforeach @else //else condition @endif ``` Or you can use `forelse` loop ``` @forelse($result as $object) // result is found @empty // result is not found @endforelse ```
You can use the blade if statement: <https://laravel.com/docs/5.8/blade#custom-if-statements> So your code could be: ``` @extends('layouts.app') @section('content') @if($result) @foreach ($result as $object) // content here @endforeach @else // Not found content here. @endif ...
59,026,941
I would like to have a "not found"-result if the query has no matches in the database. Here is my `result.blade.php`: ``` @extends('layouts.app') @section('content') @foreach ($result as $object) <div class="container pb-5"> <div class="row justify-content-center"> <div class=...
2019/11/25
[ "https://Stackoverflow.com/questions/59026941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11942079/" ]
You can use forelse ``` @forelse ($users as $user) <li>{{ $user->name }}</li> @empty <p>No users</p> @endforelse ``` Read documentation [here](https://laravel.com/docs/5.8/blade)
You can check the size of result in view. ``` @if(sizeof($result)) @foreach ($result as $object) //whatever you have to do @endforeach @else //else condition @endif ``` Or you can use `forelse` loop ``` @forelse($result as $object) // result is found @empty // result is not found @endforelse ```
59,026,941
I would like to have a "not found"-result if the query has no matches in the database. Here is my `result.blade.php`: ``` @extends('layouts.app') @section('content') @foreach ($result as $object) <div class="container pb-5"> <div class="row justify-content-center"> <div class=...
2019/11/25
[ "https://Stackoverflow.com/questions/59026941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11942079/" ]
You can check the size of result in view. ``` @if(sizeof($result)) @foreach ($result as $object) //whatever you have to do @endforeach @else //else condition @endif ``` Or you can use `forelse` loop ``` @forelse($result as $object) // result is found @empty // result is not found @endforelse ```
``` @if (count($records) > 0) @foreach ($result as $object) //Your logic / printing @endforeach @else No record found @endif ```
59,026,941
I would like to have a "not found"-result if the query has no matches in the database. Here is my `result.blade.php`: ``` @extends('layouts.app') @section('content') @foreach ($result as $object) <div class="container pb-5"> <div class="row justify-content-center"> <div class=...
2019/11/25
[ "https://Stackoverflow.com/questions/59026941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11942079/" ]
You can use forelse ``` @forelse ($users as $user) <li>{{ $user->name }}</li> @empty <p>No users</p> @endforelse ``` Read documentation [here](https://laravel.com/docs/5.8/blade)
You can use the blade if statement: <https://laravel.com/docs/5.8/blade#custom-if-statements> So your code could be: ``` @extends('layouts.app') @section('content') @if($result) @foreach ($result as $object) // content here @endforeach @else // Not found content here. @endif ...
59,026,941
I would like to have a "not found"-result if the query has no matches in the database. Here is my `result.blade.php`: ``` @extends('layouts.app') @section('content') @foreach ($result as $object) <div class="container pb-5"> <div class="row justify-content-center"> <div class=...
2019/11/25
[ "https://Stackoverflow.com/questions/59026941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11942079/" ]
You can use forelse ``` @forelse ($users as $user) <li>{{ $user->name }}</li> @empty <p>No users</p> @endforelse ``` Read documentation [here](https://laravel.com/docs/5.8/blade)
``` @if (count($records) > 0) @foreach ($result as $object) //Your logic / printing @endforeach @else No record found @endif ```
195,373
I have a MultiPHP Manager on my WHM and I have installed Magento 2.2 with PHP 7.1.9. However, whenever I execute a simple cli command I receive an error Magento supports 7.0.2, 7.0.4 and 7.0.6 or later - see screenshot. How do I fix this? [![enter image description here](https://i.stack.imgur.com/oaVgX.jpg)](https://i...
2017/09/30
[ "https://magento.stackexchange.com/questions/195373", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/35476/" ]
As you can see, still your PHP server is using 5.6.31 version. So you need to upgrade your PHP in order to use Magento 2.2 EDIT ---- Your console is still relying on PHP version 5.6.x. It is true that using your MultiPHP manager you are running your site on version 7.x. But it means your apache PHP version is only c...
If the above approaches do not work (they did not work for me), explicitly recite the php version on the command line: ``` /usr/local/php71/bin/php /home/your-magento-directory/bin/magento cache:clear ``` or ``` /usr/local/php71/bin/php /home/your-magento-directory/bin/magento other-magento-command ```
195,373
I have a MultiPHP Manager on my WHM and I have installed Magento 2.2 with PHP 7.1.9. However, whenever I execute a simple cli command I receive an error Magento supports 7.0.2, 7.0.4 and 7.0.6 or later - see screenshot. How do I fix this? [![enter image description here](https://i.stack.imgur.com/oaVgX.jpg)](https://i...
2017/09/30
[ "https://magento.stackexchange.com/questions/195373", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/35476/" ]
As you can see, still your PHP server is using 5.6.31 version. So you need to upgrade your PHP in order to use Magento 2.2 EDIT ---- Your console is still relying on PHP version 5.6.x. It is true that using your MultiPHP manager you are running your site on version 7.x. But it means your apache PHP version is only c...
Before running any php command on my vps with plesk panel I run: ``` export PATH=/opt/plesk/php/7.0/bin:$PATH ``` or ``` export PATH=/opt/plesk/php/7.1/bin:$PATH ``` After that ``` php bin/magento indexer:reindex ``` or any php magento command
195,373
I have a MultiPHP Manager on my WHM and I have installed Magento 2.2 with PHP 7.1.9. However, whenever I execute a simple cli command I receive an error Magento supports 7.0.2, 7.0.4 and 7.0.6 or later - see screenshot. How do I fix this? [![enter image description here](https://i.stack.imgur.com/oaVgX.jpg)](https://i...
2017/09/30
[ "https://magento.stackexchange.com/questions/195373", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/35476/" ]
As you can see, still your PHP server is using 5.6.31 version. So you need to upgrade your PHP in order to use Magento 2.2 EDIT ---- Your console is still relying on PHP version 5.6.x. It is true that using your MultiPHP manager you are running your site on version 7.x. But it means your apache PHP version is only c...
When you have multiple PHP version on your server then you need to specify the php version in command line because from multiple PHP version, one PHP version is set as Default so please run below command for PHP7.1: /opt/plesk/php/7.1/bin/php bin/magento cache:flush; /opt/plesk/php/7.1/bin/php bin/magento indxer:reind...
195,373
I have a MultiPHP Manager on my WHM and I have installed Magento 2.2 with PHP 7.1.9. However, whenever I execute a simple cli command I receive an error Magento supports 7.0.2, 7.0.4 and 7.0.6 or later - see screenshot. How do I fix this? [![enter image description here](https://i.stack.imgur.com/oaVgX.jpg)](https://i...
2017/09/30
[ "https://magento.stackexchange.com/questions/195373", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/35476/" ]
As you can see, still your PHP server is using 5.6.31 version. So you need to upgrade your PHP in order to use Magento 2.2 EDIT ---- Your console is still relying on PHP version 5.6.x. It is true that using your MultiPHP manager you are running your site on version 7.x. But it means your apache PHP version is only c...
use this command for executing this specific command in PHP 7.2 ``` /etc/php/7.2 php /home/tm/dockercontainer/magento2folder/bin/magento sampledata:deploy ```
236,176
I'm watching the "creating your first Ubuntu application". I typed into the terminal quickly create ubuntu application my browser, and I got this. ``` leife@tinetine:~$ quickly create ubuntu application mybrowser ERROR: No template specified for command create. Usage: quickly create <template> <project-name> Candida...
2013/01/04
[ "https://askubuntu.com/questions/236176", "https://askubuntu.com", "https://askubuntu.com/users/116943/" ]
you have to write the command like ``` quickly create ubuntu-application mybrowser ``` you are missing the `-` between Ubuntu-application template.
You have to type `quickly create ubuntu-application`, as the answer told you (you missed the `-`)
35,483,313
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html. this would just set the html, head and body tag. created the charset meta,...
2016/02/18
[ "https://Stackoverflow.com/questions/35483313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2177057/" ]
If you have disabled the autocomplete functionality mentioned in the currently accepted answer, or want more flexibility than that allows, there is a `file-templates` package: <https://atom.io/packages/file-templates> Here are some basic instructions. * To install the package: `edit->preferences->install->file-templa...
If we install Emmet package we are not getting the boiler plate code. So I disabled emmet and it is working fine for me.
35,483,313
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html. this would just set the html, head and body tag. created the charset meta,...
2016/02/18
[ "https://Stackoverflow.com/questions/35483313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2177057/" ]
There is a nice Plugin, called emmet: <https://atom.io/packages/emmet> When you got that, you just have to type `! -> tab` in an empty document. You get pretty much the same result as @hatchet GIF.
If you have disabled the autocomplete functionality mentioned in the currently accepted answer, or want more flexibility than that allows, there is a `file-templates` package: <https://atom.io/packages/file-templates> Here are some basic instructions. * To install the package: `edit->preferences->install->file-templa...
35,483,313
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html. this would just set the html, head and body tag. created the charset meta,...
2016/02/18
[ "https://Stackoverflow.com/questions/35483313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2177057/" ]
There is a nice Plugin, called emmet: <https://atom.io/packages/emmet> When you got that, you just have to type `! -> tab` in an empty document. You get pretty much the same result as @hatchet GIF.
If we install Emmet package we are not getting the boiler plate code. So I disabled emmet and it is working fine for me.
35,483,313
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html. this would just set the html, head and body tag. created the charset meta,...
2016/02/18
[ "https://Stackoverflow.com/questions/35483313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2177057/" ]
You're looking for [`autocomplete-snippets`](https://atom.io/packages/autocomplete-snippets). Simply type `html` and press `Enter` Here's a terrible GIF to prove it: [![enter image description here](https://i.stack.imgur.com/QuQ93.gif)](https://i.stack.imgur.com/QuQ93.gif)
**Make sure your file has .html added on the end of its name.** Then go back into Atom, type HTML, and press enter. Your boilerplate should appear. Solved my problem instantly!
35,483,313
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html. this would just set the html, head and body tag. created the charset meta,...
2016/02/18
[ "https://Stackoverflow.com/questions/35483313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2177057/" ]
**Make sure your file has .html added on the end of its name.** Then go back into Atom, type HTML, and press enter. Your boilerplate should appear. Solved my problem instantly!
If we install Emmet package we are not getting the boiler plate code. So I disabled emmet and it is working fine for me.
35,483,313
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html. this would just set the html, head and body tag. created the charset meta,...
2016/02/18
[ "https://Stackoverflow.com/questions/35483313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2177057/" ]
If you have disabled the autocomplete functionality mentioned in the currently accepted answer, or want more flexibility than that allows, there is a `file-templates` package: <https://atom.io/packages/file-templates> Here are some basic instructions. * To install the package: `edit->preferences->install->file-templa...
!tab is the command u seek. But it won't work unless you create a file and save it with the html extension... So go create a new file in the directory u want, call it index.html and now go type !tab It should work 100%, if not be sure u have emmet installed.
35,483,313
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html. this would just set the html, head and body tag. created the charset meta,...
2016/02/18
[ "https://Stackoverflow.com/questions/35483313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2177057/" ]
You're looking for [`autocomplete-snippets`](https://atom.io/packages/autocomplete-snippets). Simply type `html` and press `Enter` Here's a terrible GIF to prove it: [![enter image description here](https://i.stack.imgur.com/QuQ93.gif)](https://i.stack.imgur.com/QuQ93.gif)
If you have disabled the autocomplete functionality mentioned in the currently accepted answer, or want more flexibility than that allows, there is a `file-templates` package: <https://atom.io/packages/file-templates> Here are some basic instructions. * To install the package: `edit->preferences->install->file-templa...
35,483,313
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html. this would just set the html, head and body tag. created the charset meta,...
2016/02/18
[ "https://Stackoverflow.com/questions/35483313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2177057/" ]
You're looking for [`autocomplete-snippets`](https://atom.io/packages/autocomplete-snippets). Simply type `html` and press `Enter` Here's a terrible GIF to prove it: [![enter image description here](https://i.stack.imgur.com/QuQ93.gif)](https://i.stack.imgur.com/QuQ93.gif)
If we install Emmet package we are not getting the boiler plate code. So I disabled emmet and it is working fine for me.
35,483,313
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html. this would just set the html, head and body tag. created the charset meta,...
2016/02/18
[ "https://Stackoverflow.com/questions/35483313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2177057/" ]
**Make sure your file has .html added on the end of its name.** Then go back into Atom, type HTML, and press enter. Your boilerplate should appear. Solved my problem instantly!
!tab is the command u seek. But it won't work unless you create a file and save it with the html extension... So go create a new file in the directory u want, call it index.html and now go type !tab It should work 100%, if not be sure u have emmet installed.
35,483,313
Im using atom.io for some time now and really like it. there is just one thing im missing. I used to use brackets and sublime before and they both had a feature where you could create the basic structure of a html documents by just typing html. this would just set the html, head and body tag. created the charset meta,...
2016/02/18
[ "https://Stackoverflow.com/questions/35483313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2177057/" ]
You're looking for [`autocomplete-snippets`](https://atom.io/packages/autocomplete-snippets). Simply type `html` and press `Enter` Here's a terrible GIF to prove it: [![enter image description here](https://i.stack.imgur.com/QuQ93.gif)](https://i.stack.imgur.com/QuQ93.gif)
There is a nice Plugin, called emmet: <https://atom.io/packages/emmet> When you got that, you just have to type `! -> tab` in an empty document. You get pretty much the same result as @hatchet GIF.
14,096,365
I am trying to have a horizontal menu, but the ul is aligned to the right instead of in the middle. Here are my CSS and HTML: CSS: ``` #menu { clear: both; float: left; width: 830px; display: inline; position: relative; z-index: 1; border-top: 1px solid #e9e6d9; border-bottom: 1px sol...
2012/12/31
[ "https://Stackoverflow.com/questions/14096365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1545622/" ]
You can remove your float properties. Just add a width to your #menu ul and add margin : 0 auto; to make it centered. Example : ``` #menu ul { width: 300px; margin: 0 auto; } ``` Live demo here : <http://codepen.io/joe/pen/uAaHo>
Change `#menu ul` - use `float: left` instead of `float: right` ``` #menu ul { margin: 0; display: block; text-align: center; padding: 0; float: left; } ```
14,096,365
I am trying to have a horizontal menu, but the ul is aligned to the right instead of in the middle. Here are my CSS and HTML: CSS: ``` #menu { clear: both; float: left; width: 830px; display: inline; position: relative; z-index: 1; border-top: 1px solid #e9e6d9; border-bottom: 1px sol...
2012/12/31
[ "https://Stackoverflow.com/questions/14096365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1545622/" ]
Change `#menu ul` - use `float: left` instead of `float: right` ``` #menu ul { margin: 0; display: block; text-align: center; padding: 0; float: left; } ```
The simplest code to position Your menu, is quite simple. This code works correctly, tested on latest Safari, Chrome, Opera, Firefox. Also on IE11 and IE8. <http://jsfiddle.net/5ZrEx/> ```css #menu { width: 830px; margin: 0 auto; display: inline; } #menu ul { text-align: center; } #menu li { d...
14,096,365
I am trying to have a horizontal menu, but the ul is aligned to the right instead of in the middle. Here are my CSS and HTML: CSS: ``` #menu { clear: both; float: left; width: 830px; display: inline; position: relative; z-index: 1; border-top: 1px solid #e9e6d9; border-bottom: 1px sol...
2012/12/31
[ "https://Stackoverflow.com/questions/14096365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1545622/" ]
You can remove your float properties. Just add a width to your #menu ul and add margin : 0 auto; to make it centered. Example : ``` #menu ul { width: 300px; margin: 0 auto; } ``` Live demo here : <http://codepen.io/joe/pen/uAaHo>
I fixed your problem. The html code is alright and i changed the css code: ``` #menu { clear: both; width: 830px; display: inline; position: relative; z-index: 1; border-top: 1px solid #e9e6d9; border-bottom: 1px solid #e9e6d9; margin: 0 auto; background-color:#FFFFFF; padding: 0; } #menu ul { margin: 0; display: blo...
14,096,365
I am trying to have a horizontal menu, but the ul is aligned to the right instead of in the middle. Here are my CSS and HTML: CSS: ``` #menu { clear: both; float: left; width: 830px; display: inline; position: relative; z-index: 1; border-top: 1px solid #e9e6d9; border-bottom: 1px sol...
2012/12/31
[ "https://Stackoverflow.com/questions/14096365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1545622/" ]
I fixed your problem. The html code is alright and i changed the css code: ``` #menu { clear: both; width: 830px; display: inline; position: relative; z-index: 1; border-top: 1px solid #e9e6d9; border-bottom: 1px solid #e9e6d9; margin: 0 auto; background-color:#FFFFFF; padding: 0; } #menu ul { margin: 0; display: blo...
The simplest code to position Your menu, is quite simple. This code works correctly, tested on latest Safari, Chrome, Opera, Firefox. Also on IE11 and IE8. <http://jsfiddle.net/5ZrEx/> ```css #menu { width: 830px; margin: 0 auto; display: inline; } #menu ul { text-align: center; } #menu li { d...
14,096,365
I am trying to have a horizontal menu, but the ul is aligned to the right instead of in the middle. Here are my CSS and HTML: CSS: ``` #menu { clear: both; float: left; width: 830px; display: inline; position: relative; z-index: 1; border-top: 1px solid #e9e6d9; border-bottom: 1px sol...
2012/12/31
[ "https://Stackoverflow.com/questions/14096365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1545622/" ]
You can remove your float properties. Just add a width to your #menu ul and add margin : 0 auto; to make it centered. Example : ``` #menu ul { width: 300px; margin: 0 auto; } ``` Live demo here : <http://codepen.io/joe/pen/uAaHo>
The simplest code to position Your menu, is quite simple. This code works correctly, tested on latest Safari, Chrome, Opera, Firefox. Also on IE11 and IE8. <http://jsfiddle.net/5ZrEx/> ```css #menu { width: 830px; margin: 0 auto; display: inline; } #menu ul { text-align: center; } #menu li { d...
22,398,426
How do you include a javascript file located in vendor/assets/javascripts in a single view file (NOT in application.js) ? Some kind of `javascript_include_tag` ? Please help me with syntax I have tried the following and it doesn't work: * javascript\_include\_tag 'respond' * javascript\_include\_tag 'respond.js' * j...
2014/03/14
[ "https://Stackoverflow.com/questions/22398426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2923108/" ]
``` <%= javascript_include_tag "your_file" %> ``` If you're trying to include `respond.js`, you could check out the [respond\_rails](https://github.com/gevans/respond-rails) gem, which will allow you to include this in your view: ``` <%= respond_include_tags %> ``` In your views of course
This may be an old question but for others who are looking for an answer that works for any js file, eg: `vendor/assets/randomfolder/anotherfolder/custom.js`, then to include `custom.js` using `javascript_include_tag` inside an individual view file, you would need to add the following line of code into `assets.rb`: ``...
35,643,685
So I have an model serializer which consists of ``` class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('id', 'name', 'description') ``` This is my ViewSet ``` class UserViewSet(viewsets.ModelViewSet): queryset = User.objects.all() serializer_class = Use...
2016/02/26
[ "https://Stackoverflow.com/questions/35643685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5821568/" ]
`StringBuffer` does NOT override `equals()` method. So, it uses the implementation of `Object` class which checks for the reference equality (Checks if both the objects are the **same**). In your case, both the objects are obviously not the same (though their contents are the same), hence it fails. `String` on the ot...
Answer is so simple in First Expression (i) `assertEquals(exp.toString(), orig.toString());` Passing `String` Object as argument. assertEquals is overloaded with `String` Class. So, It will accept it as a `String` and checks the value equality. SO, this will Pass the test. (ii) `assertTrue(exp, orig);` Here you are p...
35,643,685
So I have an model serializer which consists of ``` class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('id', 'name', 'description') ``` This is my ViewSet ``` class UserViewSet(viewsets.ModelViewSet): queryset = User.objects.all() serializer_class = Use...
2016/02/26
[ "https://Stackoverflow.com/questions/35643685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5821568/" ]
`StringBuffer` does NOT override `equals()` method. So, it uses the implementation of `Object` class which checks for the reference equality (Checks if both the objects are the **same**). In your case, both the objects are obviously not the same (though their contents are the same), hence it fails. `String` on the ot...
assertEquals(exp, orig); is basically comparing the reference of the two objects. As you know that in memory both the objects are separately created with unique reference id and that's the reason test case is failing. See following code and its output: ``` @Test public void equal() { TestClass obj1=...
54
In [this answer](https://ell.stackexchange.com/a/185/54), Liam W said [emphasis added] > > 'A Japanese' **infers** the Japanese person is a thing, and not a person. > This is what **deems** it offensive. > > > 'A Japanese Person' **infers** the Japanese person is just that - a > person, and is therefore considere...
2013/01/24
[ "https://ell.meta.stackexchange.com/questions/54", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/54/" ]
Do not avoid them in contexts where the meaning can be inferred from that context. That is the best way for users to learn them! OTOH, definitely avoid them if not knowing their meaning will make given answer confusing - when the meaning is not apparent. Alternatively, reiterate, rephrase the same thing using simpler ...
Coming to think of it and now that I have been using this site for almost three days, it makes sense to me that simple language should be highly preferred here simply because of the fact that we can expect to see "a lot" of foreign-language visitors here and more we make it simple for them to "comprehend the answer" mo...
54
In [this answer](https://ell.stackexchange.com/a/185/54), Liam W said [emphasis added] > > 'A Japanese' **infers** the Japanese person is a thing, and not a person. > This is what **deems** it offensive. > > > 'A Japanese Person' **infers** the Japanese person is just that - a > person, and is therefore considere...
2013/01/24
[ "https://ell.meta.stackexchange.com/questions/54", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/54/" ]
Do not avoid them in contexts where the meaning can be inferred from that context. That is the best way for users to learn them! OTOH, definitely avoid them if not knowing their meaning will make given answer confusing - when the meaning is not apparent. Alternatively, reiterate, rephrase the same thing using simpler ...
I think that the example is a borderline case: Certainly, the content could be expressed elegantly enough without using the words "infer" and "deem". They do not add better precision or explanation. On the other hand, for me, the answer (and the question) was new and surprising and I really learned something, and y...
54
In [this answer](https://ell.stackexchange.com/a/185/54), Liam W said [emphasis added] > > 'A Japanese' **infers** the Japanese person is a thing, and not a person. > This is what **deems** it offensive. > > > 'A Japanese Person' **infers** the Japanese person is just that - a > person, and is therefore considere...
2013/01/24
[ "https://ell.meta.stackexchange.com/questions/54", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/54/" ]
I think that the example is a borderline case: Certainly, the content could be expressed elegantly enough without using the words "infer" and "deem". They do not add better precision or explanation. On the other hand, for me, the answer (and the question) was new and surprising and I really learned something, and y...
Coming to think of it and now that I have been using this site for almost three days, it makes sense to me that simple language should be highly preferred here simply because of the fact that we can expect to see "a lot" of foreign-language visitors here and more we make it simple for them to "comprehend the answer" mo...
54
In [this answer](https://ell.stackexchange.com/a/185/54), Liam W said [emphasis added] > > 'A Japanese' **infers** the Japanese person is a thing, and not a person. > This is what **deems** it offensive. > > > 'A Japanese Person' **infers** the Japanese person is just that - a > person, and is therefore considere...
2013/01/24
[ "https://ell.meta.stackexchange.com/questions/54", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/54/" ]
Do not avoid them in contexts where the meaning can be inferred from that context. That is the best way for users to learn them! OTOH, definitely avoid them if not knowing their meaning will make given answer confusing - when the meaning is not apparent. Alternatively, reiterate, rephrase the same thing using simpler ...
I think we should use technical terms, but make sure that they are explained, and not go too overboard to the point of making the answer sound like it came from an academic journal.
54
In [this answer](https://ell.stackexchange.com/a/185/54), Liam W said [emphasis added] > > 'A Japanese' **infers** the Japanese person is a thing, and not a person. > This is what **deems** it offensive. > > > 'A Japanese Person' **infers** the Japanese person is just that - a > person, and is therefore considere...
2013/01/24
[ "https://ell.meta.stackexchange.com/questions/54", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/54/" ]
Any time we write, we should keep our audience in mind. Writing simply and clearly is always a good writer's goal – no matter what they are writing about, and no matter who they are writing to. As I write on ELL, I'll be assuming that the primary audience is intelligent adults; I plan to write accordingly. That said, ...
Yes, where possible, I think it is best to answer with the simplest words available. Use simpler sentence structures, and a smaller range of words. But I would suggest that technical terms to do with grammar should be used freely, since that is what people are often here to learn about. The particular example given is...
54
In [this answer](https://ell.stackexchange.com/a/185/54), Liam W said [emphasis added] > > 'A Japanese' **infers** the Japanese person is a thing, and not a person. > This is what **deems** it offensive. > > > 'A Japanese Person' **infers** the Japanese person is just that - a > person, and is therefore considere...
2013/01/24
[ "https://ell.meta.stackexchange.com/questions/54", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/54/" ]
Any time we write, we should keep our audience in mind. Writing simply and clearly is always a good writer's goal – no matter what they are writing about, and no matter who they are writing to. As I write on ELL, I'll be assuming that the primary audience is intelligent adults; I plan to write accordingly. That said, ...
Coming to think of it and now that I have been using this site for almost three days, it makes sense to me that simple language should be highly preferred here simply because of the fact that we can expect to see "a lot" of foreign-language visitors here and more we make it simple for them to "comprehend the answer" mo...
54
In [this answer](https://ell.stackexchange.com/a/185/54), Liam W said [emphasis added] > > 'A Japanese' **infers** the Japanese person is a thing, and not a person. > This is what **deems** it offensive. > > > 'A Japanese Person' **infers** the Japanese person is just that - a > person, and is therefore considere...
2013/01/24
[ "https://ell.meta.stackexchange.com/questions/54", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/54/" ]
Any time we write, we should keep our audience in mind. Writing simply and clearly is always a good writer's goal – no matter what they are writing about, and no matter who they are writing to. As I write on ELL, I'll be assuming that the primary audience is intelligent adults; I plan to write accordingly. That said, ...
I think that the example is a borderline case: Certainly, the content could be expressed elegantly enough without using the words "infer" and "deem". They do not add better precision or explanation. On the other hand, for me, the answer (and the question) was new and surprising and I really learned something, and y...
54
In [this answer](https://ell.stackexchange.com/a/185/54), Liam W said [emphasis added] > > 'A Japanese' **infers** the Japanese person is a thing, and not a person. > This is what **deems** it offensive. > > > 'A Japanese Person' **infers** the Japanese person is just that - a > person, and is therefore considere...
2013/01/24
[ "https://ell.meta.stackexchange.com/questions/54", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/54/" ]
Do not avoid them in contexts where the meaning can be inferred from that context. That is the best way for users to learn them! OTOH, definitely avoid them if not knowing their meaning will make given answer confusing - when the meaning is not apparent. Alternatively, reiterate, rephrase the same thing using simpler ...
Yes, where possible, I think it is best to answer with the simplest words available. Use simpler sentence structures, and a smaller range of words. But I would suggest that technical terms to do with grammar should be used freely, since that is what people are often here to learn about. The particular example given is...
54
In [this answer](https://ell.stackexchange.com/a/185/54), Liam W said [emphasis added] > > 'A Japanese' **infers** the Japanese person is a thing, and not a person. > This is what **deems** it offensive. > > > 'A Japanese Person' **infers** the Japanese person is just that - a > person, and is therefore considere...
2013/01/24
[ "https://ell.meta.stackexchange.com/questions/54", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/54/" ]
Yes, where possible, I think it is best to answer with the simplest words available. Use simpler sentence structures, and a smaller range of words. But I would suggest that technical terms to do with grammar should be used freely, since that is what people are often here to learn about. The particular example given is...
Coming to think of it and now that I have been using this site for almost three days, it makes sense to me that simple language should be highly preferred here simply because of the fact that we can expect to see "a lot" of foreign-language visitors here and more we make it simple for them to "comprehend the answer" mo...
54
In [this answer](https://ell.stackexchange.com/a/185/54), Liam W said [emphasis added] > > 'A Japanese' **infers** the Japanese person is a thing, and not a person. > This is what **deems** it offensive. > > > 'A Japanese Person' **infers** the Japanese person is just that - a > person, and is therefore considere...
2013/01/24
[ "https://ell.meta.stackexchange.com/questions/54", "https://ell.meta.stackexchange.com", "https://ell.meta.stackexchange.com/users/54/" ]
Any time we write, we should keep our audience in mind. Writing simply and clearly is always a good writer's goal – no matter what they are writing about, and no matter who they are writing to. As I write on ELL, I'll be assuming that the primary audience is intelligent adults; I plan to write accordingly. That said, ...
Do not avoid them in contexts where the meaning can be inferred from that context. That is the best way for users to learn them! OTOH, definitely avoid them if not knowing their meaning will make given answer confusing - when the meaning is not apparent. Alternatively, reiterate, rephrase the same thing using simpler ...
23,826,260
I have to train a very large feedforward neural network for pattern recognition. The network has 10,000 input neurons, 200 output neurons, the hidden layer of it has 5100 neurons. Function x / (1 + abs(x)) is used as the activation function. The size of the training data set is 100,000. The problem is it took very l...
2014/05/23
[ "https://Stackoverflow.com/questions/23826260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/416983/" ]
In one sentence - **first play with the size of the hidden layer to see what size fit your needs**. I've once written an implementation to the feed-forward back-propagation. Size of the network may be the only factor, but you also have etta (factor of convergence) in the back-propagation phase, and other factors (whic...
Take a loot at <http://deeplearning.net/software/theano/>. It does support OpenCL and is tailored quite well for ANN, e.g. here is the LeNet implementation: <http://deeplearning.net/tutorial/lenet.html>
907,529
We have a VNET (let's call it `VN_MAIN`) that is configured to have a S2S VPN connection to our on-premise network. The VMs deployed within subnets of `VN_MAIN` are reachable from on-premise. What I'm trying to do is to create another VNET (`VN_OTHER`) and make sure that you can reach on-premise from `VN_OTHER` and vi...
2018/04/13
[ "https://serverfault.com/questions/907529", "https://serverfault.com", "https://serverfault.com/users/465278/" ]
It sounds like your onprem Gateway doesn’t have a route to the 10.230.0.0/16 (VN\_Other) vía the S2S VPN
Not only do you need a route defined on premises to route thru the tunnel, but your vpn appliance on prem needs to be aware that it should allow traffic from that address space. Once you do that, it should work fine.
69,075,449
I am trying to display data I request by fetch from API. Everything works well except fetch. This is my component named `Items.svelte`: ```html <script> let items = []; async function load({ fetch }) { const url = "../r/api/items/all"; let res = await fetch(url); if (res.ok) { return { ...
2021/09/06
[ "https://Stackoverflow.com/questions/69075449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15406780/" ]
According to the documentation ---> <https://kit.svelte.dev/docs/loading> You are missing the **context="module"** script section. It should be : ``` <script context="module"> export async function load({ fetch }) { let res = await fetch('../r/api/items/all'); if (res.ok) { return { ...
In the docs (<https://kit.svelte.dev/docs/loading>) it says: "A component that defines a page or a layout can export a load function that runs before the component is created." You can't use load from a component, only from a page or layout. see also <https://stackoverflow.com/a/67429568/1390405>
16,843,631
I'm updating an old shell script to run with a new configuration and I'm relatively new to shell scripting, but I've been generally alright for most of the script. However, I'm having trouble figuring out exactly what the following line is doing. This particular line is being called from another running script and is b...
2013/05/30
[ "https://Stackoverflow.com/questions/16843631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1287834/" ]
It just saves the dir the script is located in: ``` DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ``` The `commandA && commandB` condition is evaluated like this: `commandB` is executed if, and only if, `commandA` returns an exit status of zero. Being `cd something`, it will return true if the dir `someth...
``` DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | | | | | |___ First value | |______ prints current working directory | | | | | of array |___Logical AND operator | | | | |__ Command to strip non-directory suffix | | | | | | | |__ Doing comm...
90,866
Subsequent to my question about Club’s telephone tips in Maureen Dowd’s article, "Mitt Romney is the president of white male America” in New York Times (Nov. 10), I was interested in the usage of “the Ones” in the following sentence: > > > > > > “Just like the Bushes before him, Romney tried to portray himself as >...
2012/11/11
[ "https://english.stackexchange.com/questions/90866", "https://english.stackexchange.com", "https://english.stackexchange.com/users/3119/" ]
It seems to me that by "**the One**", Dowd means Obama as a kind of savior because he was so persuasive about his vision of change in the American government. Romney, she says, tried to portray himself as a rival "**the One**" and his GOP colleagues as his assistant "**the Ones**". The gallimaufry (the melange that is ...
"Exalting the One" means "praising a chosen person", implying that the person the people would vote for would be able to solve their problems. "We are the Ones" indeed refers to the people, implying that there is no charismatic leader who can help the people, it is the people themselves who can work out the solutions...
55,933,487
I am using a GROUP\_CONCAT() to display multiple category's but i am not getting an exact result. for table join i am using an IN() clause please help me on this. > > The query only displays a single category. in database category id store like 2,5,8 > > > ``` $sql = "SELECT u.*, GROUP_CONCAT(c.name SEPARATOR ','...
2019/05/01
[ "https://Stackoverflow.com/questions/55933487", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10851097/" ]
You can use the ES6 arrow function and pass the additional arg. (event) though that. ``` <Input onChange={(event)=>this.props.updateQuantity(event,item.id)} defaultValue={item.unit_quantity || ""}/> ``` and in the parent component use as it is: ``` updateQuantity = (event,id) => { console.log(event, id) //...
The child which renders the input could have an intermediate function that serves to call the `updateQuantity` function from the props with the right parameters. So you change the function passed to the input onChange to a local function in the child: ``` <Input onChange={this.updateQuantity} defaultValue={item.unit_...
59,201
What is the level of formality of this expression? Is this a set expression or does it follow after a more generic grammatical pattern? Example sentences would be appreciated.
2018/06/03
[ "https://japanese.stackexchange.com/questions/59201", "https://japanese.stackexchange.com", "https://japanese.stackexchange.com/users/29302/" ]
> > What is the level of formality of this expression? > > > I think it can be either very formal or rather informal. You wouldn't used it in very casual conversation. In casual, colloquial conversation you'd more often hear 「言おうとする」 or 「言いたい」, as in: > > 「お前の**言いたい**ことはわかる。」 > > 「何を**言おうとしてる**のかわからない。」 > ...
I am not familiar with the expression and have never seen it before so hopefully a native can chime in but I could find the following information: from *Daijisen* by Shogakukan: > > ん[助動] > > > [助動]《推量の助動詞「む」の音変化》活用語の未然形に付く。 > > > 1婉曲的表現を表す。「あらんかぎりの力を出す」 > > > 2 (「んとする」の形で)意志・推量の意を表す。「言わんとすることはわかった」 > > > ...
27,540,502
When i try to add the image in the URL to a PDF file the image comes completley black. But when I click the download pdf button again the image gets added to the PDF.Only when I do it the first time, the image comes as black. ``` function getBase64Image(url) { alert(url); var canvas = document.getElementById(...
2014/12/18
[ "https://Stackoverflow.com/questions/27540502", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4370236/" ]
What happens when you change your code like this: A changed JPEG to PNG, that worked for me. ``` function getBase64Image(url) { alert(url); var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); var img = new Image(); img.src = url; img.style.height ="181px"; img.style.width ="183...
I was facing the same issue yesterday, and writing this answer incase someone finds it useful ### What I was trying to achieve? * I was converting the doc (pdf) into a blob and then opening it in a print dialogue, but the image was black. `var blob = new Blob([doc.output()], { type: "application/pdf" });` This is h...
2,839,311
I'm noob in Mathematics. Currently I'm experiencing with **Exponent** Equation. I know exponent can be added if we multiply and subtract if we divided. But I'm lost how the following first equation sorts out to the second one. $$a = \frac{e^3}{e^3 + e^2}$$ $$a = \frac{1}{1 + e^{2-3}}$$ **e** is the **Euler's number**...
2018/07/03
[ "https://math.stackexchange.com/questions/2839311", "https://math.stackexchange.com", "https://math.stackexchange.com/users/426795/" ]
Use $$ \frac x{y+z}=\frac x{x\cdot(\frac yx+\frac zx)}=\frac1{\frac yx+\frac zx}.$$
$a = \frac{e^3}{e^3 + e^2}$ -- (1) Factor out $e^{3}$ from the denominator in (1). That is, $a$ $= \frac{e^3}{e^{3}(e^{3 - 3} + e^{2 - 3})}$ $= \frac{e^3}{e^{3}(e^{0} + e^{- 1})}$ -- (2) From (2), we conclude via this rule: $x^{0} = 1$ where $x ≠ 0$ that $$a = \frac{1}{1 + e^{- 1}}$$
2,839,311
I'm noob in Mathematics. Currently I'm experiencing with **Exponent** Equation. I know exponent can be added if we multiply and subtract if we divided. But I'm lost how the following first equation sorts out to the second one. $$a = \frac{e^3}{e^3 + e^2}$$ $$a = \frac{1}{1 + e^{2-3}}$$ **e** is the **Euler's number**...
2018/07/03
[ "https://math.stackexchange.com/questions/2839311", "https://math.stackexchange.com", "https://math.stackexchange.com/users/426795/" ]
**Hint:** Use $2=2-3+3$, hence $e^2=e^{2-3+3}=e^{2-3}e^3$.
$a = \frac{e^3}{e^3 + e^2}$ -- (1) Factor out $e^{3}$ from the denominator in (1). That is, $a$ $= \frac{e^3}{e^{3}(e^{3 - 3} + e^{2 - 3})}$ $= \frac{e^3}{e^{3}(e^{0} + e^{- 1})}$ -- (2) From (2), we conclude via this rule: $x^{0} = 1$ where $x ≠ 0$ that $$a = \frac{1}{1 + e^{- 1}}$$
2,839,311
I'm noob in Mathematics. Currently I'm experiencing with **Exponent** Equation. I know exponent can be added if we multiply and subtract if we divided. But I'm lost how the following first equation sorts out to the second one. $$a = \frac{e^3}{e^3 + e^2}$$ $$a = \frac{1}{1 + e^{2-3}}$$ **e** is the **Euler's number**...
2018/07/03
[ "https://math.stackexchange.com/questions/2839311", "https://math.stackexchange.com", "https://math.stackexchange.com/users/426795/" ]
$$\frac{e^3}{e^3 + e^2}=\frac{\color{red}{\frac1{e^3}}\cdot e^3}{\color{red}{\frac1{e^3}}(e^3 + e^2)}=\frac1{1+e^{2-3}}=\frac1{1+\frac1e}$$
$a = \frac{e^3}{e^3 + e^2}$ -- (1) Factor out $e^{3}$ from the denominator in (1). That is, $a$ $= \frac{e^3}{e^{3}(e^{3 - 3} + e^{2 - 3})}$ $= \frac{e^3}{e^{3}(e^{0} + e^{- 1})}$ -- (2) From (2), we conclude via this rule: $x^{0} = 1$ where $x ≠ 0$ that $$a = \frac{1}{1 + e^{- 1}}$$
17,716,803
How to convert list of filenames to set of variables names in makefile? For example, I have list of filenames and set of variables: ``` filename := file1 file2 file3 ... file1 := opt1 file2 := opt2 file3 := opt3 ... ... ``` and now I want to create new set of variable: ``` file1_opt := ...
2013/07/18
[ "https://Stackoverflow.com/questions/17716803", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2594223/" ]
In principal, what you are trying to do is correct. However, by default Neo4j will only listen on the localhost (127.0.0.1) address. To change this, close the running instance and edit the file conf/neo4j-server.properties in a text editor. If you want the server to listen on all IPs assigned to the host machine (nor...
1. Work out how to access it just from a web browser 2. Use that URL in the constructor for `GraphClient`
58,537,328
The setting is simple, I wanted to retrieve all rows from `table A` that were not present in `table B`. Because a unique row can be identified using 4 columns, I needed to have a way to write the `WHERE` statement that it works correctly. My solution is to concatenate the 4 columns and use that as "one" column/key to...
2019/10/24
[ "https://Stackoverflow.com/questions/58537328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7450545/" ]
You seem to be looking for `not exists`: ``` select a.* from table_a a where a.filter_condition = 0 and not exists ( select 1 from table_b b where a.column1 = b.column1 and a.column2 = b.column2 and a.column3 = b.column3 and a.column4 = b.column4 ) ``` This will give ...
Using a `LEFT JOIN` between `A` and `B` and checking for a `NULL` row in `B` is probably easier: ``` SELECT * FROM table_A A LEFT JOIN table_B B ON A.column1 = B.column1 AND A.column2 = B.column2 AND A.column3 = B.column3 AND A.column4 = B.column4 WHERE B.col...
58,537,328
The setting is simple, I wanted to retrieve all rows from `table A` that were not present in `table B`. Because a unique row can be identified using 4 columns, I needed to have a way to write the `WHERE` statement that it works correctly. My solution is to concatenate the 4 columns and use that as "one" column/key to...
2019/10/24
[ "https://Stackoverflow.com/questions/58537328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7450545/" ]
You seem to be looking for `not exists`: ``` select a.* from table_a a where a.filter_condition = 0 and not exists ( select 1 from table_b b where a.column1 = b.column1 and a.column2 = b.column2 and a.column3 = b.column3 and a.column4 = b.column4 ) ``` This will give ...
You should be able to use tuples (aka row constructors) in PostgreSQL: ``` select * from table_a where filter_condition = 0 and (column1, column2, column3, column4) not in ( select column1, column2, column3, column4 from table_b ); ``` If the columns can be null, then better use `NOT EXISTS`, as null=null resul...
41,215,475
Think there is an original array: ``` $array[] = array('name' => 'a', 'code'=>1); $array[] = array('name' => 'b', 'code'=>2); $array[] = array('name' => 'c', 'code'=>3); $array[] = array('name' => 'd', 'code'=>4); $array[] = array('name' => 'e', 'code'=>5); $array[] = array('name' => 'f', 'code'=>6); $array[] = ...
2016/12/19
[ "https://Stackoverflow.com/questions/41215475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3822574/" ]
This will do it. The below code will split the array into two new arrays. Anything with an even number will be added to an array with the new element at the start. Anything with an odd number will be added to the end of the other new array. Then you simply merge them. ``` $array = []; $array[] = array('name' => 'a', ...
The desired array can be built in *O(n)* as follows: ``` $r = []; for ($i = count($array) - 1; $i >= 0; --$i) { if ($i % 2) { $r []= $array[$i]; } else { array_unshift($r, $array[$i]); } } ``` The code iterates over the array items from the end. The items under odd indices (when `$i % 2` is non-zero) a...