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
1,418,613
I would like to know how to declare a variable in jQuery The code I am currently using is ``` $.name = 'anirudha'; alert($.name); ``` That code works fine, but if I write it as ``` $.name = document.myForm.txtname.value; alert($.name); ``` Then my code does not work.
2009/09/13
[ "https://Stackoverflow.com/questions/1418613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
jQuery is just a javascript library that makes some extra stuff available when writing javascript - so there is no reason to use jQuery for declaring variables. Use "regular" javascript: ``` var name = document.myForm.txtname.value; alert(name); ``` EDIT: As Canavar points out in his example, it is also possible to ...
Here's are some examples: ``` var name = 'india'; alert(name); var name = $("#txtname").val(); alert(name); ``` Taken from <http://way2finder.blogspot.in/2013/09/how-to-create-variable-in-jquery.html>
1,418,613
I would like to know how to declare a variable in jQuery The code I am currently using is ``` $.name = 'anirudha'; alert($.name); ``` That code works fine, but if I write it as ``` $.name = document.myForm.txtname.value; alert($.name); ``` Then my code does not work.
2009/09/13
[ "https://Stackoverflow.com/questions/1418613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Remember jQuery is a JavaScript **library**, *i.e.* like an extension. That means you can use both jQuery and JavaScript in the same function (restrictions apply). You **declare/create** variables in the same way as in Javascript: `var example;` However, you can use jQuery for **assigning values to variables**: ``` ...
``` var name = 'john'; document.write(name); ``` it will write the **variable** you have declared upper
1,418,613
I would like to know how to declare a variable in jQuery The code I am currently using is ``` $.name = 'anirudha'; alert($.name); ``` That code works fine, but if I write it as ``` $.name = document.myForm.txtname.value; alert($.name); ``` Then my code does not work.
2009/09/13
[ "https://Stackoverflow.com/questions/1418613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Here's are some examples: ``` var name = 'india'; alert(name); var name = $("#txtname").val(); alert(name); ``` Taken from <http://way2finder.blogspot.in/2013/09/how-to-create-variable-in-jquery.html>
``` var name = 'john'; document.write(name); ``` it will write the **variable** you have declared upper
1,418,613
I would like to know how to declare a variable in jQuery The code I am currently using is ``` $.name = 'anirudha'; alert($.name); ``` That code works fine, but if I write it as ``` $.name = document.myForm.txtname.value; alert($.name); ``` Then my code does not work.
2009/09/13
[ "https://Stackoverflow.com/questions/1418613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
jQuery is just a javascript library that makes some extra stuff available when writing javascript - so there is no reason to use jQuery for declaring variables. Use "regular" javascript: ``` var name = document.myForm.txtname.value; alert(name); ``` EDIT: As Canavar points out in his example, it is also possible to ...
Remember jQuery is a JavaScript **library**, *i.e.* like an extension. That means you can use both jQuery and JavaScript in the same function (restrictions apply). You **declare/create** variables in the same way as in Javascript: `var example;` However, you can use jQuery for **assigning values to variables**: ``` ...
1,418,613
I would like to know how to declare a variable in jQuery The code I am currently using is ``` $.name = 'anirudha'; alert($.name); ``` That code works fine, but if I write it as ``` $.name = document.myForm.txtname.value; alert($.name); ``` Then my code does not work.
2009/09/13
[ "https://Stackoverflow.com/questions/1418613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Try this : ``` var name = $("#txtname").val(); alert(name); ```
in jquery we have to use selector($) to declare variables ``` var test=$("<%=ddl.ClientId%>"); ``` here we can get the id of drop down to [j query variable](http://csharpektroncmssql.blogspot.com/2012/01/jquery-and-how-to-declare-variables.html)
1,418,613
I would like to know how to declare a variable in jQuery The code I am currently using is ``` $.name = 'anirudha'; alert($.name); ``` That code works fine, but if I write it as ``` $.name = document.myForm.txtname.value; alert($.name); ``` Then my code does not work.
2009/09/13
[ "https://Stackoverflow.com/questions/1418613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
jQuery is just a javascript library that makes some extra stuff available when writing javascript - so there is no reason to use jQuery for declaring variables. Use "regular" javascript: ``` var name = document.myForm.txtname.value; alert(name); ``` EDIT: As Canavar points out in his example, it is also possible to ...
in jquery we have to use selector($) to declare variables ``` var test=$("<%=ddl.ClientId%>"); ``` here we can get the id of drop down to [j query variable](http://csharpektroncmssql.blogspot.com/2012/01/jquery-and-how-to-declare-variables.html)
6,025,336
Is there a Java library for making [Bitly](http://bit.ly) requests? I'm looking to both shorten links, and look up info on clicks, etc. of links. Yes, I know it's a straight-forward [HTML API](http://bit.ly/apidocs) and I could just code directly to the HTML or write a library myself, but surely someone else has writte...
2011/05/17
[ "https://Stackoverflow.com/questions/6025336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/85348/" ]
This looks promising: <http://code.google.com/p/bitlyj/>
for the look up part i did it using php [Bitly-PHP](https://github.com/TareqBajjlay/Bitly-PHP) to get stats (FB, TW Clicks)
328,473
My company manages a lot of web sites, and we are currently working without a VCS. I want to propose a VCS for a few reasons, but I think our requirements may be too unique. We work off of a shared drive that is mapped to windows explorer that has a mirror for each site. When edits are made they get pushed to staging, ...
2016/08/16
[ "https://softwareengineering.stackexchange.com/questions/328473", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/242275/" ]
I would quit using a shared drive for shared editing. Go with a proper version control system and personal work spaces. Shared work spaces lead to all sort of issues including lost changes. There is no reason to have all the sites checked out all the time. Checkout the sites you need and remove the related work space...
The Short Answer is: ***DON'T DO THAT!*** This won't just end in tears. it will probably end up on the 10 o'clock News as a workplace mass shooting! With modern DVCS (Mercurial or Git) there is no sane reason to use a shared drive / directory *for anything!* Each dev has their own machine / directory. They pull from a...
328,473
My company manages a lot of web sites, and we are currently working without a VCS. I want to propose a VCS for a few reasons, but I think our requirements may be too unique. We work off of a shared drive that is mapped to windows explorer that has a mirror for each site. When edits are made they get pushed to staging, ...
2016/08/16
[ "https://softwareengineering.stackexchange.com/questions/328473", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/242275/" ]
I would quit using a shared drive for shared editing. Go with a proper version control system and personal work spaces. Shared work spaces lead to all sort of issues including lost changes. There is no reason to have all the sites checked out all the time. Checkout the sites you need and remove the related work space...
> > The problem is, we have so many sites, and we are constantly working on different sites, that keeping a local version of every site to push to the shared drive would be too much. > > > This is not an unusual situation in the least. I regularly use git clones of 20 microservices I have push access to and anothe...
37,541,201
I'm trying to match only the `/blog?page=1` (only with `page=1`) and I have written the regex for it that is `/blog\?page=1` but it is also matching with `/blog?page=11`. Is this possible only to match it with `/blog\?page=1` ?
2016/05/31
[ "https://Stackoverflow.com/questions/37541201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/974181/" ]
In the below lines of code: ``` var returnURL=""; using (HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse()) { httpStatusCode = httpWebResponse.StatusCode; if (httpStatusCode == HttpStatusCode.Found) { returnURL= httpWebResponse.Headers["Location"].ToString(); } ...
Use ``` System.Threading.Thread.Sleep(2000); ``` before ``` Response.Redirect(returnURL); ```
45,684
Imagine you have a number of strips in the VSE and you want the white balance, the exposure, or the color balance to match between each strip. Would there be a setup that would enable you to display for example strip 1 (with strip modifiers if any) in a window and strip 2 in another window? If such setup was possible, ...
2016/01/26
[ "https://blender.stackexchange.com/questions/45684", "https://blender.stackexchange.com", "https://blender.stackexchange.com/users/21247/" ]
There are 2 ways to do this: 1. You could stack the strips above each other and make a new preview window for each strip. At the bottom of the preview window is a channel number, simply set this for the strip you want to see. [![Example Screenshot 1](https://i.stack.imgur.com/ZZrdz.jpg)](https://i.stack.imgur.com/ZZr...
Just use two **Transform** *Effect Strip*s for temporary side-by-side display and do your Color Balancing on top of these. Afterwards you can select your untransformed Strips and **Copy** your Modifiers **to Selected Strips**. Your *Effect Strip*s **Blend Type** has be set to **OverDrop** *(or AlphaOver)* and you need...
9,388,488
<http://www.boost.org/boost-build2/doc/html/bbv2/installation.html> Tried following those instructions, but they do not work. What I did: Open cmd.exe; cd C:\BoostBuild\boost-build .\bootstrap.bat What I get: C:\BoostBuild\boost-build>.\bootstrap.bat '.\bootstrap.bat' is not recognized as an internal or external ...
2012/02/22
[ "https://Stackoverflow.com/questions/9388488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903447/" ]
If you download and unzip a copy of boost in `C:\`, you should end up with a folder like `C:\boost_1_48_0` In this folder, execute bootstrap.bat; so ``` cd C:\boost_1_48_0 bootstrap ```
You do not need the .\ portion, that's a unix reference that refers to a file in the same folder. ``` launch CMD.exe CD C:\BoostBuild\boost-build <press-enter> bootstrap <press-enter> ``` is the right way to do this from DOS/CMD. Edit referring to the comment: What you're doing is chaining the commands accidental...
9,388,488
<http://www.boost.org/boost-build2/doc/html/bbv2/installation.html> Tried following those instructions, but they do not work. What I did: Open cmd.exe; cd C:\BoostBuild\boost-build .\bootstrap.bat What I get: C:\BoostBuild\boost-build>.\bootstrap.bat '.\bootstrap.bat' is not recognized as an internal or external ...
2012/02/22
[ "https://Stackoverflow.com/questions/9388488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903447/" ]
You do not need the .\ portion, that's a unix reference that refers to a file in the same folder. ``` launch CMD.exe CD C:\BoostBuild\boost-build <press-enter> bootstrap <press-enter> ``` is the right way to do this from DOS/CMD. Edit referring to the comment: What you're doing is chaining the commands accidental...
For me the problem was that after I unzipped the boost, the window defender removed the bootstrap.bat from the "c:\boost\" directory. And for that reason I was looking all over the internet to find out why that file doesn't exist or how this file might be created. I excluded the path from windows defender's searching p...
9,388,488
<http://www.boost.org/boost-build2/doc/html/bbv2/installation.html> Tried following those instructions, but they do not work. What I did: Open cmd.exe; cd C:\BoostBuild\boost-build .\bootstrap.bat What I get: C:\BoostBuild\boost-build>.\bootstrap.bat '.\bootstrap.bat' is not recognized as an internal or external ...
2012/02/22
[ "https://Stackoverflow.com/questions/9388488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903447/" ]
If you download and unzip a copy of boost in `C:\`, you should end up with a folder like `C:\boost_1_48_0` In this folder, execute bootstrap.bat; so ``` cd C:\boost_1_48_0 bootstrap ```
cl.exe -- compiler embedded within visual C++ or visual studio. used Visual C++ express free edition and its command prompt bootstrap or other command of b2 works fine. This sets the boost.build installed.
9,388,488
<http://www.boost.org/boost-build2/doc/html/bbv2/installation.html> Tried following those instructions, but they do not work. What I did: Open cmd.exe; cd C:\BoostBuild\boost-build .\bootstrap.bat What I get: C:\BoostBuild\boost-build>.\bootstrap.bat '.\bootstrap.bat' is not recognized as an internal or external ...
2012/02/22
[ "https://Stackoverflow.com/questions/9388488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903447/" ]
If you download and unzip a copy of boost in `C:\`, you should end up with a folder like `C:\boost_1_48_0` In this folder, execute bootstrap.bat; so ``` cd C:\boost_1_48_0 bootstrap ```
For me the problem was that after I unzipped the boost, the window defender removed the bootstrap.bat from the "c:\boost\" directory. And for that reason I was looking all over the internet to find out why that file doesn't exist or how this file might be created. I excluded the path from windows defender's searching p...
9,388,488
<http://www.boost.org/boost-build2/doc/html/bbv2/installation.html> Tried following those instructions, but they do not work. What I did: Open cmd.exe; cd C:\BoostBuild\boost-build .\bootstrap.bat What I get: C:\BoostBuild\boost-build>.\bootstrap.bat '.\bootstrap.bat' is not recognized as an internal or external ...
2012/02/22
[ "https://Stackoverflow.com/questions/9388488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903447/" ]
cl.exe -- compiler embedded within visual C++ or visual studio. used Visual C++ express free edition and its command prompt bootstrap or other command of b2 works fine. This sets the boost.build installed.
For me the problem was that after I unzipped the boost, the window defender removed the bootstrap.bat from the "c:\boost\" directory. And for that reason I was looking all over the internet to find out why that file doesn't exist or how this file might be created. I excluded the path from windows defender's searching p...
12,407,622
I would like to use Doctrine 2 in ZF2 project. I have done some researches. I found this: <http://www.jasongrimes.org/2012/01/using-doctrine-2-in-zend-framework-2/> Unfortunately, I don't have CURL nor composer installed. And when I tried to install CURL first. I had errors i don't manage to solve. Is there an easy s...
2012/09/13
[ "https://Stackoverflow.com/questions/12407622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
I spent a lot of days trying to find a good solution to integrate Doctrine 2 into ZF2. Finally, I managed to do it with this skeleton application: <https://github.com/iwalz/zf2-doctrine2-getting-started> It has a very good readme, if you follow the steps, success is guaranteed!
You have the official Doctrine ZF2 Module written by Doctrine team <https://github.com/doctrine/DoctrineModule> Composer or CURL are a easy way of download that sources and register the namespace. You can do the same downloading the sources and registering the module
4,157,191
I'm dynamically calling web services in my program using the WSProxy class [here](http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54), and I need to parse the returned object to XML, or at least access the members inside the returned web service result. For example, if...
2010/11/11
[ "https://Stackoverflow.com/questions/4157191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/504793/" ]
If you mean you want the pull to overwrite local changes, doing the merge as if the working tree were clean, well, clean the working tree: ``` git reset --hard git pull ``` If there are untracked local files you could use `git clean` to remove them. * `git clean -f` to remove untracked files * `-df` to remove untra...
Also, it's possible to keep changes from local commits and push them as a new commit. I use these steps when I have a mess in my local commits. 1. git reset --soft origin/main 2. git stash 3. git pull --rebase 4. git stash pop
4,157,191
I'm dynamically calling web services in my program using the WSProxy class [here](http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54), and I need to parse the returned object to XML, or at least access the members inside the returned web service result. For example, if...
2010/11/11
[ "https://Stackoverflow.com/questions/4157191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/504793/" ]
If you mean you want the pull to overwrite local changes, doing the merge as if the working tree were clean, well, clean the working tree: ``` git reset --hard git pull ``` If there are untracked local files you could use `git clean` to remove them. * `git clean -f` to remove untracked files * `-df` to remove untra...
.gitignore "Adding unwanted files to .gitignore works as long as you have not initially committed them to any branch. " Also you can run: ``` git update-index --assume-unchanged filename ``` <https://chamindac.blogspot.com/2017/07/ignoring-visual-studio-2017-created.html>
4,157,191
I'm dynamically calling web services in my program using the WSProxy class [here](http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54), and I need to parse the returned object to XML, or at least access the members inside the returned web service result. For example, if...
2010/11/11
[ "https://Stackoverflow.com/questions/4157191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/504793/" ]
I usually do: ``` git checkout . git pull ``` In the project's root folder.
If you are on Linux: ``` git fetch for file in `git diff origin/master..HEAD --name-only`; do rm -f "$file"; done git pull ``` The for loop will delete all tracked files which are changed in the local repo, so `git pull` will work without any problems. The nicest thing about this is that only the tracked files wi...
4,157,191
I'm dynamically calling web services in my program using the WSProxy class [here](http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54), and I need to parse the returned object to XML, or at least access the members inside the returned web service result. For example, if...
2010/11/11
[ "https://Stackoverflow.com/questions/4157191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/504793/" ]
For me the following worked: (1) First fetch all changes: ``` $ git fetch --all ``` (2) Then reset the master: ``` $ git reset --hard origin/master ``` Note - For users of github, "master" was replaced with "main" in October 2020. For projects created since then you may need to use "main" instead, like: ``` $ g...
You just want a command which gives exactly the same result as `rm -rf local_repo && git clone remote_url`, right? I also want this feature. I wonder why git does not provide such a command (such as `git reclone` or `git sync`), neither does svn provide such a command (such as `svn recheckout` or `svn sync`). Try the ...
4,157,191
I'm dynamically calling web services in my program using the WSProxy class [here](http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54), and I need to parse the returned object to XML, or at least access the members inside the returned web service result. For example, if...
2010/11/11
[ "https://Stackoverflow.com/questions/4157191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/504793/" ]
You just want a command which gives exactly the same result as `rm -rf local_repo && git clone remote_url`, right? I also want this feature. I wonder why git does not provide such a command (such as `git reclone` or `git sync`), neither does svn provide such a command (such as `svn recheckout` or `svn sync`). Try the ...
.gitignore "Adding unwanted files to .gitignore works as long as you have not initially committed them to any branch. " Also you can run: ``` git update-index --assume-unchanged filename ``` <https://chamindac.blogspot.com/2017/07/ignoring-visual-studio-2017-created.html>
4,157,191
I'm dynamically calling web services in my program using the WSProxy class [here](http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54), and I need to parse the returned object to XML, or at least access the members inside the returned web service result. For example, if...
2010/11/11
[ "https://Stackoverflow.com/questions/4157191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/504793/" ]
You just want a command which gives exactly the same result as `rm -rf local_repo && git clone remote_url`, right? I also want this feature. I wonder why git does not provide such a command (such as `git reclone` or `git sync`), neither does svn provide such a command (such as `svn recheckout` or `svn sync`). Try the ...
If you are on a branch, and want to discard any local changes on the branch and pull the remote branch, but encounter `Your branch and 'origin/<branch_name>' have diverged`, it can be resolved while staying on the branch by: ``` git fetch --all git reset --hard origin/<branch_name> ```
4,157,191
I'm dynamically calling web services in my program using the WSProxy class [here](http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54), and I need to parse the returned object to XML, or at least access the members inside the returned web service result. For example, if...
2010/11/11
[ "https://Stackoverflow.com/questions/4157191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/504793/" ]
This will fetch the current branch and attempt to do a fast forward to master: ``` git fetch && git merge --ff-only origin/master ```
Also, it's possible to keep changes from local commits and push them as a new commit. I use these steps when I have a mess in my local commits. 1. git reset --soft origin/main 2. git stash 3. git pull --rebase 4. git stash pop
4,157,191
I'm dynamically calling web services in my program using the WSProxy class [here](http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54), and I need to parse the returned object to XML, or at least access the members inside the returned web service result. For example, if...
2010/11/11
[ "https://Stackoverflow.com/questions/4157191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/504793/" ]
``` git fetch --all && git reset --hard origin/master ```
Also, it's possible to keep changes from local commits and push them as a new commit. I use these steps when I have a mess in my local commits. 1. git reset --soft origin/main 2. git stash 3. git pull --rebase 4. git stash pop
4,157,191
I'm dynamically calling web services in my program using the WSProxy class [here](http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54), and I need to parse the returned object to XML, or at least access the members inside the returned web service result. For example, if...
2010/11/11
[ "https://Stackoverflow.com/questions/4157191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/504793/" ]
You just want a command which gives exactly the same result as `rm -rf local_repo && git clone remote_url`, right? I also want this feature. I wonder why git does not provide such a command (such as `git reclone` or `git sync`), neither does svn provide such a command (such as `svn recheckout` or `svn sync`). Try the ...
If you are on Linux: ``` git fetch for file in `git diff origin/master..HEAD --name-only`; do rm -f "$file"; done git pull ``` The for loop will delete all tracked files which are changed in the local repo, so `git pull` will work without any problems. The nicest thing about this is that only the tracked files wi...
4,157,191
I'm dynamically calling web services in my program using the WSProxy class [here](http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54), and I need to parse the returned object to XML, or at least access the members inside the returned web service result. For example, if...
2010/11/11
[ "https://Stackoverflow.com/questions/4157191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/504793/" ]
For me the following worked: (1) First fetch all changes: ``` $ git fetch --all ``` (2) Then reset the master: ``` $ git reset --hard origin/master ``` Note - For users of github, "master" was replaced with "main" in October 2020. For projects created since then you may need to use "main" instead, like: ``` $ g...
``` git fetch --all && git reset --hard origin/master ```
29,081,968
To create one thread, I did like this: ``` void *routine(void *i){....} pthread_t thread1; pthread_create(&thread1, NULL, routine, NULL); ``` Now I want to create 100 threads and all of them execute `routine`, do I have to do like below? Is it possible to use a for loop? ``` pthread_t thread1; pthread_t thread2; ....
2015/03/16
[ "https://Stackoverflow.com/questions/29081968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4016367/" ]
You can create an array of threads ``` #define NTHREADS 100 pthread_t th[NTHREADS]; int i; for (i=0;i<NTHREADS;++i) pthread_create(&th[i],...); ```
Just take `pthread_t thread_arr[100];`(array of threads). Work it out as you work with single thread\_t variable. Use pthread\_arr[1], pthread\_arr[2]... as individual variables.
6,036,504
I have a pre-existing sqlite database that is about 5mb in size. I use this code to copy from my assets folder to the packages/databases folder on the device. The database copies to the device but the data inside the database has been deleted or is missing. The only table inside is called android\_metadata. Here is ...
2011/05/17
[ "https://Stackoverflow.com/questions/6036504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/758109/" ]
It sounds like you are hitting the Firefox default font policy. Firefox does not allow cross-domain fonts by default (even with sub-domains). See the following questions for some excellent help in this area: [@font-face fonts only work on their own domain](https://stackoverflow.com/questions/2892691/font-face-fonts-o...
One way around the same-origin font policy is to use relative links `(../fonts/font-name.ttf)` or absolute links `(/fonts/font-name.ttf)` to your font files instead of putting the FQDN (Fully Qualified Domain Name) in the `@font-face` src path (`http://www.example.com/fonts/font-name.ttf`). However, even if you're usi...
18,327
I tried hand soap, but it didn’t work. I also tried hand sanitizer; same thing didn’t work. Hair spray didn’t really work either. My hands are now all pinkish red and it’s sorta staining the walls and carpets when I touch them.
2018/03/26
[ "https://lifehacks.stackexchange.com/questions/18327", "https://lifehacks.stackexchange.com", "https://lifehacks.stackexchange.com/users/24116/" ]
Try following steps: 1. Get your hands greasy in a fatty substance like hand cream. Oil or fat suitable for eating will do, as will baby oil. 2. Wipe it off with paper or an old rag you will throw away. Instead of just wiping you can also scrape it off with something straight but not sharp. 3. Re-apply and wipe till n...
try Washing your hands with kerosene
18,327
I tried hand soap, but it didn’t work. I also tried hand sanitizer; same thing didn’t work. Hair spray didn’t really work either. My hands are now all pinkish red and it’s sorta staining the walls and carpets when I touch them.
2018/03/26
[ "https://lifehacks.stackexchange.com/questions/18327", "https://lifehacks.stackexchange.com", "https://lifehacks.stackexchange.com/users/24116/" ]
Try following steps: 1. Get your hands greasy in a fatty substance like hand cream. Oil or fat suitable for eating will do, as will baby oil. 2. Wipe it off with paper or an old rag you will throw away. Instead of just wiping you can also scrape it off with something straight but not sharp. 3. Re-apply and wipe till n...
Rub it with a bit of WD-40 then wash with soap and water
18,327
I tried hand soap, but it didn’t work. I also tried hand sanitizer; same thing didn’t work. Hair spray didn’t really work either. My hands are now all pinkish red and it’s sorta staining the walls and carpets when I touch them.
2018/03/26
[ "https://lifehacks.stackexchange.com/questions/18327", "https://lifehacks.stackexchange.com", "https://lifehacks.stackexchange.com/users/24116/" ]
Rub it with a bit of WD-40 then wash with soap and water
try Washing your hands with kerosene
20,213,286
I stumbled on something weird with IE10 and IE9, not affecting IE8: a "position: fixed" child element is hidden when the border-radius, overflow and position of its parent are set (cf. the jsfiddle example). If one of these properties is disabled, the fixed element appears. I put a live example at <http://jsfiddle.net...
2013/11/26
[ "https://Stackoverflow.com/questions/20213286", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1268414/" ]
In the absence of an useful answer from anyone else, the only way I've managed to work around this is to add an additional nested element, and split the three affected styles across two layers. ``` <div> //style with position:fixed <div> //style with overflow:hidden and border-radius .... </div> </div>...
Seems to be a common issue: > > Fortunately, there is a quick and dirty solution: simply place an > empty un-positioned static `<div></div>` immediately before and/or after > the absolutely-positioned element. In the fixed example, an empty > `<div></div>`after the header prevents the problem occurring. > > > Se...
20,213,286
I stumbled on something weird with IE10 and IE9, not affecting IE8: a "position: fixed" child element is hidden when the border-radius, overflow and position of its parent are set (cf. the jsfiddle example). If one of these properties is disabled, the fixed element appears. I put a live example at <http://jsfiddle.net...
2013/11/26
[ "https://Stackoverflow.com/questions/20213286", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1268414/" ]
Seems to be a common issue: > > Fortunately, there is a quick and dirty solution: simply place an > empty un-positioned static `<div></div>` immediately before and/or after > the absolutely-positioned element. In the fixed example, an empty > `<div></div>`after the header prevents the problem occurring. > > > Se...
So this is just an idea and I cant test it because I'm on a Mac and dont have a Windows machine at hand right now. But have you tried to use a `clearfix` on the fixed element? This will cause the browser to handle the element differently and display something additional after it. With some luck it might show up? It p...
20,213,286
I stumbled on something weird with IE10 and IE9, not affecting IE8: a "position: fixed" child element is hidden when the border-radius, overflow and position of its parent are set (cf. the jsfiddle example). If one of these properties is disabled, the fixed element appears. I put a live example at <http://jsfiddle.net...
2013/11/26
[ "https://Stackoverflow.com/questions/20213286", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1268414/" ]
In the absence of an useful answer from anyone else, the only way I've managed to work around this is to add an additional nested element, and split the three affected styles across two layers. ``` <div> //style with position:fixed <div> //style with overflow:hidden and border-radius .... </div> </div>...
So this is just an idea and I cant test it because I'm on a Mac and dont have a Windows machine at hand right now. But have you tried to use a `clearfix` on the fixed element? This will cause the browser to handle the element differently and display something additional after it. With some luck it might show up? It p...
9,253,861
Using Facebook graph API, I am trying to retrieve number of mutual friends 2 users have. However, I am getting number of friends of one of them instead. Here is my code: ``` <?php $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$fb_id."/mutualfriends/".$other_fb_id."?".$access_tok...
2012/02/12
[ "https://Stackoverflow.com/questions/9253861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043612/" ]
In your code above $fb\_id must have to be currently login user ID or it must be your application user. Facebook api do not allow to get mutual friends of any x-y-z user until they have joined your application. Test it in [fb explorer](https://developers.facebook.com/tools/explorer/?method=GET&path=me/mutualfriends/5...
Sounds like both your user id's are the same. Are you 100% sure they're not??
9,253,861
Using Facebook graph API, I am trying to retrieve number of mutual friends 2 users have. However, I am getting number of friends of one of them instead. Here is my code: ``` <?php $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$fb_id."/mutualfriends/".$other_fb_id."?".$access_tok...
2012/02/12
[ "https://Stackoverflow.com/questions/9253861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043612/" ]
In your code above $fb\_id must have to be currently login user ID or it must be your application user. Facebook api do not allow to get mutual friends of any x-y-z user until they have joined your application. Test it in [fb explorer](https://developers.facebook.com/tools/explorer/?method=GET&path=me/mutualfriends/5...
With graph api it's done by requesting : me/mutualfriends?user=SOME\_USER\_ID if you and the SOME\_USER\_ID have mutualfriends you get the list of friends.
9,253,861
Using Facebook graph API, I am trying to retrieve number of mutual friends 2 users have. However, I am getting number of friends of one of them instead. Here is my code: ``` <?php $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$fb_id."/mutualfriends/".$other_fb_id."?".$access_tok...
2012/02/12
[ "https://Stackoverflow.com/questions/9253861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043612/" ]
In your code above $fb\_id must have to be currently login user ID or it must be your application user. Facebook api do not allow to get mutual friends of any x-y-z user until they have joined your application. Test it in [fb explorer](https://developers.facebook.com/tools/explorer/?method=GET&path=me/mutualfriends/5...
You forgot the `access_token=` param: ``` $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$other_fb_id."/mutualfriends/".$fb_id."?access_token=".$access_token), true); ```
9,253,861
Using Facebook graph API, I am trying to retrieve number of mutual friends 2 users have. However, I am getting number of friends of one of them instead. Here is my code: ``` <?php $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$fb_id."/mutualfriends/".$other_fb_id."?".$access_tok...
2012/02/12
[ "https://Stackoverflow.com/questions/9253861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043612/" ]
This is a facebook api bug. Even though the information is symetrical, to get the number of mutual friends, you have to use the access token of the current user (user a), not of the other user you are checking with.
Sounds like both your user id's are the same. Are you 100% sure they're not??
9,253,861
Using Facebook graph API, I am trying to retrieve number of mutual friends 2 users have. However, I am getting number of friends of one of them instead. Here is my code: ``` <?php $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$fb_id."/mutualfriends/".$other_fb_id."?".$access_tok...
2012/02/12
[ "https://Stackoverflow.com/questions/9253861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043612/" ]
The answer is simple. The only thing you do is to change the order of placing your facebook id and friend's facebook id: ``` $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$other_fb_id."/mutualfriends/".$fb_id."?".$access_token), true); ```
Sounds like both your user id's are the same. Are you 100% sure they're not??
9,253,861
Using Facebook graph API, I am trying to retrieve number of mutual friends 2 users have. However, I am getting number of friends of one of them instead. Here is my code: ``` <?php $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$fb_id."/mutualfriends/".$other_fb_id."?".$access_tok...
2012/02/12
[ "https://Stackoverflow.com/questions/9253861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043612/" ]
This is a facebook api bug. Even though the information is symetrical, to get the number of mutual friends, you have to use the access token of the current user (user a), not of the other user you are checking with.
With graph api it's done by requesting : me/mutualfriends?user=SOME\_USER\_ID if you and the SOME\_USER\_ID have mutualfriends you get the list of friends.
9,253,861
Using Facebook graph API, I am trying to retrieve number of mutual friends 2 users have. However, I am getting number of friends of one of them instead. Here is my code: ``` <?php $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$fb_id."/mutualfriends/".$other_fb_id."?".$access_tok...
2012/02/12
[ "https://Stackoverflow.com/questions/9253861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043612/" ]
This is a facebook api bug. Even though the information is symetrical, to get the number of mutual friends, you have to use the access token of the current user (user a), not of the other user you are checking with.
You forgot the `access_token=` param: ``` $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$other_fb_id."/mutualfriends/".$fb_id."?access_token=".$access_token), true); ```
9,253,861
Using Facebook graph API, I am trying to retrieve number of mutual friends 2 users have. However, I am getting number of friends of one of them instead. Here is my code: ``` <?php $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$fb_id."/mutualfriends/".$other_fb_id."?".$access_tok...
2012/02/12
[ "https://Stackoverflow.com/questions/9253861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043612/" ]
The answer is simple. The only thing you do is to change the order of placing your facebook id and friend's facebook id: ``` $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$other_fb_id."/mutualfriends/".$fb_id."?".$access_token), true); ```
With graph api it's done by requesting : me/mutualfriends?user=SOME\_USER\_ID if you and the SOME\_USER\_ID have mutualfriends you get the list of friends.
9,253,861
Using Facebook graph API, I am trying to retrieve number of mutual friends 2 users have. However, I am getting number of friends of one of them instead. Here is my code: ``` <?php $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$fb_id."/mutualfriends/".$other_fb_id."?".$access_tok...
2012/02/12
[ "https://Stackoverflow.com/questions/9253861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043612/" ]
The answer is simple. The only thing you do is to change the order of placing your facebook id and friend's facebook id: ``` $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$other_fb_id."/mutualfriends/".$fb_id."?".$access_token), true); ```
You forgot the `access_token=` param: ``` $mutual_array = json_decode(file_get_contents("https://graph.facebook.com/".$other_fb_id."/mutualfriends/".$fb_id."?access_token=".$access_token), true); ```
1,240,313
Let's consider a following equation: $$x''+x'+x=5$$ My question is: how should I differentiate it with respect to x'? I've read somewhere that you only differentiate x' and take both x and x'' as constants, but why? Intuition tells me that they somehow depend on x'. EDIT: I need this to compute a lagrange equation, wh...
2015/04/18
[ "https://math.stackexchange.com/questions/1240313", "https://math.stackexchange.com", "https://math.stackexchange.com/users/153653/" ]
First of all let's define $\text{D}(w)$ and $\text{D}(w^r)$ carefully, and we will add to that $\text{D}^+(w)$ in the same way as $D(w)$ as follows: $$\begin{align}\text{D}(w)&=\lbrace i\in [n-1]: &w\_i>w\_{i+1} \rbrace \tag 1\\ \text{D}(w^r)&=\lbrace i\in [n-1]: &w^r\_i=w\_{n+1-i}>w\_{n+1-(i+1)}=w^r\_{i+1} \rbrace \...
The above answer is incorrect: e.g. consider $w=4321$ and $w^{r} = 1234$. Using the above formula yields \begin{align} \mbox{maj}(w^r) & = 4 \cdot \mbox{des}(4321) + \binom{4}{2} - \mbox{maj}(4321)\\ & = 4 \cdot 3 + 6 - 6\\ & = 12 \end{align} while $\mbox{maj}(1234) = 0$. Here is how I derived the correct formula: ...
19,743,728
I'm getting this error: `ERROR 1005 (HY000): Can't create table (errno: 150);` I know it has something to do with the foreign keys but I have checked to see if they have the same info types etc and I can't find the problem. The video, director actor, role and member create; the rest do not. ``` CREATE TABLE IF NOT EXI...
2013/11/02
[ "https://Stackoverflow.com/questions/19743728", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2945329/" ]
You have FK definitions that will try to set a null value on non null columns. Therefore that FK declaration is impossible. ``` CREATE TABLE IF NOT EXISTS registration ( branchNo VARCHAR (15) NOT NULL, memberNo VARCHAR (15) **NOT NULL**, StaffNo VARCHAR (15) **NOT NULL**, dateJoined date NOT NULL, PRIMARY KE...
Solved: ``` Check to make sure Primary_Key and Foreign_Key are exact match with data types. If one is signed another one unsigned, it will be failed. Good practice is to make sure both are unsigned INT. ```
16,867,460
I have started learning C++, and have gotten stuck when working with multiple files. To practice basic classes, I wrote three different files, * working.cpp * word.cpp * word.h --- **word.cpp:** ``` #include <iostream> #include "word.h" using namespace std; class word{ public: char *word; void createWord(char *...
2013/05/31
[ "https://Stackoverflow.com/questions/16867460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1843486/" ]
1. You need to include more of the definition of `word` in the header file. Something like this: ``` class word { public: char *word; void createWord(char *str); void print_word(void); char * getWord(); }; ``` 2. Then, change `word.cpp` to just have the implementations: ``` void word::createWord(char...
Just mentioning the class name in the header file (a so-called *forward declaration*) is not enough; you need a complete class declaration (which declares all the fields and functions of the class): ``` class word { public: char *word; void createWord(char *str); void print_word(void); char * getWord()...
16,867,460
I have started learning C++, and have gotten stuck when working with multiple files. To practice basic classes, I wrote three different files, * working.cpp * word.cpp * word.h --- **word.cpp:** ``` #include <iostream> #include "word.h" using namespace std; class word{ public: char *word; void createWord(char *...
2013/05/31
[ "https://Stackoverflow.com/questions/16867460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1843486/" ]
1. You need to include more of the definition of `word` in the header file. Something like this: ``` class word { public: char *word; void createWord(char *str); void print_word(void); char * getWord(); }; ``` 2. Then, change `word.cpp` to just have the implementations: ``` void word::createWord(char...
There is no actual declaration of class `word` in `word.h` ``` word.h:2:7: error: forward declaration of 'class word' ``` I would advise you to read Bjarne Stroustrup's brilliant book "The C++ Programming Language" to get started.
43,100,091
I know this has been asked before, but I'm kinda lost here. I've got an element from which I log the typeof: ``` typeof msg['PID']['PID.13'] // outputs "xml" ``` So following [this answer](https://stackoverflow.com/a/11776835/1650012) I logged the `children.length`, of which I expect it to be a number: ``` typeof...
2017/03/29
[ "https://Stackoverflow.com/questions/43100091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1650012/" ]
First thing that seems pretty strange to me is: `typeof msg['PID']['PID.13'] // 'xml'`. So, in case you get some xml from the server, you can parse it like so: ``` var parser = new DOMParser(), doc = parser.parser.parseFromString(xml, 'text/xml'); //xml is a xml string typeof doc // 'object' ``` Than, to count ...
What you have there is an E4X XML (or XMLList) object. So do this instead: ``` msg['PID']['PID.13'].children().length() ```
43,100,091
I know this has been asked before, but I'm kinda lost here. I've got an element from which I log the typeof: ``` typeof msg['PID']['PID.13'] // outputs "xml" ``` So following [this answer](https://stackoverflow.com/a/11776835/1650012) I logged the `children.length`, of which I expect it to be a number: ``` typeof...
2017/03/29
[ "https://Stackoverflow.com/questions/43100091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1650012/" ]
First thing that seems pretty strange to me is: `typeof msg['PID']['PID.13'] // 'xml'`. So, in case you get some xml from the server, you can parse it like so: ``` var parser = new DOMParser(), doc = parser.parser.parseFromString(xml, 'text/xml'); //xml is a xml string typeof doc // 'object' ``` Than, to count ...
So, `msg['PID']['PID.13']` is xml. Can you post it as text here? If that xml was something like `<children><length><value>5</value></length></children>` then, perhaps, `msg['PID']['PID.13'].children` could have been interpreted by js as if it was `msg['PID']['PID.13']['children']` which is identical js expression. Simi...
27,727,016
The following string represents a viewmodel property and in this case it has 3 different indices: PROGRAMA\_FASES[**1**].PROGRAMA\_FASE\_REPLICAS[**0**].PROGRAMA\_FASES.PROGRAMA\_PREGUNTAS[**2**].Value I'm using these functions to increase the first index or the last one. ``` function increment_last(v) { return ...
2014/12/31
[ "https://Stackoverflow.com/questions/27727016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1532797/" ]
If the pattern is consistent (`TEXT[NUMBER].TEXT[NUMBER].TEXT[NUMBER]`), you could match all occurrences and then select the second match. A simple example (assuming the above TEXT are always string characters and never contain numbers) would be: ``` var number = "PATTERN[0].TO[1].MATCH[2]".match(/\d/g)[1]; ``` If y...
Thank you both for your answers which gave me a better approach and another way of thinking a solution. Finally I found this answer <https://stackoverflow.com/a/7958627/1532797> which gives an excellent solution to this and can be used for many other purposes. In my case I can simply increment the desired index posit...
27,727,016
The following string represents a viewmodel property and in this case it has 3 different indices: PROGRAMA\_FASES[**1**].PROGRAMA\_FASE\_REPLICAS[**0**].PROGRAMA\_FASES.PROGRAMA\_PREGUNTAS[**2**].Value I'm using these functions to increase the first index or the last one. ``` function increment_last(v) { return ...
2014/12/31
[ "https://Stackoverflow.com/questions/27727016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1532797/" ]
The following regex will capture all three values. ``` .*\[(\d*)*\].*\[(\d*)*\].*\[(\d*)*\].* ``` You can access them in the following example ``` var myString = "PROGRAMA_FASES[1].PROGRAMA_FASE_REPLICAS[0].PROGRAMA_FASES.PROGRAMA_PREGUNTAS[2].Value"; var myRegexp = /.*\[(\d*)*\].*\[(\d*)*\].*\[(\d*)*\].*/g; var ma...
Thank you both for your answers which gave me a better approach and another way of thinking a solution. Finally I found this answer <https://stackoverflow.com/a/7958627/1532797> which gives an excellent solution to this and can be used for many other purposes. In my case I can simply increment the desired index posit...
8,481,771
I have my own table view cell which is defined in my storyboard. I have also defined a custom UITableViewCell class for this special cell. So when I want to create an Outlet for my custom prototype cell I get an error that the Outlet cant be created. Since this is not possible I have to do some ugly workarounds and us...
2011/12/12
[ "https://Stackoverflow.com/questions/8481771", "https://Stackoverflow.com", "https://Stackoverflow.com/users/784318/" ]
Because the outlet is a one-to-one connection between your controller and a specific item within the view. In the case of a prototype cell, it is simply a description of a cell that can have an arbitrary number of different items (i.e. rows in your table view). How would the controller know which item you are referring...
``` - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CellIdentInIB"]; UIImageView *img = (UIImageView*) [cell.contentView viewWithTag:1]; //img.image = ... //Access you prototype cell here...
8,481,771
I have my own table view cell which is defined in my storyboard. I have also defined a custom UITableViewCell class for this special cell. So when I want to create an Outlet for my custom prototype cell I get an error that the Outlet cant be created. Since this is not possible I have to do some ugly workarounds and us...
2011/12/12
[ "https://Stackoverflow.com/questions/8481771", "https://Stackoverflow.com", "https://Stackoverflow.com/users/784318/" ]
Because the outlet is a one-to-one connection between your controller and a specific item within the view. In the case of a prototype cell, it is simply a description of a cell that can have an arbitrary number of different items (i.e. rows in your table view). How would the controller know which item you are referring...
I assume you are using dynamic prototypes - in the attribute inspector of the tableview in the storyboard there is an option to select "static cells" or "dynamic prototypes". You can do what you are trying to do if you select "static cells" as there is only one cell in your tableview at run time for each cell in the st...
3,727
Mi demandas min ĉu ekzistas disvastiĝinta vorto por la sporto “bouldering” (kiel grimpado, sed sen ŝnuregoj kaj sekuriloj kaj nur ĝis malmultaj metroj de alteco). La evidenta eblo estas laŭvorta traduko el la angla: “ŝtonegado”
2018/03/16
[ "https://esperanto.stackexchange.com/questions/3727", "https://esperanto.stackexchange.com", "https://esperanto.stackexchange.com/users/14/" ]
La respondo al la demando “Ĉu ekzistas ĝenerale akceptata esperanta traduko de *bouldering?*”, vi jam scias, estas **ne.** Ĉar ni estas esperantistoj, la tujposta demando estas “Kiu estus oportuna traduko?”. Konsiderante, ke *bouldering* ne nepre okazas sur ŝtonegoj, sed ofte ankaŭ sur artefaritaj krutaĵoj en sportejo...
Ŝajnas al mi ke la plej evidenta esprimo estas la klarigo en via demando: * malalta grimpado * ŝton-grimpado * senŝnura grimpado
3,727
Mi demandas min ĉu ekzistas disvastiĝinta vorto por la sporto “bouldering” (kiel grimpado, sed sen ŝnuregoj kaj sekuriloj kaj nur ĝis malmultaj metroj de alteco). La evidenta eblo estas laŭvorta traduko el la angla: “ŝtonegado”
2018/03/16
[ "https://esperanto.stackexchange.com/questions/3727", "https://esperanto.stackexchange.com", "https://esperanto.stackexchange.com/users/14/" ]
Ŝajnas al mi ke la plej evidenta esprimo estas la klarigo en via demando: * malalta grimpado * ŝton-grimpado * senŝnura grimpado
Nudmana grimpado. Varapado (oficiale esperantigita franca vorto).
3,727
Mi demandas min ĉu ekzistas disvastiĝinta vorto por la sporto “bouldering” (kiel grimpado, sed sen ŝnuregoj kaj sekuriloj kaj nur ĝis malmultaj metroj de alteco). La evidenta eblo estas laŭvorta traduko el la angla: “ŝtonegado”
2018/03/16
[ "https://esperanto.stackexchange.com/questions/3727", "https://esperanto.stackexchange.com", "https://esperanto.stackexchange.com/users/14/" ]
La respondo al la demando “Ĉu ekzistas ĝenerale akceptata esperanta traduko de *bouldering?*”, vi jam scias, estas **ne.** Ĉar ni estas esperantistoj, la tujposta demando estas “Kiu estus oportuna traduko?”. Konsiderante, ke *bouldering* ne nepre okazas sur ŝtonegoj, sed ofte ankaŭ sur artefaritaj krutaĵoj en sportejo...
Ŝajnas, ke ankoraŭ ne ekzistas establita termino por tio en Esperanto. Mi rekomendus ekuzi **ŝtonegogrimpado**. Kompreneble, oni ne ĉiam faras ĝin sur ŝtonego, sed foje ankaŭ sur grimpomuroj, sed se ĝi fiksiĝos kiel aparta termino, tio ne vere gravas. La pli konciza **ŝtonegado** ankaŭ eblas, sed ĝi povus esti iom malp...
3,727
Mi demandas min ĉu ekzistas disvastiĝinta vorto por la sporto “bouldering” (kiel grimpado, sed sen ŝnuregoj kaj sekuriloj kaj nur ĝis malmultaj metroj de alteco). La evidenta eblo estas laŭvorta traduko el la angla: “ŝtonegado”
2018/03/16
[ "https://esperanto.stackexchange.com/questions/3727", "https://esperanto.stackexchange.com", "https://esperanto.stackexchange.com/users/14/" ]
Ŝajnas, ke ankoraŭ ne ekzistas establita termino por tio en Esperanto. Mi rekomendus ekuzi **ŝtonegogrimpado**. Kompreneble, oni ne ĉiam faras ĝin sur ŝtonego, sed foje ankaŭ sur grimpomuroj, sed se ĝi fiksiĝos kiel aparta termino, tio ne vere gravas. La pli konciza **ŝtonegado** ankaŭ eblas, sed ĝi povus esti iom malp...
Nudmana grimpado. Varapado (oficiale esperantigita franca vorto).
3,727
Mi demandas min ĉu ekzistas disvastiĝinta vorto por la sporto “bouldering” (kiel grimpado, sed sen ŝnuregoj kaj sekuriloj kaj nur ĝis malmultaj metroj de alteco). La evidenta eblo estas laŭvorta traduko el la angla: “ŝtonegado”
2018/03/16
[ "https://esperanto.stackexchange.com/questions/3727", "https://esperanto.stackexchange.com", "https://esperanto.stackexchange.com/users/14/" ]
La respondo al la demando “Ĉu ekzistas ĝenerale akceptata esperanta traduko de *bouldering?*”, vi jam scias, estas **ne.** Ĉar ni estas esperantistoj, la tujposta demando estas “Kiu estus oportuna traduko?”. Konsiderante, ke *bouldering* ne nepre okazas sur ŝtonegoj, sed ofte ankaŭ sur artefaritaj krutaĵoj en sportejo...
Mi samopinias kun Dario, ke *basgrimpado* laŭ propono de Cyril estas tre bona. Mi scivolas ĉu la vorto *blokogrimpado* (aŭ *blokgrimpado*) povas esti taŭga propono, kiu laŭ Vikipedio estas uzata en la hispana kaj la franca (*escalada en bloque, escalade de bloc*). Laŭdifine *bloko* estas *peza, unupeca maso de malmola ...
3,727
Mi demandas min ĉu ekzistas disvastiĝinta vorto por la sporto “bouldering” (kiel grimpado, sed sen ŝnuregoj kaj sekuriloj kaj nur ĝis malmultaj metroj de alteco). La evidenta eblo estas laŭvorta traduko el la angla: “ŝtonegado”
2018/03/16
[ "https://esperanto.stackexchange.com/questions/3727", "https://esperanto.stackexchange.com", "https://esperanto.stackexchange.com/users/14/" ]
La respondo al la demando “Ĉu ekzistas ĝenerale akceptata esperanta traduko de *bouldering?*”, vi jam scias, estas **ne.** Ĉar ni estas esperantistoj, la tujposta demando estas “Kiu estus oportuna traduko?”. Konsiderante, ke *bouldering* ne nepre okazas sur ŝtonegoj, sed ofte ankaŭ sur artefaritaj krutaĵoj en sportejo...
Nudmana grimpado. Varapado (oficiale esperantigita franca vorto).
3,727
Mi demandas min ĉu ekzistas disvastiĝinta vorto por la sporto “bouldering” (kiel grimpado, sed sen ŝnuregoj kaj sekuriloj kaj nur ĝis malmultaj metroj de alteco). La evidenta eblo estas laŭvorta traduko el la angla: “ŝtonegado”
2018/03/16
[ "https://esperanto.stackexchange.com/questions/3727", "https://esperanto.stackexchange.com", "https://esperanto.stackexchange.com/users/14/" ]
Mi samopinias kun Dario, ke *basgrimpado* laŭ propono de Cyril estas tre bona. Mi scivolas ĉu la vorto *blokogrimpado* (aŭ *blokgrimpado*) povas esti taŭga propono, kiu laŭ Vikipedio estas uzata en la hispana kaj la franca (*escalada en bloque, escalade de bloc*). Laŭdifine *bloko* estas *peza, unupeca maso de malmola ...
Nudmana grimpado. Varapado (oficiale esperantigita franca vorto).
70,605,051
``` SELECT DATE(date), SUM(amount) AS `Bank Transfer` FROM partial_payment WHERE pay_code = "BT" GROUP BY DATE(date) SELECT DATE(date), SUM(amount) AS Cash FROM partial_payment WHERE pay_code = "AC" GROUP BY DATE(date) ``` How to combine these 2 SELECT statement so that i can have a table with 3 columns namely DAT...
2022/01/06
[ "https://Stackoverflow.com/questions/70605051", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7926871/" ]
Error is thrown inside an observable. In your example the function is not returning an observable. ``` public checkInUsecase(): void { this.checkInAdapter() .pipe(catchError(err) => { this.logger.error('Error.'); throw EMPTY; }) .subscribe((data) => { thi...
There's a special pipe in Angular that allows you to catch errors in an Observable and react accordingly. ``` public checkInUsecase(): void { this.checkInAdapter() .pipe(catchError(err) => { this.logger.error('Error.'); throw EMPTY; }) .subscribe((data) => { this.logger.debug('Wor...
25,211,090
I have designed a page where four `div` tags are there in the page. If I test the page in mobile phone (5 inch) it fits the page perfectly, If I test the same page in tablet the page fits with in 30% of the screen. So how can I set the `div` size so that it will fit for all type of screens. [Fiddle link](http://jsfidd...
2014/08/08
[ "https://Stackoverflow.com/questions/25211090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3300593/" ]
You can use the viewport height, just set the height of your div to `height:100vh;`, this will set the height of your div to the height of the viewport of the device, furthermore, if you want it to be exactly as your device screen, set the margin and padding to 0. Plus, It will be a good idea to set the viewport meta ...
Try giving your divs a width of `100%`.
25,211,090
I have designed a page where four `div` tags are there in the page. If I test the page in mobile phone (5 inch) it fits the page perfectly, If I test the same page in tablet the page fits with in 30% of the screen. So how can I set the `div` size so that it will fit for all type of screens. [Fiddle link](http://jsfidd...
2014/08/08
[ "https://Stackoverflow.com/questions/25211090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3300593/" ]
I use something like this in my document.ready ``` var height = $(window).height();//gets height from device var width = $(window).width(); //gets width from device $("#container").width(width+"px"); $("#container").height(height+"px"); ```
Try giving your divs a width of `100%`.
25,211,090
I have designed a page where four `div` tags are there in the page. If I test the page in mobile phone (5 inch) it fits the page perfectly, If I test the same page in tablet the page fits with in 30% of the screen. So how can I set the `div` size so that it will fit for all type of screens. [Fiddle link](http://jsfidd...
2014/08/08
[ "https://Stackoverflow.com/questions/25211090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3300593/" ]
This is called [Responsive Web Development(RWD)](http://en.wikipedia.org/wiki/Responsive_web_design). To make page responsive to all device we need to use some basic fundamental such as:- **1. Set the viewport meta tag in head:** ``` <meta name="viewport" content="width=device-width,height=device-height,initial-scale...
Whilst I was looking for my answer for the same question, I found this: ``` <img src="img.png" style=max- width:100%;overflow:hidden;border:none;padding:0;margin:0 auto;display:block;" marginheight="0" marginwidth="0"> ``` You can use it inside a tag (iframe or img) the image will adjust based on it's device.
25,211,090
I have designed a page where four `div` tags are there in the page. If I test the page in mobile phone (5 inch) it fits the page perfectly, If I test the same page in tablet the page fits with in 30% of the screen. So how can I set the `div` size so that it will fit for all type of screens. [Fiddle link](http://jsfidd...
2014/08/08
[ "https://Stackoverflow.com/questions/25211090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3300593/" ]
I don't have much time and your jsfidle did not work right now. But maybe this will help you getting started. First of all you should avoid to put css in your html tags. Like `align="center"`. Put stuff like that in your css since it is much clearer and won't deprecate that fast. If you want to design responsi...
Try giving your divs a width of `100%`.
25,211,090
I have designed a page where four `div` tags are there in the page. If I test the page in mobile phone (5 inch) it fits the page perfectly, If I test the same page in tablet the page fits with in 30% of the screen. So how can I set the `div` size so that it will fit for all type of screens. [Fiddle link](http://jsfidd...
2014/08/08
[ "https://Stackoverflow.com/questions/25211090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3300593/" ]
You question is a bit unclear as to what you want, but judging from your comments, I assume you want *each* bubble to cover the screen, both vertically and horizontally. In that case, the vertical part is the tricky part. As many others have answered, you first need to make sure that you are setting the viewport meta ...
Try giving your divs a width of `100%`.
25,211,090
I have designed a page where four `div` tags are there in the page. If I test the page in mobile phone (5 inch) it fits the page perfectly, If I test the same page in tablet the page fits with in 30% of the screen. So how can I set the `div` size so that it will fit for all type of screens. [Fiddle link](http://jsfidd...
2014/08/08
[ "https://Stackoverflow.com/questions/25211090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3300593/" ]
You can use the viewport height, just set the height of your div to `height:100vh;`, this will set the height of your div to the height of the viewport of the device, furthermore, if you want it to be exactly as your device screen, set the margin and padding to 0. Plus, It will be a good idea to set the viewport meta ...
I don't have much time and your jsfidle did not work right now. But maybe this will help you getting started. First of all you should avoid to put css in your html tags. Like `align="center"`. Put stuff like that in your css since it is much clearer and won't deprecate that fast. If you want to design responsi...
25,211,090
I have designed a page where four `div` tags are there in the page. If I test the page in mobile phone (5 inch) it fits the page perfectly, If I test the same page in tablet the page fits with in 30% of the screen. So how can I set the `div` size so that it will fit for all type of screens. [Fiddle link](http://jsfidd...
2014/08/08
[ "https://Stackoverflow.com/questions/25211090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3300593/" ]
You can use the viewport height, just set the height of your div to `height:100vh;`, this will set the height of your div to the height of the viewport of the device, furthermore, if you want it to be exactly as your device screen, set the margin and padding to 0. Plus, It will be a good idea to set the viewport meta ...
I use something like this in my document.ready ``` var height = $(window).height();//gets height from device var width = $(window).width(); //gets width from device $("#container").width(width+"px"); $("#container").height(height+"px"); ```
25,211,090
I have designed a page where four `div` tags are there in the page. If I test the page in mobile phone (5 inch) it fits the page perfectly, If I test the same page in tablet the page fits with in 30% of the screen. So how can I set the `div` size so that it will fit for all type of screens. [Fiddle link](http://jsfidd...
2014/08/08
[ "https://Stackoverflow.com/questions/25211090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3300593/" ]
You can use the viewport height, just set the height of your div to `height:100vh;`, this will set the height of your div to the height of the viewport of the device, furthermore, if you want it to be exactly as your device screen, set the margin and padding to 0. Plus, It will be a good idea to set the viewport meta ...
Simple: `<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0" /`> Cheers!
25,211,090
I have designed a page where four `div` tags are there in the page. If I test the page in mobile phone (5 inch) it fits the page perfectly, If I test the same page in tablet the page fits with in 30% of the screen. So how can I set the `div` size so that it will fit for all type of screens. [Fiddle link](http://jsfidd...
2014/08/08
[ "https://Stackoverflow.com/questions/25211090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3300593/" ]
You can use the viewport height, just set the height of your div to `height:100vh;`, this will set the height of your div to the height of the viewport of the device, furthermore, if you want it to be exactly as your device screen, set the margin and padding to 0. Plus, It will be a good idea to set the viewport meta ...
[Fiddle](http://jsfiddle.net/e0j9gjjy/5/) ========================================= You want to set height which may set for all devices? Decide upon the design of the site i.e Height on various devices. Ex: * `Height-100px` for bubbles on device with `-min-width: 700px`. * `Height-50px` for bubbles on device with...
25,211,090
I have designed a page where four `div` tags are there in the page. If I test the page in mobile phone (5 inch) it fits the page perfectly, If I test the same page in tablet the page fits with in 30% of the screen. So how can I set the `div` size so that it will fit for all type of screens. [Fiddle link](http://jsfidd...
2014/08/08
[ "https://Stackoverflow.com/questions/25211090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3300593/" ]
You question is a bit unclear as to what you want, but judging from your comments, I assume you want *each* bubble to cover the screen, both vertically and horizontally. In that case, the vertical part is the tricky part. As many others have answered, you first need to make sure that you are setting the viewport meta ...
Whilst I was looking for my answer for the same question, I found this: ``` <img src="img.png" style=max- width:100%;overflow:hidden;border:none;padding:0;margin:0 auto;display:block;" marginheight="0" marginwidth="0"> ``` You can use it inside a tag (iframe or img) the image will adjust based on it's device.
7,397,994
I am having one form, and I want that to load in the maximized state. How do I call the windows maximize event on form load?
2011/09/13
[ "https://Stackoverflow.com/questions/7397994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/286042/" ]
You should set the [WindowState property](http://msdn.microsoft.com/en-us/library/system.windows.forms.form.windowstate.aspx) of the form on the load of the form. Set it to `FormWindowState.Maximized`.
Just set the form's [WindowsState property](http://msdn.microsoft.com/en-us/library/system.windows.forms.form.windowstate.aspx) to maximized. Then it should start up Maximized.
7,397,994
I am having one form, and I want that to load in the maximized state. How do I call the windows maximize event on form load?
2011/09/13
[ "https://Stackoverflow.com/questions/7397994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/286042/" ]
You should not call any events. Simply set the `WindowState` property to maximized: ``` Form form = new Form(); form.WindowState = FormWindowState.Maximized; form.ShowDialog(); ```
Just set the form's [WindowsState property](http://msdn.microsoft.com/en-us/library/system.windows.forms.form.windowstate.aspx) to maximized. Then it should start up Maximized.
14,859,781
There is this website that we purchase widgets from that provides details for each of their parts on its own webpage. Example: <http://www.digikey.ca/product-search/en?lang=en&site=ca&KeyWords=AE9912-ND>. I have to find all of their parts that are in our database, and add Manufacturer and Manufacturer Part Number value...
2013/02/13
[ "https://Stackoverflow.com/questions/14859781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1998248/" ]
How to scrape a website using HTMLAgilityPack (VB.Net) ------------------------------------------------------ I agree that [htmlagilitypack](http://html-agility-pack.net) is the easiest way to accomplish this. It is less error prone than just using Regex. The following will be how I deal with scraping. After download...
[Html Agility Pack](http://htmlagilitypack.codeplex.com/) is going to be your friend! > > **What is exactly the Html Agility Pack (HAP)?** > > > This is an agile HTML parser that builds a read/write DOM and supports > plain XPATH or XSLT (you actually don't HAVE to understand XPATH nor > XSLT to use it, don't wo...
38,522,302
when I click the localhost/phpmyadmin it directly goes inside without asking login in wamp.I want to ask for login in phpmyadmin and local.
2016/07/22
[ "https://Stackoverflow.com/questions/38522302", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3386779/" ]
3 corrections * `Object myObject` must be `WebView myObject;` *If you want to use methods from `WebView` object, you must declare `myObject` attribute of `WebFragment` class as a `WebView` type if you want to use the methods it declares.* **NOTE:** You must change also `getter` signature to `public WebView getWe...
change your methods to following ``` public void setName(String name) { if(name != null) { //this.setName(name); this.name=name; } else { System.out.println("Thats not his name"); } } ``` and also this : ``` public void callSetNameFunction() { WebView wvob=(WebView)myObject; ...
6,018,256
Is there a simple way to export a single file from different git branch (local or remote) without checking out that branch?
2011/05/16
[ "https://Stackoverflow.com/questions/6018256", "https://Stackoverflow.com", "https://Stackoverflow.com/users/300079/" ]
You can do the following: ``` git show experiment:docs/README.txt > /tmp/exported-README.txt ``` ... for a local branch `experiment`. For a branch that's in the repository you're referring to with the remote `origin`, you can do the following, similarly: ``` git fetch origin git show origin/other-experiment:docs...
You can choose to check out a specific file from a reference: `git checkout branch_or_hash path/to/file` The current branch will stay the same, but the other file will also be present. It will also be added to the index.
6,018,256
Is there a simple way to export a single file from different git branch (local or remote) without checking out that branch?
2011/05/16
[ "https://Stackoverflow.com/questions/6018256", "https://Stackoverflow.com", "https://Stackoverflow.com/users/300079/" ]
You can do the following: ``` git show experiment:docs/README.txt > /tmp/exported-README.txt ``` ... for a local branch `experiment`. For a branch that's in the repository you're referring to with the remote `origin`, you can do the following, similarly: ``` git fetch origin git show origin/other-experiment:docs...
Yup ``` git show remote/branchname:path/to/file ``` If you want to save it directly, this might come in handy: ``` git_showfile () { if [ $# -lt 1 ]; then return 255; fi; local fspec="$1"; shift; local fname="$(basename "$fspec")"; local fpath="$(dirname "$fspec")"; local revis...
178,792
I am working on the [*Forest type mapping* dataset](https://archive.ics.uci.edu/ml/datasets/Forest+type+mapping) which is available in the UCI machine learning repository. I have 27 features to predict the 4 types of forest. I am performing a Linear Discriminant Analysis (LDA) to reduce the number of features using `l...
2015/10/27
[ "https://stats.stackexchange.com/questions/178792", "https://stats.stackexchange.com", "https://stats.stackexchange.com/users/91778/" ]
If it doesn't need to be vanilla LDA (which is not supposed to select from input features), there's e.g. Sparse Discriminant Analysis, which is a LASSO penalized LDA: [Line Clemmensen, Trevor Hastie, Daniela Witten, Bjarne Ersbøll: Sparse Discriminant Analysis (2011)](https://web.stanford.edu/~hastie/Papers/sda_resubm...
Lda models are used to predict a categorical variable (factor) using one or several continuous (numerical) features. So given some measurements about a forest, you will be able to predict which type of forest a given observation belongs to. Before applying a lda model, you have to determine which features are relevant ...
178,792
I am working on the [*Forest type mapping* dataset](https://archive.ics.uci.edu/ml/datasets/Forest+type+mapping) which is available in the UCI machine learning repository. I have 27 features to predict the 4 types of forest. I am performing a Linear Discriminant Analysis (LDA) to reduce the number of features using `l...
2015/10/27
[ "https://stats.stackexchange.com/questions/178792", "https://stats.stackexchange.com", "https://stats.stackexchange.com/users/91778/" ]
If it doesn't need to be vanilla LDA (which is not supposed to select from input features), there's e.g. Sparse Discriminant Analysis, which is a LASSO penalized LDA: [Line Clemmensen, Trevor Hastie, Daniela Witten, Bjarne Ersbøll: Sparse Discriminant Analysis (2011)](https://web.stanford.edu/~hastie/Papers/sda_resubm...
I don't know if this may be of any use, but I wanted to mention the idea of using LDA to give an "importance value" to each features (for selection), by computing the correlation of each features to each components (LD1, LD2, LD3,...) and selecting the features that are highly correlated to some important components. ...
7,750,923
I tried searching the forum for this error but could find one which answered my query. I am facing an error when i try to migrate from spring-hibernate xml to spring-hibernate annotation. The error is ``` org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' define...
2011/10/13
[ "https://Stackoverflow.com/questions/7750923", "https://Stackoverflow.com", "https://Stackoverflow.com/users/991540/" ]
> > nested exception is java.lang.IllegalStateException: No bean class > specified on bean definition > > > You need to specify the transaction manager class here ``` <bean id="transactionManager"> <property name="sessionFactory" ref="sessionFactory" /> </bean> ``` may be you need this class ``` <bean i...
The error log tells you clearly. You specified ID of the bean (instance) without specifying which class it should instantiate.
44,416,241
I'm trying to print a page from my custom DNN module, without the persona bar, while logged in as an admin. I tried creating a custom skin but still can't prevent the persona bar menu titles from displaying on my print. I've posted this issue on the DNN community forum but never got any response.
2017/06/07
[ "https://Stackoverflow.com/questions/44416241", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3157885/" ]
Your code is not working because your two threads are not notifying/waiting on the same monitor. They each notify and wait on their own monitor, not a shared monitor. Change code to use a shared monitor, e.g. `messages`, including the synchronizations. ``` private void putMessage() throws InterruptedException { s...
Logging to the console is very slow so if you do this without holding the lock you give the consumer a chance. ``` @Override public void run() { try { while (true) { // slows the producer a little to give the consumer a chance to get the lock. System.out.println("put message"); ...
50,644,233
I have website created in PHP. Basically it is a send document kind of project. It uses a document store in Azure I will call and send it into Azure. Now I want to send in email as well as store in Google drive. So it should be stored to drive with public access. I have create following code. It works properly I don't...
2018/06/01
[ "https://Stackoverflow.com/questions/50644233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5212418/" ]
I am still not completely sure i understand your question. Assuming you just want to upload a file in php or curl here are two options. Uploading to Google drive is in two parts the first part you create the meta data that being the file name and basic information about your fine. The second part is where you upload t...
You can use Logic Apps to send the file from Azure Blob storage to Google Drive as well as an email attachment. <https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-azureblobstorage> Alternatively files stored in Azure Blobs can be addresses with a public URL assuming you have the right permissi...
50,644,233
I have website created in PHP. Basically it is a send document kind of project. It uses a document store in Azure I will call and send it into Azure. Now I want to send in email as well as store in Google drive. So it should be stored to drive with public access. I have create following code. It works properly I don't...
2018/06/01
[ "https://Stackoverflow.com/questions/50644233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5212418/" ]
going by <https://developers.google.com/drive/api/v3/simple-upload> , this should work: ``` <?php $ch = curl_init (); curl_setopt_array ( $ch, array ( CURLOPT_URL => 'https://www.googleapis.com/upload/drive/v3/files?uploadType=media', CURLOPT_HTTPHEADER => array ( 'Content-Type: applic...
You can use Logic Apps to send the file from Azure Blob storage to Google Drive as well as an email attachment. <https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-azureblobstorage> Alternatively files stored in Azure Blobs can be addresses with a public URL assuming you have the right permissi...
50,644,233
I have website created in PHP. Basically it is a send document kind of project. It uses a document store in Azure I will call and send it into Azure. Now I want to send in email as well as store in Google drive. So it should be stored to drive with public access. I have create following code. It works properly I don't...
2018/06/01
[ "https://Stackoverflow.com/questions/50644233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5212418/" ]
going by <https://developers.google.com/drive/api/v3/simple-upload> , this should work: ``` <?php $ch = curl_init (); curl_setopt_array ( $ch, array ( CURLOPT_URL => 'https://www.googleapis.com/upload/drive/v3/files?uploadType=media', CURLOPT_HTTPHEADER => array ( 'Content-Type: applic...
I am still not completely sure i understand your question. Assuming you just want to upload a file in php or curl here are two options. Uploading to Google drive is in two parts the first part you create the meta data that being the file name and basic information about your fine. The second part is where you upload t...
7,585,370
I can't seem to align the label of an anchor tag that's been made to look like a button. Cancel label is clearly off. I would like it to be aligned with the Next button's label. We need the Cancel button to be an anchor tag because this site needs to work without Javascript. ![enter image description here](https://i....
2011/09/28
[ "https://Stackoverflow.com/questions/7585370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/554327/" ]
Try using with line-height ``` .cancelLinkButton { height: 22px; vertical-align: middle; line-height:22px; } ```
Very simple. Just add some `padding-top` to `.cancelLinkButton`. From the looks of it, you probably need about 5px or so. And depending on the `border-box` value on the element, you may need to decrease the height of the `.cancelLinkButton` the same amount of padding that you add. If you don't know what `border-box` i...
7,585,370
I can't seem to align the label of an anchor tag that's been made to look like a button. Cancel label is clearly off. I would like it to be aligned with the Next button's label. We need the Cancel button to be an anchor tag because this site needs to work without Javascript. ![enter image description here](https://i....
2011/09/28
[ "https://Stackoverflow.com/questions/7585370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/554327/" ]
Try using with line-height ``` .cancelLinkButton { height: 22px; vertical-align: middle; line-height:22px; } ```
You are setting the CancelLinbutton property somewhere esle that is overriding the one you are setting below. Find out all the CSS references to cancelbutton and see what properties is actually use. You can use F12 and see which properties have been applied and which have been overridden. ``` .cancelLinkButton { h...
53,874,208
How to read "key" and "key1"'s value from below string. Its json but I can not parse as its very large number and its broke while parsing. so, would like to read the somelongnumber and somelongnumber2 through string operation. ``` {key:somelongnumber,key1:somelongnumber2} ``` which would be the easiest way to get t...
2018/12/20
[ "https://Stackoverflow.com/questions/53874208", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3711357/" ]
Here is your class for deserializing ``` class JsonClass { public System.Numerics.BigInteger Key1 {get; set;} public System.Numerics.BigInteger Key2 {get; set;} } ``` For deserializing ``` var result = JsonConvert.DeserializeObject(inputJson); Console.WriteLine(result.Key1); ```
If you don't really want to deal with JSON serialization and DTO's and your only objective is to parse this input, you can try with something like this: ``` string myData = "YOUR JSON INPUT"; string[] mydata2 = myData.Trim('{').Trim('}').Split(','); string firstVal = mydata2[0].Split(':')[1]; string secondVal = mydat...
36,882
Last weekend I was re-assembling my engine, and three holes stripped, is there any way to see if a screw hole needs to be re-threaded before it strips?
2016/09/28
[ "https://mechanics.stackexchange.com/questions/36882", "https://mechanics.stackexchange.com", "https://mechanics.stackexchange.com/users/15910/" ]
If you want to eliminate the angle of ground that visually looks flat, measure the weight then turn the whole lot around and measure the weight again. The mean average fo these two readings should give you a fairly accurate idea of the true, level nose weight.
That's close enough! Especially if you're not pushing the limits. Tongue weight influences the stability of the rig (too much and the front wheels may tend to lift, too little – especially with a heavy load – and the "tail starts to wag the dog") and the load on the towing vehicle's suspension. You've got some latitud...
15,247
As every Emacs'er will know, I'm currently suffering from my extensive dot-Emacs configuration. All my packages are within the containers of `use-package`, and I bytecompiled all of my `.el`-files. Even with that, Emacs starts in 6.4 seconds, and then loads the rest of the packages (around 40 of them) afterwards. I w...
2015/09/01
[ "https://emacs.stackexchange.com/questions/15247", "https://emacs.stackexchange.com", "https://emacs.stackexchange.com/users/6915/" ]
> > Could anyone tell me how Emacs manages that, even with thousands .el-files? > > > Emacs "manages" that by not loading at startup thereby not holding up the loading of the core application. This in turn as the effect of returning keyboard control to the user faster. But when is it loaded? On first use of that...
Many of the included libraries are not loaded when you start up. Some commands etc. are **autoloaded**, which means that Emacs recognizes them and knows how to load them. When you try to use a command that is autoloaded, Emacs then loads the library that defines it, if it has not yet been loaded. You can create your ...
15,247
As every Emacs'er will know, I'm currently suffering from my extensive dot-Emacs configuration. All my packages are within the containers of `use-package`, and I bytecompiled all of my `.el`-files. Even with that, Emacs starts in 6.4 seconds, and then loads the rest of the packages (around 40 of them) afterwards. I w...
2015/09/01
[ "https://emacs.stackexchange.com/questions/15247", "https://emacs.stackexchange.com", "https://emacs.stackexchange.com/users/6915/" ]
> > Could anyone tell me how Emacs manages that, even with thousands .el-files? > > > Emacs "manages" that by not loading at startup thereby not holding up the loading of the core application. This in turn as the effect of returning keyboard control to the user faster. But when is it loaded? On first use of that...
In addition to the other answers (which explain how the majority of libraries are actually only loaded on demand), there is also the matter of the *pre-loading* of many core elisp libraries within the `emacs` executable itself, which provides an illusion of it loading a lot of things incredibly quickly. This is achiev...
35,954,697
I know we can use LIMIT in PostreSQL to get the top 3 values in the relation but what if there are duplicate values. For example, 5 4 4 3 2 Ordering it in DESC order and using LIMIT 3 will just return 5,4,4. But how do we get 5,4,4,3 (The top 3 with duplicates). I know how to do this the long way but I was wondering...
2016/03/12
[ "https://Stackoverflow.com/questions/35954697", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6052981/" ]
You can use case an `UNPIVOT` query like below ``` Select comp_mkey, fmodule_id, fdepartment_id, branch_mkey, entry_department, dept_mkey, mkey, emp_mkey, entry_date, month, year, day, data from (select * from Emp_mon_day where emp_mkey IN (select emp_card_no from emp_mst where comp_mkey in (7,110)) and Year = 2016...
CROSS APPLY can be proven helpful here. ``` CREATE TABLE [dbo].[emp] ( [comp_mkey] [INT] NULL, [mont] [INT] NULL, [year] [INT] NULL, [day1] [VARCHAR](10) NULL, [day2] [VARCHAR](10) NULL ) INSERT INTO emp VALUES (2, 2, 2016, 'AB', 'AC') ``` Use following Select ...
15,026,174
I have this model for comment that each comment can be the answer of an other comment. ``` public class Comment { public virtual int Id { get; set; } public virtual string Body { get; set; } public virtual DateTime? AddedDate { get; set; } public virtual bool IsApproved { get; set; } public virtu...
2013/02/22
[ "https://Stackoverflow.com/questions/15026174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1396981/" ]
Do **Project -> Clean** for a few times. And then **Build** the project. If you still cant find `R.java` in the `gen` folder, check if you have ANY errors in your `layout` files, for example check if all your `xml files` and `drawables` are named only in lower-case letters. After removing these errors, Clean and Bui...
* clean the project by selecting *Project - Clean* * if `R.java` is not created, delete the gen folder, then re-create it manually, right-click, *Build Path - use as source folder*, rebuild the project * if `R.java` is still not there, there is a probability that some of your XML files contain errors, check that * in c...
15,026,174
I have this model for comment that each comment can be the answer of an other comment. ``` public class Comment { public virtual int Id { get; set; } public virtual string Body { get; set; } public virtual DateTime? AddedDate { get; set; } public virtual bool IsApproved { get; set; } public virtu...
2013/02/22
[ "https://Stackoverflow.com/questions/15026174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1396981/" ]
Do **Project -> Clean** for a few times. And then **Build** the project. If you still cant find `R.java` in the `gen` folder, check if you have ANY errors in your `layout` files, for example check if all your `xml files` and `drawables` are named only in lower-case letters. After removing these errors, Clean and Bui...
The above answer states it clearly. Take a look at your layout files and a hint from me: When I filled by strings.xml file, I found out, that when copying some colors there, I closed the tag with a tag. This is easily overlooked thing and i intend of writing a class which detects this, because apparently this isn't goi...
15,026,174
I have this model for comment that each comment can be the answer of an other comment. ``` public class Comment { public virtual int Id { get; set; } public virtual string Body { get; set; } public virtual DateTime? AddedDate { get; set; } public virtual bool IsApproved { get; set; } public virtu...
2013/02/22
[ "https://Stackoverflow.com/questions/15026174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1396981/" ]
Simply remove `import android.R` and it will work.
* clean the project by selecting *Project - Clean* * if `R.java` is not created, delete the gen folder, then re-create it manually, right-click, *Build Path - use as source folder*, rebuild the project * if `R.java` is still not there, there is a probability that some of your XML files contain errors, check that * in c...
15,026,174
I have this model for comment that each comment can be the answer of an other comment. ``` public class Comment { public virtual int Id { get; set; } public virtual string Body { get; set; } public virtual DateTime? AddedDate { get; set; } public virtual bool IsApproved { get; set; } public virtu...
2013/02/22
[ "https://Stackoverflow.com/questions/15026174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1396981/" ]
Simply remove `import android.R` and it will work.
The above answer states it clearly. Take a look at your layout files and a hint from me: When I filled by strings.xml file, I found out, that when copying some colors there, I closed the tag with a tag. This is easily overlooked thing and i intend of writing a class which detects this, because apparently this isn't goi...
890,627
i am asked to show that for $n \geq 3$ $F\_{n} = $ the number of strings of size $n - 2$ over the alphabet ${a,b}$ with no consecutive $b$s. Base case is obvious. $F\_{n+1} = F\_{n} + F\_{n-1}$ so we use strong induction and get that its the sum of the number of strings of size $n-2$ and $n-3$ with no consecutive $b$...
2014/08/08
[ "https://math.stackexchange.com/questions/890627", "https://math.stackexchange.com", "https://math.stackexchange.com/users/168593/" ]
Suppose that we want to construct the sequence of $a$, $b$ with length $n+1$. If the last term is $a$, other $n$ terms can be any sequence which satisfies the condition, so we have $F\_n$ sequences. If the last term is $b$, $n$th term has to be $a$, since $n$th and $n+1$th terms cannot be both $b$. Now, other $n-1$ t...
Let $a\_n$ and $b\_n$ be the number of strings of size $n-2$ that ends with $a$ and $b$, respectively. Then you have the following recursion. $$ a\_n = a\_{n-1}+b\_{n-1}$$ and $$b\_n = a\_{n-1} $$, with the obvious identity $F\_n = a\_n+b\_n$. Now you can easily prove the rest using induction.
70,395,991
I have a dictionary that I want to use to change a matrix so I don't have to program a bunch of if statements by hand. However, the program is not recognizing it. ``` player_board = [["", "A", "B", "C", "D", "E", "F", "G", "H"], ["1", " ", " ", " ", " ", " ", " ", " ", " "], ["2", " ", ...
2021/12/17
[ "https://Stackoverflow.com/questions/70395991", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17273903/" ]
The issue here is that you're only changing the `screen_encrypt` object, rather than modifying the `player_board` object directly. To fix that, you could update your code to directly update the `player_board` instead. For example: ```py player_board = [["", "A", "B", "C", "D", "E", "F", "G", "H"], ["1...
You can't use a dictionary but you could use a function like this: ``` player_board = [["", "A", "B", "C", "D", "E", "F", "G", "H"], ["1", " ", " ", " ", " ", " ", " ", " ", " "], ["2", " ", " ", " ", " ", " ", " ", " ", " "], ["3", " ", " ", " ", " ", " ", " ", " ", " "...
70,395,991
I have a dictionary that I want to use to change a matrix so I don't have to program a bunch of if statements by hand. However, the program is not recognizing it. ``` player_board = [["", "A", "B", "C", "D", "E", "F", "G", "H"], ["1", " ", " ", " ", " ", " ", " ", " ", " "], ["2", " ", ...
2021/12/17
[ "https://Stackoverflow.com/questions/70395991", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17273903/" ]
Strings are called *immutable*, they cannot be changed. If you use a mutable object, you can change it. The simplest mutable object is a `list`: ``` player_board = [["", "A", "B", "C", "D", "E", "F", "G", "H"], ["1", [" "], [" "], [" "], [" "], [" "], [" "], [" "], [" "]], ["2", [" "], ...
You can't use a dictionary but you could use a function like this: ``` player_board = [["", "A", "B", "C", "D", "E", "F", "G", "H"], ["1", " ", " ", " ", " ", " ", " ", " ", " "], ["2", " ", " ", " ", " ", " ", " ", " ", " "], ["3", " ", " ", " ", " ", " ", " ", " ", " "...
255,439
Part of [**Code Golf Advent Calendar 2022**](https://codegolf.meta.stackexchange.com/questions/25251/announcing-code-golf-advent-calendar-2022-event-challenge-sandbox) event. See the linked meta post for details. --- [You successfully route the laser into the sensor](https://codegolf.stackexchange.com/q/255405/78410)...
2022/12/13
[ "https://codegolf.stackexchange.com/questions/255439", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/78410/" ]
[JavaScript (Node.js)](https://nodejs.org), 117 bytes ===================================================== ```javascript f=(a,p=1,q=0,h=r=>!!a.match('^'+r))=>a?f(a.slice(2),h`\\w`*3**h`.g`*p+h`[g/]{2}`*q,h`.\\w`*3**h`g`*q+h`[S-g]{2}`*p):q ``` [Try it online!](https://tio.run/##RZBNb4MwDIbv/Ap6IoFgSvdx2BR2mDYuO61HYE...
[Charcoal](https://github.com/somebody1234/Charcoal), 52 bytes ============================================================== ``` F²⊞υ¬ιFEθ⁺ι§ηκUMυ⁺××κ№α§ιλX³⁼§ι¬λG×§υ¬λ⬤ι№⁺§/\λGμI⊟υ ``` [Try it online!](https://tio.run/##TY9PC4MwDMXvforgKUKHsB13Ehmyw4aMHb0UdSi21n/d9u27pCIz0Bxefi95LRs5lUYq515mAjxGkNu5QSvgbhZso@gc@MF...