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
9,468
Can anyone identify these bricks, which I suspect are LEGO clones. They may be more than 30 years old. I bought them on ebay as Betta Bilda from LEGO/Duplo dealer. Some BB was included, but these are unknown to me, with an extensive BB collection. [![Mystery bricks 1](https://i.stack.imgur.com/1xSNi.jpg)](https://i.s...
2017/12/05
[ "https://bricks.stackexchange.com/questions/9468", "https://bricks.stackexchange.com", "https://bricks.stackexchange.com/users/9622/" ]
From the LEGO Wikipedia Page "1961 and 1962 saw the introduction of the first Lego wheels, an addition that expanded the potential for building cars, trucks, buses and other vehicles from Lego bricks. Also during this time, the Lego Group introduced toys specifically targeted towards the pre-school market." here is a p...
I don't think they are LEGO due to the holes in the middle of the studs. LEGO pieces also say "LEGO" somewhere on them, so I bet that they are a 3rd party brand.
9,468
Can anyone identify these bricks, which I suspect are LEGO clones. They may be more than 30 years old. I bought them on ebay as Betta Bilda from LEGO/Duplo dealer. Some BB was included, but these are unknown to me, with an extensive BB collection. [![Mystery bricks 1](https://i.stack.imgur.com/1xSNi.jpg)](https://i.s...
2017/12/05
[ "https://bricks.stackexchange.com/questions/9468", "https://bricks.stackexchange.com", "https://bricks.stackexchange.com/users/9622/" ]
As suggested by @mindstormsboi I contacted LEGO customer services and sent them a link to this question as well as many additional photos. The information was passed to their expert team and the answer that came back was "they believe that these are not LEGO® parts". They were not able to identify them as a known clone...
From the LEGO Wikipedia Page "1961 and 1962 saw the introduction of the first Lego wheels, an addition that expanded the potential for building cars, trucks, buses and other vehicles from Lego bricks. Also during this time, the Lego Group introduced toys specifically targeted towards the pre-school market." here is a p...
9,468
Can anyone identify these bricks, which I suspect are LEGO clones. They may be more than 30 years old. I bought them on ebay as Betta Bilda from LEGO/Duplo dealer. Some BB was included, but these are unknown to me, with an extensive BB collection. [![Mystery bricks 1](https://i.stack.imgur.com/1xSNi.jpg)](https://i.s...
2017/12/05
[ "https://bricks.stackexchange.com/questions/9468", "https://bricks.stackexchange.com", "https://bricks.stackexchange.com/users/9622/" ]
As suggested by @mindstormsboi I contacted LEGO customer services and sent them a link to this question as well as many additional photos. The information was passed to their expert team and the answer that came back was "they believe that these are not LEGO® parts". They were not able to identify them as a known clone...
I don’t exactly know if it is LEGO, But it may be an old version of LEGO. The numbers also could be the date the were made or a factory code.
9,468
Can anyone identify these bricks, which I suspect are LEGO clones. They may be more than 30 years old. I bought them on ebay as Betta Bilda from LEGO/Duplo dealer. Some BB was included, but these are unknown to me, with an extensive BB collection. [![Mystery bricks 1](https://i.stack.imgur.com/1xSNi.jpg)](https://i.s...
2017/12/05
[ "https://bricks.stackexchange.com/questions/9468", "https://bricks.stackexchange.com", "https://bricks.stackexchange.com/users/9622/" ]
As suggested by @mindstormsboi I contacted LEGO customer services and sent them a link to this question as well as many additional photos. The information was passed to their expert team and the answer that came back was "they believe that these are not LEGO® parts". They were not able to identify them as a known clone...
I don't think they are LEGO due to the holes in the middle of the studs. LEGO pieces also say "LEGO" somewhere on them, so I bet that they are a 3rd party brand.
54,813,381
I would like to remove all non-alphanumeric characters except brackets and what's between them in python. For example : ``` My son's birthday [[David | David Smith]] $$ (is) "today" 2019 ][ ``` become ``` My son s birthday [[David | David Smith]] is today 2019 ``` Here's my function for now : ``` def clean(text...
2019/02/21
[ "https://Stackoverflow.com/questions/54813381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7402246/" ]
Instead of replacing you might select what you want to keep using an [alternation](https://www.regular-expressions.info/alternation.html) to either match from `[[` till `]]` or `|` match 1+ times a word character `\w+` and then join the parts back to a string. ``` \[\[[^]]+\]\]|\w+ ``` That will match * `\[\[[^]]+\...
``` import re x = "My son's birthday [[David | David Smith]] $$ (is) \"today\" 2019 ][" def clean(texte): return re.sub(r"[^\[\[[^\]\]+\]\]|\w]+", " ", texte).lower() print(clean(x)) >>> 'my son s birthday [[david | david smith]] is today 2019 ][' ``` Then you could do a split of "]" and keep the first index.
61,451,684
I am working on a slider carousel with bootstrap. My 'active' image loads, but the controls and the slide don't work. As I am following a tutorial, I thought this would be an easy exercise for practice, but I've hit a snag. For anyone concerned about the boostrap.css link I posted the entire html doc ... but its functi...
2020/04/27
[ "https://Stackoverflow.com/questions/61451684", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You have to return the map of logos which is not happening in your current code. Hence you are getting only one Logos component. ``` import React from 'react'; import { home } from '../homeObj'; const Logos = ({ title, img, img2, img3, key }) => { return ( <> <div className={styles.anaShif} key={key}> ...
You not only need to map over `home` but also the `logos` array with-in each `home` object. Also in your case, you don't need the third arg which is the entire array. **Simplify your code like this:** ```js home.map((_objects, i) => { if (_objects.id === "logos") { return ( <> ...
61,451,684
I am working on a slider carousel with bootstrap. My 'active' image loads, but the controls and the slide don't work. As I am following a tutorial, I thought this would be an easy exercise for practice, but I've hit a snag. For anyone concerned about the boostrap.css link I posted the entire html doc ... but its functi...
2020/04/27
[ "https://Stackoverflow.com/questions/61451684", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You have to return the map of logos which is not happening in your current code. Hence you are getting only one Logos component. ``` import React from 'react'; import { home } from '../homeObj'; const Logos = ({ title, img, img2, img3, key }) => { return ( <> <div className={styles.anaShif} key={key}> ...
Without much if else, you can also write like this. ```js home.filter((_objects, i) => _objects.id === 'logos') .map(({logos})=>logos.map(logo=> <Logos key={logo.id} {...logo} />)) ```
381,875
WordPress end points default rules, ``` GET ----> PUBLIC POST, PUT, DELETE ----> AUTH ``` How can I force authentication the WordPress REST API `GET` method requests?
2021/01/21
[ "https://wordpress.stackexchange.com/questions/381875", "https://wordpress.stackexchange.com", "https://wordpress.stackexchange.com/users/198965/" ]
You can't really apply authentication based directly on whether the request is GET or otherwise, but can forcefully apply authentication requirements globally in that manner, if you like. I've been quite verbose with the code to illustrate what's happening: ```php add_filter( 'rest_authentication_errors', function ( ...
Good Question and not that easy to do propperly (took me 1 week to figure that out). Then I found 2 good summaries in WordPress docs: [Home / REST API Handbook / Extending the REST API / Routes and Endpoints](https://developer.wordpress.org/rest-api/extending-the-rest-api/routes-and-endpoints/) [Home / REST API ...
38,401
Towards the end, when Ripley finally ... > > blows it out of the damned airlock! > > > She mutters a little song that seems to go ``` .... you .... are ... (my) ... lucky ..... star .... .... lucky-lucky-lucky .... ``` or something. What is that song?
2013/07/22
[ "https://scifi.stackexchange.com/questions/38401", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/3007/" ]
I think this is it: *You are my lucky star* from Broadway Melody, 1936. Easier to follow the lyrics in this earlier recording: And this version actually has the oft-omitted "Verse":
Debbie Reynolds - You Are My Lucky Star. I very much believe it's from the film "Singing in the Rain", Hollywood, from just after WW2. Ripley repeats it, as one would do, to concentrate on the job at hand rather than have her mind freeze or frazzle from the terror implicit in her situation. Lovely refrain and obviousl...
72,351,446
I can not figure out my mistake. Can someone help me? We are supposed to create the lists outside of the function. then create an empty list inside a function. We should return 9 different names. ``` first_names = ["Gabriel", "Reinhard", "Siebren"] last_names = ["Colomar", "Chase", "Vaswani"] def name_ge...
2022/05/23
[ "https://Stackoverflow.com/questions/72351446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19114904/" ]
The problem is that you're using a variable `full_name` twice: once as a string to store a new name in, and once as the list. This is closer to what you want: ``` import random first_names = ["Gabriel", "Reinhard", "Siebren"] last_names = ["Colomar", "Chase", "Vaswani"] full_names = [] for _ in r...
This makes a list of all possible full names and then picks from what hasn't been taken yet one by one. ``` remaining = [(a,b) for a in range(len(first_names)) for b in range(len(last_names))] full_name = [] while len(remaining)>0: (a,b) = random.choice(remaining) full_name.append(first_names[a] + " " + last_...
70,676,777
This useEffect is rendering one time if dependency array is empty but multiple times if i put folderRef in dependency array. I want to render the component only when I add or delete some folder. Please Help ``` import React, { useState, useEffect , useRef } from "react"; import { db } from "../firebase"; import { co...
2022/01/12
[ "https://Stackoverflow.com/questions/70676777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17878146/" ]
You redeclare `folderRef` each render cycle, so if you include it in the `useEffect` hook's dependency array it will trigger render looping. If you don't refer to `folderRef` anywhere else in the component then move it *into* the `useEffect` hook callback to remove it as an external dependnecy. ``` const [folders, se...
I think most Probably your useState function is like ``` const[folderRef , setFolders]=useState(Your Initial Value); ``` if this is the case then when ever you perform ``` useEffect(() => { setFolder(Setting Anything Here) .... },[folderRef]) ``` React starts an infinity loop coz every time you use setFolder th...
62,747,664
Good day, I'm currently experiencing a weird phenomena, this morning as I open the dbgview application an error message popped out(kernel related), couldn't remember much about the details. Although the dbgview was showing at the task bar but as I clicked on it, it will jump out to no where. It was as if I have 2nd mo...
2020/07/06
[ "https://Stackoverflow.com/questions/62747664", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4608323/" ]
DbgView remembers its last position, so what likely happened is that you disconnected a monitor while DbgView was running on it, or maybe you accidentally dragged DbgView offscreen, and now it opens in a position that's no longer visible. Try either of the following. * With DbgView running, `Alt-TAB` to it then press ...
Try this: * start dbgview * hold the left 'Windows key' * while still holding the windo
57,155,638
I have a line chart displayed on a webpage with chart.js but my time data is in UTC. I would like to convert it to the Denver timezone for display on the graph. Chart.js has a [luxon adapter](https://github.com/chartjs/chartjs-adapter-luxon) but I have no idea how to use it. I have included the following scripts: ``...
2019/07/23
[ "https://Stackoverflow.com/questions/57155638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11821892/" ]
You can simply generate the divisor and quotient randomly and then compute the dividend. Note that the divisor must be nonzero (thanks to @o11c's remind).
I think that @Vira has the right idea. If you want to generate `a` and `b` such that `a = b * q + r` with `r=0`, the good way to do it is : 1. Generate `b` randomly 2. Generate `q` randomly 3. Compute `a = b * q` 4. Ask to compute the division : `a` divided by `b`. The answer is `q`.
57,155,638
I have a line chart displayed on a webpage with chart.js but my time data is in UTC. I would like to convert it to the Denver timezone for display on the graph. Chart.js has a [luxon adapter](https://github.com/chartjs/chartjs-adapter-luxon) but I have no idea how to use it. I have included the following scripts: ``...
2019/07/23
[ "https://Stackoverflow.com/questions/57155638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11821892/" ]
1) Take any non-zero randomized Divisor (x). // say 5 2) Take any randomized temporary Dividend (D). // say 24 3) Calculate R = D % x; // => 4 4) return Dividend as (D -x ) // return 20 Now, your dividend will always be perfectly divisible by the divisor.
I think that @Vira has the right idea. If you want to generate `a` and `b` such that `a = b * q + r` with `r=0`, the good way to do it is : 1. Generate `b` randomly 2. Generate `q` randomly 3. Compute `a = b * q` 4. Ask to compute the division : `a` divided by `b`. The answer is `q`.
57,155,638
I have a line chart displayed on a webpage with chart.js but my time data is in UTC. I would like to convert it to the Denver timezone for display on the graph. Chart.js has a [luxon adapter](https://github.com/chartjs/chartjs-adapter-luxon) but I have no idea how to use it. I have included the following scripts: ``...
2019/07/23
[ "https://Stackoverflow.com/questions/57155638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11821892/" ]
I think that @Vira has the right idea. If you want to generate `a` and `b` such that `a = b * q + r` with `r=0`, the good way to do it is : 1. Generate `b` randomly 2. Generate `q` randomly 3. Compute `a = b * q` 4. Ask to compute the division : `a` divided by `b`. The answer is `q`.
you can generate a number to be divided as [random number1]x[random number2] . The problem will then be [random number1]x[random number2] divide by [random number1]
57,155,638
I have a line chart displayed on a webpage with chart.js but my time data is in UTC. I would like to convert it to the Denver timezone for display on the graph. Chart.js has a [luxon adapter](https://github.com/chartjs/chartjs-adapter-luxon) but I have no idea how to use it. I have included the following scripts: ``...
2019/07/23
[ "https://Stackoverflow.com/questions/57155638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11821892/" ]
x/y = z y\*z = x Generate y and z as integers, then calculate x.
you can generate a number to be divided as [random number1]x[random number2] . The problem will then be [random number1]x[random number2] divide by [random number1]
57,155,638
I have a line chart displayed on a webpage with chart.js but my time data is in UTC. I would like to convert it to the Denver timezone for display on the graph. Chart.js has a [luxon adapter](https://github.com/chartjs/chartjs-adapter-luxon) but I have no idea how to use it. I have included the following scripts: ``...
2019/07/23
[ "https://Stackoverflow.com/questions/57155638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11821892/" ]
I think that @Vira has the right idea. If you want to generate `a` and `b` such that `a = b * q + r` with `r=0`, the good way to do it is : 1. Generate `b` randomly 2. Generate `q` randomly 3. Compute `a = b * q` 4. Ask to compute the division : `a` divided by `b`. The answer is `q`.
GZ0 has offered a great solution, one that is likely the most elegant. As an alternative, you could use the modulo operator, %. ``` if num1 % num2 == 0: return num1, num2 ``` You can use that to generate a list of a hundred or a thousand pairs to use in your program.
57,155,638
I have a line chart displayed on a webpage with chart.js but my time data is in UTC. I would like to convert it to the Denver timezone for display on the graph. Chart.js has a [luxon adapter](https://github.com/chartjs/chartjs-adapter-luxon) but I have no idea how to use it. I have included the following scripts: ``...
2019/07/23
[ "https://Stackoverflow.com/questions/57155638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11821892/" ]
x/y = z y\*z = x Generate y and z as integers, then calculate x.
1) Take any non-zero randomized Divisor (x). // say 5 2) Take any randomized temporary Dividend (D). // say 24 3) Calculate R = D % x; // => 4 4) return Dividend as (D -x ) // return 20 Now, your dividend will always be perfectly divisible by the divisor.
57,155,638
I have a line chart displayed on a webpage with chart.js but my time data is in UTC. I would like to convert it to the Denver timezone for display on the graph. Chart.js has a [luxon adapter](https://github.com/chartjs/chartjs-adapter-luxon) but I have no idea how to use it. I have included the following scripts: ``...
2019/07/23
[ "https://Stackoverflow.com/questions/57155638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11821892/" ]
x/y = z y\*z = x Generate y and z as integers, then calculate x.
I think that @Vira has the right idea. If you want to generate `a` and `b` such that `a = b * q + r` with `r=0`, the good way to do it is : 1. Generate `b` randomly 2. Generate `q` randomly 3. Compute `a = b * q` 4. Ask to compute the division : `a` divided by `b`. The answer is `q`.
57,155,638
I have a line chart displayed on a webpage with chart.js but my time data is in UTC. I would like to convert it to the Denver timezone for display on the graph. Chart.js has a [luxon adapter](https://github.com/chartjs/chartjs-adapter-luxon) but I have no idea how to use it. I have included the following scripts: ``...
2019/07/23
[ "https://Stackoverflow.com/questions/57155638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11821892/" ]
1) Take any non-zero randomized Divisor (x). // say 5 2) Take any randomized temporary Dividend (D). // say 24 3) Calculate R = D % x; // => 4 4) return Dividend as (D -x ) // return 20 Now, your dividend will always be perfectly divisible by the divisor.
You can simply generate the divisor and quotient randomly and then compute the dividend. Note that the divisor must be nonzero (thanks to @o11c's remind).
57,155,638
I have a line chart displayed on a webpage with chart.js but my time data is in UTC. I would like to convert it to the Denver timezone for display on the graph. Chart.js has a [luxon adapter](https://github.com/chartjs/chartjs-adapter-luxon) but I have no idea how to use it. I have included the following scripts: ``...
2019/07/23
[ "https://Stackoverflow.com/questions/57155638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11821892/" ]
1) Take any non-zero randomized Divisor (x). // say 5 2) Take any randomized temporary Dividend (D). // say 24 3) Calculate R = D % x; // => 4 4) return Dividend as (D -x ) // return 20 Now, your dividend will always be perfectly divisible by the divisor.
GZ0 has offered a great solution, one that is likely the most elegant. As an alternative, you could use the modulo operator, %. ``` if num1 % num2 == 0: return num1, num2 ``` You can use that to generate a list of a hundred or a thousand pairs to use in your program.
57,155,638
I have a line chart displayed on a webpage with chart.js but my time data is in UTC. I would like to convert it to the Denver timezone for display on the graph. Chart.js has a [luxon adapter](https://github.com/chartjs/chartjs-adapter-luxon) but I have no idea how to use it. I have included the following scripts: ``...
2019/07/23
[ "https://Stackoverflow.com/questions/57155638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11821892/" ]
You can simply generate the divisor and quotient randomly and then compute the dividend. Note that the divisor must be nonzero (thanks to @o11c's remind).
GZ0 has offered a great solution, one that is likely the most elegant. As an alternative, you could use the modulo operator, %. ``` if num1 % num2 == 0: return num1, num2 ``` You can use that to generate a list of a hundred or a thousand pairs to use in your program.
35,760,833
I have a question that's somewhat similar to the one asked here. [Creating Formula (Effective-Discontinue) Dates while using vlookup](https://stackoverflow.com/questions/28097250/creating-formula-effective-discontinue-dates-while-using-vlookup) Basically, I have two tables: 1. Historical sales data per item (with sa...
2016/03/03
[ "https://Stackoverflow.com/questions/35760833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6010576/" ]
Entered in E3 as an array formula (using Ctrl+Shift+Enter) I'm not great at this part of excel so I'm sure there are better approaches. [![enter image description here](https://i.stack.imgur.com/mvLa8.png)](https://i.stack.imgur.com/mvLa8.png) [![enter image description here](https://i.stack.imgur.com/S0pbz.png)](htt...
Try this index/match: ``` =IFERROR(INDEX($I$2:$I$4,MATCH(1,IF(($G$2:$G$4<=A2)*(IF($H$2:$H$4<>"",$H$2:$H$4,TODAY())>=A2)*($F$2:$F$4=B2),1,0),0)),0) ``` It is an array, so Confirm with Ctrl-Shift-Enter. [![enter image description here](https://i.stack.imgur.com/Y4Q1y.png)](https://i.stack.imgur.com/Y4Q1y.png) For ta...
13,334,965
Is it possible to have an app running at aws EC2 and have it's database running at heroku's postgres? In case it is, what are the downsides I should consider? Since heroku is hosted at AWS, is there a way to know where is the location of the machine running my database? Hosting my app in the same region of the...
2012/11/11
[ "https://Stackoverflow.com/questions/13334965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/888149/" ]
You can determine the public-facing location of your Heroku DB at any given time with a `traceroute` ... but there's no guarantee that it'll stay at that location, or that there isn't any internal re-routing going on. You'd probably want to speak directly with Heroku support about ways to make sure your Heroku DB insta...
I dont have any experience on Heroku PostgreSQL. Generally of course you can run your own service on Amazon EC2 and use the managed database services of Heroku. Downsides might be * nobody guarantees, that Herouku exclusively uses AWS and you probably can't determine the physical Heroku service location within the cl...
794,391
I'm trying to solve the following congruence: $x^{17} \equiv 243 \pmod{257}$ I have worked out that the $\gcd(243,257)=1$ and that $243=3^5$ So $x^{17} \equiv 3^5 \pmod{257}$ and I don't really understand what to do next.
2014/05/14
[ "https://math.stackexchange.com/questions/794391", "https://math.stackexchange.com", "https://math.stackexchange.com/users/114091/" ]
Since $257$ is a prime number by Fermat's little theorem $a^{256}\equiv 1\mod 257\ \forall a, 257\not|a$ Now, let us find if there is a solution of the form $3^y$. If there is then the equation will become $$3^{17y-5}\equiv 1\mod 257\Rightarrow 256|17y-5$$ $y=181$ is a solution to this. So $x=3^{181}$ is one solution a...
We have the following facts: $\gcd(3,257)=1,\,$ $\varphi(257)=256,\,$ and 3 is a primitive root mod 257. From the first two we know, see e.g. [When is $a^n \equiv a^{(n \;\bmod \; \varphi(m))} \pmod m$ valid](https://math.stackexchange.com/questions/565449/when-is-an-equiv-an-bmod-varphim-pmod-m-valid), $$3^n \equiv 3^...
794,391
I'm trying to solve the following congruence: $x^{17} \equiv 243 \pmod{257}$ I have worked out that the $\gcd(243,257)=1$ and that $243=3^5$ So $x^{17} \equiv 3^5 \pmod{257}$ and I don't really understand what to do next.
2014/05/14
[ "https://math.stackexchange.com/questions/794391", "https://math.stackexchange.com", "https://math.stackexchange.com/users/114091/" ]
We want to solve $x^{17} \equiv 3^5 \pmod{257}$. Raise both sides to the power $15$ to get $$x^{255} \equiv 3^{75} \pmod{257},$$ or equivalently $x^{-1} \equiv 3^{75} \pmod {257}$. Thus $x \equiv 3^{-75} \equiv 28 \pmod{257}$.
We have the following facts: $\gcd(3,257)=1,\,$ $\varphi(257)=256,\,$ and 3 is a primitive root mod 257. From the first two we know, see e.g. [When is $a^n \equiv a^{(n \;\bmod \; \varphi(m))} \pmod m$ valid](https://math.stackexchange.com/questions/565449/when-is-an-equiv-an-bmod-varphim-pmod-m-valid), $$3^n \equiv 3^...
32,964,802
Is it possible to use PHP `mail()` on localhost in 64-bit Win10? I use xampp to run localhost and tried to use this function, but it returns error `Socket Error #10060<EOL>Connection timed out`. I used this configuration on 32-bit Win and there was no problem, mails were sent without any errors. Any solutions?
2015/10/06
[ "https://Stackoverflow.com/questions/32964802", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4628427/" ]
To send mail in gmail account ->In sendmail(inside wamp folder) folder open file “sendmail.ini” in notepad for editing Change the below line in this file *smtp\_server=smtp.gmail.com* //if u r using gmail id
``` a) Open the "php.ini". For XAMPP,it is located in C:\XAMPP\php\php.ini. Find out if you are using WAMP or LAMP server. Note : Make a backup of php.ini file b) Search [mail function] in the php.ini file. You can find like below. [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ; http://php....
34,523,247
Social Security numbers that I want to accept are: ``` xxx-xx-xxxx (ex. 123-45-6789) xxxxxxxxx (ex. 123456789) xxx xx xxxx (ex. 123 45 6789) ``` I am not a regex expert, but I wrote this (it's kind of ugly) ``` ^(\d{3}-\d{2}-\d{4})|(\d{3}\d{2}\d{4})|(\d{3}\s{1}\d{2}\s{1}\d{4})$ ``` However this social security nu...
2015/12/30
[ "https://Stackoverflow.com/questions/34523247", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1046662/" ]
To solve your problem with dashes, spaces, etc. being consistent, you can use a backreference. Make the first separator a group and allow it to be optional - `([ \-]?)`. You can then reference it with `\1` to make sure the second separator is the same as the first one: ``` ^(?!000|666)[0-9]{3}([ -]?)(?!00)[0-9]{2}\1(?...
More complete validation rules are available on CodeProject at <http://www.codeproject.com/Articles/651609/Validating-Social-Security-Numbers-through-Regular>. Copying the information here in case the link goes away, but also expanding on the codeproject answer a bit. A Social Security number CANNOT : * Contain all z...
34,523,247
Social Security numbers that I want to accept are: ``` xxx-xx-xxxx (ex. 123-45-6789) xxxxxxxxx (ex. 123456789) xxx xx xxxx (ex. 123 45 6789) ``` I am not a regex expert, but I wrote this (it's kind of ugly) ``` ^(\d{3}-\d{2}-\d{4})|(\d{3}\d{2}\d{4})|(\d{3}\s{1}\d{2}\s{1}\d{4})$ ``` However this social security nu...
2015/12/30
[ "https://Stackoverflow.com/questions/34523247", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1046662/" ]
To solve your problem with dashes, spaces, etc. being consistent, you can use a backreference. Make the first separator a group and allow it to be optional - `([ \-]?)`. You can then reference it with `\1` to make sure the second separator is the same as the first one: ``` ^(?!000|666)[0-9]{3}([ -]?)(?!00)[0-9]{2}\1(?...
I had a requirement to validate SSN's. This regex will validate SSN for below rules 1. Matches dashes, spaces or no spaces 2. Numbers, 9 digits, non-alphanumeric 3. Exclude all zeros 4. Exclude beginning characters `666,000,900,999,123456789,111111111,222222222,333333333,444444444,555555555,666666666,777777777,888888...
34,523,247
Social Security numbers that I want to accept are: ``` xxx-xx-xxxx (ex. 123-45-6789) xxxxxxxxx (ex. 123456789) xxx xx xxxx (ex. 123 45 6789) ``` I am not a regex expert, but I wrote this (it's kind of ugly) ``` ^(\d{3}-\d{2}-\d{4})|(\d{3}\d{2}\d{4})|(\d{3}\s{1}\d{2}\s{1}\d{4})$ ``` However this social security nu...
2015/12/30
[ "https://Stackoverflow.com/questions/34523247", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1046662/" ]
More complete validation rules are available on CodeProject at <http://www.codeproject.com/Articles/651609/Validating-Social-Security-Numbers-through-Regular>. Copying the information here in case the link goes away, but also expanding on the codeproject answer a bit. A Social Security number CANNOT : * Contain all z...
I had a requirement to validate SSN's. This regex will validate SSN for below rules 1. Matches dashes, spaces or no spaces 2. Numbers, 9 digits, non-alphanumeric 3. Exclude all zeros 4. Exclude beginning characters `666,000,900,999,123456789,111111111,222222222,333333333,444444444,555555555,666666666,777777777,888888...
17,377,725
I have two queries that I am not sure how to run as one doing some simple math. ``` SELECT count(*) FROM CUSTOMERINFO where member between '2013-01-01' and '2013-12-31' ``` Returns: 7823 ``` select COUNT(DISTINCT ORDERINFO.OrderID) from orderinfo, orderiteminfo where code = '810samp' AND ORDERINFO.OrderID = ORDE...
2013/06/29
[ "https://Stackoverflow.com/questions/17377725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2533695/" ]
More than likely, those computers do not have some required Qt library that your program is using. See the tutorial here: <http://doc.qt.io/qt-5/windows-deployment.html> Another easy check would be to install Qt on another computer, move your .exe over and see if it runs. If it does, you certainly did not deploy your ...
If you have cygwin installed then you can run `ldd <your_app.exe>` and see list of libraries which are required by your application. After doing so copy your exe to another folder and libraries which are required by it. This should be OK for LGPL license but I AM NOT A LAWYER so please consult some smarter people whi...
17,377,725
I have two queries that I am not sure how to run as one doing some simple math. ``` SELECT count(*) FROM CUSTOMERINFO where member between '2013-01-01' and '2013-12-31' ``` Returns: 7823 ``` select COUNT(DISTINCT ORDERINFO.OrderID) from orderinfo, orderiteminfo where code = '810samp' AND ORDERINFO.OrderID = ORDE...
2013/06/29
[ "https://Stackoverflow.com/questions/17377725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2533695/" ]
More than likely, those computers do not have some required Qt library that your program is using. See the tutorial here: <http://doc.qt.io/qt-5/windows-deployment.html> Another easy check would be to install Qt on another computer, move your .exe over and see if it runs. If it does, you certainly did not deploy your ...
You are deploying a mingw compiled application, this requires you to supply the following DLL-Files, additionally to the Qt-DLL's used in your application: ``` icudt51.dll icuin51.dll icuuc51.dll libstdc++-6.dll (eventually) platforms/qminimal.dll platforms/qwindows.dll libgcc_s_dw2-1.dll (eventually) ``` Those can ...
17,377,725
I have two queries that I am not sure how to run as one doing some simple math. ``` SELECT count(*) FROM CUSTOMERINFO where member between '2013-01-01' and '2013-12-31' ``` Returns: 7823 ``` select COUNT(DISTINCT ORDERINFO.OrderID) from orderinfo, orderiteminfo where code = '810samp' AND ORDERINFO.OrderID = ORDE...
2013/06/29
[ "https://Stackoverflow.com/questions/17377725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2533695/" ]
More than likely, those computers do not have some required Qt library that your program is using. See the tutorial here: <http://doc.qt.io/qt-5/windows-deployment.html> Another easy check would be to install Qt on another computer, move your .exe over and see if it runs. If it does, you certainly did not deploy your ...
This is a bug in Qt. It is because of a missing DLL but it is a plugin DLL so it doesn't show up in depends.exe, and Qt doesn't look for it where it should. Long story short, if you copy the qwindows.dll (or qwindowsd.dll for debug builds) onto your deployment machine and put in the SAME ABSOLUTE PATH as it came from...
17,377,725
I have two queries that I am not sure how to run as one doing some simple math. ``` SELECT count(*) FROM CUSTOMERINFO where member between '2013-01-01' and '2013-12-31' ``` Returns: 7823 ``` select COUNT(DISTINCT ORDERINFO.OrderID) from orderinfo, orderiteminfo where code = '810samp' AND ORDERINFO.OrderID = ORDE...
2013/06/29
[ "https://Stackoverflow.com/questions/17377725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2533695/" ]
More than likely, those computers do not have some required Qt library that your program is using. See the tutorial here: <http://doc.qt.io/qt-5/windows-deployment.html> Another easy check would be to install Qt on another computer, move your .exe over and see if it runs. If it does, you certainly did not deploy your ...
This is a bug on Windows: <https://bugreports.qt-project.org/browse/QTBUG-28766> Specifically, Qt only looks for qwindows.dll (which *is* required despite what `depends.exe` says - it is dynamically loaded) in the hard-coded absolute path that it is installed in on your development machine, i.e. `c:\Qt\.....\plugins\...
17,377,725
I have two queries that I am not sure how to run as one doing some simple math. ``` SELECT count(*) FROM CUSTOMERINFO where member between '2013-01-01' and '2013-12-31' ``` Returns: 7823 ``` select COUNT(DISTINCT ORDERINFO.OrderID) from orderinfo, orderiteminfo where code = '810samp' AND ORDERINFO.OrderID = ORDE...
2013/06/29
[ "https://Stackoverflow.com/questions/17377725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2533695/" ]
If you have cygwin installed then you can run `ldd <your_app.exe>` and see list of libraries which are required by your application. After doing so copy your exe to another folder and libraries which are required by it. This should be OK for LGPL license but I AM NOT A LAWYER so please consult some smarter people whi...
This is a bug in Qt. It is because of a missing DLL but it is a plugin DLL so it doesn't show up in depends.exe, and Qt doesn't look for it where it should. Long story short, if you copy the qwindows.dll (or qwindowsd.dll for debug builds) onto your deployment machine and put in the SAME ABSOLUTE PATH as it came from...
17,377,725
I have two queries that I am not sure how to run as one doing some simple math. ``` SELECT count(*) FROM CUSTOMERINFO where member between '2013-01-01' and '2013-12-31' ``` Returns: 7823 ``` select COUNT(DISTINCT ORDERINFO.OrderID) from orderinfo, orderiteminfo where code = '810samp' AND ORDERINFO.OrderID = ORDE...
2013/06/29
[ "https://Stackoverflow.com/questions/17377725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2533695/" ]
If you have cygwin installed then you can run `ldd <your_app.exe>` and see list of libraries which are required by your application. After doing so copy your exe to another folder and libraries which are required by it. This should be OK for LGPL license but I AM NOT A LAWYER so please consult some smarter people whi...
This is a bug on Windows: <https://bugreports.qt-project.org/browse/QTBUG-28766> Specifically, Qt only looks for qwindows.dll (which *is* required despite what `depends.exe` says - it is dynamically loaded) in the hard-coded absolute path that it is installed in on your development machine, i.e. `c:\Qt\.....\plugins\...
17,377,725
I have two queries that I am not sure how to run as one doing some simple math. ``` SELECT count(*) FROM CUSTOMERINFO where member between '2013-01-01' and '2013-12-31' ``` Returns: 7823 ``` select COUNT(DISTINCT ORDERINFO.OrderID) from orderinfo, orderiteminfo where code = '810samp' AND ORDERINFO.OrderID = ORDE...
2013/06/29
[ "https://Stackoverflow.com/questions/17377725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2533695/" ]
You are deploying a mingw compiled application, this requires you to supply the following DLL-Files, additionally to the Qt-DLL's used in your application: ``` icudt51.dll icuin51.dll icuuc51.dll libstdc++-6.dll (eventually) platforms/qminimal.dll platforms/qwindows.dll libgcc_s_dw2-1.dll (eventually) ``` Those can ...
This is a bug in Qt. It is because of a missing DLL but it is a plugin DLL so it doesn't show up in depends.exe, and Qt doesn't look for it where it should. Long story short, if you copy the qwindows.dll (or qwindowsd.dll for debug builds) onto your deployment machine and put in the SAME ABSOLUTE PATH as it came from...
17,377,725
I have two queries that I am not sure how to run as one doing some simple math. ``` SELECT count(*) FROM CUSTOMERINFO where member between '2013-01-01' and '2013-12-31' ``` Returns: 7823 ``` select COUNT(DISTINCT ORDERINFO.OrderID) from orderinfo, orderiteminfo where code = '810samp' AND ORDERINFO.OrderID = ORDE...
2013/06/29
[ "https://Stackoverflow.com/questions/17377725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2533695/" ]
You are deploying a mingw compiled application, this requires you to supply the following DLL-Files, additionally to the Qt-DLL's used in your application: ``` icudt51.dll icuin51.dll icuuc51.dll libstdc++-6.dll (eventually) platforms/qminimal.dll platforms/qwindows.dll libgcc_s_dw2-1.dll (eventually) ``` Those can ...
This is a bug on Windows: <https://bugreports.qt-project.org/browse/QTBUG-28766> Specifically, Qt only looks for qwindows.dll (which *is* required despite what `depends.exe` says - it is dynamically loaded) in the hard-coded absolute path that it is installed in on your development machine, i.e. `c:\Qt\.....\plugins\...
17,377,725
I have two queries that I am not sure how to run as one doing some simple math. ``` SELECT count(*) FROM CUSTOMERINFO where member between '2013-01-01' and '2013-12-31' ``` Returns: 7823 ``` select COUNT(DISTINCT ORDERINFO.OrderID) from orderinfo, orderiteminfo where code = '810samp' AND ORDERINFO.OrderID = ORDE...
2013/06/29
[ "https://Stackoverflow.com/questions/17377725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2533695/" ]
This is a bug in Qt. It is because of a missing DLL but it is a plugin DLL so it doesn't show up in depends.exe, and Qt doesn't look for it where it should. Long story short, if you copy the qwindows.dll (or qwindowsd.dll for debug builds) onto your deployment machine and put in the SAME ABSOLUTE PATH as it came from...
This is a bug on Windows: <https://bugreports.qt-project.org/browse/QTBUG-28766> Specifically, Qt only looks for qwindows.dll (which *is* required despite what `depends.exe` says - it is dynamically loaded) in the hard-coded absolute path that it is installed in on your development machine, i.e. `c:\Qt\.....\plugins\...
67,290
In a table with 4 rows and 4 columns I try to merge different cells in every row while preserving the table layout. As there are never more than 3 cells in a row, a table column seems to be dropped. If I add an empty row containing 4 cells there are 4 columns. Question: is it possible to preserve all columns without a...
2012/08/15
[ "https://tex.stackexchange.com/questions/67290", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/17626/" ]
The following is probably what you're after: ![enter image description here](https://i.stack.imgur.com/y6YQQ.png) ``` \documentclass[10pt]{article} \begin{document} \section{A} \begin{tabular}{|l|l|l|l|} \hline \multicolumn{4}{|l|}{1} \\ \hline \multicolumn{3}{|l|}{2} & 14 \\ \hline 3 & \multicolumn{2}{|l|}{7}...
It seems that you want to have a 4 column table, but only have 3 columns of data. If you know the width of the additional column you want, you can add that as `\hphantom{14}` (assuming that the width of the other column is equivalent to the width of the digits `14`: ![enter image description here](https://i.stack.imgu...
67,290
In a table with 4 rows and 4 columns I try to merge different cells in every row while preserving the table layout. As there are never more than 3 cells in a row, a table column seems to be dropped. If I add an empty row containing 4 cells there are 4 columns. Question: is it possible to preserve all columns without a...
2012/08/15
[ "https://tex.stackexchange.com/questions/67290", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/17626/" ]
The following is probably what you're after: ![enter image description here](https://i.stack.imgur.com/y6YQQ.png) ``` \documentclass[10pt]{article} \begin{document} \section{A} \begin{tabular}{|l|l|l|l|} \hline \multicolumn{4}{|l|}{1} \\ \hline \multicolumn{3}{|l|}{2} & 14 \\ \hline 3 & \multicolumn{2}{|l|}{7}...
It's a feature of the underlying `\halign` primitive that any column boundary that is spanned in every row is removed from the column width calculation. Perhaps the easiest thing is to change the first line to ``` \hline \multicolumn{2}{|l}{1}&\multicolumn{1}{l}{} &\ ``` ![enter image description here](https://i....
67,290
In a table with 4 rows and 4 columns I try to merge different cells in every row while preserving the table layout. As there are never more than 3 cells in a row, a table column seems to be dropped. If I add an empty row containing 4 cells there are 4 columns. Question: is it possible to preserve all columns without a...
2012/08/15
[ "https://tex.stackexchange.com/questions/67290", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/17626/" ]
The following is probably what you're after: ![enter image description here](https://i.stack.imgur.com/y6YQQ.png) ``` \documentclass[10pt]{article} \begin{document} \section{A} \begin{tabular}{|l|l|l|l|} \hline \multicolumn{4}{|l|}{1} \\ \hline \multicolumn{3}{|l|}{2} & 14 \\ \hline 3 & \multicolumn{2}{|l|}{7}...
Here is what you can do with `{NiceTabular}` of `nicematrix`. With the key `hvlines`, all the rules are drawn excepted in the blocks (created by `\Block`). ``` \documentclass[10pt]{article} \usepackage{nicematrix} \begin{document} \begin{NiceTabular}{llll}[hvlines] \Block{1-4}{} 1 \\ \Block{1-3}{} 2 &&& 14 \\ ...
67,290
In a table with 4 rows and 4 columns I try to merge different cells in every row while preserving the table layout. As there are never more than 3 cells in a row, a table column seems to be dropped. If I add an empty row containing 4 cells there are 4 columns. Question: is it possible to preserve all columns without a...
2012/08/15
[ "https://tex.stackexchange.com/questions/67290", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/17626/" ]
It's a feature of the underlying `\halign` primitive that any column boundary that is spanned in every row is removed from the column width calculation. Perhaps the easiest thing is to change the first line to ``` \hline \multicolumn{2}{|l}{1}&\multicolumn{1}{l}{} &\ ``` ![enter image description here](https://i....
It seems that you want to have a 4 column table, but only have 3 columns of data. If you know the width of the additional column you want, you can add that as `\hphantom{14}` (assuming that the width of the other column is equivalent to the width of the digits `14`: ![enter image description here](https://i.stack.imgu...
67,290
In a table with 4 rows and 4 columns I try to merge different cells in every row while preserving the table layout. As there are never more than 3 cells in a row, a table column seems to be dropped. If I add an empty row containing 4 cells there are 4 columns. Question: is it possible to preserve all columns without a...
2012/08/15
[ "https://tex.stackexchange.com/questions/67290", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/17626/" ]
It seems that you want to have a 4 column table, but only have 3 columns of data. If you know the width of the additional column you want, you can add that as `\hphantom{14}` (assuming that the width of the other column is equivalent to the width of the digits `14`: ![enter image description here](https://i.stack.imgu...
Here is what you can do with `{NiceTabular}` of `nicematrix`. With the key `hvlines`, all the rules are drawn excepted in the blocks (created by `\Block`). ``` \documentclass[10pt]{article} \usepackage{nicematrix} \begin{document} \begin{NiceTabular}{llll}[hvlines] \Block{1-4}{} 1 \\ \Block{1-3}{} 2 &&& 14 \\ ...
67,290
In a table with 4 rows and 4 columns I try to merge different cells in every row while preserving the table layout. As there are never more than 3 cells in a row, a table column seems to be dropped. If I add an empty row containing 4 cells there are 4 columns. Question: is it possible to preserve all columns without a...
2012/08/15
[ "https://tex.stackexchange.com/questions/67290", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/17626/" ]
It's a feature of the underlying `\halign` primitive that any column boundary that is spanned in every row is removed from the column width calculation. Perhaps the easiest thing is to change the first line to ``` \hline \multicolumn{2}{|l}{1}&\multicolumn{1}{l}{} &\ ``` ![enter image description here](https://i....
Here is what you can do with `{NiceTabular}` of `nicematrix`. With the key `hvlines`, all the rules are drawn excepted in the blocks (created by `\Block`). ``` \documentclass[10pt]{article} \usepackage{nicematrix} \begin{document} \begin{NiceTabular}{llll}[hvlines] \Block{1-4}{} 1 \\ \Block{1-3}{} 2 &&& 14 \\ ...
6,463,236
Alright, I'm making a game of sorts... I've done it with append as well -\_- When I call back and add the next item(i.e. #2 after doing #1) I get just that item in the print out... such as this: ```none > 1 You put your Hatchet into the bag Press enter to add more items ['Hatchet'] > > 2 You put your Toothbrush...
2011/06/24
[ "https://Stackoverflow.com/questions/6463236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/813430/" ]
Your problem is that you're adding something to `bag`, but then you're recursing into the start of `func` again, where it has a different scope. It then assigns `[]` to `bag`, leaving it empty. Something you could do is make `func` take an optional argument: ``` def func(bag=None): if bag is None: bag = []...
bag is a list not a dict. If you want to add items to a list, you should use append.
6,463,236
Alright, I'm making a game of sorts... I've done it with append as well -\_- When I call back and add the next item(i.e. #2 after doing #1) I get just that item in the print out... such as this: ```none > 1 You put your Hatchet into the bag Press enter to add more items ['Hatchet'] > > 2 You put your Toothbrush...
2011/06/24
[ "https://Stackoverflow.com/questions/6463236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/813430/" ]
Your problem is that you're adding something to `bag`, but then you're recursing into the start of `func` again, where it has a different scope. It then assigns `[]` to `bag`, leaving it empty. Something you could do is make `func` take an optional argument: ``` def func(bag=None): if bag is None: bag = []...
The reason why you always have the only one item in bag list is because you recreate it each time you call your function so you need to find a way how to correctly initialize it. Also it is better to use append instead of insert in your case. Please find below my sample code(not sure that this is a good idea to write c...
2,027,352
The idea would be to replace ERB with templates that are pure XHTML and that the view would be pure code manipulating the template content. Have this been done already ?
2010/01/08
[ "https://Stackoverflow.com/questions/2027352", "https://Stackoverflow.com", "https://Stackoverflow.com/users/191068/" ]
There used to be [Lilu](http://InfoQ.Com/news/2007/07/mockup-driven-dev-lilu/) by [Yuri Rashkovskii](http://Rashkovskii.Com/), but it is no longer maintained. It is [still available](http://Gitorious.Org/lilu/), though, so if you're interested you can maintain it yourself. (It's very little code, actually, and the temp...
I'm not sure if this is exactly what you mean, but mustache sounds similar: <http://github.com/defunkt/mustache> <http://www.rubyinside.com/mustache-for-logicfree-views-in-your-ruby-web-apps-2599.html>
2,027,352
The idea would be to replace ERB with templates that are pure XHTML and that the view would be pure code manipulating the template content. Have this been done already ?
2010/01/08
[ "https://Stackoverflow.com/questions/2027352", "https://Stackoverflow.com", "https://Stackoverflow.com/users/191068/" ]
Trellis is an attempt to create a component framework in Ruby. It's borrows more from Tapestry, but should have similarities to Wicket. <http://www.trellisframework.org/>
I'm not sure if this is exactly what you mean, but mustache sounds similar: <http://github.com/defunkt/mustache> <http://www.rubyinside.com/mustache-for-logicfree-views-in-your-ruby-web-apps-2599.html>
2,027,352
The idea would be to replace ERB with templates that are pure XHTML and that the view would be pure code manipulating the template content. Have this been done already ?
2010/01/08
[ "https://Stackoverflow.com/questions/2027352", "https://Stackoverflow.com", "https://Stackoverflow.com/users/191068/" ]
There used to be [Lilu](http://InfoQ.Com/news/2007/07/mockup-driven-dev-lilu/) by [Yuri Rashkovskii](http://Rashkovskii.Com/), but it is no longer maintained. It is [still available](http://Gitorious.Org/lilu/), though, so if you're interested you can maintain it yourself. (It's very little code, actually, and the temp...
Trellis is an attempt to create a component framework in Ruby. It's borrows more from Tapestry, but should have similarities to Wicket. <http://www.trellisframework.org/>
11,556,430
i am using installshield msi project type. in this i am executing msiexec.exe /x[productcode] /qn /norestart - this is generating an error code 1722. can anyone please tell me what does this exactly mean? and how can i counter it? error 1722 : There is a problem with this Windows Installer package. A program run as pa...
2012/07/19
[ "https://Stackoverflow.com/questions/11556430", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1372278/" ]
Are you trying to run msiexec as a custom action from within an MSI? You can't do that. The second instance of msiexec is trying to instantiate the mutex, but can't as it's being held by the installation already in progress. If you're wanting to remove an already installed product as part of your installation, just us...
1722 is a generic error when a custom action encounters an error. Check whether ur customaction returs zero on success. Either u can ignore the return value of ur custom action EXE. or u should make ur custom action to return zero on success. also try /qb instead of /qn so that u could get the error (if any) occur...
46,566,364
Assume we have next t-SQL code: ``` ;WITH [CTE] AS ( SELECT 0 [A], 'FAULT' [B] UNION ALL SELECT 1 [A], '1' [B] UNION ALL SELECT 2 [A], '2' [B] ), [CTE2] AS ( SELECT [B] FROM [CTE] WHERE [A] > 0 ) SELECT * FROM [CTE2] WHERE 1 IN (SELECT [B] FROM [CTE2]) ``` This code faults with an err...
2017/10/04
[ "https://Stackoverflow.com/questions/46566364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2032097/" ]
add ``` compile 'com.google.firebase:firebase-firestore:11.4.2' ``` You don't need com.google.firebase:firebase-database if you use Firestore alone. and you don't need to compile all google services. ``` buildscript { dependencies { classpath 'com.google.gms:google-services:3.1.0' } } dependencies ...
Use `compile 'com.google.firebase:firebase-firestore:11.4.2'` Cloud Firestore was introduced in [Google Play services 11.4.2](https://developers.google.com/android/guides/releases)
46,566,364
Assume we have next t-SQL code: ``` ;WITH [CTE] AS ( SELECT 0 [A], 'FAULT' [B] UNION ALL SELECT 1 [A], '1' [B] UNION ALL SELECT 2 [A], '2' [B] ), [CTE2] AS ( SELECT [B] FROM [CTE] WHERE [A] > 0 ) SELECT * FROM [CTE2] WHERE 1 IN (SELECT [B] FROM [CTE2]) ``` This code faults with an err...
2017/10/04
[ "https://Stackoverflow.com/questions/46566364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2032097/" ]
Use `compile 'com.google.firebase:firebase-firestore:11.4.2'` Cloud Firestore was introduced in [Google Play services 11.4.2](https://developers.google.com/android/guides/releases)
Do not forget to add this line in the bottom of `build.gradle`: ``` apply plugin: 'com.google.gms.google-services' ```
46,566,364
Assume we have next t-SQL code: ``` ;WITH [CTE] AS ( SELECT 0 [A], 'FAULT' [B] UNION ALL SELECT 1 [A], '1' [B] UNION ALL SELECT 2 [A], '2' [B] ), [CTE2] AS ( SELECT [B] FROM [CTE] WHERE [A] > 0 ) SELECT * FROM [CTE2] WHERE 1 IN (SELECT [B] FROM [CTE2]) ``` This code faults with an err...
2017/10/04
[ "https://Stackoverflow.com/questions/46566364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2032097/" ]
Use `compile 'com.google.firebase:firebase-firestore:11.4.2'` Cloud Firestore was introduced in [Google Play services 11.4.2](https://developers.google.com/android/guides/releases)
How about your SDK versions? it is in the build.gradle app level make sure its the latest: ``` android { compileSdkVersion 26 buildToolsVersion "26.0.0" ```
46,566,364
Assume we have next t-SQL code: ``` ;WITH [CTE] AS ( SELECT 0 [A], 'FAULT' [B] UNION ALL SELECT 1 [A], '1' [B] UNION ALL SELECT 2 [A], '2' [B] ), [CTE2] AS ( SELECT [B] FROM [CTE] WHERE [A] > 0 ) SELECT * FROM [CTE2] WHERE 1 IN (SELECT [B] FROM [CTE2]) ``` This code faults with an err...
2017/10/04
[ "https://Stackoverflow.com/questions/46566364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2032097/" ]
add ``` compile 'com.google.firebase:firebase-firestore:11.4.2' ``` You don't need com.google.firebase:firebase-database if you use Firestore alone. and you don't need to compile all google services. ``` buildscript { dependencies { classpath 'com.google.gms:google-services:3.1.0' } } dependencies ...
Do not forget to add this line in the bottom of `build.gradle`: ``` apply plugin: 'com.google.gms.google-services' ```
46,566,364
Assume we have next t-SQL code: ``` ;WITH [CTE] AS ( SELECT 0 [A], 'FAULT' [B] UNION ALL SELECT 1 [A], '1' [B] UNION ALL SELECT 2 [A], '2' [B] ), [CTE2] AS ( SELECT [B] FROM [CTE] WHERE [A] > 0 ) SELECT * FROM [CTE2] WHERE 1 IN (SELECT [B] FROM [CTE2]) ``` This code faults with an err...
2017/10/04
[ "https://Stackoverflow.com/questions/46566364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2032097/" ]
add ``` compile 'com.google.firebase:firebase-firestore:11.4.2' ``` You don't need com.google.firebase:firebase-database if you use Firestore alone. and you don't need to compile all google services. ``` buildscript { dependencies { classpath 'com.google.gms:google-services:3.1.0' } } dependencies ...
How about your SDK versions? it is in the build.gradle app level make sure its the latest: ``` android { compileSdkVersion 26 buildToolsVersion "26.0.0" ```
70,862,312
Consider this simple C program : test.c ``` int g=10; int main(){ g++; return 0; } ``` Now my question is if g is put into the data segment before execution. A picture may help clarify even better what I mean : [![enter image description here](https://i.stack.imgur.com/EwR9C.png)](https://i.stack.imgur.com/Ew...
2022/01/26
[ "https://Stackoverflow.com/questions/70862312", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14210576/" ]
As far as I know about express framework. Express exposes us to a lot of useful functions. If we don't `require` or `import` express in our application then, Our application will not be able to use those functions. For example if you are creating some REST APIs then, We need our APIs to take `form-data` or `raw` as in...
As long as you don't need access to the express module elsewhere in this file, then doing: ``` const app = require('express')(); ``` is the best way. But if we require to use to this express module again and again. Such as below ``` const app = require('express')(); const friendsRouter = require('express').Router...
6,656,380
First of all I shall say that I think I got how it should be done but my code will not compile any way I try. I based my assumption on [this official example of empty ptree trick](http://www.boost.org/doc/libs/1_46_1/libs/property_tree/examples/empty_ptree_trick.cpp). There you can find next line: ``` const ptree &s...
2011/07/11
[ "https://Stackoverflow.com/questions/6656380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/434051/" ]
The property tree iterators point to pairs of the form `(key, tree)` of type `ptree::value_type`. The standard loop for iterating through the children of the node at `path` therefore looks like: ``` BOOST_FOREACH(const ptree::value_type &v, pt.get_child(path)) { // v.first is the name of the child. // v.second...
I had the same problem with iterating trough JSON sub nodes ``` boost::property_tree::read_json(streamJSON, ptJSON); ``` If you have a structure like: ``` { playlists: [ { id: "1", x: "something" shows: [ { val: "test" }, { val: "test1" }, { val: "test2" } ] }, { id: "2" x: "else", ...
6,656,380
First of all I shall say that I think I got how it should be done but my code will not compile any way I try. I based my assumption on [this official example of empty ptree trick](http://www.boost.org/doc/libs/1_46_1/libs/property_tree/examples/empty_ptree_trick.cpp). There you can find next line: ``` const ptree &s...
2011/07/11
[ "https://Stackoverflow.com/questions/6656380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/434051/" ]
The property tree iterators point to pairs of the form `(key, tree)` of type `ptree::value_type`. The standard loop for iterating through the children of the node at `path` therefore looks like: ``` BOOST_FOREACH(const ptree::value_type &v, pt.get_child(path)) { // v.first is the name of the child. // v.second...
Using C++11, you can use the following to iterate through all the children of the node at `path`: ``` ptree children = pt.get_child(path); for (const auto& kv : children) { // kv is of type ptree::value_type // kv.first is the name of the child // kv.second is the child tree } ```
6,656,380
First of all I shall say that I think I got how it should be done but my code will not compile any way I try. I based my assumption on [this official example of empty ptree trick](http://www.boost.org/doc/libs/1_46_1/libs/property_tree/examples/empty_ptree_trick.cpp). There you can find next line: ``` const ptree &s...
2011/07/11
[ "https://Stackoverflow.com/questions/6656380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/434051/" ]
Using C++11, you can use the following to iterate through all the children of the node at `path`: ``` ptree children = pt.get_child(path); for (const auto& kv : children) { // kv is of type ptree::value_type // kv.first is the name of the child // kv.second is the child tree } ```
I had the same problem with iterating trough JSON sub nodes ``` boost::property_tree::read_json(streamJSON, ptJSON); ``` If you have a structure like: ``` { playlists: [ { id: "1", x: "something" shows: [ { val: "test" }, { val: "test1" }, { val: "test2" } ] }, { id: "2" x: "else", ...
3,727,774
How to create an offline enabled web-application such that when user visits hxxp://mywebsite/ and is offline than hxxp://mywebsite/offline/ is displayed. [There are about 100 different dynamic pages in my website, so I cannot afford to hardcode all of them in the cache manifest file]
2010/09/16
[ "https://Stackoverflow.com/questions/3727774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/434196/" ]
I reference "manifest.php" instead of "cache.manifest", then my php file looks like this: ``` <?php header('Content-Type: text/cache-manifest'); echo "CACHE MANIFEST\n"; $hashes = ""; $dir = new RecursiveDirectoryIterator("."); foreach(new RecursiveIteratorIterator($dir) as $file) { $info...
It's not possible to use wildcards in the cache manifest, at least it doesn't work in any current browser as far as I'm aware. An alternative approach might be to generate your cache manifest dynamically, and let a script generate all those fallback entries.
3,727,774
How to create an offline enabled web-application such that when user visits hxxp://mywebsite/ and is offline than hxxp://mywebsite/offline/ is displayed. [There are about 100 different dynamic pages in my website, so I cannot afford to hardcode all of them in the cache manifest file]
2010/09/16
[ "https://Stackoverflow.com/questions/3727774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/434196/" ]
``` CACHE MANIFEST CACHE: /Offline/OfflineIndex.html FALLBACK: / /Offline/OfflineIndex.html NETWORK: * ``` This will cause all your pages across the entire site to redirect to offline when offline. The only issue is with the page that declares the manifest as that page is always cached. This means you cannot declar...
It's not possible to use wildcards in the cache manifest, at least it doesn't work in any current browser as far as I'm aware. An alternative approach might be to generate your cache manifest dynamically, and let a script generate all those fallback entries.
3,727,774
How to create an offline enabled web-application such that when user visits hxxp://mywebsite/ and is offline than hxxp://mywebsite/offline/ is displayed. [There are about 100 different dynamic pages in my website, so I cannot afford to hardcode all of them in the cache manifest file]
2010/09/16
[ "https://Stackoverflow.com/questions/3727774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/434196/" ]
It's not possible to use wildcards in the cache manifest, at least it doesn't work in any current browser as far as I'm aware. An alternative approach might be to generate your cache manifest dynamically, and let a script generate all those fallback entries.
Reference your manifest file in an invisible iframe in your index page. That way your index page isn't cached as it is normally by default and you have total control over your fallbacks... No need for unreliable cookies or localStorage!
3,727,774
How to create an offline enabled web-application such that when user visits hxxp://mywebsite/ and is offline than hxxp://mywebsite/offline/ is displayed. [There are about 100 different dynamic pages in my website, so I cannot afford to hardcode all of them in the cache manifest file]
2010/09/16
[ "https://Stackoverflow.com/questions/3727774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/434196/" ]
``` CACHE MANIFEST CACHE: /Offline/OfflineIndex.html FALLBACK: / /Offline/OfflineIndex.html NETWORK: * ``` This will cause all your pages across the entire site to redirect to offline when offline. The only issue is with the page that declares the manifest as that page is always cached. This means you cannot declar...
I reference "manifest.php" instead of "cache.manifest", then my php file looks like this: ``` <?php header('Content-Type: text/cache-manifest'); echo "CACHE MANIFEST\n"; $hashes = ""; $dir = new RecursiveDirectoryIterator("."); foreach(new RecursiveIteratorIterator($dir) as $file) { $info...
3,727,774
How to create an offline enabled web-application such that when user visits hxxp://mywebsite/ and is offline than hxxp://mywebsite/offline/ is displayed. [There are about 100 different dynamic pages in my website, so I cannot afford to hardcode all of them in the cache manifest file]
2010/09/16
[ "https://Stackoverflow.com/questions/3727774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/434196/" ]
I reference "manifest.php" instead of "cache.manifest", then my php file looks like this: ``` <?php header('Content-Type: text/cache-manifest'); echo "CACHE MANIFEST\n"; $hashes = ""; $dir = new RecursiveDirectoryIterator("."); foreach(new RecursiveIteratorIterator($dir) as $file) { $info...
Reference your manifest file in an invisible iframe in your index page. That way your index page isn't cached as it is normally by default and you have total control over your fallbacks... No need for unreliable cookies or localStorage!
3,727,774
How to create an offline enabled web-application such that when user visits hxxp://mywebsite/ and is offline than hxxp://mywebsite/offline/ is displayed. [There are about 100 different dynamic pages in my website, so I cannot afford to hardcode all of them in the cache manifest file]
2010/09/16
[ "https://Stackoverflow.com/questions/3727774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/434196/" ]
``` CACHE MANIFEST CACHE: /Offline/OfflineIndex.html FALLBACK: / /Offline/OfflineIndex.html NETWORK: * ``` This will cause all your pages across the entire site to redirect to offline when offline. The only issue is with the page that declares the manifest as that page is always cached. This means you cannot declar...
Reference your manifest file in an invisible iframe in your index page. That way your index page isn't cached as it is normally by default and you have total control over your fallbacks... No need for unreliable cookies or localStorage!
253
I wonder if we have enough interest to start up a blog. I would love to see a blog on here, there's a lot of stuff we could cover. In order to start up a blog though we've gotta follow the guidelines [here](http://blogoverflow.com/getting-started/). 1. Raise the idea on the child meta. A community blog needs the invol...
2012/01/19
[ "https://movies.meta.stackexchange.com/questions/253", "https://movies.meta.stackexchange.com", "https://movies.meta.stackexchange.com/users/52/" ]
I also think it's still too early to start a blog, but once the community has grown a little more this could really help promote the site further. Especially well-written reviews about new movies might really help attract some search-engine traffic. Movie analyses and other bits about movie history could also link to ...
I wouldn't mind doing a blog about movies, reviews, services, etc, but I don't know how reliably I could update it but if it was ok for me to toss a few articles in here or there that would be a good match.
253
I wonder if we have enough interest to start up a blog. I would love to see a blog on here, there's a lot of stuff we could cover. In order to start up a blog though we've gotta follow the guidelines [here](http://blogoverflow.com/getting-started/). 1. Raise the idea on the child meta. A community blog needs the invol...
2012/01/19
[ "https://movies.meta.stackexchange.com/questions/253", "https://movies.meta.stackexchange.com", "https://movies.meta.stackexchange.com/users/52/" ]
I'm writing reviews on a facebook page at the moment that could easily be transferred here.
I wouldn't mind doing a blog about movies, reviews, services, etc, but I don't know how reliably I could update it but if it was ok for me to toss a few articles in here or there that would be a good match.
253
I wonder if we have enough interest to start up a blog. I would love to see a blog on here, there's a lot of stuff we could cover. In order to start up a blog though we've gotta follow the guidelines [here](http://blogoverflow.com/getting-started/). 1. Raise the idea on the child meta. A community blog needs the invol...
2012/01/19
[ "https://movies.meta.stackexchange.com/questions/253", "https://movies.meta.stackexchange.com", "https://movies.meta.stackexchange.com/users/52/" ]
**No, unfortunately we couldn't!** As to [this announcement](https://meta.stackexchange.com/q/244467/162011) the SE framework will not start any new community blogs in the near future, which puts a hold to all blog proposal efforts (for now?).
I wouldn't mind doing a blog about movies, reviews, services, etc, but I don't know how reliably I could update it but if it was ok for me to toss a few articles in here or there that would be a good match.
253
I wonder if we have enough interest to start up a blog. I would love to see a blog on here, there's a lot of stuff we could cover. In order to start up a blog though we've gotta follow the guidelines [here](http://blogoverflow.com/getting-started/). 1. Raise the idea on the child meta. A community blog needs the invol...
2012/01/19
[ "https://movies.meta.stackexchange.com/questions/253", "https://movies.meta.stackexchange.com", "https://movies.meta.stackexchange.com/users/52/" ]
I also think it's still too early to start a blog, but once the community has grown a little more this could really help promote the site further. Especially well-written reviews about new movies might really help attract some search-engine traffic. Movie analyses and other bits about movie history could also link to ...
I'm writing reviews on a facebook page at the moment that could easily be transferred here.
253
I wonder if we have enough interest to start up a blog. I would love to see a blog on here, there's a lot of stuff we could cover. In order to start up a blog though we've gotta follow the guidelines [here](http://blogoverflow.com/getting-started/). 1. Raise the idea on the child meta. A community blog needs the invol...
2012/01/19
[ "https://movies.meta.stackexchange.com/questions/253", "https://movies.meta.stackexchange.com", "https://movies.meta.stackexchange.com/users/52/" ]
I also think it's still too early to start a blog, but once the community has grown a little more this could really help promote the site further. Especially well-written reviews about new movies might really help attract some search-engine traffic. Movie analyses and other bits about movie history could also link to ...
**No, unfortunately we couldn't!** As to [this announcement](https://meta.stackexchange.com/q/244467/162011) the SE framework will not start any new community blogs in the near future, which puts a hold to all blog proposal efforts (for now?).
18,654,955
I have a property on a page that gets a query-string value, I need this to be on all related pages. The pages already inherit a base class, and I don't want the property here as not everything that inherits this base class needs this particular property. My idea was to create an interface with this property and have e...
2013/09/06
[ "https://Stackoverflow.com/questions/18654955", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1835758/" ]
I assume the implementation of the property will be the same on all pages that need them? If you use an interface, all pages need to implement this, which will lead to a lot of copy/paste code. Isn't it better to write some kind of provider class to which you can pass your page instance (if needed) and use this class t...
I would say it does not matter much, but i prefer another inheritance level because you only have to write the code once. With the Interface you are more flexible, maybe you want in some cases no Auto Property but a check for null or something like that. So if it is always the same Property then go with a inherited se...
18,654,955
I have a property on a page that gets a query-string value, I need this to be on all related pages. The pages already inherit a base class, and I don't want the property here as not everything that inherits this base class needs this particular property. My idea was to create an interface with this property and have e...
2013/09/06
[ "https://Stackoverflow.com/questions/18654955", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1835758/" ]
I assume the implementation of the property will be the same on all pages that need them? If you use an interface, all pages need to implement this, which will lead to a lot of copy/paste code. Isn't it better to write some kind of provider class to which you can pass your page instance (if needed) and use this class t...
Interfaces do not require you to duplicate the code! You can use delegation. This is similar to the accepted answer except in one way. An interface can be used to expose a contract to other classes that allow them to interact with your class in a consistent and powerful way. A key question then becomes, will external c...
48,199,388
I have the following text file. ``` [box_1] show ethernet show adjacency show log [box_2] run ethernet run adjacency show log ``` I need to write a robot file, where if it encounters [box\_1], it will run, ``` run ethernet run adjacency show log ``` And if it encounters [box\_2], it will run the following com...
2018/01/11
[ "https://Stackoverflow.com/questions/48199388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9190087/" ]
Although @Psytho is right, it is not entirely sufficient to solve the issues. In the below example I've added the required Libraries and a custom keyword to mimic the run command `Operatingsystem` keyword. In this example I skip the headers and execute the commands. In a similar way you can use the value in `${match...
You assign `${op}` only once in `${op}= Get From List ${list} 0` and never change it. That is why it is always `[box_1]` and never becomes `[box_2]`. You must moe the assignment into `FOR`-loop and change the rest of code so that the commands between different `box`-es are executed.
48,199,388
I have the following text file. ``` [box_1] show ethernet show adjacency show log [box_2] run ethernet run adjacency show log ``` I need to write a robot file, where if it encounters [box\_1], it will run, ``` run ethernet run adjacency show log ``` And if it encounters [box\_2], it will run the following com...
2018/01/11
[ "https://Stackoverflow.com/questions/48199388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9190087/" ]
You assign `${op}` only once in `${op}= Get From List ${list} 0` and never change it. That is why it is always `[box_1]` and never becomes `[box_2]`. You must moe the assignment into `FOR`-loop and change the rest of code so that the commands between different `box`-es are executed.
``` *** Variables *** ${A} A ${B} B ${C} c *** Keywords *** Test Log To Console ${A} Log To Console ${B} Log To Console ${C} [Return] ${A} ${B} ${C} *** Test Cases *** Test1 ${A0} ${B0} ${C0} Test Log To Console ${A0} Log To Console ${B0} Lo...
48,199,388
I have the following text file. ``` [box_1] show ethernet show adjacency show log [box_2] run ethernet run adjacency show log ``` I need to write a robot file, where if it encounters [box\_1], it will run, ``` run ethernet run adjacency show log ``` And if it encounters [box\_2], it will run the following com...
2018/01/11
[ "https://Stackoverflow.com/questions/48199388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9190087/" ]
Although @Psytho is right, it is not entirely sufficient to solve the issues. In the below example I've added the required Libraries and a custom keyword to mimic the run command `Operatingsystem` keyword. In this example I skip the headers and execute the commands. In a similar way you can use the value in `${match...
``` *** Variables *** ${A} A ${B} B ${C} c *** Keywords *** Test Log To Console ${A} Log To Console ${B} Log To Console ${C} [Return] ${A} ${B} ${C} *** Test Cases *** Test1 ${A0} ${B0} ${C0} Test Log To Console ${A0} Log To Console ${B0} Lo...
21,362,372
I'm developing a Windows Phone unofficial client for Imgur, the documentation talks about Comments endpoints/data models...but there isn't any method to retrieve comments about a specific image or album. Anyone known how to retrive them...if is possible? Thanks
2014/01/26
[ "https://Stackoverflow.com/questions/21362372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2401333/" ]
After a month I understand how to retrieve them: just putting "/comments" after album or image id. Stupid incomplete API documentation.
To clarify I want to add few things: Indeed You need to put `'/comments`', so in the end Your url should look like: `https://api.imgur.com/3/gallery/cUkfS9L/comments/best`. The id (`'cUkfS9L'` here) may be the id of IMAGE, not only gallery. But what's more important, and where I had a problem: It looks like this do...
14,870,668
My web hosting provider said that they are changing to php 5.4 from 5.2.17 ,and i try to run my site in local with the php 5.4, I got full of issuses like this > > Strict Standards: Non-static method JError::isError() should not be called statically, assuming $this from incompatible context in D:\xampp\htdocs\indo...
2013/02/14
[ "https://Stackoverflow.com/questions/14870668", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1948688/" ]
Strict standards mode is a PHP setting that tells it to throw warning messages when the code does certain things which are not technically correct. PHP can, however, cope with these issues -- as per the message in the question, PHP is able to make an assumption about the code in this case and carry on. These strict m...
This is your internal joomla error as your calling a global function statically.Use the debugger and run your page in debug mode.
14,870,668
My web hosting provider said that they are changing to php 5.4 from 5.2.17 ,and i try to run my site in local with the php 5.4, I got full of issuses like this > > Strict Standards: Non-static method JError::isError() should not be called statically, assuming $this from incompatible context in D:\xampp\htdocs\indo...
2013/02/14
[ "https://Stackoverflow.com/questions/14870668", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1948688/" ]
Strict standards mode is a PHP setting that tells it to throw warning messages when the code does certain things which are not technically correct. PHP can, however, cope with these issues -- as per the message in the question, PHP is able to make an assumption about the code in this case and carry on. These strict m...
Yes it is better to upgrade your joomla version now because there is no security updates for joomla 1.5. Also remember that all new extensions developed are in compatible with joomla 2.5 and you can't use it for 1.5.
14,870,668
My web hosting provider said that they are changing to php 5.4 from 5.2.17 ,and i try to run my site in local with the php 5.4, I got full of issuses like this > > Strict Standards: Non-static method JError::isError() should not be called statically, assuming $this from incompatible context in D:\xampp\htdocs\indo...
2013/02/14
[ "https://Stackoverflow.com/questions/14870668", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1948688/" ]
Strict standards mode is a PHP setting that tells it to throw warning messages when the code does certain things which are not technically correct. PHP can, however, cope with these issues -- as per the message in the question, PHP is able to make an assumption about the code in this case and carry on. These strict m...
PHP Strict Standards: `"Non-static method JTable::getInstance() should not be called statically, assuming $this from incompatible context"` [Source: http://mytecharticle.com/?p=1484](http://mytecharticle.com/?p=1484)
20,706
I'm reading about the derivation of shallow water equations, and I have a hard time understanding why $$ w(\eta) = \frac{D\eta}{Dt}$$ where $w$ is the vertical velocity, $\eta$ is the (top or bottom) vertical boundary of the layer and $D/Dt$ is the material derivative. In Atmospheric and Oceanic Fluid Dynamics (2nd ed...
2021/01/20
[ "https://earthscience.stackexchange.com/questions/20706", "https://earthscience.stackexchange.com", "https://earthscience.stackexchange.com/users/21677/" ]
This is a statement of the kinematic free surface boundary condition: there can be no normal flow through the boundary, only tangential flow along it. Equivalently, the normal velocity (relative to the interface) of the free surface position is the same as the velocity of the fluid. Defining the position of the free s...
As a refresher, let's refer back to the definition of the material derivative: $$\frac{D}{Dt}=\frac{\partial}{\partial t}+u\frac{\partial}{\partial x}+v\frac{\partial}{\partial y}+w\frac{\partial}{\partial z}$$ If we apply it to $\eta$, then we get: $$\frac{D \eta}{Dt}=\frac{\partial \eta}{\partial t}+u\frac{\partial\...
58,703,635
For example I have a column: ``` x <- c(-0.5, 1.1, 6.0, 4.5, 0.1, -0.2) ``` I want to add a new column where each value is assigned with a 3 percentage group For example : * if x -3<=x<0 => group -3 * if x 3<=x<6 => group 6 So I will have a new column: c(-3, 3, 9, 6, 3, -3)
2019/11/05
[ "https://Stackoverflow.com/questions/58703635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11214389/" ]
You can use `findInterval` or `cut` for this ``` x <- c(-0.5, 1.1, 6.0, 4.5, 0.1, -0.2) brks <- seq(-3, 9, 3) lbls <- c(-3,3,6,9) lbls[findInterval(x, brks)] #[1] -3 3 9 6 3 -3 ``` Or as mentioned by @StupidWolf using `cut` ``` cut(x, breaks=brks,right=FALSE, labels=lbls) ```
Base R solution: ``` # Define the value using the ranges: num_frame$perc_group <- ifelse(num_frame$num_vec < 0 & num_frame$num_vec >= -3, -3, ifelse(num_frame$num_vec == 0, 0, ifelse(num_frame$num_vec > 0 & num_frame$num_vec <= 3, 3, 6))) ``` D...
4,586,011
I was trying to compute the following integral: $$I=\int\_0^1\int\_0^1\cdots \int\_0^1 \frac{n \max\{x\_1,x\_2,\ldots,x\_n\}}{x\_1+x\_2+\ldots+x\_n}dx\_1dx\_2\ldots dx\_n.$$ My attempt was: Let $X\_1,X\_2, \ldots, X\_n$ be a collection of i.i.d. uniform random variables on $(0,1)$. Then, $$I= n\mathbb{E}\left[\frac{\ma...
2022/11/27
[ "https://math.stackexchange.com/questions/4586011", "https://math.stackexchange.com", "https://math.stackexchange.com/users/91784/" ]
Let $n\geq 2$. First, note that $x\_1,x\_2,\cdots,x\_n$ are equally distributed, and each has a $1/n$ chance of being the largest element, so your integral is equal to $n$ times the integral over the region of $[0,1]^n$ where $x\_n$ is the largest element of $x\_1,x\_2,\cdots, x\_n$. More explicitly, we have that \beg...
This is a partial answer on the basis of a partial analysis which might nevertheless be interesting. **Mathematica algorithm** Apart from the first few values of $n$ which I have calculated "by hand" I took the problem to calculate the integral we call here $i(n)$ as a nice exercise in Mathematica: Writing $$\frac{...
4,586,011
I was trying to compute the following integral: $$I=\int\_0^1\int\_0^1\cdots \int\_0^1 \frac{n \max\{x\_1,x\_2,\ldots,x\_n\}}{x\_1+x\_2+\ldots+x\_n}dx\_1dx\_2\ldots dx\_n.$$ My attempt was: Let $X\_1,X\_2, \ldots, X\_n$ be a collection of i.i.d. uniform random variables on $(0,1)$. Then, $$I= n\mathbb{E}\left[\frac{\ma...
2022/11/27
[ "https://math.stackexchange.com/questions/4586011", "https://math.stackexchange.com", "https://math.stackexchange.com/users/91784/" ]
Let $n\geq 2$. First, note that $x\_1,x\_2,\cdots,x\_n$ are equally distributed, and each has a $1/n$ chance of being the largest element, so your integral is equal to $n$ times the integral over the region of $[0,1]^n$ where $x\_n$ is the largest element of $x\_1,x\_2,\cdots, x\_n$. More explicitly, we have that \beg...
Two answers have already given explicit formulas for $I$. It may be of interest to see the behaviour of $I$ for large $n$, which is not immediate from the expression given by C-RAM. An asymptotic expansion for large $n$ may be derived via [Laplace's method](http://dlmf.nist.gov/2.3.iii) applied to the integral represen...
4,586,011
I was trying to compute the following integral: $$I=\int\_0^1\int\_0^1\cdots \int\_0^1 \frac{n \max\{x\_1,x\_2,\ldots,x\_n\}}{x\_1+x\_2+\ldots+x\_n}dx\_1dx\_2\ldots dx\_n.$$ My attempt was: Let $X\_1,X\_2, \ldots, X\_n$ be a collection of i.i.d. uniform random variables on $(0,1)$. Then, $$I= n\mathbb{E}\left[\frac{\ma...
2022/11/27
[ "https://math.stackexchange.com/questions/4586011", "https://math.stackexchange.com", "https://math.stackexchange.com/users/91784/" ]
Here's a start, which reduces the problem to a one-variable integral of a simple function, and may be of interest even though I don't know how to finish it yet. --- For $n=1$, the integral is clearly $1$. Now, let $c\_n=\mathbb E[1/(X\_1+\cdots+X\_n)]$ where $X\_1,\dots,X\_n\sim\operatorname{Unif}([0,1])$ independent...
This is a partial answer on the basis of a partial analysis which might nevertheless be interesting. **Mathematica algorithm** Apart from the first few values of $n$ which I have calculated "by hand" I took the problem to calculate the integral we call here $i(n)$ as a nice exercise in Mathematica: Writing $$\frac{...
4,586,011
I was trying to compute the following integral: $$I=\int\_0^1\int\_0^1\cdots \int\_0^1 \frac{n \max\{x\_1,x\_2,\ldots,x\_n\}}{x\_1+x\_2+\ldots+x\_n}dx\_1dx\_2\ldots dx\_n.$$ My attempt was: Let $X\_1,X\_2, \ldots, X\_n$ be a collection of i.i.d. uniform random variables on $(0,1)$. Then, $$I= n\mathbb{E}\left[\frac{\ma...
2022/11/27
[ "https://math.stackexchange.com/questions/4586011", "https://math.stackexchange.com", "https://math.stackexchange.com/users/91784/" ]
Here's a start, which reduces the problem to a one-variable integral of a simple function, and may be of interest even though I don't know how to finish it yet. --- For $n=1$, the integral is clearly $1$. Now, let $c\_n=\mathbb E[1/(X\_1+\cdots+X\_n)]$ where $X\_1,\dots,X\_n\sim\operatorname{Unif}([0,1])$ independent...
Two answers have already given explicit formulas for $I$. It may be of interest to see the behaviour of $I$ for large $n$, which is not immediate from the expression given by C-RAM. An asymptotic expansion for large $n$ may be derived via [Laplace's method](http://dlmf.nist.gov/2.3.iii) applied to the integral represen...
4,586,011
I was trying to compute the following integral: $$I=\int\_0^1\int\_0^1\cdots \int\_0^1 \frac{n \max\{x\_1,x\_2,\ldots,x\_n\}}{x\_1+x\_2+\ldots+x\_n}dx\_1dx\_2\ldots dx\_n.$$ My attempt was: Let $X\_1,X\_2, \ldots, X\_n$ be a collection of i.i.d. uniform random variables on $(0,1)$. Then, $$I= n\mathbb{E}\left[\frac{\ma...
2022/11/27
[ "https://math.stackexchange.com/questions/4586011", "https://math.stackexchange.com", "https://math.stackexchange.com/users/91784/" ]
Two answers have already given explicit formulas for $I$. It may be of interest to see the behaviour of $I$ for large $n$, which is not immediate from the expression given by C-RAM. An asymptotic expansion for large $n$ may be derived via [Laplace's method](http://dlmf.nist.gov/2.3.iii) applied to the integral represen...
This is a partial answer on the basis of a partial analysis which might nevertheless be interesting. **Mathematica algorithm** Apart from the first few values of $n$ which I have calculated "by hand" I took the problem to calculate the integral we call here $i(n)$ as a nice exercise in Mathematica: Writing $$\frac{...
18,211,102
I have a class that accepts character arrays. I realize that std::string is preferred for working with strings but this is an excercise to learn about pointers and allocating dynamic memory. The problem I am having is with the overloaded addition operator. I allocate new memory to the size of the two char arrays being...
2013/08/13
[ "https://Stackoverflow.com/questions/18211102", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2678389/" ]
If you want to put some data to every page it is easy to use interceptor: ``` public class PagePopulationInterceptor extends HandlerInterceptorAdapter { @Autowired private UserService userService; @Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handle...
you can extend HandlerInterceptorAdapter and add common modelAttributes thr
55,210,794
So, from the documentation is almost clear what the three entities from the title are, but it is not very clear what their purpose is. Constants are common in many languages. You don't want to write `3.14` all over your code and that's why you define a constant `PI` that, by the nature of the thing it represents, cann...
2019/03/17
[ "https://Stackoverflow.com/questions/55210794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/42636/" ]
> > Constants are common in many languages. You don't want to write 3.14 all over your code and that's why you define a constant PI that, by the nature of the thing it represents, cannot be changed and that's why its value is constant in time. > > > For that you use `constant`. A `constant` is only initialized on...
That's not one but at 5 questions? > > If I bind a variable to 3.14, isn't it the same as defining a PI constant? > > > Well, technically it would be except for the fact that `3.14` is a `Rat`, and `pi` (aka `π`) is a `Num`. > > Is $a := $b actually defining $a as an alias to $b or, as some other languages call...
55,210,794
So, from the documentation is almost clear what the three entities from the title are, but it is not very clear what their purpose is. Constants are common in many languages. You don't want to write `3.14` all over your code and that's why you define a constant `PI` that, by the nature of the thing it represents, cann...
2019/03/17
[ "https://Stackoverflow.com/questions/55210794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/42636/" ]
That's not one but at 5 questions? > > If I bind a variable to 3.14, isn't it the same as defining a PI constant? > > > Well, technically it would be except for the fact that `3.14` is a `Rat`, and `pi` (aka `π`) is a `Num`. > > Is $a := $b actually defining $a as an alias to $b or, as some other languages call...
Also `constant` is `our` scoped by default.
55,210,794
So, from the documentation is almost clear what the three entities from the title are, but it is not very clear what their purpose is. Constants are common in many languages. You don't want to write `3.14` all over your code and that's why you define a constant `PI` that, by the nature of the thing it represents, cann...
2019/03/17
[ "https://Stackoverflow.com/questions/55210794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/42636/" ]
> > Constants are common in many languages. You don't want to write 3.14 all over your code and that's why you define a constant PI that, by the nature of the thing it represents, cannot be changed and that's why its value is constant in time. > > > For that you use `constant`. A `constant` is only initialized on...
Also `constant` is `our` scoped by default.
24,687,238
I am using a Picker View to allow the user to choose the colour theme for the entire app. I am planning on changing the colour of the navigation bar, background and possibly the tab bar (if that is possible). I've been researching how to do this but can't find any Swift examples. Could anyone please give me an exampl...
2014/07/10
[ "https://Stackoverflow.com/questions/24687238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3746428/" ]
``` UINavigationBar.appearance().barTintColor = UIColor(red: 46.0/255.0, green: 14.0/255.0, blue: 74.0/255.0, alpha: 1.0) UINavigationBar.appearance().tintColor = UIColor.whiteColor() UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName : UIColor.whiteColor()] ``` Just paste this line in...
I'm writing this for those that still have problems with the solutions here. I'm using Xcode Version 11.4 (11E146). The one working for me is: ``` navigationController?.navigationBar.barTintColor = UIColor.white navigationController?.navigationBar.tintColor = UIColor.black ``` BUT!, if you set the barTintColor in ...
24,687,238
I am using a Picker View to allow the user to choose the colour theme for the entire app. I am planning on changing the colour of the navigation bar, background and possibly the tab bar (if that is possible). I've been researching how to do this but can't find any Swift examples. Could anyone please give me an exampl...
2014/07/10
[ "https://Stackoverflow.com/questions/24687238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3746428/" ]
The `appearance()` function not always work for me. So I prefer to create a NC object and change its attributes. ```swift var navBarColor = navigationController!.navigationBar navBarColor.barTintColor = UIColor(red: 255/255.0, green: 0/255.0, blue: 0/255.0, alpha: 100.0/100.0) navBarColor.titleTextAttributes = ...
simply call the this extension and pass the color it will automatically change the color of nav bar ``` extension UINavigationController { func setNavigationBarColor(color : UIColor){ self.navigationBar.barTintColor = color } } ``` in the view didload or in viewwill appear call ``` sel...
24,687,238
I am using a Picker View to allow the user to choose the colour theme for the entire app. I am planning on changing the colour of the navigation bar, background and possibly the tab bar (if that is possible). I've been researching how to do this but can't find any Swift examples. Could anyone please give me an exampl...
2014/07/10
[ "https://Stackoverflow.com/questions/24687238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3746428/" ]
Within **AppDelegate**, this has globally changed the format of the NavBar and removes the bottom line/border (which is a problem area for most people) to give you what I think you and others are looking for: ``` func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyO...
First set the isTranslucent property of navigationBar to false to get the desired colour. Then change the navigationBar colour like this: ``` @IBOutlet var NavigationBar: UINavigationBar! NavigationBar.isTranslucent = false NavigationBar.barTintColor = UIColor (red: 117/255, green: 23/255, blue: 49/255, alpha: 1.0) ...
24,687,238
I am using a Picker View to allow the user to choose the colour theme for the entire app. I am planning on changing the colour of the navigation bar, background and possibly the tab bar (if that is possible). I've been researching how to do this but can't find any Swift examples. Could anyone please give me an exampl...
2014/07/10
[ "https://Stackoverflow.com/questions/24687238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3746428/" ]
Use the appearance API, and barTintColor color. ``` UINavigationBar.appearance().barTintColor = UIColor.greenColor() ```
**Swift 3 and Swift 4 Compatible Xcode 9** **A Better Solution for this to make a Class for common Navigation bars** I have 5 Controllers and each controller title is changed to orange color. As each controller has 5 navigation controllers so i had to change every one color either from inspector or from code. **So i...
24,687,238
I am using a Picker View to allow the user to choose the colour theme for the entire app. I am planning on changing the colour of the navigation bar, background and possibly the tab bar (if that is possible). I've been researching how to do this but can't find any Swift examples. Could anyone please give me an exampl...
2014/07/10
[ "https://Stackoverflow.com/questions/24687238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3746428/" ]
If you have customized navigation controller, you can use above code snippet. So in my case, I've used as following code pieces. **Swift 3.0, XCode 8.1 version** ``` navigationController.navigationBar.barTintColor = UIColor.green ``` **Navigation Bar Text:** ``` navigationController.navigationBar.titleTextAttribut...
Make sure to set the **Button State for .normal** ``` extension UINavigationBar { func makeContent(color: UIColor) { let attributes: [NSAttributedString.Key: Any]? = [.foregroundColor: color] self.titleTextAttributes = attributes self.topItem?.leftBarButtonItem?.setTitleTextAttributes(att...
24,687,238
I am using a Picker View to allow the user to choose the colour theme for the entire app. I am planning on changing the colour of the navigation bar, background and possibly the tab bar (if that is possible). I've been researching how to do this but can't find any Swift examples. Could anyone please give me an exampl...
2014/07/10
[ "https://Stackoverflow.com/questions/24687238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3746428/" ]
> > Try This in AppDelegate: > > > ``` //MARK:- ~~~~~~~~~~setupApplicationUIAppearance Method func setupApplicationUIAppearance() { UIApplication.shared.statusBarView?.backgroundColor = UIColor.clear var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent } UINavigationBar.a...
My two cents: a) setting navigationBar.barTintColor / titleTextAttributes do work in any view (pushed, added..and so on in init.. b) setting appearence does not work everywhere: * You can call it on AppDelegate * " " 1st level view * if You call it again in subsequent pushed views, does MNOT work SwiftUI note: a) ...
24,687,238
I am using a Picker View to allow the user to choose the colour theme for the entire app. I am planning on changing the colour of the navigation bar, background and possibly the tab bar (if that is possible). I've been researching how to do this but can't find any Swift examples. Could anyone please give me an exampl...
2014/07/10
[ "https://Stackoverflow.com/questions/24687238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3746428/" ]
In iOS 15, UIKit has extended the usage of the scrollEdgeAppearance, which by default produces a transparent background, to all navigation bars. Set scrollEdgeAppearance as below code. ``` if #available(iOS 15, *) { let appearance = UINavigationBarAppearance() appearance.configureWithOpaqueBackground()...
Make sure to set the **Button State for .normal** ``` extension UINavigationBar { func makeContent(color: UIColor) { let attributes: [NSAttributedString.Key: Any]? = [.foregroundColor: color] self.titleTextAttributes = attributes self.topItem?.leftBarButtonItem?.setTitleTextAttributes(att...
24,687,238
I am using a Picker View to allow the user to choose the colour theme for the entire app. I am planning on changing the colour of the navigation bar, background and possibly the tab bar (if that is possible). I've been researching how to do this but can't find any Swift examples. Could anyone please give me an exampl...
2014/07/10
[ "https://Stackoverflow.com/questions/24687238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3746428/" ]
Navigation Bar: ``` navigationController?.navigationBar.barTintColor = UIColor.green ``` Replace greenColor with whatever UIColor you want, you can use an RGB too if you prefer. Navigation Bar Text: ``` navigationController?.navigationBar.titleTextAttributes = [.foregroundColor: UIColor.orange] ``` Replace oran...
**Swift 4:** **Perfectly working code to change the navigation bar appearance at application level.** [![enter image description here](https://i.stack.imgur.com/rSnvn.png)](https://i.stack.imgur.com/rSnvn.png) ``` // MARK: Navigation Bar Customisation // To change background colour. UINavigationBar.appearance().bar...
24,687,238
I am using a Picker View to allow the user to choose the colour theme for the entire app. I am planning on changing the colour of the navigation bar, background and possibly the tab bar (if that is possible). I've been researching how to do this but can't find any Swift examples. Could anyone please give me an exampl...
2014/07/10
[ "https://Stackoverflow.com/questions/24687238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3746428/" ]
**Updated for Swift 3, 4, 4.2, 5+** ``` // setup navBar..... UINavigationBar.appearance().barTintColor = .black UINavigationBar.appearance().tintColor = .white UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName: UIColor.white] UINavigationBar.appearance().isTranslucent = false ``` **S...
Swift 3 ------- ``` UINavigationBar.appearance().barTintColor = UIColor(colorLiteralRed: 51/255, green: 90/255, blue: 149/255, alpha: 1) ``` This will set your navigation bar color like Facebook bar color :)