query_id stringlengths 4 64 | query_authorID stringlengths 6 40 | query_text stringlengths 66 72.1k | candidate_id stringlengths 5 64 | candidate_authorID stringlengths 6 40 | candidate_text stringlengths 9 101k |
|---|---|---|---|---|---|
b3aec8edcc1c00b794ab60a63cd8cd6f4a38536c93d7254af35e046da35e5350 | ['8d7288299adf4074a6b95b8836760fc7'] | Why JEFT OpAmp. The reason is that filter resistor values are quite large and in the HP their value changes when selecting a different cutoff frequency. This would cause dramatic change of overall offset if using a BJT amplifier, caused by the input bias and offset current. And, yes, the input stage design and distorti... | c31315d1896d923e1983f75e955c2d21010e35270bdad3207b34118b2f496d4e | ['8d7288299adf4074a6b95b8836760fc7'] | @Transistor Not correct: the tower is a tip around a flat area (and "attracts" lightning strikes), it's not insulated as you might think (foundations are grounding it to the island, but not as good as standards require and common sense wishes), so you need a good grounding that let the lightning current discharge (e.g.... |
aa4e7c1d4edc968900d6fd42e26677ca00b79a0397f93bd1ce2dd9111e60e701 | ['8d91838913844bdb857608e0f5c107f6'] | To Enable chatter first you need to inherit your model from mail.mesage class Example:
class sale_order(osv.osv):
_name = "sale.order"
_inherit = ['mail.thread']
This will enable chatter functionality on your Model, now next thing you need todo is:
<record id="view_order_form" model="ir.ui.view">
<field n... | 3f1635f7edea0bfdcf341c08074a3a13c0d3873c24e334d274eee86e69d2b9f0 | ['8d91838913844bdb857608e0f5c107f6'] | QWeb is nicer templating tool and it was created by <PERSON> and its designed to work cross language originally which can be forked from git - qweb. Original framework is designed to work with CSharp, JavaScript, PHP, Python, Ruby so wtih your technical abilities you can fork and maintain your own qweb templating tool.... |
2ccee8fd8cca0fadacfe1aa354443ece751ae24bf9fb70ce9c4094c5ca4db0ee | ['8db07c97e0594a5b9a56171d043a69af'] | odoo works like transaction untill transaction is not completed it didnot commit it.odoo calls create function and do all its functionality but it didnot reflect in database untill it returns the value, you will get its values in function but it didnot commit this in database untill function returns the value
| db97a9ad8b02fa9914bb5615ab6a2d26c214020b13116f9dda66b9553b34e359 | ['8db07c97e0594a5b9a56171d043a69af'] | There is only one reason xml is not updated is that you put all this code in data noupdate=1.In no update=True it didnot update our data in an external id if that id is not present in our system it will create it if id is present it didnot update its attributes.
|
203378fad26b2a2f3c32ab8947caa3fa56a43804b1a410364545f0cc970914af | ['8db301400b744922b7e29f70a221659f'] | I am working on a MailChimp subscription form that will need to send the form $_POST data to MailChimp, but not actually load the success page. I.e. I want it to load custom JS on submission. This is what I have so far. Obviously the preventDefault is breaking the submission. Any thoughts are greatly appreciated:
<!--... | c11325d6e9fbace19622906714b84b8faae80ea5d4edc1a47cb83358d4c49bd0 | ['8db301400b744922b7e29f70a221659f'] | I'm using the cformsII form plugin for Wordpress. When debugging with firebug, I see that the following uri is not able to be navigated to (404 error):
.../wp-content/plugins/cforms/cforms-captcha.php?ts=2&c1=4&c2=5&ac=abcdefghijkmnpqrstuvwxyz23456789&i=i&w=115&h=25&c=000066&l=000066&f=font4.ttf&a1=-12&a2=12&f1=17&f2=1... |
0858f087e818283d3296da13550debdac74dee1313e18655168cc20d47047364 | ['8db597f80e764c3682f82bd3c0c03370'] | That setup imply a lot of important parameter that are not shown on the question (iptables/used steps/kernel network config/br setup/etc) here are some possibilities to solve the communication issue (in the master host side):
Possible solution:
A bridge interface as its name indicate is a gateway between multiple netw... | 53f63ad04cebae69c73e4cb21a47f4f60b0189df6efddfed2a738df625483282 | ['8db597f80e764c3682f82bd3c0c03370'] | Available customization?
The setting gtk-recent-files-enabled=false can be added to ~/.config/gtk-3.0/settings.ini that would disable the recent entry. Also not directly related but gtk-recent-files-limit=0 and gtk-recent-files-max-age=0 can be used as well to disable recent files. For Gtk2 this solution is used to dis... |
45c707a7bc008c0be5b7e0f62d75b4fe0c05d385b62b11f482075b48db481f14 | ['8db7a3f6a47d4276acc05e3379813b53'] | <PERSON> I wouldn't, if you don't have the confidence to do it yourself, then it's not worth doing. Not a great idea to rope others in to your problems because if it goes badly, then they may not thank you for it. Remember this is the CEO, not the manager. The only one I would perhaps take it to is my manager and then ... | 5ec8b633525dd26db586bad7aa362a39fccf4ac330b5cdd32e481dcdf9f63923 | ['8db7a3f6a47d4276acc05e3379813b53'] |
interaction between us still feels awkward
That's because it IS awkward, she complained to management about what seems to you to be an innocuous remark with no malicious intent.
How can I improve this situation?
There's nothing to be improved. Just a lesson to be learnt and an insight into her personality, don't ma... |
49fdf7030d3e892595154f4ee2cf12da7cca322ecb287ea1302d66fcb1754eb4 | ['8dccc9c9933a4ca992b0cfe1ba4337bd'] | So, just needed to generate the release SHA1 footprint with
keytool -list -v -keystore ~/pathToYourKeyStore/your_release_key.jks -alias yourKeyAlias -storepass yourStorePassWord
then added this SHA1 followed by a ; and the name of the package in "Android Applications" to my public access API key (in the Google Develope... | de134a8210b8297f45ee0c6e76e8c94d15eb8fa6f512dd54c190db37a917a5db | ['8dccc9c9933a4ca992b0cfe1ba4337bd'] | In Android Studio, I'm trying to use Google Clood Datastore from an Android app.
With the Google example https://cloud.google.com/datastore/docs/concepts/indexes#Datastore_Indexes_and_properties I am able to add <PERSON> (32 years old) and <PERSON> (30 years old) as Person and as children of the Company Acme. I can see... |
06e9e339c976be611c754a6d1f709fb4433e14e6570ed0a9ff96d2ebef0a54fe | ['8dd13569f628494bb1f0ea17303f49bb'] | From what I understand, there seems to be a 'VQ' parameter that you can attach to the end of the embed iframe and set hd720 or hd1080 as the value. After some research it seems YouTube once offered the 'VQ' parameter, then took it away, and as of this writing is back again! In short, your embed should look something li... | 9c21ee791836a6d293824b94524c79e22bb1b98f21138135d314af8fc26306a5 | ['8dd13569f628494bb1f0ea17303f49bb'] | Hello <PERSON>,
There are several ways to do this but here are a few. As a quick solution you could do this using a plugin like this:
https://wordpress.org/plugins/safe-redirect-manager/
OR via .htaccess using this code:
RedirectMatch 301 /animal(.*) /category/animal-list/$1
OR you may be able to adjust the settings f... |
f24aaf7290b46447bfc65fe2c38489b317177effcf790c896b21485049fb9695 | ['8dd51ffcac7c433eb34fdb6500c6f103'] | If you use ArangoDB with the MMFiles storage engine, writes block reads and locking is on collection level. Thus the edge collection can't be accessed while the query is executed and edges are written to peopleAndMovieRelation.
With the RocksDB storage engine however, document-level locks allow for concurrent writes. W... | 8a9963939349f96c4a22eab5f7ef423d1988ee61f2696e5b8df6cfb98a119e32 | ['8dd51ffcac7c433eb34fdb6500c6f103'] | OBS Studio comes with a Default and a Dark theme. The Default theme uses the native system style (Windows 10 in my case), whereas the Dark theme is a custom design.
I noticed that the custom design does not have on-screen arrow buttons for scrollbars:
Don't Qt scrollbars have arrow buttons, or were they disabled by t... |
8fb54ac347255be3c12b370cca5ec05e17300fb2bdac5d65309da10ac6f55259 | ['8dd7754c8d5b47b2920bf2b81deb07ca'] | I have recently reinstalled Adobe Photoshop CC 2018 after getting a new computer. In the past I could use the Quick Selection tool without any issues but in the new installation I'm facing some issues. Whenever I make a selection and then select "Layer Via Cut" a white border is produced.
This is the options set for th... | 222c28e87e82cb0e71ac22c250205ee971e246aa1fd0b6dd718f7cf3cb636496 | ['8dd7754c8d5b47b2920bf2b81deb07ca'] | @CRDrost If you're explaining it to people on Math.SE rather than ten-ear-olds, why do you start you answer by saying that "_this is if you've got kids in the 10-15 range who can appreciate a little more detail and drama, but maybe aren't quite as serious as high-schoolers_"? |
191174b9f1d8eda9f8931e6c300de1b88ed76c39d40653d457f698fa5ec256c0 | ['8dea858cfce847c9ac88657aeab070d0'] | I need to multiply 2 matrices in swift, so in order to use accelerate I need 2 arrays with type double. The issue is, the two arrays that I need to multiply are type UInt32. Is there anyway to convert a UInt32 array to a double array?
var UInt32TestArray: [UInt32] = [1,4,2,3]
var Int32TestArray: [Double] = [Double](UIn... | d4030fe28b6d4a99fca3fd064837b4d27e2975532ded78fd989db1b5ef492a6c | ['8dea858cfce847c9ac88657aeab070d0'] | so I'm working on exporting a .txt file from Xcode, but whenever I try to export it, say through email, it creates an email with no attachments and an empty message. When I try to export it to iCloud Drive, a white screen comes up for a second, then leaves. When I check iCloud Drive, the file isn't there. What is wrong... |
45c668f5059d5ddb6212a61b8a91b228847c22b9bc92d0306ecf41367c29a3bf | ['8deaa99c943348d98a6e3b7e0e94a3ca'] | Thanks <PERSON>! Yes, it is all the same power meter. I'm assuming homeplug is the same as powerline, yes? I was told that there are 2 units. One plugs into the modem and electrical outlet in the house and the other plugs into the router and electrical outlet in the apartment. I think that might be what you are explain... | fe4d5d3877411e1f581ae056d82feaf5082cbdb8f94e39b27684968fc04a3e6b | ['8deaa99c943348d98a6e3b7e0e94a3ca'] | What is the exact difference between object pool and connection pool? Is there any difference to in their algorithm for utilizing memory.
msdn says "Object pooling lets you control the number of connections you use, as opposed to connection pooling, where you control the maximum number reached."
What exactly this mean... |
154d9128daf41be836417d3859639b7c469a5663c63607db6fa45c624de75161 | ['8ded40bfe2554680986176421b711e12'] | thanks for that Framework. I really like the idea and I'm eager to use it! However, I'm currently trying to get this up and running with an app that uses realm as well. I initially tought, It might be a good idea to create a realmService which I inject to my models and which handles all of the realm write stuff.
Sadly... | 252a13e079e4dfcaccbbd54976eb0a765a1b0db8ad72d20ac64e814e26318a6e | ['8ded40bfe2554680986176421b711e12'] | I'm currently implementing my first app in swift, which uses Realm. I really like it! However, I tried to make my models "good" but I really feel I made them worse for realm. Here's an example model:
import RealmSwift
class Location : Object {
dynamic var ident = ""
dynamic var package = ""
dynamic var title = ""
dyn... |
ad47ee9d66eb5b58f1aa710aec30bff5a51bd0f991d70fe02e2406f827cc05b8 | ['8df719034464473f8063683b06ba9e6c'] | The code below works only if you refresh the browser just ten miunets before specified time:
var specifiedTime = new Date("November 02, 2017 05:56:00");
var specifiedTimeMinutes = specifiedTime.getMinutes();
var currentTime = new Date();
var currentTimeMinutes = currentTime.getMinutes();
if(specifie... | 3d552cc6f29fe214df2237036b7950d4ec9fbabccf26225c8cf5ad7eb7df1412 | ['8df719034464473f8063683b06ba9e6c'] | If you have a problem with some functionality, start simple:
<body>
<script>
window.close();
</script>
</body>
It works just perfect on every browser.
If you would like to close the window that you previosly opened:
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_close
From the question itself, I ... |
7b0810456c6ad1a4dc74858b34147cfd8e7060b91acd583d3eb6ea20daa46ff3 | ['8e080495cc1d4711aecb99ef49c7afaa'] | There are a ton of pros and practically no cons to having the DNS server on the DC. Both roles are highly unlikely to cause any significant load on your server. If your network were large enough that DNS and/or DC performance were potentially an issue, you wouldn't be asking such a basic question. | 24178f30237837d2b875221c940ad6bc9aa24283f54e4ee4382231d9d9ec552f | ['8e080495cc1d4711aecb99ef49c7afaa'] | I have a problem where I delete an older version of a page layout but it keeps coming back and the changes I made to that page layout do not take effect. I would like to know if there is a way to make SharePoint 2010 always overwrite all files when doing a deployment to a server.
|
a3d4acf7c87e26c9199f13a47301315a08c29a48f2f5fd9f5db6ab371b629e41 | ['8e101f9f81674c4592e2f5d0a1463696'] | Your vertices array should match the layout of textureVertices array. That means that 8 vertices are not enought to render textured cube, beacuase the vertices at the same position might have different texture coordinates depending on what face they belong to, because indices are indices into both the texture and verte... | 409c67b47ea1760d697bd6ce03325cd1dadd1c05fa8f3f1fca2c076d63f9ec36 | ['8e101f9f81674c4592e2f5d0a1463696'] | Yes, canvas supports returning the image data as either Base64 encoded data url or Blob. See http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-canvas-todataurl . You can then grab the data url and post it using AJAX to your server, and Base64-decode it there.
|
8d8c2dcdd83cb0767bc0adbbe106810e11d7d08f9653443419f6bf1cf90fb96f | ['8e25a99df4f4412fbb89eff7ba1247d0'] | I need some help to put an if statement together using jQuery. I want to change the logo on my site, if two conditions are true.
Here is some pseudo code, hopefully explaining what i want to archive:
if(li hasClass active and data-menuid is equal to 0033){
change logo...
}
Here is a simple example of the menu str... | ba065ac4e27fc8796a609d2072f6a321edf95d683210cb89fae4b761ab2bc278 | ['8e25a99df4f4412fbb89eff7ba1247d0'] | I'm trying to export a Vue SFC but i'am not sure how to export the component including the mySwiper object. I hope to see an example from someone who know-hows to do it. Below the JS part of my SFC
<script>
import Swiper from 'swiper'
var mySwiper = new Swiper ('.swiper-container', {
// Optional parameters
... |
60888a077716da4420b1c6c686de823cb907af2926c76f538bbb1b2440afa4dc | ['8e45e84e3cab43e4a61319ca611d85a7'] | I have an ascii file containing 2 columns as following;
id value
1 15.1
1 12.1
1 13.5
2 12.4
2 12.5
3 10.1
3 10.2
3 10.5
4 15.1
4 11.2
4 11.5
4 11.7
5 12.5
5 12.2
I want to estimate the average value of column "value" for each id (i.e. group by id)
Is it possible to do that in python using numpy or pand... | 93cd29ac9b79788847728c423d61f3372c22c07c801a34615f2a05d90042f6b5 | ['8e45e84e3cab43e4a61319ca611d85a7'] | I have an ASCII file with the following columns :
ID, val1, val2, val3
where ID is a row_number but not sorted. I want to write a new ascii file with the same columns with sorted ID (from smaller to larger).
How I could do that in python?
In fact, this file has been produced by the concatenation of 2 ascii files usi... |
10851d97e24fc7f73258f7278ffcf9a218f5b2ce7bead4e2a1c9219c5f3569fd | ['8e47117384044681ac3fc9242cdbb3e7'] | I came across this too. The documentation says:
Broadcast to the channel from anywhere inside your Rails application. An existing controller, a model, a background job, or a new WebsocketRails controller.
i.e. no mention of the console.
In my experience, it works exactly as described fine from the controller though.
| 6f851f419ec23d7776bb4bab223f41d6a9fecfda17aeb5c4ed6eb6251cd2540f | ['8e47117384044681ac3fc9242cdbb3e7'] | As per the instructions at http://progrium.com/localtunnel/ and elsewhere:
gem install localtunnel
localtunnel -k ~/.ssh/id_rsa.pub 3000
I get the error:
/path/to/gems/net-ssh-2.6.7/lib/net/ssh/transport/packet_stream.rb:103:in `block in next_packet': connection closed by remote host (Net<IP_ADDRESS>SSH<IP_ADDRESS>Dis... |
166d40bb51a9a0085ca6769025ddfb05468bab855e55355f61ef1659403e20e5 | ['8e58a8e8158340ee934946e2e32f42ed'] | In general, without knowing more details, my gut sense would be that the latter would be more appropriate, i.e. create a new component for each page.
You require two fundamentally distinct types of entities:
a collection and
a single item from that collection.
The first solution that you propose, i.e. a generic compo... | 2ecab8441c4da431d08cbfef9b37f9d895ae25dc08fdd51c571e3f997f80df79 | ['8e58a8e8158340ee934946e2e32f42ed'] | Here's one among many possible solutions. Get a random hue between 0 and 360. Use 100% saturation and 50% lightness for the main color, and 100% saturation and, say, 80% lightness for the "highlight" color. Just keep clicking the "Run code snippet" button to see more random colors.
document.querySelectorAll('div').fo... |
680caa2e026ebed4943ddc7580719e7d9c7dc7f1414b26777fe612c9e3365584 | ['8e5a6a9c93dd4e4995363021dca8d42d'] | <PERSON> - The BIOS enumerates the hard drives, not the OS, and then it knows the boot order (due to configuration) so it then knows to look for a master boot record (MBR) on each device, in sequence, and if it finds one, it loads the MBR into memory and executes it. At that point it's whatever's in the MBR that now h... | 6cf0329d347b5103ff0b7e3ed3706d792ddf84eb7e639e7cc76eff662dacb2a2 | ['8e5a6a9c93dd4e4995363021dca8d42d'] | Escape sequences have a lot in common with the concept of out-of-band communication:
Also sometimes used to describe what communications people call shift characters, such as the ESC that leads control sequences for many terminals, or the level shift indicators in the old 5-bit Baudot codes.
Let's say you're doing ... |
9df27917f8fe9f4056c40d1ed2d1cc66af9a7ea90e7508f10d7c48572e6f51ef | ['8e60799dc00f4584bb0252a6c32db457'] | Consider the transformation $x \mapsto x, p \mapsto v = \frac 1 m [p - qA(x)]$ where $A$ is a vector potential. Then $\{v,v\} = \frac q {m^2} v\times B$ where $\{\cdot,\cdot\}$ is <PERSON> bracket and $B = dA$ is the magnetic field, so this transformation is not canonical.
More concretely:
With the Hamiltonian $H = (p... | 7182e74dd3102a4317c6187b8767694949db15e6a00ee3dca38a6e9b5b80198f | ['8e60799dc00f4584bb0252a6c32db457'] | Antiquarks can be distinguished from quarks, so you only need to antisymmetrize two at a time. That's no problem, and even if you had 3 quarks it wouldn't be. Furthermore, you only need the total state to be antisymmetric. You could have antisymmetry in space, symmetry in spin and symmetry in color, and the whole thing... |
3061a2dfb66720c08bd3f7ad4eaeed96fbf0909203bf635f25ef4e77d832fb4b | ['8e6761777cb145dba3beeca908b37ce5'] | I think the last 3rd party software I encountered that filled in such an essential void in Windows's functionality was "Launchy", which made "type the first few letters of your program to run it" the best way to launch programs, before Windows 7 came along and made this the built in behaviour when you press Windows key... | 1304c1f67a86d7db860e22e716c7356675b17ef2100c3a119d7f71c694b7ec5d | ['8e6761777cb145dba3beeca908b37ce5'] | I am brand new in WebDevelopment and I came across the following issue.
I have an html file where a textbox is defined as well as a "View all Contents" button
The user can enter a value in the textbox and submit the data
Then repeat this action multiple times
Every time a new value is entered this value should be sto... |
6180276e4caf0b4c34fd74cda8a92df2c2e119723bf70d58126f04c7f6bfb922 | ['8e6a04b0d3c044b0b5c6e1631d5ebf23'] | I have to different vectors
mpl<IP_ADDRESS>vector<Type1, Type2...>
mpl<IP_ADDRESS>vector<Type3, Type4...>
I'd like to "concatenate" them to form:
mpl<IP_ADDRESS>vector<Type1, Type2, Type3, Type4...>
This would allow me to prepare vector templates and reuse them afterwards.
There are different solutions to my problem... | 56e1d85d44fd696d8b6e238e1b58095532be71d05d88722fd993e4328f59bf31 | ['8e6a04b0d3c044b0b5c6e1631d5ebf23'] | I'm developing a messaging system and I used JBoss Netty + Google protobuf for the POC. protobuf was chosen for its swiftness of serialization/deserialization, relatively low traffic cost and availability in several languages.
Still, when it comes to production under heavy load a self-coded server application can neve... |
7fbf08dc403f4ab92a97faa0c44fbfc4fc796c8333ad2cad3f9653a344a2f7d0 | ['8e719ca856e2462891eb868f6a45c0f3'] | I'm tryingto learn directX programming. Looking at different tutorials there is something about Vertices that i find a bit counfusing.
I know that directX uses vertices with four elements (x,y,z,w). I saw many tutorials ( example http://msdn.microsoft.com/en-us/library/ff729721(v=VS.85).aspx ) passing XMFLOAT3 as verti... | 01c51da17bcaf3869acb473bfc46156b83602550c06a1568ed7e73fe8cb710a0 | ['8e719ca856e2462891eb868f6a45c0f3'] | This is because your application is loading flash player loader from the cache and then it's loading the real player from the site , finally this yield a security exception.
In internet explorer , in internet options set to check for new versions of the documents each time you visit the page.
|
41eca4472d2fed85ca8af8ef23ae14907f30c93f625f044cd6b507b1fa072793 | ['8e8217cb0f1c437e9c840e7261d48459'] | An alternative to the accepted answer that doesn't require a new theorem environment name is the following:
\documentclass{article}
\usepackage{amsthm}
\usepackage{lipsum}
\usepackage{needspace}
\newtheorem{theorem}{Theorem}
\let\ORGtheorem\theorem
\def\theorem{%
\Needspace*{3\baselineskip}
\ORGtheorem
}
\let\ORGe... | 5f91633cbe529b86b06ab6bb44e7b0dda36711c87c8e654bbfa3ee46401d2e59 | ['8e8217cb0f1c437e9c840e7261d48459'] | @FumbleFingers I have just edited my question, added the rest of the sentences (and mind you, the sentences end the way I've written - as they are individual articles -, they don't continue with another sentence). I just wanted to find out (hopefully from a native speaker) if this was a proper usage that I'm not aware ... |
72ccdc098906e062d9b12b7faab562434b5f09a12d3ff9aa8152502ea9b8f847 | ['8e89493a1c37426da6f17c382f85b97d'] | I'm having trouble performing a simple transformation with the django orm.
Desired outcome should look like this:
2018-08
2018-07
2018-06
...
And is created with this sql:
select
distinct
strftime('%Y',a."Buchung") || "-" ||
strftime('%m',a."Buchung") as YearMonth
from
hhdata_transaktion a
order by
... | 3b23990a415b1b34f7fcb677fa45b7fc3690f166019738ee19a72f360fdb1c99 | ['8e89493a1c37426da6f17c382f85b97d'] | I stumbled upon a simple problem with the positioning of ggplot, I'm going to provide a very simple example, the real problem is much more complex so I'm looking for a reproductive solution, if possible in the ggplot environment.
names <- c("a","b","c","d")
days <- c(100,50,25,10)
dat <- data.frame(name=rep(n... |
f03734be670e3191d58d4bd0981da00e7ef36d22e98647c8a057af619b10828f | ['8e97a935c7ec47dca56a9c1f8b326178'] | One more column based grid solution with the help of bootstrap.
Here you can adjust the column widths by using the Grid system
Fiddle is here if you want to play with.
$(function(){
$.fn.itemify = function(update){
var $t = $(this);
if ($t.data('itemify') && update!==true) return this;
var options = { col... | 5baa1c1ec4646f4a4c0791c89433ca2050997c432234a1c3aba3f6642aa0eb95 | ['8e97a935c7ec47dca56a9c1f8b326178'] | HTML imports or Webcomponents is a new way to do this completely at client side using HTML, JS and CSS. Write a component and reuse it in every page. But it uses ShadowDom, means not search indexable yet.
<link rel="import" href="header-banner.html">
<!-- use this in body -->
<header-banner></header-banner>
|
1dfabac0cf7c5496774ba063c2d650068af0de519ed1cca542a0601acf84cfd1 | ['8e9d9d41c3424bf1ba7f5ae7dd295cf0'] | The book's cover is "People Can't Drive You Crazy If You Don't Give Them The Keys" but the content of the book is more about changing yourself and your perceptions and attitude and more. TOC snapshot, Part 1: Stuck in a Crazy World, Part 2: Changing Someone Else, Part 3: Changing Yourself, Part 4: Changing Your Enviro... | 839762736b945a21c09e9f43c6a4f42a07f2dcc9a0ba2bce509bf1ba5124232e | ['8e9d9d41c3424bf1ba7f5ae7dd295cf0'] | I have 7 PC with Ubuntu 14.04 on them. I want one PC be like server (i have lampp on this and it works but only on that PC), I want all to conect together using switch no router. So they can acces server computer.
---PC1
----PC2
SERVER... |
8109ea2abae36ecb07bd0d445ebab59070a35db60eb8a65eaff377cbc427a93d | ['8ea5e48d92644392b477d9a9ef858825'] | I was Passing a this JSON http://www.mocky.io/v2/5cacde192f000078003a93bb
i was trying to print a just a category_name
I'm not able to get the data list , when i pass the object with out the data list just like http://www.mocky.io/v2/5cb859344c0000092ed3d4df
private Category_name category_name;
public Categor... | 510dfd6b9dce1b048f36b99be148d4b5b2ef0bb62b1ec783c1522890c21799ed | ['8ea5e48d92644392b477d9a9ef858825'] | I have used the following code to get the network location .
With this code I'm getting the location in android 7.0 and below .
but above android 8.0 and above its telling to turn on the GPS
Is there is any changes in the location settings
locationManager = (LocationManager) getSystemService(Context.LOCATION_S... |
cbaacec1a3ae6a8667452f8b44dc06f296ba032ae4f80e6d730146ce6677174f | ['8eb0f58ebee94c5aa3511aea0ac9b24f'] |
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@mipmap/back"
android:layout_centerVertical="true"
android:paddingLeft="@dimen/_10sdp"
android:id="@+id/imageView4"/>
<in.mobilepedia.com.gic... | b63746041bbc99f85aedaa2c26051bf3b781b62f66cb15182237adec3000624f | ['8eb0f58ebee94c5aa3511aea0ac9b24f'] | implementation 'com.android.support:appcompat-v7:27.0.0'
implementation 'com.android.support:support-v4:27.0.0'
implementation 'com.android.support:design:27.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.intuit.sdp:sdp-android:1.0.4'
implementation 'com.android.volley:... |
3b9469de7f8f92188495b90a80383247ba8a9bf6d4d7e0ca05cde012e8e118fe | ['8ed3b7f459e74f78bcfafe46b2292386'] | In my composer.json I have the following:
"repositories": [
{
"type": "package",
"package": {
"name": "aaemnnosttv/wordpress-core-phpunit-includes",
"type": "wordpress-tests-core",
"version": "5.0.2",
"source": {
"type": "svn",
... | fd8a0759fcf1e5999f464926cba73e459eb3ae056037cbe6751c1611d5a107c4 | ['8ed3b7f459e74f78bcfafe46b2292386'] | I am thinking of having a CQRS architecture for my project. This means having a read and a write database and an update process to keep both databases in sync.
Since I am going to update the read (elasticsearch) database anyway after each command, I wonder: what is the use of having a write database at all?
|
2f06e4510b0c00173763a1070037ccf69e95b2c119db7be7afb89a95ba192013 | ['8edd899eb1f04a01b4b6e648185b11b5'] | Here is a blog post describing how to get HTML from a url using the Java SDK, or Apache Commons HttpClient. Once you get the HTML, there is lots you can do to it.
Extract the Text from the Markup
Extract Links
Change Links
Collect Email Addresses
Collect Images
Add Syntax Highlighting
Diff Two Sources
READ HTML WITH ... | f564663ddbe3b2eb5be0770b2673df9bf81999c0ddcd6225c21fc9e7a4340e93 | ['8edd899eb1f04a01b4b6e648185b11b5'] | @Ingo I want to clone from SD card to virtual disk without removing the SD card from the Raspi, like the SD Card Copier does. So I can easily backup one or several Raspis without the need of many SD cards. I should remove "clone the system **from** a virtual disk" in the question, because it is confusing. |
9ac77a0fec896727c93eb204c9463db74da679c80133e8ff6b05c4ea00d1be0d | ['8ee213a2caa343f3a11bada34d1a515f'] | Um, I've played mabinogi for a while now, and I'm just wondering, I'm lvl 61 but still have a brown box around my talent. Shouldn't it be silvery? My talent is <PERSON>, and shouldn't I have the title of "Apprentice Fighter" instead of "Naive Fighter"?
I hope someone can explain this for me. Thank you very much for yo... | 1d207fe73bd339c69fbbd4d78be920155d4a5ccfcce917c15438cbfc2877bfab | ['8ee213a2caa343f3a11bada34d1a515f'] | You have two main options.
A) You can set up Video_Played as a goal. This would give you a conversion rate for the Video_Played event.
B) Set up a Google Sheet with the Google Analytics add on. With this create two reports, one with the total users during the period, and one with the total events during the period. Cr... |
cf1fee2bcd946da7594872a9d224c370413af1b3a2178eb0801e34936778c370 | ['8ee8db589f804a2abfaba8bde6f7f8b6'] | If you don't want to do it with IDs or with inline-styling, there is a way I would call a hack.
In MainContent.js add className attribute to the component as follows:
<Jumbotron className="jumbotron">
And in MainContent.css add !important in the statement you want to override other stylings:
.Container {
margin-bo... | dd1b24bb3866678c5921c6593e30e79eb5c6fe72e4c781c158fbeef3718ee211 | ['8ee8db589f804a2abfaba8bde6f7f8b6'] | I'm trying to serve multiple audio files in the node.js server, but the server sometimes fails when multiple clients try to access. How can I remedy this?
express = require('express');
const http = require('http');
const path = require('path');
const fs = require('fs');
const app = express();
app.get('/', function (re... |
3cb10dd4ad0a16e0bce5412d9e42663856678de46daacaf6e189c27e49d994e1 | ['8eeaef14872942c49f68f4058f9b587d'] | <PERSON> see now what I did is Create a new HTML file and new .htacess file in the pub folder and older one I changed the name to index.old and htacess.old, so now when someone type this url https://www.marketplace.jawadditaksal.org/pub/ it will redirect to main index website. it is fine now? | dc867fe2e23cfef998b80708312e0aea1feb5cc80401a0a1115b26fa82c6d2ba | ['8eeaef14872942c49f68f4058f9b587d'] | I just want to reiterate that the precedence of Dr. Seuss Enterprises v. Penguin Books USA, Inc. establishes that in order to qualify for the parody fair use exception, one needs to be parodying that item which for which you're claiming the exception. Use in a parody of something else doesn't necessarily count. -- Addi... |
f188579f139180ba8227241ccb6a33392c39f19db2fa42a711ca613f9259b646 | ['8ef89d03d80b4f93863c3bc2752a9baa'] | You just need to remove max_index from if statement otherwise it will add up every student.
int max = 0;
String max_index = new String();
for (int i = 0; i < 5; i++) {
System.out.println((i + 1) + "\t" + score[i]);
if (score[i] > max && score[i] != 0) {
max = score[i];
m... | f181a840bf1a7106635c3b0b1dc45d0b247c5ccf861d362850ad7b496cb283f2 | ['8ef89d03d80b4f93863c3bc2752a9baa'] | Try this code sample, use this as an example
As you can't show your code, hopefully, this works for you
int firstarray[][] = {{20, 0, 10, 10, 0, 20}, {20, 0, 10, 10, 0, 20}, {20, 0, 10, 10, 0, 20}, {20, 0, 10, 10, 0, 20}, {20, 0, 10, 10, 0, 20}, {20, 0, 10, 10, 0, 20}};
int secondarray[][] = {{0, 10, 10, 0}, {0, 10, 1... |
303cefb01b0defb16099f4a903f484aa00d1195406feac36b21b56562a20b5e1 | ['8ef9b9458313436c80bcbb4054063216'] | I'm new to Pact and I am trying to verify a pact on provider side using pact-python but some matching rules are getting ignored.
WARN: Ignoring unsupported matching rules {"$.num_issues"=>{"matchers"=>[{"match"=>"integer"}], "combine"=>"AND"}, "$.error"=>{"matchers"=>[{"match"=>"type"}], "combine"=>"AND"}, "$.response[... | 5a40a89386a51294de7f7c3fcd3376aa062502dd0d56c2cb760cd6bf31abd39d | ['8ef9b9458313436c80bcbb4054063216'] | I'm trying to apply contract testing on an POST API(Microservice). I've written the consumer side test cases and the pact is generated and now I'm trying to verify the pact on provider side using pact-python. But I cannot see any option to enter the input body payload for the POST call to the API. So far I have this
p... |
9d0b4e1b73325cb8270e8568d2041616401e371379d56cc4a689f1b9e4759b7d | ['8f1ab2113cdd4d7e9a4c0855951aecef'] | Considering the following agda module signature:
module EqList {a ℓ} {A : Set a} {_≈_ : Rel A ℓ} (eq≈ : IsEquivalence _≈_) where
We can define the membership in a list, the list inclusion and the list equivalence:
_∈_ : REL A (List A) _
_∈_ x = Any (x ≈_)
_⊑_ : Rel (List A) _
_⊑_ = _⊆_ on flip _∈_
_≋_ : Rel (List A)... | 38acb41f07361db6e3f34b941a56b5bcd0b55370655806c8a942de47bc680317 | ['8f1ab2113cdd4d7e9a4c0855951aecef'] | Your definitions seem to imply that, in ∈-chop there are no possible value for τ which can be seen as follows:
∈-chop : ∀ {Γ τ ι} → weaken τ ∈ Γ , τ' at suc ι → τ ∈ Γ at ι
∈-chop {τ = ()}
This does not directly answer your question but it's probably not the indented behavior which could ultimately solve your problem.
|
1e80455f263a04aa8e35afec9752d33961e68d24216980d9af719780872e2216 | ['8f1ffd0473d4472d8ad283323267bd13'] | I'm having trouble with my Form in c++. The form crashes because of my while loop. The while loop is needed for checking the output it receives from an external device. it is actually a log application which continuously prints the data it receives from the device, a real-time log. I'm using Visual Studio 2013.
I have ... | 0c3e808a533e02fcb1db30af1a2cd21843e5bf3e425d89ed50a9cb195099e67a | ['8f1ffd0473d4472d8ad283323267bd13'] | Good day guys! I have this program that checks whether the current password matches a password in the database. Then the new password should update the current password that is in the database. The passwords are converted into md5 structure. Now, all perfectly works except that the database won't update. A MySQLSyntaxE... |
9358076b013ee80c20e8f38255de90c97cf856b84a7aa91f05af6743e60f602f | ['8f283b08268643bd8d89bfcc4cca89db'] | Here's what I did and it seems to fix things. One of the options when installing the driver from the nvidia .run file (version 270.26) is whether to install 32bit compatibility libraries. You need to select NO on this if you have a 64 bit system. When I disabled the driver from the repositories and reinstalled this d... | 727edcb5fac24407cd1d644bd54f50f418fab2b3486141300845df417feaedfb | ['8f283b08268643bd8d89bfcc4cca89db'] | I must be missing something.... One transmits at 48 dBm, the other at 33. So you need to add 15 dB to your link budget, which means multiplying the radius by 5, not 2. That's a pretty big antenna! And the gain of a DSN antenna varies with he frequency (not favourably at all in this case), which makes things worse. Also... |
67f7daf2e176d72b1e8ab4377b93ec3e7a4bf34449cbccd11025764d8d58629b | ['8f2c465572de482cbfda0ba722920390'] | I'm not really understanding where to put function() { return {} } and where not to when it comes to deeply nesting computed properties.
By the way, this is in a component!
computed: {
styles: function() {
return {
slider: function() {
return {
... | 8b14d768181d06228bfeadefbc5e3bc508709d84510568849584f4876f9044ba | ['8f2c465572de482cbfda0ba722920390'] | Ok so I have two columns in one worksheet.
My 3rd worksheet tab has this:
In column B:
Original Performance NorGrip
Gold Blank Disc
Gold Blank Disc
Truckbed Liner Kit
In column C:
Grade
Grade
Dimensions
However, I want a list that shows this:
Original Performance NorGrip
Gold Blank Disc Grade
Gold Blank Disc Dimensions... |
19570e958381a258813cf59ec2e393914a65b0dadd6bed5d7af89af5cf49c251 | ['8f399b04ade04781b7a7e7f2f4697be5'] | Thank you so much! However, I think that your proof is not true. Because, if $z\in V\otimes W$ and (note that $z\neq 0$) then $z$ has the from $$z = \sum\limits_{i}v_i\otimes w_i$$ where $v_i, \ldots, v_k\in V$ are arbitrary and $w_1, \ldots, w_k\in W$ are lineary independent. | b396d283578a9f2754485da2c94ae0bafedd9086478821a2a3123366dec7b794 | ['8f399b04ade04781b7a7e7f2f4697be5'] | Since $f$ is mono, and $v_1, \ldots, v_k$ are lineary independent, $f(v_1), \ldots, f(v_k)$ are also lineary independent. So, applying Lemma 2, from $\sum\limits_{i}f(v_i)\otimes g(w_i) = 0,$ we conculde that $g(w_i) = 0.$ On the other hand, $g$ is monno, so we have $w_i = 0,$ for all $i.$ This leads to $z = 0.$ |
44acaae836d5633b43eb5e853daf3a8e1baa3d6993e31fa1950fddec1e27a1a9 | ['8f4cb76237cd4b3090a4801913c051c5'] | I am trying to do an integration test for an Ember component that requires a model as input. I have mock data, but I cannot pass it into the component directly because the model includes computed properties and other customizations that EmberData normally handles under the hood. However, I cannot figure out how to inje... | b47632d8996dc8332ed785783a790c8137e41d9d2e8f157258439de645dde3fe | ['8f4cb76237cd4b3090a4801913c051c5'] | Is it possible to run docker-compose up in such a way that it will only build if the image isn't present in the repository?
I'm working on a test scenario that will run in two different environments: locally on a laptop, and on a server as part of test automation. My docker-compose file looks something like this:
serv... |
4d0e98d8d8eca96235b3236f6620c55b4ca705a27147abc9ab89e97ca4f68bba | ['8f555c2c1abc40c7b359c5ecc77e3e37'] | woooohoo! I could finally figure out the answer thanks to another post on stackoverflow!! It was stupidest mistake I have ever made I think. In my context xml, element "context" should have been with uppercase "C" i.e. "Context"!!
Thanks to guys in this link!
Trouble Deploying WAR file. Failed to start component []
| 250ed3955df5c1152b1291f9d7732a4a780190423d67f5802997037763cbe7c4 | ['8f555c2c1abc40c7b359c5ecc77e3e37'] | I faced the same issue just now while upgrading my project from spring 3 to 4.1.6.
A little background for reference, just in case if it helps anyone running into same issue===>
First, it prompted me with error for mappingJacksonconverter vs mappingJackson2converter since the former doesn't exist anymore with ... |
957f6b35c452aa9a768b759d95b98f65fa4b0df426a8b797685a55fb00f6da93 | ['8f6a7b73326749699c5d5e151bc05946'] | If you are given a list of documents, with strings in the documents, how do you go about and search from the documents and return the list of documents that contains the string that you were searching for?
How would I go about implementing a program in Python or C for this problem statement? I've considered grep, but ... | 7ad51c7fa1f9c41ef4b4c231eeb1805977cbb07bb333b722c78c91094a00395a | ['8f6a7b73326749699c5d5e151bc05946'] | I'm running a basic machine learning tutorial code snippet (which compiles properly on the computer of the person teaching), and I can't seem to find what's wrong. I understand the question has been 'answered', but I can't seem to understand the answer.
DeprecationWarning: Passing 1d arrays as data is deprecated in 0.... |
3a227b51af8e187a45069ba4fa9659d6aad8e4a0df62b9879425c2b2f148199b | ['8f6c5eaa307a47e793d89b1353e14cdc'] | Let's assume I have a series of functions that work on a sequence, and I want to use them together in the following fashion:
let meanAndStandardDeviation data =
let m = mean data
let sd = standardDeviation data
(m, sd)
The code above is going to enumerate the sequence twice. I am interested in a function ... | f7c4d9052ea3d4864e47403d31f392230d518fb657f9289680b655cfe28f1aed | ['8f6c5eaa307a47e793d89b1353e14cdc'] | I want to do the following: add a switch in my Web.config and whenever it is turned on, any value coming from a .resx file will appear together with the name of the .resx file it came from. This is mainly for debugging purposes.
My current understanding is that the way to do this is create a custom T4 template, and use... |
ecd9dc3209ed6230f840fc7006aea1ea357314a7f998ac31a3a8d261b1eeecc1 | ['8f71b4725d0e4bcea2d2cd9ee3e9588e'] | I am a master (international)student in Germany, I will apply Phd in Canada or US. There will be a gap year between my graduation year and entrance year.
Now my plan to get reference letter is as follows: One letter from my thesis supervisor. Another two letters from the professor whom I took a class with and got an A.... | 2d04c13b7b6d0f50072e2e9c9f4111c72b1f0900f7c9f8342df0e8422215c2ba | ['8f71b4725d0e4bcea2d2cd9ee3e9588e'] | I created a custom switch control which is working fine. The default functionality is when it is set to 0, It hides the sub-options. This is working fine when the switch control is toggled to 0, but it doesn't work on customizer load.
Below is the code for Custom Switch Control Class.
class Custom_Customize_Switch_Cont... |
a51157ceb5d72fdb966324aad3cd12868f3306eab7a5c0e8c85b41291c3757d9 | ['8f73cf7046904aea8d56993b963b9540'] | as a non-Mac expert I am nervous about hacking around with `sudo` - also I have no idea what server it is is trying to contact. If you can tell me how to find that out and block it in a way I can do safely, I'll accept the asnwer! | 941022c36d1ffbdd6f72ddd31f039bd3b14e81616a1af610eaf70ced6c1cb2c2 | ['8f73cf7046904aea8d56993b963b9540'] | K5, 15 bytes
Very literal:
{(+/x%2;%*/x)}/
In action:
{(+/x%2;%*/x)}/[0; 24 6]
24 6
{(+/x%2;%*/x)}/[5; 24 6]
1.345817e1 1.345817e1
Unfortunately, this does not work in oK because that interpreter does not currently support projection (currying) of adverbs. Works in the real k5.
In oK, it would currently be necessar... |
29254d44b81e6d77eda3a68ae45c623a09c4c0aac46a774bd2d849543f9d1139 | ['8f788afa1c8e4bcfa34829eb321ab736'] | Unless the VM's actually need that much CPU horsepower, I'd very seriously consider dropping them to one or two processors each. When a VM wants to use a processor cycle, all four cores of one of your physical processors have to be ready, which can cause some pain if anything else is going on (dom0 in this case).
I'm m... | 89881b69e9e3fb9f15ae3ed7332ab5015f9a27b1908411564d1bfdb06346c182 | ['8f788afa1c8e4bcfa34829eb321ab736'] | <PERSON> has it right. Deploy through Group Policy and never look back.
I for one prefer using Group Policy Preferences to deploy printers, as the management is a bit easier and can be done entirely from Group Policy Management, without requiring the Print Management MMC to do the printer portion. Whichever way works ... |
171ee77cf3eb82005fe8c602c4e4d9472eb8d5d33fe54a11f7b876f497e88c29 | ['8f8ef2e32af045aaae24be3eb2ee3aa8'] | So my problem is this. I can remove a record from localstorage proxy just fine the first time. But if I do it again, it gives me an error, where everything in the Store is undefined, like it didnt exist anymore.
onTapRemoveKegelReminder: function(button) {
console.log(button.getData());
//Find and delete the ... | 3ca2dd6016660fecbc36d57c15f1be0a4707bbcee9e869a284b0eeb48b4c4560 | ['8f8ef2e32af045aaae24be3eb2ee3aa8'] | So I'm testing one of my controller in RSPEC and I'm trying to test the whole update shenanigans. This is what i have in the RSPEC
describe 'PUT update' do
before :each do
@user = Factory(:user,name: "<PERSON>")
end
context "valid attributes" do
it "located the requested @us... |
64736b2816f3795b51292944660a6c8ee7f3be2e11d459ecff30001083868beb | ['8f991e3411e84074bad89ad75b50cd1c'] | My answer is nearly similar as above just added a break, so if you already get the result then no need to continue the loop. Will be efficient if the array is too large.
$cat = 171;
$categories_array = array (
"Belts" => array (131),
"Headwear" => array (171, 172, 185, 186),
... | 4d8063e21f7c59ef8e93eba81b10f13f9ef64c2df56a776e1075f7e51e794a74 | ['8f991e3411e84074bad89ad75b50cd1c'] | Finally I have found the solution after a long struggle from the following link -
https://cakephp.lighthouseapp.com/projects/42648/tickets/2464-plugin-using-acl-not-loading-proper-model
When I used Auth component, the user controller was not using Cauth.user model. It was loaded using AppModel. But without auth compone... |
3346bdf357937013a9245c47edce0361b25c08f7e85cae9e5b3eff36e7f62751 | ['8f9f90bce80144938bb3b264616c4277'] | Если я правильно понимаю. То вам необходимо выполнить запрос сразу на множестве серверов, которые вы добавили в Local Server Groups. Для этого вам необходимо на корневой папке (Local Server Groups) или на любой другой, созданной дополнительно, нажать правую кнопку мышки и выбрать "New Query" ("Новый запрос" на Русском)... | 74312f0d6d4d785d239d2e671ebbc116930fa422217bcac051b272f853c65d3b | ['8f9f90bce80144938bb3b264616c4277'] | iMac 27 inch - late 2012, i7
Well, Apple probably won't like this advice but it EASILY worked for me :
I use the headphone jack output for audio playback from my iMac (Pro Tools, iTunes, etc) and after upgrading to the iMac from my Mac Pro (early 2008, quad core) physically configured the same way (headphone jack outp... |
9f3c21a32799c5abbd4badde428586f76745ee0b2280592010ef650af629f0c3 | ['8fa46ede9c0346bf88430b1986ec1945'] | I have three resources resp. VM types I want to add. For each resource I want to run a remote-exec and place some files using the corresponding provisioner. As I don't want to have the provisioners repeated in each resource, I thought about writing a (resp. another) module. I created a module which looks like that:
var... | 3aba8d840cd925a15f8ad0d6f421ddb128d41845e103a1f47f165cfe1bce5025 | ['8fa46ede9c0346bf88430b1986ec1945'] | A friend of mine showed me how to solve this problem:
SELECT l.id AS locationid, l.locationname, count(username) AS count, GROUP_CONCAT(username SEPARATOR ", ") AS users
FROM locations l
LEFT JOIN votes v
ON v.location_id = l.id AND v.date = CURDATE()
LEFT JOIN users u
ON v.user_id = u.id
GROUP BY locationname
ORDE... |
7c417b9555aa0b16a5139d267b4f3919d76bc27c343b5750385329e8d1915f2a | ['8fab54ba69254b2fbfd4ab0832e2ef49'] | I had similar, with D7 and D2010 apps, and suggest you look at it the other way round - move to MySQL 5.1 or later and test your D7 apps to confirm they work.
(If they don't, add newer version of libmysql.dll (e.g. for MySQL v5.1.8), and make SURE you are not using the "old" libmysql in the windows path (rename all ot... | c6c3a9838c99a10695c9334d1da4905914bdfc661d324d814fdd71b83d8d65e0 | ['8fab54ba69254b2fbfd4ab0832e2ef49'] | I find the best way to return an array from php to Ajax (jscript):
on the php side: echo json_encode($myArray);
on the javascript side (e.g. myAjax.responseText)
replyVal = JSON.parse(myAjax.responseText);
To send arrays TO php from javascript, use the matching JSON.stringify() to send
and php json_decode() to receive... |
2d53801518c8f702c023201de4ee4c3374a404beba4da3beec6d735781d9e8f8 | ['8fb10b0ff1384448a6100a2ba8752a95'] | Thanks for your answer! I tried a couple of objects like dataframes but was not lucky... I must admit that I haven't tried openpyxl yet but finally succeeded by writing a function which writes my data from a csv to an AMPL format-like file (.dat). Not very elegant but it works :)
| fd383322c9b04bdb1dfe262271d530118052bd2533a414aa0f2ef9305cf7947b | ['8fb10b0ff1384448a6100a2ba8752a95'] | I have an abstract model in Pyomo which I need to run a couple of times with changing data which is why I'd like to have some easy data import from csv or xls. I tried the DataPortal as well as directly writing a data file but don't succeed and would appreciate your help!!
DataPortal
I am well aware of the site https:/... |
0f1e1906e25c2dee1a18524b21b7b08a3f5ba879b06e6a6eb59fb40580b8c378 | ['8fc8119220124632bad9cd81972d9bf2'] | @ Inventor Локально все работает нормально, единственное, в консоли : Not Found: /favicon.ico
[24/Aug/2020 17:02:31] "GET /favicon.ico HTTP/1.1" 404 3765
[24/Aug/2020 17:02:35] "GET /tasks/list HTTP/1.1" 301 0
[24/Aug/2020 17:02:35] "GET /tasks/list/ HTTP/1.1" 200 2636
[24/Aug/2020 17:02:40] "GET /accounts/logout/ H... | d81afaeec4a0e7d7fca01bf56b09cc2db5eafc56e725954da3a5e4aa4120256b | ['8fc8119220124632bad9cd81972d9bf2'] | Пытаюсь добавит теги в приложение через shell
Есть созданные таски.
>>> from tasks.models import TodoItem
>>> t = TodoItem.objects.get(pk=11)
>>> t.tags.all()
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: 'tuple' object has no attribute 'all'
>>>
Может быть, ошибка синт... |
16b452941309b71358e081b537d0c162c562b96331d67cd0db4d5ce79df461c4 | ['8fd49433650a43bba0b11336cc2a683d'] | I can not add the jpanel I have over ride to the frame. it is not displaying it. I have add it by get content pane but it doesn't work.what should I do.
where is my problem.
thank you in advance
import java.awt.*;
import javax.swing.*;
public class BigBang {
JFrame worldFrame;
WorldPanel worldPanel;
int wor... | 6189b9d4b4a24e0119efaf1c65d01406e37bd4ea508b3dfd22b2261d0f6926c8 | ['8fd49433650a43bba0b11336cc2a683d'] | I have a problem on priority of contents in a web page. I mean I want one component to be in front of another component. here I want my drop down menu in front of other components when I hover the horizontal menu
and I want it to be in front of other components like this:
here is the code that I have used to write th... |
b6629cd60102cbb152c126e091dbd66f68d3a1abab67c7639071fdbb832feebc | ['8feb09dec90343d8bd86dd862ca1ad25'] | At the end i'm using an abstraction layer between web application and test logic. The test developer only use methods from abstraction classes.
The advantage is that no test developer have to understand the structure of the web application.
After 4 weeks of work with this layer it's possible to create and handle our t... | 0cc9fca9ed372465434cd5e6c3bbbb77a999e9ddce25d21c2f4d12c46b3d7081 | ['8feb09dec90343d8bd86dd862ca1ad25'] | First of all.. It would be better to use another language then javascript. I prefered python because you can easily add third party modules and use oop.
If you are starting to write test automation scripts for a large software it would be better to create an architecture. In my last project I included abstraction layer... |
eed299711c6e50d5ab7efd7d445bcc5a7cadd7359a0274a52bbb2a551b2cf619 | ['8fefeb65bce94942bb93fd8b69e15181'] | Try something like this
html,body {
width: 100%;
height: 100vh;
margin: 0 auto;
padding: 0;
background-color: dimgray;
}
nav{
background-color: aqua;
position: fixed;
top: 0;
left: 0;
width: 100%;
display: flex;
}
.logo{
padding: 10px;
}
.nav-wrapper{
margin-left: au... | dc5eb875dae4968f2c39bbc0fe23d80e70e6fbbc1569d15cceeb8cc68ce83cd3 | ['8fefeb65bce94942bb93fd8b69e15181'] | I have a custom post type "project" with a taxonomy "taxoproject"and I have a template page "template-project.php" with a query loop to display my post.
In this loop I need to display each category associated with the post.
This is my code :
<ul>
<?php
$terms = get_the_terms($post->ID, 'taxoproject');
fore... |
891d155bfec39bd4133f777c3bbba0e8d023ca68de638c70189e3ee179ec4798 | ['8ff52c81cd8d4647991d0f5323f34c21'] | I'm using a pretty simple ffmpeg batch script, but it can't convert videos with single quotes in their titles. If the title is Boogiepop Phantom - 1x11 - Under The Gravity's Rainbow for example, I'll get the error [Parsed_subtitles_0 @ 000000670ea89ec0] Unable to open Boogiepop Phantom - 1x11 - Under The Gravitys Rainb... | 365971a27ce03f2ab3fb692e56cabb5a1ebfac10e68b0df4ad9c103f96255355 | ['8ff52c81cd8d4647991d0f5323f34c21'] | My problem is identical to this person's, except I'm using ubuntu/trusty64. I get a 404 page when I go to localhost:4567.
Vagrantfile:
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision :shell, path: "bootstrap.sh"
config.vm.network :forwarded_port, guest: 80, host: 4567
end
... |
6986667697cfa71ab200e34d9ef767770e3dc35db89af65ced1e8d1c4dad42bf | ['8ff7e4bf66cc421080c64526d2d06f92'] | I've used 640, 480, 0 as an input, but it gives segmentation fault. WHat could be causing this to happen?
/* Changes the size of an image, allocating memory as necessary, and
setting all pixels to fillcolor. Returns 0 on success, or a non-zero error code.*/
int Image<IP_ADDRESS>resize( unsigned int width, unsigned in... | a8dce2d404bc343e35e288fa99c35c7dde27594fff21d532ec6e99646be4dd17 | ['8ff7e4bf66cc421080c64526d2d06f92'] | I tried to answer my question here: Submit two forms with one button
(but couldn't get it solved)
I have a HTML page displaying a form. I can click an "add more" button and append another form to the page. I want to be able to submit all those forms with a single button.
The initial form has this header:
<form clas... |
e4ea83c7cc04b79ba838d490019e35dbf983e225dcff0cc19eb15a8cb84d675c | ['8ff83075f47a4381a1c4ac2829e31641'] | Como dices, al ejecutar la query, '$rutaImagen' no siempre es la ruta. hice un var_dump al $query para ver que es lo queestaba pasando a la bd. **Pues al sobreescribir $nArchivo, lo deja en blanco. y en la query solo se visualiza la direccion de la capeta sin el nombre del arcivo.** | c359fced593c22ab3b3ee594c1a31b75cdeb2dbca53f557c6d394ee1f416955a | ['8ff83075f47a4381a1c4ac2829e31641'] | <PERSON> , I did read the question "Why does car insurance also insure for injuries **rather than only insuring the car** itself?" , and the body says "Why not only have the drivers **insure their car** and then let everyone purchase separate insurance for injuries?" ; [[emphasis mine]] ; Also, OP says "in theory **car... |
56e1d6b207d551716d8050c603d45c027fdd0f51a821dc466958ed129945a9e0 | ['901466b00ee049eeaa22ee634971a871'] | The correct exception is VALUE_ERROR. However, OTHERS should catch that error too. The problem with your code is that the exception is being throwed in the declaration section of the block. If you move that assignment after the BEGIN you should be able to catch that exception.
DECLARE
v_order_no NUMBER(10);
var... | 967487fd2c78fe9be5fd5517551505bb066e727816baf54d696d36733afcd7f8 | ['901466b00ee049eeaa22ee634971a871'] | Another way to do it is to define the complete structure of the string
and extract the second group:
WITH data_tab AS (
SELECT '1540_INPUTTER' user_name FROM dual
UNION SELECT '1540_RAZZ25_UNKNOWN' FROM dual
UNION SELECT '1540_RAKIB17_OS_WIN10' FROM dual
)
SELECT REGEXP_SUBSTR(user_name,'(\d{4}_)([A-Z0-9]+)(... |
079d30518fd22075b78ae3ae58f17336dade6f9bf23afe04397d188205c53c65 | ['901487e9f8374943b94d39ca5a5de6d0'] | I'd like to figure out whether it's possible (and semantically legal) in Modelica to simulate a model of a first-order transfer function, with a time constant equal to zero (T below). I'm using OpenModelica 1.15.0~dev-48-g3656b95, but I'm asking the question in a general Modelica context.
My context is experimenting M... | f01df086f6611c4fc681807b6b1d6b5a5e7db5694641fac285647f8f5522d54e | ['901487e9f8374943b94d39ca5a5de6d0'] | Many sources on this topic points to eithe using a plugin or changing some PHP code. However, a newer feature (WordPress 4.7) allows adding custom CSS to a theme (which is bound to that theme, but is not overwritten at theme updates). This saves the need to create a child theme. This tool is accessed through the "Addit... |
9b42b954fe561c694080f3cd881124d8115bd0d412775447289f1c6bb7eecd50 | ['902441dfb0634bb1acb71173ed6e335e'] | This is a simplification to the purest case of a problem in a embedded system with arbitrary limits that i cannot control
Let there be an array of anything, for example words:
["apple", "pear", "banana", "orange"]
Let there be an array of indexes (starting at one) to remove items from:
[1,3]
We need a function that ret... | 41e19da65f16331bdc79de37fc69288748872b5a0e8b145023410181c390f134 | ['902441dfb0634bb1acb71173ed6e335e'] | I have a payload that i want to validate using JSON schema, but there this case that i don't know how to translate to a schema.
Let's say i have this object:
{
jobs: [
{ title: "Developer", salary: "100", actual: false },
{ title: "Plumber", salary: "200", actual: true },
{ title: "Teacher", salary: "100"... |
a6a13657275d5d23f1c5a1b270f60cde7fd5e7bb97c90c5f1e18bd6482a16b35 | ['9025e48f89c74c94b5b5669d77ec100a'] | Apply logic. It would make _no sense_ for it to mean "exactly 2" rather than "at least 2". Since lots of aspects of Stack Exchange expect people to use basic logic and / or common sense, there is no reason to change this just so people don't have to use common sense. | e2197c9176db229fbc61dbb6edb0a5ff940723bc74c4d447540927f44af7d25e | ['9025e48f89c74c94b5b5669d77ec100a'] | Errors relating to having a file in the current directory named the same thing as a standard library module. Errors relating to having a variable named `list` or `dict` etc. The problem finding duplicates is that none of the titles or questions have any common keywords from one to the next! |
62b1a288ad958ccfd3f813d1d94789d77ab1cbb6ad898996f5a9393ea0caabe0 | ['902dd8bc01bf4b998295901ece015767'] | I'm using this function to crop an image and when I use it, it doesn't release memory, I tried not using it and the memory works fine.I can't seem to find the problem with it.Please help
- (void) processImage:(UIImage *)image {
haveImage = YES;
UIGraphicsBeginImageContext(image.size);
[image drawInRect: CGRectMake(0, ... | 37be8c5d5a5f27d8641a0bbe68e5174e39eef815a499b6c6b301237150a14ee9 | ['902dd8bc01bf4b998295901ece015767'] | You can try this,
First make a view on the origin point x = 0 y = 480 (for iphone4) and then run this code.
CGRect theFrame = self.viewMenuShare.frame;
theFrame.origin = CGPointMake(0, 480);
self.viewMenuShare.frame = theFrame;
theFrame.origin = CGPointMake(0,480 - 187);
[UIView beginAnimations:nil context:nil];
[UIV... |
38cc93cdbf33bddb9e3542621c27785d4f328058a56d85b744d3fbc4552d11b5 | ['9034c793af204d95bda21480eea50cdf'] | All licences are available until ArcInfo. The Conflation toolset is only for polyline feature but I am using polygons in this case. Currently I removed the ET Tool in the script. Its the last step that could be done manually. Now I can run the script with python 64 bit and have no memory problems. Nevertheless thanks f... | 5a5cb9a8407e2afcd3344ebd0a1727b10bd8f5b0ded40c59a1ece700cb48fb3f | ['9034c793af204d95bda21480eea50cdf'] | The simplest way I can think of to remove noise from this kind of recording would be to use the noise removal functions in Audacity (https://manual.audacityteam.org/man/noise_reduction.html). This allows you to select a section of noise with none of the target signal and get a noise profile. You then remove spectral co... |
c0ffbab26fb6d4c04dcca733216c91e804e2f03f52655f678578469b02373df9 | ['90370ec684da449994eb0b6dfd7467b6'] | I like this explanation, but it's still missing a piece that I'm looking for. Perhaps my question should be, how does one go about *proving* that your new g(x) is actually identical in every way to f(x) except for at x=11? In this case is it just by inspection or is there something else that can be said? | b3f11883a8239f0d4f2129c1efb81679a4660937da081c8c7c255b828b3b75e3 | ['90370ec684da449994eb0b6dfd7467b6'] | Yes and no - the actual process can be seen as a series of small waterfalls but the difference is that the process evolves and is improved upon from the input of the entire team (dev, qa, business etc), in retrospectives, which should lead to a much tighter unit which is able to react to issues and accurately plan and ... |
e19ddd93e4dc56353095977951a15a205dd8bb47540b30dbdd2cdfdd82ff5b82 | ['9040521d456c4163be0333d3a5fee3fa'] | Thank you very much, <PERSON>.
You code works on the R terminal, but doesn't on the linux terminal. I think its because the readline() function, so I've edited it using my userImput() function. I wasnt thinking about the repeatlooping.
Thank you again
repeat {
inp <- userInput("Would you like to delete and re-run ind... | 4a81cf4087aef44eeec4a45bd745955dcfdbd132a26f2bbff3dfa2aaa303fa45 | ['9040521d456c4163be0333d3a5fee3fa'] | I have several non-tab separated files. I would like to merge them and create a single file with some information about all files.
I've tried this code but is not working when I use looping for
The original file is like
Warning: Output file '02-MappedReads_HISAT2/sam_folder/SAMPLE01_unsorted_sample.sam' was specified... |
dd2c6f332cf908a7037f62c3b0b91e47851cff96a99890cd44fc4489b4af8837 | ['90454f4ee092422ea10e209eda9bb5da'] | For a school projecht we want to read data from the data pins and send them to a php aplication. We get the data and can make a json string from it, but when we try to send the data (multidimensional) the $_POST var is empty of the php script (it returns the $_POST var).
Do we something wrong? we can not find a working... | 17c4981546631295394449bf9bb8af8aeab2722d84198f0e7e2334f317d5ea78 | ['90454f4ee092422ea10e209eda9bb5da'] | I load json from a php file but the json contains other data. The events are placed in the 'fullcalendar' object but i do not know how i can select the data.
I load current the data with this code, can someone point me in the right direction?
Greathings <PERSON>
$('#Agenda').fullCalendar({
lang: 'nl',
... |
6b48e28958d3cf26ba79bd0622738577bab4035a8f881798d9b8730200689816 | ['904769ca261c43f99f2d1e890f811f6e'] | Here is <PERSON> highchart stacked bar stacked label issue
Highcharts.chart('container', {
chart: {
type: 'bar'
},
title: {
text: 'Stacked bar chart'
},
xAxis: {
categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
},
yAxis: {
min: 0,
title:... | 1fd55aff16b59c31bde1c24c274040529a01cee36382a259483337f335b3473f | ['904769ca261c43f99f2d1e890f811f6e'] | Here is the js fiddle Working Map
Highcharts.mapChart('container', {
chart: {
map: 'countries/us/us-all',
borderWidth: 1
},
title: {
text: 'US population density (/km²)'
},
exporting: {
sourceWidth: 600,
sourceHeight: 500
},
legend: {
l... |
e161a07705ab06a93b9be921772f4c48f957ffd2c800a35b0155d0096309993a | ['9048da211df140dcad56161ba8859959'] | I have got the the next task recently: increment the version of the sharepoint feature each time when we are building the project. I have completed it successfully using the attribute "Version" in feature.xml file. I change it executing the custom code within MSBuild. So, the feature version in xml file changes, but ho... | c96e210cbdfd4068b26c9c5053d74eb07e44740852e1714123452a8d6884b40e | ['9048da211df140dcad56161ba8859959'] | I have two different servers:
Jenkins
EC2 instance (my vuejs application)
So When I am trying to deploy vuejs application using Jenkins SSH Plugin to remote server
but it can't connect
The log :
[SSH] executing...
ERROR: Failed to authenticate with public key
com.jcraft.jsch.JSchException: invalid privatekey: [B@482... |
ccdf97ad3be7a8783a9926767bc3f41def68da0b37b92878e7e292aa28b9c97a | ['904962aa3f0e434ca3752a47fc85368e'] | You could add a data attribute to the button elements when they are clicked, and then check which buttons have those attributes.
$(button).click(function(){
$(this).attr("data-clicked", true)
})
You might want to add a specific class to the buttons when creating them to target them with a selector above, or you cou... | f372bc50bb2093afcc2d081a270c18f57a20feab6b7b7693a2cbf33347fddb48 | ['904962aa3f0e434ca3752a47fc85368e'] | var tab1image[i] isn't valid.
tab1image[i] is referring to tab1image which is a value that exists, so you don't need the var on that line. You're setting a property of the existing tab1image variable, not declaring a new one.
However, if you'd like to convert an array of sources to an array of images, you can use the m... |
0d5c4d9d82e077f82364e8ebac24994c17a98f6caecb6bc8a26e5d3713d431cf | ['9060996a34fe475fa91145165cceea4f'] | i using ffmpeg to create a streamable mp4 video file for play online. but converted video try to load 3 - 4 MB data of video at start. then video can be play and seekable.
i try to remove start load data by different ffmpeg commands. but each commands had problems.
my first command(load 3-4 MB data of video at start ... | d0643d46e1f29c2ad889fe7de2180428643998d619aee77175afeebce1d32653 | ['9060996a34fe475fa91145165cceea4f'] | i using windows and cmd to move some files in a rar directory into root of rar by command line?
i am using windows and cmd to rename files
i can rename files by rn and rar project:
rar rn out.rar file1.jpg file3.jpg
it work
but this is dont work:
rar rn out.rar files/finf1.jpg files/finf3.jpg
where is my porble... |
de9d302d8ba76d67b80c331a611177dcacbbf85c5787d197efe5dbce06662610 | ['90711c7383094aab83b7e7d34de1814f'] | In GridView.builder, we must give a fixed value for the itemCount property. So what is the best way to update this property when we adding a new image to the grid view by uploading it to firebase storage? Here I just used the image name to get the image from the firebase storage. But I need to change this to get the im... | a928a1965690c7cf000d332491d3341d7e771f2a016920fdf9224e14ba2a7389 | ['90711c7383094aab83b7e7d34de1814f'] | I'm trying to save an image to phone local directory. Here I use image_downloader package for that. Here's my code
class DownloadImage {
Future writeToDownloadPath(GridImage imageData) async {
try {
var imageId = await ImageDownloader.downloadImage(imageData.url
,destination: AndroidDestinationType... |
799989eff073334a218c860c0c352d31172a07bc8279cee2799bcfb182728bf6 | ['90726540061f4ac4bd57c75c917735a8'] |
Hi I have this code for XSS filtering:
public class CrossSiteScriptingXSSRequestWrapper extends HttpServletRequestWrapper {
public CrossSiteScriptingXSSRequestWrapper(HttpServletRequest servletRequest) throws IOException {
super(servletRequest);
}
@Override
public String[] getParameterValues(String parameter) {
... | 4e0e056fb618d5e0d434121a773665e39e60b110db2e40201bb84b9248ec47d5 | ['90726540061f4ac4bd57c75c917735a8'] | I have this SQL query written in JDBC which contains dynamic table and fields names:
private String checkDimension(String tenantId, String prefix, Long schemaMetaId, Long transactionalMetaId,
String dimension, String dimensionValue) {
DataSource tenantDataSource = tenantDat... |
611ad2dc2c6ca2c61b6bc42051a4503acad22d1fcef70b3e48a169d82899202f | ['9073ffd729a14c55bd5a99f41cc6a3dc'] | you can access #document methods on server side as well just you need to properly link files . on whatever server side language you are working there is a method to add dynamic data lets say you are working on node.js with handlebars templating engine then you can do something like this
<div {{if conditn_true}} class... | 913e4bfaeea0b81c3ff7d22315f28fe94a5addf6febe5df3692cb9d13223cab0 | ['9073ffd729a14c55bd5a99f41cc6a3dc'] | if intellisense in not working for react js or javascript or node js this solution will help for windows
uninistall type script by typing npm uninstall -g typescript
install specific version of type script that is 3.3 by typing npm install -g typescript@3.3
add the typescript location in vscode by navigating to file >... |
5b342c4fb3f3476668cdcdd1b25582da96b6f7ae7f928aa36300d44f9759e818 | ['9079e7bdf9344e43991c94037c3cb178'] | There is something I am not understanding and I guess it must be pretty basic.
Can someone please be so kind to explain to me the relationship between Classes and Objects enough so that I can understand what is happening below?
Both Location and Name are properties of the PivotTable Class and return strings.
Why do the... | 1b6781dffba84f473793e8f834cebaf04065afdddc6688743917952f2b65c5c1 | ['9079e7bdf9344e43991c94037c3cb178'] | This
Range("Table1[#All]").Copy Destination:=Workbooks(5).ActiveSheet.Range("A1")
works as I understand to expect but this will not and gives
Run-time-error '1004':
Application-defined or object-defined error
Range("Table1[#All]").Copy Destination:=Workbooks.Add.ActiveSheet.Range("A1")
Tried understanding help here b... |
a9bf9a6db4a9b3f13a63843f519af653443cc81b67bee869cfbaafe1df7ed654 | ['908b8f0713af43eab998e3afd625aa68'] | I am just starting to get into server hardware, so please bear with me.
I bought a HP ProLiant DL380 Generation 7 with a LFF drive cage and I do not know which SAS drives are actually compatible. Does every SAS drive work?
In particular i found this cheap IBM drive on eBay (IBM 45W7765 45W7766 with 3TB and 7200rpm) a... | ae57cbf0b740f87dd5b32bd3463c95f624e2f5dc8de99db79f2bac630703a6ad | ['908b8f0713af43eab998e3afd625aa68'] | I can't comment yet, so i just write it as answer.
The cabinet itself typically doesn't have cooling. The cooling (the actual fans) are located inside the individual chassis and blow air from the front to the back of the server. Cooling on the cabinet doesn't make much sense. A small air conditioned room would be perfe... |
6b30e76cc9264b262f69a8f7ee03ca81078ad8007b3c90eae2f6ff062afd0f32 | ['908fad8d2719433fb874ca8e9e3376ec'] | I have created a css dropdown menu.
The menu items have the same width as the menu button. But on applying border to the menu button and menu items (menu items are positioned absolutely)(used border-box for both menu button and menu items), the borders are not aligning correctly
Please see JS Bin
HTML Code
html, body... | 2c619470df46ed5f5886ccf95d25cc5ef7efda59e6fb4e228d1ff5b64ca306bb | ['908fad8d2719433fb874ca8e9e3376ec'] | The spring boot web application (sts-bundle) is showing the error:
Archive for required library: 'C:/Users//.m2/repository/org/springframework/boot/spring-boot-autoconfigure/1.5.6.RELEASE/spring-boot-autoconfigure-1.5.6.RELEASE.jar' in project 'demo' cannot be read or is not a valid ZIP file
Can anyone help me with thi... |
1502e16a6a2919bf40d9377ce3ac76137c89ace8c1ac43228d3cc4a074218cfd | ['90945909e94b43f59b35008866112013'] | This was the best I could do for you. It's just a lot of formatting and method invoking.
var <PERSON> = new Date();
var am_or_pm = today.toLocaleString([], { hour:'numeric', hour12: true });
var TK_send_date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
var TK_send_hour = today.getHours();
... | 599c6aad3d6ac1b09b23c542ef1306520b25b0826af2cfa0010f73fd76c68c0e | ['90945909e94b43f59b35008866112013'] | I would solve this problem with some string interpolation. Consider the following:
<input type="number" name="minutes" min="0" max="59">
<input type="number" name="seconds" min="0" max="59>
And then for the C#
var minuteTime = Request.Form["minutes"]
var secondTime = Request.Form["seconds"]
FormattableString finalDat... |
d4f20cf3f49cb297873e5735481177b80422efbfb4adbf3d19b49b0786bc1d73 | ['9096e6a17467414dafb83e940eef3697'] | I read <PERSON>'s derivation of the Black-Scholes equation in "An Introduction to Financial Option Valuation". The issue I am having is that it relies on some assumptions related to a continuous time asset model, but these assumptions do not seem completely justified. I am hoping that someone has seen this derivation (... | d1f88428b7b9e16b4963d8fd731f85ccd849e3254f3c50dadfbbe2536f4aff6f | ['9096e6a17467414dafb83e940eef3697'] | Sure there are such models that contain no transitive models. But saying that there exists a model of ZFC with a transitive element that is a model is different to saying that every model of ZFC contains a model like that. Showing that every finite subset of a theory is consistent is by the compactness theorem enough t... |
c03ba61ad2970cd3c4c7f46a9a4f427695b798c16f91d36e7922d4aae67f3636 | ['909a5fb1838d41a88cf3a3714f292450'] | This is the code that I used in the reducer to add items to cart, the return statement below is what I was trying to use to not allow any duplicate items in the cart but to change only the quantity of the item. But it still did not work. The quantity does update but I still end up with duplicate values. So please help ... | 8c3c723341bfaf0f54368d4ac45a179c518d1bfd7e40a54f10b535a28798200d | ['909a5fb1838d41a88cf3a3714f292450'] | I am trying to get data from the firestore and then filter it then map it like so:
return Inventory
.filter(x =>x["sub_category"] === item && x["category"] === category)
.map(({id, item, price, quantity, image})=>{
//sets the default value for the item with that specific id
const defVal = parseInt((selectedQty.id === ... |
693482ca0ebfde8d1366b990054c78333425d451557318d7d6bf3fcabc7ef56e | ['90a2f88b95b545a2a3aa0a20f4e247ab'] | While I'm not necessarily opposed to some kind of change in the way reputation is displayed in order to level the playing field, so to speak, for new users, requiring an upvote / downvote is not the right way to do it.
If I know a solution is correct and complete, I will upvote it / downvote it based primarily on its c... | 948fec27c8498a797398bce42c8f2c080ce6eff496242f0e9479650cd681b6fa | ['90a2f88b95b545a2a3aa0a20f4e247ab'] | In all other areas of the UI, you're still voting to 'close' the question:
And the votes are still 'close' votes:
So once enough 'close' votes come in, the question is put 'on hold'. This seems consistent with the message in the on-hold box. It shouldn't be changed unless you change it everywhere. Like this:
This w... |
06f2af74b7a1aa6fa947e72aecf1847b347df0a8b51abca00a8d65ce18bc0065 | ['90ae1cc5ac364dfda51e62b3497290fd'] | Try setting the MaxRequestsPerChild variable in Apache, which will cause it to kill and start its children after they have served the specified number of requests. In mod_php, this can be as low as 100.
PHP (especially mod_php) is known to do this. Alternatives include running PHP under FastCGI, which will prevent Apac... | 844adbc0effeccb6bc0219960c465c9210d86ec5bb2416b6da9ca0ad7df0d3fb | ['90ae1cc5ac364dfda51e62b3497290fd'] | Simply put, there are two key-pairs for DHE_RSA instead one key-pair of RSA_RSA.
For example,
for AES128_CBC_SHA(long name is RSA_RSA_AES128_CBC_SHA), you have one key-pair for both key-exchange and authentication.
for ECDHE_RSA_AES_CBC_SHA, you have two key-pairs. The ECC key-pair is temporary for key-exchange. The R... |
8ed55c877819109d507ac732075ccdad683d95a6295bb4a56157f8042c1a4d8a | ['90b148957082462496fd713d683d48e4'] | Well, i don't fully agree, because this is not how the font looks when i try it out on myfonts, where i bought it. Putting weird swashes everywhere is objectively wrong, when i leave all settings in default. I expect to see the "Text" variant but I get the "Contextuals" variant. That is not a matter of opinion (this se... | 47fa4badd9925cd142773d71e07b149d20edbdd7708ad94ae9e1e57ada728ee7 | ['90b148957082462496fd713d683d48e4'] | Other popular blogging platforms include hosted software such as Textpattern and Movable Type; and non-hosted blogging platforms like Blogger, TypePad and Tumblr.
Most of them include support for “themes” or “templates” that you can modify or design from scratch to match your website’s look and feel. Here are a few lin... |
d4a3eb850d42cd945e7d0b67569b5884332a017c23f42d14c4ea4e6d8bf60a85 | ['90b57df5f0f54e84b6dc0ba224c4e23d'] | I've got a clock in my widget that I'm making and I want it to update every minute in sync with the system clock. ACTION_TIME_TICK seems like the perfect solution however much of my research says it's impossible in an AppWidget while others say there are workarounds but their very vague.
I'd prefer not to do an AlarmMa... | 7db26baf17ace447d5f702e6d301f9054a4c4ee2ca93b759f842aad01648e6b3 | ['90b57df5f0f54e84b6dc0ba224c4e23d'] | I'm trying to figure out designing for multiple screen sizes/densities/etc. I thought "dp" was my answer but it's not working the way I thought it was going to.
Here's what I'm trying to do:
I have a header and footer section for menu items that remain static. Then I have a ScrollView between the 2. Within the ScrollVi... |
13e58928b6ced5489e91b1e8b8bbaf5a82167bbaa8a0b305f796ec7f0f82a57b | ['90ba882af81949b19ee76ff13ce8c687'] | The assignment operation in pl/sql is :=
CREATE TRIGGER C3
BEFORE UPDATE OF rate ON Magazines
FOR EACH ROW
WHEN(:NEW.rate < :OLD.rate*0.75)
BEGIN
IF :NEW.rate < 0 THEN
:NEW.rate := 0;
RAISE_APPLICATION_ERROR(-20003, 'Rate should never be below 0.');
ELSE
:NEW.rate := :OLD.rate*0.75;
EN... | 116899c24431b4f11eb78e94e8e4c58fc27be453c86ad300dae0f4f680cce432 | ['90ba882af81949b19ee76ff13ce8c687'] | When you have a select statement in a PL/SQL block, you have to provide somewhere to store the results. Try this.
DECLARE
x NUMBER := 0;
cnt number;
vname varchar2(100);
BEGIN
LOOP
select view_name,count(*)
into vname, cnt
from VIEW_TABLE where id = x group by VIEW_NA... |
f364230bd3db701ef9618f28196cd74b8bef2c90d92deb0f925a8c8aa44645cf | ['90db127d8e2146ab85e48b3b0b5dbb9f'] | I'm surprised I don't know how to do this, but as it turns out I really don't; simply put, I'm trying to make a side-scrolling shooter game, a basic one and in it, I have 50 stars spawned on-screen through a "for" loop upon the game starting. There is a function which does this and a listener is at the beginning. Probl... | 3848108b1cdebe181e416a39bfb25dc7be965879e242f4b0d64e5b73e52ecf2c | ['90db127d8e2146ab85e48b3b0b5dbb9f'] | I've a bit of a problem trying to make a mod for a particular game. You might have heard of it, it's called Don't Starve Together.
Inside the game's data, there's a file called tuning.lua which handles a lot of the initial variables. Inside of it is just a function, under which are some local variables and a table/arra... |
42127a95bf220d90b2f00f4b3d661f5a684f81b4a56907180f87619326bb632e | ['90db8d8b380041f186abd64c51d7e868'] | I want to send a json request and embedd a variable in the post data.
I did a little research and I came up with the single quotes around the variable.
#!/bin/bash
FILENAME="/media/file.avi"
curl -i -X POST -H "Content-Type: application/json" —d '{"jsonrpc": "2.0", "method": "Player.Open", "params":{"item":... | be0b9f43100324d98619994acfb1b4a54c93bdf3c3458b6c53b5158c78c2aece | ['90db8d8b380041f186abd64c51d7e868'] | In my bootstrapper Theme.xml I want to reference a path variable from a .wxs file.
In Bundle.wxs I reference certain variables using the $() syntax.
In my <BootstrapperApplicationRef> I use a ThemeFile.
From there I want to use the same variables (for example var.BundelVersionNumber). How can I achieve that?
Bundlex.wx... |
c918a48e56f66d5f69b912eee4442cbfc675900f402521f82a049973e54755a0 | ['90f163eece9e42cfaf2391d796d2d37b'] | Let $f:(t_0-\varepsilon, t_0+\varepsilon)\to\mathbb{C}$, be an analytic application, such that: $f(t)=0\Longleftrightarrow\ t=t_0$.
Is it true that there is an analytic function $g:(t_0-\varepsilon, t_0+\varepsilon)\to\mathbb{C}$ with $g(t_0)\neq 0$ so that:
$\dfrac{f(t)}{|f(t)|}=g(t), \forall\ t\in (t_0-\varepsilon, ... | 408892d07539bccc337885c893c894cc806b36b464443d588ea65684cb1382fb | ['90f163eece9e42cfaf2391d796d2d37b'] | The feature you're describing is essentially a pretty version of "replace all", which Notepad++ and any decent text editor will have. I'm not aware of Notepad++ having the feature exactly as you describe it, so I'd just do a "Replace All". (btw, I'm using N++ version 5.8.7)
|
0342c9f64dc34bf1d6d9d217e6c49e13e4ea32c2c90054c6f13350e34273f6ad | ['90f7770a78fc4f3085492cc270472c96'] | you have to enable the output reports explicitly with jsChiliCat (Note the -junitReport and -coverage options in the example below).
The options you provide to the chilicat jar command give you with the ability to set the location of your JS Src, Tests and Libraries. However the GitHub example is incorrect, you need... | 48196c8b54eaf1dc22099de9e0f3ea1099f81402e016324c8f7c38eb02feb05d | ['90f7770a78fc4f3085492cc270472c96'] | I've just been struggling with using JSON as the DataSource to a Jasper Report and with a lack of decent examples on the Net I thought I would post this here for future reference.
This example is how to use iReport Designer and a JSON DataSource.
Firstly, the input JSON:
{
"userName": "Evil Raat",
"details":... |
f33a3e364cd7dcabc9e6a94215d80ed208d2651da97fda5972076748a0535728 | ['90f86e867712449e851c9bfb2bf93d77'] | I am developing one iOS application in wich I integrate FaceBook via Facebook iOS SDK 3.1. I want to change User created page information eg. Cover Photo, Profile Picture , Description, About etc. programmatically. I found some urls on http://developers.facebook.com/docs/reference/api/page/ but I dont't know How to use... | 4b62c145e6fc8f15e5b944ec20e02604eab7c3576a70152c835aeb8c1170e172 | ['90f86e867712449e851c9bfb2bf93d77'] | I am developing an App which has a search functionality for user's emails with Gmail Account, But I don't know exactly how to integrate Gmail account into my app and get the list of all emails. And Please let me know if any Search API is available of Gmail for iOS?
|
100afb49538a6b1cb697e912d67ee52f6be4e9f5fadf549a2cd468b12855411c | ['90fc7143e4654f94a0fc683d0700963c'] | Have you tried to use LINQ?
using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static void Main()
{
var charList = new List<char[]>();
// Initialize list of char array
char[] array1 = { 's', 'a', 'm' };
char[] array2 = { 's', 'm', '... | c03721c283d5e6b90cc554b6278812d7d36cd66f9468843f39c0b95939cd18a1 | ['90fc7143e4654f94a0fc683d0700963c'] | I found my solution by using StartActivity instead of LoadApplication.
By creating a second activity:
XamarinForms.cs this activity load the app()
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
usi... |
ed5dad6b928696cdbbf77f2f7ecad55c0f6df42c30fc1a757a814f42c7ce09b5 | ['9100e3072c5c45e38809affdb0b963c3'] | When app is in background, onResume is not called but I get some kind of default notification in tray with blank icon and no image.
When I click this notification, onResume is then called and app is opened but does not navigate to the correct route.
Firebase message is behaving as expected when flutter app is in foreg... | a96eed4f4a22370c10d93ab3654ddf416f710f2f36829ae3bbe577ca7ab6dc8a | ['9100e3072c5c45e38809affdb0b963c3'] | For all those that may have lost days like me to this issue.
The notification I was sending had a parent 'notification' object when it should have been 'data' object.
From this answer here: https://stackoverflow.com/a/52116944/1295611
As pointed out by @boformer this only applies for 'Notification' messages. If you're... |
6da6ab65fa036f81aa2e7801c7e24c41aa9e8687401b27b8ae7b0854989d6083 | ['91080d511c4241499d32ae70252eba55'] | One way would be to do 5 case when statements in your select. You can do something like
(Case When session_from > 04:00:00 and session_to < 05:10:00 Then tapping_on End) A
(Case When session_from > 05:00:00 and session_to < 06:10:00 Then tapping_on End) B
etc.
You essentially make the columns and then display whatever... | 3f5a8e6bb3e14b8576d7df92aa070d3b5b46d872ca7910a5f4c144906ee2009f | ['91080d511c4241499d32ae70252eba55'] | I am creating a table to house my XML data that is coming in to my SQL Server database. Below is my code for my Create Table statement. My issue is I want to create a primary key that is a combination of two columns (SpecNum and IssueNum). A record should look like this (50125-001). However I am having issue with type ... |
ae8f25ce9db2fb79a454c0af2e3de06d483972dd90075df5ca3928035f1912d8 | ['910bfd95add4474cadb760fd1cee521e'] | I followed all the steps which are listed here , but I don't know why I am not able to build the project. I got some compiler errors as
/Users/macbook2/Library/Developer/Xcode/DerivedData/MyApp-acboozafiejdawbpwucjmgcisgvy/Build/Intermediates/sqlcipher.build/Debug-iphonesimulator/amalgamation.build/Script-9069D08A0FCE1... | 4837d73907df7090d6e2dcf3e33b335371cb25a268a271cfdd1e37a304c26039 | ['910bfd95add4474cadb760fd1cee521e'] | First define a dummy url
#define kDummyURL @"dummyurl://dummy"
Then in view did load add a javascript
-(void)webViewDidFinishLoad:(UIWebView *)webView{
[webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"$(function(){$('input, textarea').keypress(function() {window.location = \"%@\";});})"... |
5fc89fde079e5886f2dba3075d79bd4b42f131be4999247e92f20c57d203f2a7 | ['911e0997d6a74129a4238d30c5a8eb98'] | I want to pass a javascript function to a dynamically created div, like I am attempting below. If I replace the script string with an ordinary string this works, but is there a way to pass a JS script in createTextNode?
newDiv = document.createElement("div");
newContent = document.createTextNode("<script type=\... | a9b910c850cd67527109ffe14ca65745ae6d052b525fb423a9de44429bf1c7be | ['911e0997d6a74129a4238d30c5a8eb98'] | You can play around with width and height percentages & width and height values in options variable and even push the legend to bottom as one single line. Then pass the options to the chart you are drawing.
var options2 = { width: 265, height: 200,
chartArea: { left: 60, top: 20, width: "100%", height: "60... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.