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
33,277,794
The last exam objective under "Java Streams" section in [1Z0-809 exam](http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-809&p_org_id=1001&lang=US) (Java 8 exam) reads: > > Use of `merge()` and `flatMap()` methods of the Streams > > > There is no `merge()` me...
2015/10/22
[ "https://Stackoverflow.com/questions/33277794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5475114/" ]
Same issue at Xcode 6.4. My workaround. 1. Rename Xcode 6.4 (Xcode64.app) 2. Install Xcode 7.1 (Xcode.app) 3. Build and archive in Xcode 6 4. Auto launch "Organizer" in Xcode 6 and **close** 5. Launch **Xcode 7 and Organizer** 6. Submit to App Store
Seems to be an issue with Xcode 6.4. Export the ipa and upload it using Application Loader. Relevant [Apple Developer Forum Link](https://forums.developer.apple.com/thread/23672)
33,277,794
The last exam objective under "Java Streams" section in [1Z0-809 exam](http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-809&p_org_id=1001&lang=US) (Java 8 exam) reads: > > Use of `merge()` and `flatMap()` methods of the Streams > > > There is no `merge()` me...
2015/10/22
[ "https://Stackoverflow.com/questions/33277794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5475114/" ]
I was facing the same issue but then i used **Application Loader** and it worked for me. After validating your app Export your app by selecting option as **Save for iOS App Store Deployment** and then Just upload your apps ipa using Application Loader.
Same issue at Xcode 6.4. My workaround. 1. Rename Xcode 6.4 (Xcode64.app) 2. Install Xcode 7.1 (Xcode.app) 3. Build and archive in Xcode 6 4. Auto launch "Organizer" in Xcode 6 and **close** 5. Launch **Xcode 7 and Organizer** 6. Submit to App Store
33,277,794
The last exam objective under "Java Streams" section in [1Z0-809 exam](http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-809&p_org_id=1001&lang=US) (Java 8 exam) reads: > > Use of `merge()` and `flatMap()` methods of the Streams > > > There is no `merge()` me...
2015/10/22
[ "https://Stackoverflow.com/questions/33277794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5475114/" ]
**Workaround Steps Using the Application Loader:** 1. Export your build as a file (Save for iOS App Store Deployment) 2. Go to Xcode > Open Developer Tool > Application Loader 3. In Application Loader log in to your account 4. Select and upload the .ipa file you just exported
Okay, I was finally able to upload my application heres what was happening, I had used a third party lib., which had an info.plist of its own this info.plist was the culprit, It didn't had any `Bundle Identifier`, `CFBundleVersion` or `CFBundleShortVersionString` string, so I manually added These 3 keys into that fram...
33,277,794
The last exam objective under "Java Streams" section in [1Z0-809 exam](http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-809&p_org_id=1001&lang=US) (Java 8 exam) reads: > > Use of `merge()` and `flatMap()` methods of the Streams > > > There is no `merge()` me...
2015/10/22
[ "https://Stackoverflow.com/questions/33277794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5475114/" ]
I was facing the same issue but then i used **Application Loader** and it worked for me. After validating your app Export your app by selecting option as **Save for iOS App Store Deployment** and then Just upload your apps ipa using Application Loader.
Okay, I was finally able to upload my application heres what was happening, I had used a third party lib., which had an info.plist of its own this info.plist was the culprit, It didn't had any `Bundle Identifier`, `CFBundleVersion` or `CFBundleShortVersionString` string, so I manually added These 3 keys into that fram...
33,277,794
The last exam objective under "Java Streams" section in [1Z0-809 exam](http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-809&p_org_id=1001&lang=US) (Java 8 exam) reads: > > Use of `merge()` and `flatMap()` methods of the Streams > > > There is no `merge()` me...
2015/10/22
[ "https://Stackoverflow.com/questions/33277794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5475114/" ]
I was with the same issue, Using the **Application Loader** works for me. In Organizer, export your app and select the option **Save for iOS App Store Deployment** I did it and works for me before that I tried with **Save for Ad Hoc Deployment** but with no success!
Okay, I was finally able to upload my application heres what was happening, I had used a third party lib., which had an info.plist of its own this info.plist was the culprit, It didn't had any `Bundle Identifier`, `CFBundleVersion` or `CFBundleShortVersionString` string, so I manually added These 3 keys into that fram...
33,277,794
The last exam objective under "Java Streams" section in [1Z0-809 exam](http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-809&p_org_id=1001&lang=US) (Java 8 exam) reads: > > Use of `merge()` and `flatMap()` methods of the Streams > > > There is no `merge()` me...
2015/10/22
[ "https://Stackoverflow.com/questions/33277794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5475114/" ]
I was with the same issue, Using the **Application Loader** works for me. In Organizer, export your app and select the option **Save for iOS App Store Deployment** I did it and works for me before that I tried with **Save for Ad Hoc Deployment** but with no success!
This occurred for me when I accidentally left "Include Bitcode" checkmarked (on by default) in my build despite setting the project to not contain bitcode. Uncheckmarking it resolved this issue.
33,277,794
The last exam objective under "Java Streams" section in [1Z0-809 exam](http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-809&p_org_id=1001&lang=US) (Java 8 exam) reads: > > Use of `merge()` and `flatMap()` methods of the Streams > > > There is no `merge()` me...
2015/10/22
[ "https://Stackoverflow.com/questions/33277794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5475114/" ]
Same issue at Xcode 6.4. My workaround. 1. Rename Xcode 6.4 (Xcode64.app) 2. Install Xcode 7.1 (Xcode.app) 3. Build and archive in Xcode 6 4. Auto launch "Organizer" in Xcode 6 and **close** 5. Launch **Xcode 7 and Organizer** 6. Submit to App Store
This occurred for me when I accidentally left "Include Bitcode" checkmarked (on by default) in my build despite setting the project to not contain bitcode. Uncheckmarking it resolved this issue.
18,701,065
We want to set the Thread.CurrentCulture * **before** the ASP.NET MVC model binder / validator runs (of course), **but** * **after** the user has been authorized (as we want to load the culture from a UserSettings table) What's the correct extension point we should go for? An action filter is too late, Global.asax i...
2013/09/09
[ "https://Stackoverflow.com/questions/18701065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1400869/" ]
If you create virtual interfaces over eth0, then you should be able to assign different IP addresses to those interfaces. With that, you can use the same ephemeral port numbers (they are allocated in the kernel, so you dont really have much control) for multiple sockets each bound to different addresses -- you will pro...
It's a limitation of the network protocols. Both TCP & UDP, for instance, have 16 bit source and destination ports. Even if you *could* increase the number of ports no one could address them.
18,701,065
We want to set the Thread.CurrentCulture * **before** the ASP.NET MVC model binder / validator runs (of course), **but** * **after** the user has been authorized (as we want to load the culture from a UserSettings table) What's the correct extension point we should go for? An action filter is too late, Global.asax i...
2013/09/09
[ "https://Stackoverflow.com/questions/18701065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1400869/" ]
It's a limitation of the network protocols. Both TCP & UDP, for instance, have 16 bit source and destination ports. Even if you *could* increase the number of ports no one could address them.
It turns out that you cannot use 0 for binding ephemeral port if you want to exceed the 65535 limit. Instead, you need to use an explicit port number. And also turning on `tcp_tw_reuse` might be helpful: <http://krenel.org/tcp-time_wait-and-ephemeral-ports-bad-friends.html>
18,701,065
We want to set the Thread.CurrentCulture * **before** the ASP.NET MVC model binder / validator runs (of course), **but** * **after** the user has been authorized (as we want to load the culture from a UserSettings table) What's the correct extension point we should go for? An action filter is too late, Global.asax i...
2013/09/09
[ "https://Stackoverflow.com/questions/18701065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1400869/" ]
It's a limitation of the network protocols. Both TCP & UDP, for instance, have 16 bit source and destination ports. Even if you *could* increase the number of ports no one could address them.
It seems there's a way, but it's not for free. It's called "bind before connect". See [this short but dense article](https://idea.popcount.org/2014-04-03-bind-before-connect/), which sums it up very nicely. Having multiple virtual IPs is just a start. Quoting the linked article: > > On Linux the ephemeral port range...
18,701,065
We want to set the Thread.CurrentCulture * **before** the ASP.NET MVC model binder / validator runs (of course), **but** * **after** the user has been authorized (as we want to load the culture from a UserSettings table) What's the correct extension point we should go for? An action filter is too late, Global.asax i...
2013/09/09
[ "https://Stackoverflow.com/questions/18701065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1400869/" ]
If you create virtual interfaces over eth0, then you should be able to assign different IP addresses to those interfaces. With that, you can use the same ephemeral port numbers (they are allocated in the kernel, so you dont really have much control) for multiple sockets each bound to different addresses -- you will pro...
It turns out that you cannot use 0 for binding ephemeral port if you want to exceed the 65535 limit. Instead, you need to use an explicit port number. And also turning on `tcp_tw_reuse` might be helpful: <http://krenel.org/tcp-time_wait-and-ephemeral-ports-bad-friends.html>
18,701,065
We want to set the Thread.CurrentCulture * **before** the ASP.NET MVC model binder / validator runs (of course), **but** * **after** the user has been authorized (as we want to load the culture from a UserSettings table) What's the correct extension point we should go for? An action filter is too late, Global.asax i...
2013/09/09
[ "https://Stackoverflow.com/questions/18701065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1400869/" ]
If you create virtual interfaces over eth0, then you should be able to assign different IP addresses to those interfaces. With that, you can use the same ephemeral port numbers (they are allocated in the kernel, so you dont really have much control) for multiple sockets each bound to different addresses -- you will pro...
It seems there's a way, but it's not for free. It's called "bind before connect". See [this short but dense article](https://idea.popcount.org/2014-04-03-bind-before-connect/), which sums it up very nicely. Having multiple virtual IPs is just a start. Quoting the linked article: > > On Linux the ephemeral port range...
30,338,226
I am trying to figure out this stored procedure. ``` ALTER procedure [dbo].[GetTotals] @Service nvarchar(50), @Country nvarchar(50) = NULL, @Region nvarchar(50) = NULL as SELECT CASE @Service WHEN 'Army' THEN Sum(Army) WHEN 'Navy' THEN Sum(Navy) When 'Marine_Corps' then Sum(Marine_Corps) When '...
2015/05/20
[ "https://Stackoverflow.com/questions/30338226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1561777/" ]
This is often done like this: ``` WHERE COALESCE(@Country,Country) = Country AND COALESCE(@Region,Region) = Region ```
``` WHERE (Country = @Country OR @Country IS NULL) AND (Region = @Region OR @Region IS NULL) ```
4,734,328
I have a database at mysql and the same with on the device, i want to synchronize the updated data once in a period on my device, how can i achieve this ? Please advise. I got one worst case solution that is writing triggers for each table and update the details to another table, but i have 20 tables i need to write 4...
2011/01/19
[ "https://Stackoverflow.com/questions/4734328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/487604/" ]
First off, you dont need to use fields if you do nothing in the property other then set it. ``` public Object LogedObject { get; set; } ``` is enough. Secondly, to show a list of your objects in a DataGrid, as example. ``` protected void Page_Load(object sender, EventArgs e) { DataGrid dg = new DataGrid(); ...
Look at the DataBinder class, it should allow you to do what you want ;-)
4,734,328
I have a database at mysql and the same with on the device, i want to synchronize the updated data once in a period on my device, how can i achieve this ? Please advise. I got one worst case solution that is writing triggers for each table and update the details to another table, but i have 20 tables i need to write 4...
2011/01/19
[ "https://Stackoverflow.com/questions/4734328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/487604/" ]
First off, you dont need to use fields if you do nothing in the property other then set it. ``` public Object LogedObject { get; set; } ``` is enough. Secondly, to show a list of your objects in a DataGrid, as example. ``` protected void Page_Load(object sender, EventArgs e) { DataGrid dg = new DataGrid(); ...
To bind with GridView (or similar controls such as Repeater, ListView), you typically need to know property names of object because that's what you will use to bind column to. So is this example, you may bind to LogID and LogedObject properties. For later, ToString will be invoked on object to show the string represent...
4,734,328
I have a database at mysql and the same with on the device, i want to synchronize the updated data once in a period on my device, how can i achieve this ? Please advise. I got one worst case solution that is writing triggers for each table and update the details to another table, but i have 20 tables i need to write 4...
2011/01/19
[ "https://Stackoverflow.com/questions/4734328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/487604/" ]
First off, you dont need to use fields if you do nothing in the property other then set it. ``` public Object LogedObject { get; set; } ``` is enough. Secondly, to show a list of your objects in a DataGrid, as example. ``` protected void Page_Load(object sender, EventArgs e) { DataGrid dg = new DataGrid(); ...
Instead of returning collection of class EventDetail, if you only have to bind logedevent, then do the following. Extract the collection of LogedObject in some other collection or directly bind it to grid ``` protected void BindGrid() { gv.DataSource = EventDetail_Object.LogedObect_Property_Of_Class; gv.DataB...
4,734,328
I have a database at mysql and the same with on the device, i want to synchronize the updated data once in a period on my device, how can i achieve this ? Please advise. I got one worst case solution that is writing triggers for each table and update the details to another table, but i have 20 tables i need to write 4...
2011/01/19
[ "https://Stackoverflow.com/questions/4734328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/487604/" ]
First off, you dont need to use fields if you do nothing in the property other then set it. ``` public Object LogedObject { get; set; } ``` is enough. Secondly, to show a list of your objects in a DataGrid, as example. ``` protected void Page_Load(object sender, EventArgs e) { DataGrid dg = new DataGrid(); ...
tanx for any body help me i solve this problem by reflection i use refelection to get my properties of my object an thie values an then add this value to my string list ``` //exteract properties of loged object PropertyInfo[] _PropertyInfo = _ObjectType.GetProperties(); List<string> _ObjBeforTostring = new List<string...
32,028,410
I'm sure there's a way to do this elegantly in SML but I'm having difficulty keeping track of the number of iterations (basically the number of times my function has been called). I'm trying to write a function that evaluates to a pair of numbers, one for the floor of the answer and the other for the remainder. So if ...
2015/08/15
[ "https://Stackoverflow.com/questions/32028410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1316501/" ]
If SML has support for nested functions you could do like this: ``` divmod(number : int, divisor : int) = _divmod(n : int, d : int, count : int) = if n < d then (count, n) else _divmod(n - d, d, count + 1) _divmod(number, divisor, 0) ```
Personally, I *like* the fact that SML isn't a pure functional language. Keeping track of function calls is naturally done via side effects (rather than explicitly passing a counter variable). For example, given a generic recursive Fibonacci: ``` fun fib 0 = 0 | fib 1 = 0 | fib n = fib(n-2) + fib(n-1); ``` You ...
31,337,221
I'm trying to dispaly some element in single line inside header of my blog, but i have problem with logo in it. here is my code: CSS: ```css .list { margin:0; padding: 0; list-style-type: none; display: table; table-layout: fixed; width:100%; } img { padding: 0; } .list>a { display: t...
2015/07/10
[ "https://Stackoverflow.com/questions/31337221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4105289/" ]
### Fixing the Alignment To fix the alignment you simply need to introduce the `vertical-align` property to align everything to the top: ```css .list { ... vertical-align: top; } ``` ### Making your HTML Valid A problem with your markup is that `ul` elements must only contain `li` children. Your current `u...
You can define your `.list>a` and `img` tag `vertical-align:top;` ``` .list>a, img{ vertical-align:top; } ```
31,337,221
I'm trying to dispaly some element in single line inside header of my blog, but i have problem with logo in it. here is my code: CSS: ```css .list { margin:0; padding: 0; list-style-type: none; display: table; table-layout: fixed; width:100%; } img { padding: 0; } .list>a { display: t...
2015/07/10
[ "https://Stackoverflow.com/questions/31337221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4105289/" ]
### Fixing the Alignment To fix the alignment you simply need to introduce the `vertical-align` property to align everything to the top: ```css .list { ... vertical-align: top; } ``` ### Making your HTML Valid A problem with your markup is that `ul` elements must only contain `li` children. Your current `u...
``` .list > a { vertical-align: bottom; } ``` as you have wrap everything inside the anchor tag, we should target the a tag here's a [Jsfiddle](https://jsfiddle.net/hrbtkegr/)
31,337,221
I'm trying to dispaly some element in single line inside header of my blog, but i have problem with logo in it. here is my code: CSS: ```css .list { margin:0; padding: 0; list-style-type: none; display: table; table-layout: fixed; width:100%; } img { padding: 0; } .list>a { display: t...
2015/07/10
[ "https://Stackoverflow.com/questions/31337221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4105289/" ]
You can define your `.list>a` and `img` tag `vertical-align:top;` ``` .list>a, img{ vertical-align:top; } ```
``` .list > a { vertical-align: bottom; } ``` as you have wrap everything inside the anchor tag, we should target the a tag here's a [Jsfiddle](https://jsfiddle.net/hrbtkegr/)
31,337,221
I'm trying to dispaly some element in single line inside header of my blog, but i have problem with logo in it. here is my code: CSS: ```css .list { margin:0; padding: 0; list-style-type: none; display: table; table-layout: fixed; width:100%; } img { padding: 0; } .list>a { display: t...
2015/07/10
[ "https://Stackoverflow.com/questions/31337221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4105289/" ]
First, let us rearrange your HTML, so the code is valid. A list (`ul`) has list-items (`li`). The list items may contain anchors, paragraphs, headings, etc. Not the other way around. Then we'll need to change the CSS a bit, so the anchors get the right color. But the most important thing is the vertical alignment of ...
You can define your `.list>a` and `img` tag `vertical-align:top;` ``` .list>a, img{ vertical-align:top; } ```
31,337,221
I'm trying to dispaly some element in single line inside header of my blog, but i have problem with logo in it. here is my code: CSS: ```css .list { margin:0; padding: 0; list-style-type: none; display: table; table-layout: fixed; width:100%; } img { padding: 0; } .list>a { display: t...
2015/07/10
[ "https://Stackoverflow.com/questions/31337221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4105289/" ]
First, let us rearrange your HTML, so the code is valid. A list (`ul`) has list-items (`li`). The list items may contain anchors, paragraphs, headings, etc. Not the other way around. Then we'll need to change the CSS a bit, so the anchors get the right color. But the most important thing is the vertical alignment of ...
``` .list > a { vertical-align: bottom; } ``` as you have wrap everything inside the anchor tag, we should target the a tag here's a [Jsfiddle](https://jsfiddle.net/hrbtkegr/)
2,305,151
So I have tried time and time again but do not understand how to conclude this proof. The answer to the example states: > > Prove that $5n^2 - 2n + 16$ is not O(n). Assume $5n^2 - 2n + 16$ is O(n). Then there exist constants C and k so that $5n^2 - 2n + 16 \le Cn$ for all n > k. Dividing both sides by n (and assuming...
2017/06/01
[ "https://math.stackexchange.com/questions/2305151", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451327/" ]
This seems to b equivalent to the following system of simultaneous equations, with unknowns $v,x,y,z$ representing the four tracks, and $a,b,c,d$ representing the recordings: $$\begin{cases} &&\;\;x&+y&+z&=a\\ &v&&+y&+z&=b\\ &v&+x&&+z&=c\\ &v&+x&+y&&=d \end{cases}$$ [Solving](https://www.wolframalpha.com/input/?i=x%2B...
If you add all four together you get the sum of three times each track, so one third of it is BDGV. If you subtract the first you have B left. So $B=\frac 13(BGV+BDV+BDG)-\frac 23DGV$ and similarly for all the others.
2,305,151
So I have tried time and time again but do not understand how to conclude this proof. The answer to the example states: > > Prove that $5n^2 - 2n + 16$ is not O(n). Assume $5n^2 - 2n + 16$ is O(n). Then there exist constants C and k so that $5n^2 - 2n + 16 \le Cn$ for all n > k. Dividing both sides by n (and assuming...
2017/06/01
[ "https://math.stackexchange.com/questions/2305151", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451327/" ]
This seems to b equivalent to the following system of simultaneous equations, with unknowns $v,x,y,z$ representing the four tracks, and $a,b,c,d$ representing the recordings: $$\begin{cases} &&\;\;x&+y&+z&=a\\ &v&&+y&+z&=b\\ &v&+x&&+z&=c\\ &v&+x&+y&&=d \end{cases}$$ [Solving](https://www.wolframalpha.com/input/?i=x%2B...
If we have: $$ -DGV\\ B-GV\\ BD-V\\ BDG- $$ we have two ways to add them all, we either get $BDGV$ or $3BDGV$. If the second, divide by $3$, but either way then subtract any mix from the 'master mix'.
34,053
I've attached some JPG files to notes in contact records, but them I can't open them and if I save them locally then most applications can't open teh saved version and say they aren't in a supported file format, though surprising, Adobe Acrobat will open them (which is not a solution for most users). I'm using WordPre...
2019/12/11
[ "https://civicrm.stackexchange.com/questions/34053", "https://civicrm.stackexchange.com", "https://civicrm.stackexchange.com/users/4524/" ]
Eventually I found out what the problem is and it is caused by the child theme that I had created. Another problem elsewhere that had an extra blank line at the start of a news feed and Demerit's comment above suggested this as a solution. When I changed to the base theme all was fine. Going back to functions.php for t...
Do you have Shoreditch theme installed? This will complicate a few things in WordPress and even the fabulous CiviCRM Admin Utilities WP-Plugin won't fix it. Try this extension from bgm: <https://civicrm.org/extensions/shoreditch-wordpress-workarounds>
46,421,858
i make an argument but when i try open the application, it gave me error on line 124 how to call the argument so that can be show in the code? here is my code, and what i've done ``` /** * A simple {@link Fragment} subclass. * Activities that contain this fragment must implement the * {@link LoginFragment.OnFragme...
2017/09/26
[ "https://Stackoverflow.com/questions/46421858", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7678360/" ]
if you are not sure the arguments has data inside, you can check if argumen has the value or not by ``` if (getArguments().containsKey(KEY_ID)) { id = getArguments().getString(KEY_ID); } ``` and so on
`getActivity().getIntent().getExtras()` is returning null. You might not have added anything in the `intent.putExtra()` and you are passing arguments may be. You can try using `getArguments.getString(TAG_ID);`
3,522,254
I have added the back ground color as an image to uiwebview but it is coming to the back side of web view not to the web view. The web view is always in white colored view, I can't change it. ``` myView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; myView.autoresizingMask=YES; webView = [...
2010/08/19
[ "https://Stackoverflow.com/questions/3522254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/249634/" ]
A webview will display a document, so background color is really nothing that makes a lot of sense here. If you want to display something while no page is loaded, build a placeholder page containing your background.
If you want to display a specific background before the UIWebView has loaded HTML content you can add a loading view over the top and then remove it when you get *webViewDidFinishLoad* on your *UIWebViewDelegate*: ``` - (void)webViewDidFinishLoad:(UIWebView *)webView ``` If you need to set the background color on th...
3,522,254
I have added the back ground color as an image to uiwebview but it is coming to the back side of web view not to the web view. The web view is always in white colored view, I can't change it. ``` myView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; myView.autoresizingMask=YES; webView = [...
2010/08/19
[ "https://Stackoverflow.com/questions/3522254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/249634/" ]
[webView setOpaque:NO];
A webview will display a document, so background color is really nothing that makes a lot of sense here. If you want to display something while no page is loaded, build a placeholder page containing your background.
3,522,254
I have added the back ground color as an image to uiwebview but it is coming to the back side of web view not to the web view. The web view is always in white colored view, I can't change it. ``` myView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; myView.autoresizingMask=YES; webView = [...
2010/08/19
[ "https://Stackoverflow.com/questions/3522254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/249634/" ]
[webView setOpaque:NO];
If you want to display a specific background before the UIWebView has loaded HTML content you can add a loading view over the top and then remove it when you get *webViewDidFinishLoad* on your *UIWebViewDelegate*: ``` - (void)webViewDidFinishLoad:(UIWebView *)webView ``` If you need to set the background color on th...
26,491,225
I am learning how to use Putty to access Linux servers and I am looking into setting directory permissions at the moment. For this, I did some simple test commands. I created a test directory and set the permissions to 0 like so ``` chmod 000 myTestDir ``` My understanding is that the first digit sets the permission...
2014/10/21
[ "https://Stackoverflow.com/questions/26491225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1457366/" ]
After waiting about 10 minutes the background scanning ended to 100% and now Netbeans is usable again.
I had the same problem. I had to do an SMC reboot of my laptop and it fixed it. For the newer unibody (non-removable battery) MacBooks it is done by 1. Power down the laptop. 2. Hold Left Shift, Left Control, Left Option and the Power button together, and then let go. 3. Power on the laptop. Hope that works for you...
26,491,225
I am learning how to use Putty to access Linux servers and I am looking into setting directory permissions at the moment. For this, I did some simple test commands. I created a test directory and set the permissions to 0 like so ``` chmod 000 myTestDir ``` My understanding is that the first digit sets the permission...
2014/10/21
[ "https://Stackoverflow.com/questions/26491225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1457366/" ]
I had the same problem. I had to do an SMC reboot of my laptop and it fixed it. For the newer unibody (non-removable battery) MacBooks it is done by 1. Power down the laptop. 2. Hold Left Shift, Left Control, Left Option and the Power button together, and then let go. 3. Power on the laptop. Hope that works for you...
Just install the latest JRE for Apple found here : <http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US> and it should work just fine!
26,491,225
I am learning how to use Putty to access Linux servers and I am looking into setting directory permissions at the moment. For this, I did some simple test commands. I created a test directory and set the permissions to 0 like so ``` chmod 000 myTestDir ``` My understanding is that the first digit sets the permission...
2014/10/21
[ "https://Stackoverflow.com/questions/26491225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1457366/" ]
After waiting about 10 minutes the background scanning ended to 100% and now Netbeans is usable again.
Just install the latest JRE for Apple found here : <http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US> and it should work just fine!
608,862
I'm trying to motivate the theory of general relativity. Concretely, using which arguments is it deduced that spacetime must have the structure of a curved Riemannian manifold? From the strong equivalence principle I deduce that it is taken as an axiom that free-falling frames are locally intertial, but I don't know h...
2021/01/19
[ "https://physics.stackexchange.com/questions/608862", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/216010/" ]
> > I'm trying to motivate the general relativity theory. Concretely upon which arguments is deduced that spacetime must have a structure of curved Riemannian manifold. > > > First, you consider spacetime without gravity. You notice that inertial objects have worldlines which are straight lines in spacetime and ac...
We don't have any better way to define straightness than by saying that the world-line of an inertially moving test particle is straight. By the equivalence principle, we have to count free-falling particles as inertial. (We can't say they're acted on by a gravitational force, because there is always a frame in which t...
608,862
I'm trying to motivate the theory of general relativity. Concretely, using which arguments is it deduced that spacetime must have the structure of a curved Riemannian manifold? From the strong equivalence principle I deduce that it is taken as an axiom that free-falling frames are locally intertial, but I don't know h...
2021/01/19
[ "https://physics.stackexchange.com/questions/608862", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/216010/" ]
> > I'm trying to motivate the general relativity theory. Concretely upon which arguments is deduced that spacetime must have a structure of curved Riemannian manifold. > > > First, you consider spacetime without gravity. You notice that inertial objects have worldlines which are straight lines in spacetime and ac...
There is no a mathematical compelling reason: curvature is permitted by local observations about free falling bodies and by the experimental identification of gravitational and inertial mass. The point is that the **consequences** of the assumption are experimentally confirmed. If we assume that curvature enters the pi...
31,023,665
I would like to define a CSS3 animation which, at some points during the animation, uses the natural value for a property as if the animation was not applied. e.g. ``` @keyframes fadeblue { 0% { background-color: natural; } 100% { background-color: blue; } } .thing1 { background-color: red;...
2015/06/24
[ "https://Stackoverflow.com/questions/31023665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1273906/" ]
So it seems you can't reference the original colour in keyframes. However, you can just specify [one keyframe](http://lea.verou.me/2012/12/animations-with-one-keyframe/) in a `keyframes` declaration and let the browser interpolate the colors for you. Using a keyframe of just `50%` will use the original properties at `0...
You can achieve this if you use a pseudo-element (e.g. `:before`) for `.thing1` and `. thing2`, set it's color to blue, and animate it's `opacity`. It's a bit more work, but I believe it will be more flexible solution: *(see working demo below)* ```css @keyframes fadeblue { 0% { opacity: 0; } 100% { ...
15,300,735
what I am trying to do -I guess- is use an API as a proxy. It worked with Fiddler and there was the idea. I have a website and wish to show another into an iframe. But i need to remove the 'no-open' header to do that. So the plan is: Sent a url string to the API from my site, the API makes a request to that url, get...
2013/03/08
[ "https://Stackoverflow.com/questions/15300735", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2149492/" ]
This way it worked ``` public class ProductsController : ApiController { public HttpResponseMessage GetProductsByCategory(string url) { HttpResponseMessage theResponse = null; // init a wep api Client var myClient = new HttpClient(); var theTask = myClient.GetAs...
You may want to look at the ASP.net web api. You could do this with the WCF HTTP stack located at <http://wcf.codeplex.com/>. It has been included in the ASP.net web api. <http://www.asp.net/web-api>
22,751,736
I'm trying to log crashes in my iPhone app by catching all unhandled exceptions and writing the details to the NSUserDefaults. I set it up by adding this to ``` - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSSetUncaughtExceptionHandler(&uncaughtEx...
2014/03/31
[ "https://Stackoverflow.com/questions/22751736", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1026755/" ]
You need to create a flag variable that you will pass to your view and set it `true` if you want the modal to auto open and set it `false` if you don't want to open it: The problem with this is that `->with()` doesn't work with `Redirect::back()` so we need a workaround: lets pass our flag variable as an input. For th...
You can `return false;` when you return the validations results.
60,540,281
I have data like this: ``` data = [ { 'name':'suresh', 'age':25} { 'name':'ramesh', 'age':35} { 'name':'raina', 'age':15} ] ``` I have tried like ``` for(let ele in data){ consolelog(ele) } ``` **Current Output** ``` 0 1 2 ``` **Expected Output** ``` { 'nam...
2020/03/05
[ "https://Stackoverflow.com/questions/60540281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12965205/" ]
You have to use the `of` keyword for looping arrays ``` for(let ele of data){ console.log(ele) } ```
It's because by doing this: ```js for(let ele in data){ consolelog(ele) } ``` You're looping the properties of the array. An array is really just an object with the properties `0`, `1`, `2`, ... There are several ways to loop an array. In my opinion the two most common are: ```js // old-school... for (let i = 0;...
60,540,281
I have data like this: ``` data = [ { 'name':'suresh', 'age':25} { 'name':'ramesh', 'age':35} { 'name':'raina', 'age':15} ] ``` I have tried like ``` for(let ele in data){ consolelog(ele) } ``` **Current Output** ``` 0 1 2 ``` **Expected Output** ``` { 'nam...
2020/03/05
[ "https://Stackoverflow.com/questions/60540281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12965205/" ]
You have to use the `of` keyword for looping arrays ``` for(let ele of data){ console.log(ele) } ```
Try this code this work for me `for (let ele in data) { console.log(data[ele]) }`
60,540,281
I have data like this: ``` data = [ { 'name':'suresh', 'age':25} { 'name':'ramesh', 'age':35} { 'name':'raina', 'age':15} ] ``` I have tried like ``` for(let ele in data){ consolelog(ele) } ``` **Current Output** ``` 0 1 2 ``` **Expected Output** ``` { 'nam...
2020/03/05
[ "https://Stackoverflow.com/questions/60540281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12965205/" ]
You have to use the `of` keyword for looping arrays ``` for(let ele of data){ console.log(ele) } ```
By your approach ```js let data = [ { 'name':'suresh', 'age':25}, { 'name':'ramesh', 'age':35}, { 'name':'raina', 'age':15} ]; for(let ele in data){ console.log(data[ele]); } ```
60,540,281
I have data like this: ``` data = [ { 'name':'suresh', 'age':25} { 'name':'ramesh', 'age':35} { 'name':'raina', 'age':15} ] ``` I have tried like ``` for(let ele in data){ consolelog(ele) } ``` **Current Output** ``` 0 1 2 ``` **Expected Output** ``` { 'nam...
2020/03/05
[ "https://Stackoverflow.com/questions/60540281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12965205/" ]
It's because by doing this: ```js for(let ele in data){ consolelog(ele) } ``` You're looping the properties of the array. An array is really just an object with the properties `0`, `1`, `2`, ... There are several ways to loop an array. In my opinion the two most common are: ```js // old-school... for (let i = 0;...
Try this code this work for me `for (let ele in data) { console.log(data[ele]) }`
60,540,281
I have data like this: ``` data = [ { 'name':'suresh', 'age':25} { 'name':'ramesh', 'age':35} { 'name':'raina', 'age':15} ] ``` I have tried like ``` for(let ele in data){ consolelog(ele) } ``` **Current Output** ``` 0 1 2 ``` **Expected Output** ``` { 'nam...
2020/03/05
[ "https://Stackoverflow.com/questions/60540281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12965205/" ]
By your approach ```js let data = [ { 'name':'suresh', 'age':25}, { 'name':'ramesh', 'age':35}, { 'name':'raina', 'age':15} ]; for(let ele in data){ console.log(data[ele]); } ```
Try this code this work for me `for (let ele in data) { console.log(data[ele]) }`
25,140,841
Trying to find the string/value in the given array and replace it with new value; More like toggling the sorting value and pushing it to the array; [DEMO](http://plnkr.co/edit/huEip51x6eXcqVc5MSPe?p=preview) Value needs to checked on the click; ``` if(_.contains($scope.sortList, sortText)){ console.log("exist")...
2014/08/05
[ "https://Stackoverflow.com/questions/25140841", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2320559/" ]
Hey bro you would have searched previous questions, check out below fiddle it sorts the array string/value now you need to use underscore to find that element use contains. [fiddle][1] hope this will help you. all the best. ``` [1]: http://jsfiddle.net/mkdskd/78FVh/1/ ```
I would do the following: create an object with all sortable fields, holding their state: ``` var fields = { name: null, // null, 'asc', or 'desc' age: null, // null, 'asc', or 'desc' gender: null // null, 'asc', or 'desc' }; ``` create a `toggle` function: ``` function toggle(fieldName) { switch (fi...
21,551
> > Ce qu'ils ont découvert est troublant, **pour ne pas dire** effrayant. > > > I’m not sure which of the following two interpretations is more accurate: 1. disturbing, even if it is not to the extent of being frightening 2. disturbing, and it might even be frightening
2016/08/16
[ "https://french.stackexchange.com/questions/21551", "https://french.stackexchange.com", "https://french.stackexchange.com/users/10416/" ]
This rhetorical device can be called [preterition](http://www.oxforddictionaries.com/us/definition/american_english/preterition), not to say [euphemism](http://www.oxforddictionaries.com/us/definition/american_english/euphemism). Your first version does not seem correct to me. The second gets the meaning. With my limit...
En complément à une [réponse](https://french.stackexchange.com/a/21553) où l'on parle du sens et de la [prétérition](http://bdl.oqlf.gouv.qc.ca/bdl/gabarit_bdl.asp?id=4093) comme figure de style, on peut ajouter qu'on retrouve ce genre de syntagme prépositionnel dans le *TLFi* sous [*pour*](http://www.cnrtl.fr/definiti...
16,292,159
I have a `weapon` class, `projectile` class and `ballistic weapon` class that inherits from `weapon`, `ballistic projectile` class inherits from `projectile` and `weapon` class has a projectile property that gets and sets the projectile for the weapon. ballistic weapon inherits this however ballistic weapon wouldn't h...
2013/04/30
[ "https://Stackoverflow.com/questions/16292159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2325738/" ]
You could use [covariance](https://stackoverflow.com/tags/covariance/info) to allow for "specialized" projectiles in weapon properties, while still keeping the ability to treat the weapons as part of the same hierarchy: ``` interface IProjectile { string Name { get; } } // Note the `out` keyword below: interface ...
There are lots of ways to design what you are looking for. If it was me I would probably make use of interfaces to avoid the inheritance issues you are describing. I may also make these different types of weapons described in an xml file that gets loaded at runtime. However something like this would work base of what y...
16,292,159
I have a `weapon` class, `projectile` class and `ballistic weapon` class that inherits from `weapon`, `ballistic projectile` class inherits from `projectile` and `weapon` class has a projectile property that gets and sets the projectile for the weapon. ballistic weapon inherits this however ballistic weapon wouldn't h...
2013/04/30
[ "https://Stackoverflow.com/questions/16292159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2325738/" ]
You could use [covariance](https://stackoverflow.com/tags/covariance/info) to allow for "specialized" projectiles in weapon properties, while still keeping the ability to treat the weapons as part of the same hierarchy: ``` interface IProjectile { string Name { get; } } // Note the `out` keyword below: interface ...
You may want to post all classes involved. If I understand you I would think you have some Fire method in the Weapon class (or some method that uses weaponprojectile). You probably want to override that method. Having to detect the type and take an action is not the best design. It is better to encapsulate what changes...
66,099,917
I am developing an app that has a bottomnavitaionbar with five pages. I use getx. In first page, i am listing data. My problem is that, when i changed data(first page in bottomnavigationbar) manually from database and thn i pass over pages, came back to first page i could not see changes. Controller; ``` class Explor...
2021/02/08
[ "https://Stackoverflow.com/questions/66099917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1928396/" ]
GetX doesn't know / can't see when database data has changed / been updated. **You need to tell GetX to rebuild when appropriate.** If you use GetX `observables` with `GetX` or `Obx` widgets, then you just assign a new value to your `observable` field. Rebuilds will happen when the `obs` value changes. If you use Ge...
1. create final exploreController = Get.put(ExploreController()); 2. Add init: ExploreController(); ``` body: SafeArea( child: Column( children: <Widget>[ Header(), Expanded( child: GetX<ExploreController>(builder: (exploreController) { *** h...
66,099,917
I am developing an app that has a bottomnavitaionbar with five pages. I use getx. In first page, i am listing data. My problem is that, when i changed data(first page in bottomnavigationbar) manually from database and thn i pass over pages, came back to first page i could not see changes. Controller; ``` class Explor...
2021/02/08
[ "https://Stackoverflow.com/questions/66099917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1928396/" ]
GetX doesn't know / can't see when database data has changed / been updated. **You need to tell GetX to rebuild when appropriate.** If you use GetX `observables` with `GetX` or `Obx` widgets, then you just assign a new value to your `observable` field. Rebuilds will happen when the `obs` value changes. If you use Ge...
You don't need GetBuilder here, as its not meant for observable variables. Nor do you need to call update() in the fetchArticles function as that's only for use with GetBuilder and non observable variables. So you had 2 widgets meant to update UI (GetBuilder and Obx) both following the same controller and all you need...
66,099,917
I am developing an app that has a bottomnavitaionbar with five pages. I use getx. In first page, i am listing data. My problem is that, when i changed data(first page in bottomnavigationbar) manually from database and thn i pass over pages, came back to first page i could not see changes. Controller; ``` class Explor...
2021/02/08
[ "https://Stackoverflow.com/questions/66099917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1928396/" ]
GetX doesn't know / can't see when database data has changed / been updated. **You need to tell GetX to rebuild when appropriate.** If you use GetX `observables` with `GetX` or `Obx` widgets, then you just assign a new value to your `observable` field. Rebuilds will happen when the `obs` value changes. If you use Ge...
The simplest way I could. In the controller create an obs (var indexClick = 1.obs;) On each Tile test the selected==index...; On the click of each item change the indexClick sequentially ``` return Obx(() { return Drawer( child: ListView( padding: EdgeInsets.zero, children: [ ListTile( ...
66,099,917
I am developing an app that has a bottomnavitaionbar with five pages. I use getx. In first page, i am listing data. My problem is that, when i changed data(first page in bottomnavigationbar) manually from database and thn i pass over pages, came back to first page i could not see changes. Controller; ``` class Explor...
2021/02/08
[ "https://Stackoverflow.com/questions/66099917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1928396/" ]
thanks to @Baker for the right answer. However, if you have a list and in viewModel and want to update that list, just use the `list.refresh()` when the list updated ``` RxList<Models> myList = <Models>[].obs; ``` when add or insert data act like this: ``` myList.add(newItem); myList.refresh(); ```
The simplest way I could. In the controller create an obs (var indexClick = 1.obs;) On each Tile test the selected==index...; On the click of each item change the indexClick sequentially ``` return Obx(() { return Drawer( child: ListView( padding: EdgeInsets.zero, children: [ ListTile( ...
66,099,917
I am developing an app that has a bottomnavitaionbar with five pages. I use getx. In first page, i am listing data. My problem is that, when i changed data(first page in bottomnavigationbar) manually from database and thn i pass over pages, came back to first page i could not see changes. Controller; ``` class Explor...
2021/02/08
[ "https://Stackoverflow.com/questions/66099917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1928396/" ]
GetX doesn't know / can't see when database data has changed / been updated. **You need to tell GetX to rebuild when appropriate.** If you use GetX `observables` with `GetX` or `Obx` widgets, then you just assign a new value to your `observable` field. Rebuilds will happen when the `obs` value changes. If you use Ge...
using `GetxBuilder` approch on ui side and where you want update simple called built in function `update();`
66,099,917
I am developing an app that has a bottomnavitaionbar with five pages. I use getx. In first page, i am listing data. My problem is that, when i changed data(first page in bottomnavigationbar) manually from database and thn i pass over pages, came back to first page i could not see changes. Controller; ``` class Explor...
2021/02/08
[ "https://Stackoverflow.com/questions/66099917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1928396/" ]
1. create final exploreController = Get.put(ExploreController()); 2. Add init: ExploreController(); ``` body: SafeArea( child: Column( children: <Widget>[ Header(), Expanded( child: GetX<ExploreController>(builder: (exploreController) { *** h...
The simplest way I could. In the controller create an obs (var indexClick = 1.obs;) On each Tile test the selected==index...; On the click of each item change the indexClick sequentially ``` return Obx(() { return Drawer( child: ListView( padding: EdgeInsets.zero, children: [ ListTile( ...
66,099,917
I am developing an app that has a bottomnavitaionbar with five pages. I use getx. In first page, i am listing data. My problem is that, when i changed data(first page in bottomnavigationbar) manually from database and thn i pass over pages, came back to first page i could not see changes. Controller; ``` class Explor...
2021/02/08
[ "https://Stackoverflow.com/questions/66099917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1928396/" ]
using `GetxBuilder` approch on ui side and where you want update simple called built in function `update();`
The simplest way I could. In the controller create an obs (var indexClick = 1.obs;) On each Tile test the selected==index...; On the click of each item change the indexClick sequentially ``` return Obx(() { return Drawer( child: ListView( padding: EdgeInsets.zero, children: [ ListTile( ...
66,099,917
I am developing an app that has a bottomnavitaionbar with five pages. I use getx. In first page, i am listing data. My problem is that, when i changed data(first page in bottomnavigationbar) manually from database and thn i pass over pages, came back to first page i could not see changes. Controller; ``` class Explor...
2021/02/08
[ "https://Stackoverflow.com/questions/66099917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1928396/" ]
GetX doesn't know / can't see when database data has changed / been updated. **You need to tell GetX to rebuild when appropriate.** If you use GetX `observables` with `GetX` or `Obx` widgets, then you just assign a new value to your `observable` field. Rebuilds will happen when the `obs` value changes. If you use Ge...
If you change the value in the database 'manually', you need a STREAM to listen to the change on the database. You can't do: ``` var articles = await ApiService.fetchArticles(); ``` You need to do something like this: ``` var articles = await ApiService.listenToArticlesSnapshot(); ``` The way you explained is lik...
66,099,917
I am developing an app that has a bottomnavitaionbar with five pages. I use getx. In first page, i am listing data. My problem is that, when i changed data(first page in bottomnavigationbar) manually from database and thn i pass over pages, came back to first page i could not see changes. Controller; ``` class Explor...
2021/02/08
[ "https://Stackoverflow.com/questions/66099917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1928396/" ]
thanks to @Baker for the right answer. However, if you have a list and in viewModel and want to update that list, just use the `list.refresh()` when the list updated ``` RxList<Models> myList = <Models>[].obs; ``` when add or insert data act like this: ``` myList.add(newItem); myList.refresh(); ```
If you change the value in the database 'manually', you need a STREAM to listen to the change on the database. You can't do: ``` var articles = await ApiService.fetchArticles(); ``` You need to do something like this: ``` var articles = await ApiService.listenToArticlesSnapshot(); ``` The way you explained is lik...
66,099,917
I am developing an app that has a bottomnavitaionbar with five pages. I use getx. In first page, i am listing data. My problem is that, when i changed data(first page in bottomnavigationbar) manually from database and thn i pass over pages, came back to first page i could not see changes. Controller; ``` class Explor...
2021/02/08
[ "https://Stackoverflow.com/questions/66099917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1928396/" ]
thanks to @Baker for the right answer. However, if you have a list and in viewModel and want to update that list, just use the `list.refresh()` when the list updated ``` RxList<Models> myList = <Models>[].obs; ``` when add or insert data act like this: ``` myList.add(newItem); myList.refresh(); ```
1. create final exploreController = Get.put(ExploreController()); 2. Add init: ExploreController(); ``` body: SafeArea( child: Column( children: <Widget>[ Header(), Expanded( child: GetX<ExploreController>(builder: (exploreController) { *** h...
41,260,634
Hello I have an array of strings (CompTblNameArry) that I want to contain certain usernames in database based on select query within cursor. Code is shown below: ``` DECLARE TYPE SegTblTyp IS TABLE OF mto_kgpr.pdtable_12%rowtype; TYPE TblNameStringArry IS TABLE OF varchar2(61) INDEX BY PLS_INTEGER; --Type TblNa...
2016/12/21
[ "https://Stackoverflow.com/questions/41260634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7322704/" ]
There are few issues to your code. 1) Fetch is missing into collection. 2) Loop variable is wrong. See below: ``` DECLARE TYPE SegTblTyp IS TABLE OF mto_kgpr.pdtable_12%ROWTYPE; TYPE TblNameStringArry IS TABLE OF VARCHAR2 (61) INDEX BY PLS_INTEGER; --Type TblNameStringArry is varray(100) of varcha...
Thanks to all for your kind support! I found a working solution based on this support site and through internet searching. I ended up with just using PL/SQL to generate a long union all statement, then I copy the union all statement from dbms\_output.put\_line into a regular sql and then run it from there. Of course ...
18,821,783
By using `rand()` function, we can create a possibility of an output. Like `rand()%4 + 'A'` basically means this code will generate random alphabets from A to D. Then my question is, can we put "possibility rate" into this random generation? Such as, for A to come out among 4 Alphabets ( from A to D), there only wil...
2013/09/16
[ "https://Stackoverflow.com/questions/18821783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2737463/" ]
Create a string of 100 letters, with 24 A's, 12 B's, and appropriate numbers of C's and D's. Generate a random number between 0 and 99; use this as an index into the string. That gives you your weighted random selection. That's a simple but almost graphical way to do it. You can decide based on ranges too.
You can do that by assigning a % to each outcome. Stack percents so that A goes from 0 to 25, B from 26 to 31, etc.. Now generate random number within 0..99 range and see which area it hit. Visually it looks like so: ``` <--A 25%--><-B 5%-><---C30%---><-----D40%-----> ```
18,821,783
By using `rand()` function, we can create a possibility of an output. Like `rand()%4 + 'A'` basically means this code will generate random alphabets from A to D. Then my question is, can we put "possibility rate" into this random generation? Such as, for A to come out among 4 Alphabets ( from A to D), there only wil...
2013/09/16
[ "https://Stackoverflow.com/questions/18821783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2737463/" ]
Create a string of 100 letters, with 24 A's, 12 B's, and appropriate numbers of C's and D's. Generate a random number between 0 and 99; use this as an index into the string. That gives you your weighted random selection. That's a simple but almost graphical way to do it. You can decide based on ranges too.
> > Such as, for A to come out among 4 Alphabets ( from A to D), there only will be 24% chance while B will come out at 12% rate, etc. > > > Yes, of course you can do that. Just select a number between 1 and 100. If the number is in the range [1, 24], the result is A. If the number is in the range [25, 36], the re...
18,821,783
By using `rand()` function, we can create a possibility of an output. Like `rand()%4 + 'A'` basically means this code will generate random alphabets from A to D. Then my question is, can we put "possibility rate" into this random generation? Such as, for A to come out among 4 Alphabets ( from A to D), there only wil...
2013/09/16
[ "https://Stackoverflow.com/questions/18821783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2737463/" ]
> > Such as, for A to come out among 4 Alphabets ( from A to D), there only will be 24% chance while B will come out at 12% rate, etc. > > > Yes, of course you can do that. Just select a number between 1 and 100. If the number is in the range [1, 24], the result is A. If the number is in the range [25, 36], the re...
You can do that by assigning a % to each outcome. Stack percents so that A goes from 0 to 25, B from 26 to 31, etc.. Now generate random number within 0..99 range and see which area it hit. Visually it looks like so: ``` <--A 25%--><-B 5%-><---C30%---><-----D40%-----> ```
2,445,359
I have two coins $A$ and $B$. The diameter of coins A is $d\_A=18$ mm. The smaller coin $B$ rolls around $A$ without sliding. Both coins have marks on the edge. At the beginning of the movement, the coins touch the marks (see the figure). [![enter image description here](https://i.stack.imgur.com/5T9GY.jpg)](https://...
2017/09/26
[ "https://math.stackexchange.com/questions/2445359", "https://math.stackexchange.com", "https://math.stackexchange.com/users/338136/" ]
$12$mm is just one possible answer. What we need is that $B$ makes an odd number of revolutions while circling $A$ twice. So this would mean that twice the circumference of $A$ will be $k$ times the circumference of $B$, where $k$ is odd (to avoid matching on the first time around). So the options are that $B$ has $\f...
If $2C\_B=C\_A$, then $B$ would have to go around $A$ just one time to 'match up'!
12,325,410
I am using Gnuplot to successfully plot some time series data. However, the series are fairly dense (10,000's of samples in about 5 inches of space), and when I plot multiple series, it is hard to see underneath the series that was plotted on top. **Is there any way to make the lines have a bit of opacity or transparen...
2012/09/07
[ "https://Stackoverflow.com/questions/12325410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4561314/" ]
Good news! This has been implemented in gnuplot. Example syntax is ``` plot x lw 10, -x lw 10 lc rgb "#77000000" ``` This will plot x as a red line and -x as a transparent black line (it looks gray). The first pair of two characters in the rgb specification define the alpha (transparency) channel ("#AARRGGBB"). The ...
[This](http://gnuplot-surprising.blogspot.com/2011/09/transparency-in-gnuplot.html) may be what you're looking for.
47,644,838
This is a basic prime number checker. How would I loop this code so it tells me every single number from 1 to 100 and if its prime or not. For example: 1 is not a prime number 2 is a prime number 3 is a prime number and so on until 100. This is not a user generated program just straight up if I run it it gives me a...
2017/12/05
[ "https://Stackoverflow.com/questions/47644838", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8942972/" ]
When you visually confirm whether a word is a palindrome or not, usually you would just check the characters from either end and start moving inwards. So really that's two steps: 1. Check the end bits of the char if they're the same. If they aren't, it's not a palindrome, otherwise, next step 2. Move inwards from bo...
Compare the string char starting from head and tail. If all the letters are equal till the middle of the string it's palindrome. ``` boolean palindrome(string str){ for(int i = 0 ; i < str.lenght()/2 ; i++) { if (str.charAt(i) != str.charAt(str.lenght() - i ) return false; } return true; } ```
47,644,838
This is a basic prime number checker. How would I loop this code so it tells me every single number from 1 to 100 and if its prime or not. For example: 1 is not a prime number 2 is a prime number 3 is a prime number and so on until 100. This is not a user generated program just straight up if I run it it gives me a...
2017/12/05
[ "https://Stackoverflow.com/questions/47644838", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8942972/" ]
When you visually confirm whether a word is a palindrome or not, usually you would just check the characters from either end and start moving inwards. So really that's two steps: 1. Check the end bits of the char if they're the same. If they aren't, it's not a palindrome, otherwise, next step 2. Move inwards from bo...
``` package paintadvance; import java.util.Scanner; class Palindrome_without_reverse{ public static void main(String[] ishan_vimukthi_is_my_name) { Scanner scan= new Scanner(System.in); String string=""; /*while loop to keep running the programme unlit user need it to end*/ while (true) { ...
19,656,166
I'm looking for the best way to integrate Docker into Jenkins to execute build/test commands. The best source I have found is this blog post: <http://blog.howareyou.com/post/62157486858/continuous-delivery-with-docker-and-jenkins-part-i> It basically offers to wrap all execution commands with "docker run". I would l...
2013/10/29
[ "https://Stackoverflow.com/questions/19656166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1656532/" ]
Wouldn't you just create a shell script to setup the docker environment as you normally would (or better still push the docker container in to a private repo) and get Jenkins to pull it down and run the test suite inside docker using the daemonised mode? Maybe you could use directory shares to drop the output of the t...
[This plugin](https://wiki.jenkins-ci.org/display/JENKINS/Docker+Plugin) might be what you are looking for.
19,656,166
I'm looking for the best way to integrate Docker into Jenkins to execute build/test commands. The best source I have found is this blog post: <http://blog.howareyou.com/post/62157486858/continuous-delivery-with-docker-and-jenkins-part-i> It basically offers to wrap all execution commands with "docker run". I would l...
2013/10/29
[ "https://Stackoverflow.com/questions/19656166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1656532/" ]
[There's a second blog post](http://blog.howareyou.com/post/65048170054/continuous-delivery-with-docker-and-jenkins-part-ii) which goes into more detail about the setup. The missing piece was [dockerize](https://github.com/cambridge-healthcare/dockerize) which makes the Jenkins & Docker integration painless. If you loo...
[This plugin](https://wiki.jenkins-ci.org/display/JENKINS/Docker+Plugin) might be what you are looking for.
47,088,825
I am getting a image source from a URL dynamically, but sometimes the URL returns empty or the image does not exist so i created a `PHP` function to check if the image source do exist or not so i can display a default image to my users when the image is not accessible. My concern, is my function enough to catch the da...
2017/11/03
[ "https://Stackoverflow.com/questions/47088825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6846813/" ]
You can use php `is_file()`to determine. ``` if (is_file($url) { //its a file } ``` You can use a ternary operator(one liner) ``` return is_file($url) ? $url : 'default.jpg'; ```
``` function get_image_by_id($ID) { if(empty($url)){ $url = 'http://proweb/process/img/default.jpg; }else{ $url = 'http://proweb/process/'.$ID.'.jpg'; } return $url } ```
47,088,825
I am getting a image source from a URL dynamically, but sometimes the URL returns empty or the image does not exist so i created a `PHP` function to check if the image source do exist or not so i can display a default image to my users when the image is not accessible. My concern, is my function enough to catch the da...
2017/11/03
[ "https://Stackoverflow.com/questions/47088825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6846813/" ]
Here `CURL` can also be helpful, tested it and working fine. Here we are using curl to get HTTP response code for the URL. If status code is `200` it means it exists. ``` function get_image_by_id($ID) { $url = 'http://proweb/process/img/' . $ID . '.jpg'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HEA...
``` function get_image_by_id($ID) { if(empty($url)){ $url = 'http://proweb/process/img/default.jpg; }else{ $url = 'http://proweb/process/'.$ID.'.jpg'; } return $url } ```
47,088,825
I am getting a image source from a URL dynamically, but sometimes the URL returns empty or the image does not exist so i created a `PHP` function to check if the image source do exist or not so i can display a default image to my users when the image is not accessible. My concern, is my function enough to catch the da...
2017/11/03
[ "https://Stackoverflow.com/questions/47088825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6846813/" ]
you can use like this ``` <?PHP function get_image_by_id($ID) { $url = 'http://proweb/process/img/'.$ID.'.jpg'; // Checks to see if the reomte server is running if(file_get_contents(url) !== NULL) { return $url; } else { return 'default.jpg'; ...
``` function get_image_by_id($ID) { if(empty($url)){ $url = 'http://proweb/process/img/default.jpg; }else{ $url = 'http://proweb/process/'.$ID.'.jpg'; } return $url } ```
47,088,825
I am getting a image source from a URL dynamically, but sometimes the URL returns empty or the image does not exist so i created a `PHP` function to check if the image source do exist or not so i can display a default image to my users when the image is not accessible. My concern, is my function enough to catch the da...
2017/11/03
[ "https://Stackoverflow.com/questions/47088825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6846813/" ]
Here `CURL` can also be helpful, tested it and working fine. Here we are using curl to get HTTP response code for the URL. If status code is `200` it means it exists. ``` function get_image_by_id($ID) { $url = 'http://proweb/process/img/' . $ID . '.jpg'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HEA...
You can use php `is_file()`to determine. ``` if (is_file($url) { //its a file } ``` You can use a ternary operator(one liner) ``` return is_file($url) ? $url : 'default.jpg'; ```
47,088,825
I am getting a image source from a URL dynamically, but sometimes the URL returns empty or the image does not exist so i created a `PHP` function to check if the image source do exist or not so i can display a default image to my users when the image is not accessible. My concern, is my function enough to catch the da...
2017/11/03
[ "https://Stackoverflow.com/questions/47088825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6846813/" ]
You can use php `is_file()`to determine. ``` if (is_file($url) { //its a file } ``` You can use a ternary operator(one liner) ``` return is_file($url) ? $url : 'default.jpg'; ```
you can use like this ``` <?PHP function get_image_by_id($ID) { $url = 'http://proweb/process/img/'.$ID.'.jpg'; // Checks to see if the reomte server is running if(file_get_contents(url) !== NULL) { return $url; } else { return 'default.jpg'; ...
47,088,825
I am getting a image source from a URL dynamically, but sometimes the URL returns empty or the image does not exist so i created a `PHP` function to check if the image source do exist or not so i can display a default image to my users when the image is not accessible. My concern, is my function enough to catch the da...
2017/11/03
[ "https://Stackoverflow.com/questions/47088825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6846813/" ]
Here `CURL` can also be helpful, tested it and working fine. Here we are using curl to get HTTP response code for the URL. If status code is `200` it means it exists. ``` function get_image_by_id($ID) { $url = 'http://proweb/process/img/' . $ID . '.jpg'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HEA...
you can use like this ``` <?PHP function get_image_by_id($ID) { $url = 'http://proweb/process/img/'.$ID.'.jpg'; // Checks to see if the reomte server is running if(file_get_contents(url) !== NULL) { return $url; } else { return 'default.jpg'; ...
8,824,509
I am trying to generate a 2D n\*m array in javascript full of zeros. What is the fastest way of doing that? I know the simple for loop would be enough to set all the elements to 0, but what I would like to know, why can't I do that with mapping. For example with the underscore lib (or even the native map) ``` _.map(A...
2012/01/11
[ "https://Stackoverflow.com/questions/8824509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/696208/" ]
Typical JavaScript `.map()` functions ignore array members that are `undefined`. That's why `Array(n)` doesn't work. --- You could easily add a method to `Array.prototype` to do a quick fill... ``` Array.prototype.fill = function(n,v) { n = n || this.length; for( var i = 0; i < n; i++ ) this[i] = v ...
A simple trick may be: ``` var myarr = '0000000000'.split(''); ``` Another is to make your own map Array extension, to be able to work with `Array(n)`: ``` Array.prototype.mapx = function(callback){ return this.join(',').split(',').map(callback); } //usage Array(5).mapx(function(){return 0;}); //=> [0,0,0,0,0] `...
24,374,198
I designed my page to be 4:3 scalable and I'd like to have my grid to scale to 4:3 on any screen. For example, on a 1900x1200, my grid will scale to 1600x1200 and we'll have 150px on each side of my grid. How can i manage to have this behavior ? I've started with the following lines : ``` <Grid> <Grid.ColumnDefi...
2014/06/23
[ "https://Stackoverflow.com/questions/24374198", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2088807/" ]
You could use the ViewBox control. Design your XAML as you have done and place it inside it. The ViewBox will scale to fit the content to the available size. It will not resize the content so everything (ratios, width, etc.) will be left intact. See <http://msdn.microsoft.com/en-us/library/system.windows.controls.view...
Thanks to Sascha i did : ``` <Viewbox Name="grid_jeu" Stretch="Uniform" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="1" > <MyControl Name="my_grid" /> </Viewbox> ``` My Control is designed this way : ``` <Grid> <Grid.RowDefinitions> <RowDe...
3,387,446
I have this statement: > > If $f(2x-3) = 4x-2,$ the function $f(x)$ is ...? > > > My attempt was: Move the function $3$ units to the left $f(2x) = 4(x+3) -2 = 4x+10$ Divide $x$ by $2$ $f(x) = 2x+10$ Verifiy $f(x) = 2x+10 \to f(2x) = 4x+10 \to f(2x-3) = 4(x-3)+10 = \underbrace{4x-2}\_{f(2x-3)}$ But accordin...
2019/10/09
[ "https://math.stackexchange.com/questions/3387446", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451521/" ]
Put $y=2x-3$. Then $x=(y+3)/2$. In particular $$ f(y)=4x-2=4\left(\frac{y+3}{2}\right)-2=2(y+3)-2=2(y+2) $$ as desired.
Since the argument and output are linear, we can try to *extract* $2x-3$ from $4x-2$ through arithmetic means. \begin{align} f(\color{red}{2x-3})&=4x-2\\ &=4x\color{blue}{-6+6}-2\\ &=2(\color{red}{2x-3})+4 \end{align} Therefore, $f(x)=2x+4$ as required.
3,387,446
I have this statement: > > If $f(2x-3) = 4x-2,$ the function $f(x)$ is ...? > > > My attempt was: Move the function $3$ units to the left $f(2x) = 4(x+3) -2 = 4x+10$ Divide $x$ by $2$ $f(x) = 2x+10$ Verifiy $f(x) = 2x+10 \to f(2x) = 4x+10 \to f(2x-3) = 4(x-3)+10 = \underbrace{4x-2}\_{f(2x-3)}$ But accordin...
2019/10/09
[ "https://math.stackexchange.com/questions/3387446", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451521/" ]
Put $y=2x-3$. Then $x=(y+3)/2$. In particular $$ f(y)=4x-2=4\left(\frac{y+3}{2}\right)-2=2(y+3)-2=2(y+2) $$ as desired.
Let $y$ equal to an expression that will make $2y-3=x$ so that we can have $f(x)$. This can be done if $y=\frac{x}{2}+1.5$ Plug $y$ in: $f(2y-3)=4y-2$ and substitute the value of $y$ in terms of $x$: $f(2(\frac{x}{2}+1.5)-3)=f(x)=4(\frac{x}{2}+1.5)-2=2x+4$
3,387,446
I have this statement: > > If $f(2x-3) = 4x-2,$ the function $f(x)$ is ...? > > > My attempt was: Move the function $3$ units to the left $f(2x) = 4(x+3) -2 = 4x+10$ Divide $x$ by $2$ $f(x) = 2x+10$ Verifiy $f(x) = 2x+10 \to f(2x) = 4x+10 \to f(2x-3) = 4(x-3)+10 = \underbrace{4x-2}\_{f(2x-3)}$ But accordin...
2019/10/09
[ "https://math.stackexchange.com/questions/3387446", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451521/" ]
Put $y=2x-3$. Then $x=(y+3)/2$. In particular $$ f(y)=4x-2=4\left(\frac{y+3}{2}\right)-2=2(y+3)-2=2(y+2) $$ as desired.
If $y=2x-3$, what is $x$? We have $x = {1 \over 2} (y+3)$. If $x = {1 \over 2} (y+3)$, what is $4x-2$? We have $4x-2=2y+4$. This will give $f(y)$ in terms of $y$. Explicitly, $f(y) = 2y+4$.
3,387,446
I have this statement: > > If $f(2x-3) = 4x-2,$ the function $f(x)$ is ...? > > > My attempt was: Move the function $3$ units to the left $f(2x) = 4(x+3) -2 = 4x+10$ Divide $x$ by $2$ $f(x) = 2x+10$ Verifiy $f(x) = 2x+10 \to f(2x) = 4x+10 \to f(2x-3) = 4(x-3)+10 = \underbrace{4x-2}\_{f(2x-3)}$ But accordin...
2019/10/09
[ "https://math.stackexchange.com/questions/3387446", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451521/" ]
Here is where you went wrong: If $f(x)= $ [some expression involving $x$], then you can indeed say that $f(x+3)$ = [that expression with $x+3$ filled in for $x$ And, if you have $f(x-3)=$ [some expression involving $x$], then you can indeed say that $f(x)=$ [that expression with $x+3$ filled in for $x$] So far so go...
Since the argument and output are linear, we can try to *extract* $2x-3$ from $4x-2$ through arithmetic means. \begin{align} f(\color{red}{2x-3})&=4x-2\\ &=4x\color{blue}{-6+6}-2\\ &=2(\color{red}{2x-3})+4 \end{align} Therefore, $f(x)=2x+4$ as required.
3,387,446
I have this statement: > > If $f(2x-3) = 4x-2,$ the function $f(x)$ is ...? > > > My attempt was: Move the function $3$ units to the left $f(2x) = 4(x+3) -2 = 4x+10$ Divide $x$ by $2$ $f(x) = 2x+10$ Verifiy $f(x) = 2x+10 \to f(2x) = 4x+10 \to f(2x-3) = 4(x-3)+10 = \underbrace{4x-2}\_{f(2x-3)}$ But accordin...
2019/10/09
[ "https://math.stackexchange.com/questions/3387446", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451521/" ]
Here is where you went wrong: If $f(x)= $ [some expression involving $x$], then you can indeed say that $f(x+3)$ = [that expression with $x+3$ filled in for $x$ And, if you have $f(x-3)=$ [some expression involving $x$], then you can indeed say that $f(x)=$ [that expression with $x+3$ filled in for $x$] So far so go...
Put $y=2x-3$. Then $x=(y+3)/2$. In particular $$ f(y)=4x-2=4\left(\frac{y+3}{2}\right)-2=2(y+3)-2=2(y+2) $$ as desired.
3,387,446
I have this statement: > > If $f(2x-3) = 4x-2,$ the function $f(x)$ is ...? > > > My attempt was: Move the function $3$ units to the left $f(2x) = 4(x+3) -2 = 4x+10$ Divide $x$ by $2$ $f(x) = 2x+10$ Verifiy $f(x) = 2x+10 \to f(2x) = 4x+10 \to f(2x-3) = 4(x-3)+10 = \underbrace{4x-2}\_{f(2x-3)}$ But accordin...
2019/10/09
[ "https://math.stackexchange.com/questions/3387446", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451521/" ]
Put $y=2x-3$. Then $x=(y+3)/2$. In particular $$ f(y)=4x-2=4\left(\frac{y+3}{2}\right)-2=2(y+3)-2=2(y+2) $$ as desired.
If $x\in\mathbb R$, then\begin{align}f(x)&=f\left(2\frac x2\right)\\&=f\left(2\left(\frac x2+\frac32\right)-3\right)\\&=4\left(\frac x2+\frac32\right)-2\\&=2x+4.\end{align}
3,387,446
I have this statement: > > If $f(2x-3) = 4x-2,$ the function $f(x)$ is ...? > > > My attempt was: Move the function $3$ units to the left $f(2x) = 4(x+3) -2 = 4x+10$ Divide $x$ by $2$ $f(x) = 2x+10$ Verifiy $f(x) = 2x+10 \to f(2x) = 4x+10 \to f(2x-3) = 4(x-3)+10 = \underbrace{4x-2}\_{f(2x-3)}$ But accordin...
2019/10/09
[ "https://math.stackexchange.com/questions/3387446", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451521/" ]
Here is where you went wrong: If $f(x)= $ [some expression involving $x$], then you can indeed say that $f(x+3)$ = [that expression with $x+3$ filled in for $x$ And, if you have $f(x-3)=$ [some expression involving $x$], then you can indeed say that $f(x)=$ [that expression with $x+3$ filled in for $x$] So far so go...
Correct answer: Let $y=2x-3$. Then $f(y)=4x-2=2(2x-3)+4=2y+4.$ Where you went wrong: If $f(2x-3)=4x-2=2(2x)-2$, then $f(2x)=2(2x+3)-2=4x+4.$
3,387,446
I have this statement: > > If $f(2x-3) = 4x-2,$ the function $f(x)$ is ...? > > > My attempt was: Move the function $3$ units to the left $f(2x) = 4(x+3) -2 = 4x+10$ Divide $x$ by $2$ $f(x) = 2x+10$ Verifiy $f(x) = 2x+10 \to f(2x) = 4x+10 \to f(2x-3) = 4(x-3)+10 = \underbrace{4x-2}\_{f(2x-3)}$ But accordin...
2019/10/09
[ "https://math.stackexchange.com/questions/3387446", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451521/" ]
Here is where you went wrong: If $f(x)= $ [some expression involving $x$], then you can indeed say that $f(x+3)$ = [that expression with $x+3$ filled in for $x$ And, if you have $f(x-3)=$ [some expression involving $x$], then you can indeed say that $f(x)=$ [that expression with $x+3$ filled in for $x$] So far so go...
If $x\in\mathbb R$, then\begin{align}f(x)&=f\left(2\frac x2\right)\\&=f\left(2\left(\frac x2+\frac32\right)-3\right)\\&=4\left(\frac x2+\frac32\right)-2\\&=2x+4.\end{align}
3,387,446
I have this statement: > > If $f(2x-3) = 4x-2,$ the function $f(x)$ is ...? > > > My attempt was: Move the function $3$ units to the left $f(2x) = 4(x+3) -2 = 4x+10$ Divide $x$ by $2$ $f(x) = 2x+10$ Verifiy $f(x) = 2x+10 \to f(2x) = 4x+10 \to f(2x-3) = 4(x-3)+10 = \underbrace{4x-2}\_{f(2x-3)}$ But accordin...
2019/10/09
[ "https://math.stackexchange.com/questions/3387446", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451521/" ]
Here is where you went wrong: If $f(x)= $ [some expression involving $x$], then you can indeed say that $f(x+3)$ = [that expression with $x+3$ filled in for $x$ And, if you have $f(x-3)=$ [some expression involving $x$], then you can indeed say that $f(x)=$ [that expression with $x+3$ filled in for $x$] So far so go...
Let $y$ equal to an expression that will make $2y-3=x$ so that we can have $f(x)$. This can be done if $y=\frac{x}{2}+1.5$ Plug $y$ in: $f(2y-3)=4y-2$ and substitute the value of $y$ in terms of $x$: $f(2(\frac{x}{2}+1.5)-3)=f(x)=4(\frac{x}{2}+1.5)-2=2x+4$
3,387,446
I have this statement: > > If $f(2x-3) = 4x-2,$ the function $f(x)$ is ...? > > > My attempt was: Move the function $3$ units to the left $f(2x) = 4(x+3) -2 = 4x+10$ Divide $x$ by $2$ $f(x) = 2x+10$ Verifiy $f(x) = 2x+10 \to f(2x) = 4x+10 \to f(2x-3) = 4(x-3)+10 = \underbrace{4x-2}\_{f(2x-3)}$ But accordin...
2019/10/09
[ "https://math.stackexchange.com/questions/3387446", "https://math.stackexchange.com", "https://math.stackexchange.com/users/451521/" ]
Here is where you went wrong: If $f(x)= $ [some expression involving $x$], then you can indeed say that $f(x+3)$ = [that expression with $x+3$ filled in for $x$ And, if you have $f(x-3)=$ [some expression involving $x$], then you can indeed say that $f(x)=$ [that expression with $x+3$ filled in for $x$] So far so go...
If $y=2x-3$, what is $x$? We have $x = {1 \over 2} (y+3)$. If $x = {1 \over 2} (y+3)$, what is $4x-2$? We have $4x-2=2y+4$. This will give $f(y)$ in terms of $y$. Explicitly, $f(y) = 2y+4$.
16,737
I've had Arch Linux installed on my system for a while now, but the problem is that it takes way too much time to boot. And so, I'm trying to optimize the boot process. A Google search led me to [`quick-init`](http://aur.archlinux.org/packages.php?ID=25563) but the its' AUR page says its out-of-date. So, I just want to...
2011/07/15
[ "https://unix.stackexchange.com/questions/16737", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/-1/" ]
Ubuntu uses the `ureadahead` package. It might take some work to get it going on Arch, but should be possible. See the [Ureadahead](https://wiki.archlinux.org/index.php/Ureadahead) page on the Arch wiki.
In your `/etc/rc.conf` there should be a "DAEMONS" line (see [the wiki](https://wiki.archlinux.org/index.php/Rc.conf#Daemons)). This is a list of all of the daemons that will start on system boot. You can specify that a daemon should be started in the background, i.e. don't wait on it to finish starting before continui...
16,737
I've had Arch Linux installed on my system for a while now, but the problem is that it takes way too much time to boot. And so, I'm trying to optimize the boot process. A Google search led me to [`quick-init`](http://aur.archlinux.org/packages.php?ID=25563) but the its' AUR page says its out-of-date. So, I just want to...
2011/07/15
[ "https://unix.stackexchange.com/questions/16737", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/-1/" ]
I highly recommend the e4rat package. A detailed how-to is on [sourceforge](http://e4rat.sourceforge.net/wiki/index.php/Main_Page) as well as in [this Lifehacker article](http://lifehacker.com/5790311/e4rat-cuts-your-linux-pcs-boot-time-in-half-with-a-few-simple-commands).
In your `/etc/rc.conf` there should be a "DAEMONS" line (see [the wiki](https://wiki.archlinux.org/index.php/Rc.conf#Daemons)). This is a list of all of the daemons that will start on system boot. You can specify that a daemon should be started in the background, i.e. don't wait on it to finish starting before continui...
17,825,028
I have a search function on my site which uses GET. I have been trying to code something that would take words out of the GET post and then search in using SQL. This is what I been able to do: ``` $id = $_GET["search"]; $searchTerms = explode(' ', $id); $searchTermBits = array(); foreach ($searchTerms as $term) { ...
2013/07/24
[ "https://Stackoverflow.com/questions/17825028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605420/" ]
No, adding additional packages doesn’t modify the current settings. There is a package manager called apt-cyg which installes additional packages from command-line. To install apt-cyg follow the below steps: ``` wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg install apt-cyg /bin ``` Note: wget should be insta...
Re-run the setup executable like "cygwin\_setup-x86\_64.exe" should do it. 1. "Install from Internet" 2. Accept your existing root directory (from your existing installation) 3. Use your existing "Local Package Directory" 4. On the screen, view "Full" 5. Search for the new package you want to add 6. Go through the ins...
17,825,028
I have a search function on my site which uses GET. I have been trying to code something that would take words out of the GET post and then search in using SQL. This is what I been able to do: ``` $id = $_GET["search"]; $searchTerms = explode(' ', $id); $searchTermBits = array(); foreach ($searchTerms as $term) { ...
2013/07/24
[ "https://Stackoverflow.com/questions/17825028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605420/" ]
Re-run the setup executable like "cygwin\_setup-x86\_64.exe" should do it. 1. "Install from Internet" 2. Accept your existing root directory (from your existing installation) 3. Use your existing "Local Package Directory" 4. On the screen, view "Full" 5. Search for the new package you want to add 6. Go through the ins...
You can just look for the package binaries and decompress them in the C:\cygwin\bin folder. I did that for dos2unix ( <https://cygwin.com/packages/summary/dos2unix.html> ) and trying it out now.
17,825,028
I have a search function on my site which uses GET. I have been trying to code something that would take words out of the GET post and then search in using SQL. This is what I been able to do: ``` $id = $_GET["search"]; $searchTerms = explode(' ', $id); $searchTermBits = array(); foreach ($searchTerms as $term) { ...
2013/07/24
[ "https://Stackoverflow.com/questions/17825028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605420/" ]
Additional option, may be helpful for someone: To install additional packages in windows from **windows command line** you can use your **cygwin installer**. I suppose, you've already downloaded it to install cygwin from here <https://cygwin.com/install.html>. ``` $ setup-x86_64.exe -q -P graphviz ``` see this g...
There is no package management in Cygwin outside of the setup program. The setup only applies updates to your current installation, it does not overwrite packages than what you already have. So if you want new packages just rerun the setup program to install packages.
17,825,028
I have a search function on my site which uses GET. I have been trying to code something that would take words out of the GET post and then search in using SQL. This is what I been able to do: ``` $id = $_GET["search"]; $searchTerms = explode(' ', $id); $searchTermBits = array(); foreach ($searchTerms as $term) { ...
2013/07/24
[ "https://Stackoverflow.com/questions/17825028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605420/" ]
No, adding additional packages doesn’t modify the current settings. There is a package manager called apt-cyg which installes additional packages from command-line. To install apt-cyg follow the below steps: ``` wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg install apt-cyg /bin ``` Note: wget should be insta...
There is no package management in Cygwin outside of the setup program. The setup only applies updates to your current installation, it does not overwrite packages than what you already have. So if you want new packages just rerun the setup program to install packages.
17,825,028
I have a search function on my site which uses GET. I have been trying to code something that would take words out of the GET post and then search in using SQL. This is what I been able to do: ``` $id = $_GET["search"]; $searchTerms = explode(' ', $id); $searchTermBits = array(); foreach ($searchTerms as $term) { ...
2013/07/24
[ "https://Stackoverflow.com/questions/17825028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605420/" ]
No, it doesn't hurt the current setup. The install program knows what's installed already. Having said that, I long ago got into the habit of installing *all* of Cygwin since, despite its size, it's still minuscule compared to the size of modern hard disks. That way, you won't ever have to worry about whether a packag...
There is no package management in Cygwin outside of the setup program. The setup only applies updates to your current installation, it does not overwrite packages than what you already have. So if you want new packages just rerun the setup program to install packages.
17,825,028
I have a search function on my site which uses GET. I have been trying to code something that would take words out of the GET post and then search in using SQL. This is what I been able to do: ``` $id = $_GET["search"]; $searchTerms = explode(' ', $id); $searchTermBits = array(); foreach ($searchTerms as $term) { ...
2013/07/24
[ "https://Stackoverflow.com/questions/17825028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605420/" ]
No, it doesn't hurt the current setup. The install program knows what's installed already. Having said that, I long ago got into the habit of installing *all* of Cygwin since, despite its size, it's still minuscule compared to the size of modern hard disks. That way, you won't ever have to worry about whether a packag...
Re-run the setup executable like "cygwin\_setup-x86\_64.exe" should do it. 1. "Install from Internet" 2. Accept your existing root directory (from your existing installation) 3. Use your existing "Local Package Directory" 4. On the screen, view "Full" 5. Search for the new package you want to add 6. Go through the ins...
17,825,028
I have a search function on my site which uses GET. I have been trying to code something that would take words out of the GET post and then search in using SQL. This is what I been able to do: ``` $id = $_GET["search"]; $searchTerms = explode(' ', $id); $searchTermBits = array(); foreach ($searchTerms as $term) { ...
2013/07/24
[ "https://Stackoverflow.com/questions/17825028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605420/" ]
No, it doesn't hurt the current setup. The install program knows what's installed already. Having said that, I long ago got into the habit of installing *all* of Cygwin since, despite its size, it's still minuscule compared to the size of modern hard disks. That way, you won't ever have to worry about whether a packag...
No, adding additional packages doesn’t modify the current settings. There is a package manager called apt-cyg which installes additional packages from command-line. To install apt-cyg follow the below steps: ``` wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg install apt-cyg /bin ``` Note: wget should be insta...
17,825,028
I have a search function on my site which uses GET. I have been trying to code something that would take words out of the GET post and then search in using SQL. This is what I been able to do: ``` $id = $_GET["search"]; $searchTerms = explode(' ', $id); $searchTermBits = array(); foreach ($searchTerms as $term) { ...
2013/07/24
[ "https://Stackoverflow.com/questions/17825028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605420/" ]
No, adding additional packages doesn’t modify the current settings. There is a package manager called apt-cyg which installes additional packages from command-line. To install apt-cyg follow the below steps: ``` wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg install apt-cyg /bin ``` Note: wget should be insta...
Additional option, may be helpful for someone: To install additional packages in windows from **windows command line** you can use your **cygwin installer**. I suppose, you've already downloaded it to install cygwin from here <https://cygwin.com/install.html>. ``` $ setup-x86_64.exe -q -P graphviz ``` see this g...
17,825,028
I have a search function on my site which uses GET. I have been trying to code something that would take words out of the GET post and then search in using SQL. This is what I been able to do: ``` $id = $_GET["search"]; $searchTerms = explode(' ', $id); $searchTermBits = array(); foreach ($searchTerms as $term) { ...
2013/07/24
[ "https://Stackoverflow.com/questions/17825028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605420/" ]
No, adding additional packages doesn’t modify the current settings. There is a package manager called apt-cyg which installes additional packages from command-line. To install apt-cyg follow the below steps: ``` wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg install apt-cyg /bin ``` Note: wget should be insta...
You can just look for the package binaries and decompress them in the C:\cygwin\bin folder. I did that for dos2unix ( <https://cygwin.com/packages/summary/dos2unix.html> ) and trying it out now.
17,825,028
I have a search function on my site which uses GET. I have been trying to code something that would take words out of the GET post and then search in using SQL. This is what I been able to do: ``` $id = $_GET["search"]; $searchTerms = explode(' ', $id); $searchTermBits = array(); foreach ($searchTerms as $term) { ...
2013/07/24
[ "https://Stackoverflow.com/questions/17825028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605420/" ]
No, it doesn't hurt the current setup. The install program knows what's installed already. Having said that, I long ago got into the habit of installing *all* of Cygwin since, despite its size, it's still minuscule compared to the size of modern hard disks. That way, you won't ever have to worry about whether a packag...
Additional option, may be helpful for someone: To install additional packages in windows from **windows command line** you can use your **cygwin installer**. I suppose, you've already downloaded it to install cygwin from here <https://cygwin.com/install.html>. ``` $ setup-x86_64.exe -q -P graphviz ``` see this g...
41,211,793
How can I check if there is more content in a text file in c++ and if there is continue to read it? I am trying to read a some words from a text file but the number of words is not specified.
2016/12/18
[ "https://Stackoverflow.com/questions/41211793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5915165/" ]
Today I have solved exactly the same problem. I think the main problem is in VirtualBox USB controller. Go to the settings of your virtual machine, select USB and you will see 'USB Controller 1.1 (OHCI)' by default. You have to select 'USB controller 2.0 (EHCI)'. I have: - VirtualBox: 5.1.12r112440 (Qt5.6.2) - macOS Si...
This happened to me as well. What I did: > > 1. Make sure all your hardware *(iPhones, iPads ect..)* are all up to date. > 2. Make sure Xcode and all other software are up to their latest versions. > > > After you have done both of those, restart your computer and try again. It **will** take a while for Xcode to...
41,211,793
How can I check if there is more content in a text file in c++ and if there is continue to read it? I am trying to read a some words from a text file but the number of words is not specified.
2016/12/18
[ "https://Stackoverflow.com/questions/41211793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5915165/" ]
This happened to me as well. What I did: > > 1. Make sure all your hardware *(iPhones, iPads ect..)* are all up to date. > 2. Make sure Xcode and all other software are up to their latest versions. > > > After you have done both of those, restart your computer and try again. It **will** take a while for Xcode to...
Try this: --------- 1. Clean Project 2. Remove this folder Library/Developer/Xcode/DerivedData/ModuleCache 3. Find your project folder in Library/Developer/Xcode/DerivedData/ and remove 4. Restart Xcode
41,211,793
How can I check if there is more content in a text file in c++ and if there is continue to read it? I am trying to read a some words from a text file but the number of words is not specified.
2016/12/18
[ "https://Stackoverflow.com/questions/41211793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5915165/" ]
This happened to me as well. What I did: > > 1. Make sure all your hardware *(iPhones, iPads ect..)* are all up to date. > 2. Make sure Xcode and all other software are up to their latest versions. > > > After you have done both of those, restart your computer and try again. It **will** take a while for Xcode to...
1.Clean Project 2. Go to window tab , Device and simulator 3.Right click on your device list then click unpair device and reconnect the device.[![enter image description here](https://i.stack.imgur.com/wj3l8.png)](https://i.stack.imgur.com/wj3l8.png)