text stringlengths 23 30.4k | embeddings_A list | embeddings_B list |
|---|---|---|
For starters I am using this GREAT answer to achieve custom post types as well as a custom way to insert those post types into other pages, you can view that answer here: Custom field/meta populated by dropdown of existing posts? I am running into a problem however when wordpress auto saves itself, it clears whatever metadata i have put into the forms. EXAMPLE: I select the 3 drop downs I want from my metabox and hit update. The page reloads and the 3 choices are still selected. In phpMyAdmin i can look up the metadata and see the array in place as it should be. I now wait for wordpress to auto save. As soon as this happens i can either refresh the page (not update, just refresh) and the metadata is lost, or i can look up the metadata in phpMyAdmin and it will display nothing (ie: its gone). I'm guessing that this has something to do with needing to tie into another hook (some sorta auto update hook) or something, but even then it doesn't make sense that it would actually delete your metadata (rather than just not auto updating it). Last note: If you copy and paste Mikes code into functions.php, you should be able to recreate my error (in wordpress 3.1) very easy. | [
0.01585402339696884,
0.0061290068551898,
0.008076613768935204,
0.019792111590504646,
-0.000017886050045490265,
-0.001001069787889719,
0.006131801754236221,
0.02013300731778145,
-0.015256891027092934,
0.01102413609623909,
-0.007797162048518658,
0.011552730575203896,
0.008586104027926922,
0.... | [
0.23072566092014313,
-0.17853599786758423,
0.4282147288322449,
0.1312132179737091,
-0.28813639283180237,
0.0681394413113594,
0.5895934700965881,
-0.17830221354961395,
-0.36814022064208984,
-0.6662864089012146,
0.13997213542461395,
0.5975115299224854,
-0.43168413639068604,
0.036095634102821... |
Is there a way to quickly sell goods at the trading post in GW2? I know there is the sell at trading post option by right clicking the desired item but that loads up the trading post every time and can not be considered a fast method to say the least. Lets say i went exploring and came back with bags and bags full of stuff i want to sell. Loading the trading post is fine but having to load the trading post every time over and over again takes a long time to do. I am aware that i dont have to close the window of the trading post every time but simply selecting the next item and selling it makes it take a long time for the trading post to come back with the prices. My question today: Is there a quick way to sell stuff at the trading post besides right clicking. | [
0.01101616956293583,
0.015157580375671387,
-0.005914739333093166,
0.014371709898114204,
-0.0049107614904642105,
-0.016763025894761086,
0.006983553059399128,
0.022774994373321533,
-0.018416907638311386,
0.007532199379056692,
-0.02544679492712021,
0.01977846398949623,
0.004614873789250851,
0... | [
0.6881460547447205,
0.03867371007800102,
0.002311528893187642,
0.22840018570423126,
-0.1575053483247757,
-0.07800373435020447,
0.1990690380334854,
0.43393903970718384,
-0.21455679833889008,
-0.6034398078918457,
0.4166465103626251,
0.577092170715332,
0.22047223150730133,
0.1246381476521492,... |
Sorry if this question comes across a little basic. I am looking to use LASSO variable selection for a multiple linear regression model in R. I have 15 predictors, one of which is categorical(will that cause a problem?). After setting my $x$ and $y$ I use the following commands: model=lars(x,y) coef(model) My problem is when I use `coef(model)`. This returns a matrix with 15 rows, with one extra predictor added each time. However there is no suggestion as to which model to choose. Have I missed something? Is there a way I can get the lars package to return just one " _best_ " model? There are other posts suggesting using `glmnet` instead but this seems more complicated. An attempt is as follows, using the same $x$ and $y$. Have I missed something here?: cv=cv.glmnet(x,y) model=glmnet(x,y,type.gaussian="covariance",lambda=cv$lambda.min) predict(model, type="coefficients") The final command returns a list of my variables, the majority with a coefficient although some are =0. Is this the correct choice of the " _best_ " model selected by LASSO? If I then fit a linear model with all my variables which had coefficients `not=0` I get very similar, but slightly different, coefficient estimates. Is there a reason for this difference? Would it be acceptable to refit the linear model with these variables chosen by LASSO and take that as my final model? Otherwise I cannot see any p-values for significance. Have I missed anything? Does type.gaussian="covariance" ensure that that `glmnet` uses multiple linear regression? Does the automatic normalisation of the variables affect the coefficients at all? Is there any way to include interaction terms in a LASSO procedure? I am looking to use this procedure more as a demonstration of how LASSO can be used than for any model that will actually be used for any important inference/prediction if that changes anything. Thank you for taking the time to read this. Any general comments on LASSO/lars/glmnet would also be greatly appreciated. | [
0.026672452688217163,
0.02415974996984005,
-0.023218609392642975,
0.006492404267191887,
0.00013022497296333313,
0.0035551751498132944,
0.008807179518043995,
-0.003907518461346626,
-0.010457302443683147,
-0.022526592016220093,
0.0054005952551960945,
0.0039488994516432285,
-0.00446648802608251... | [
-0.021498017013072968,
0.08966740220785141,
0.5538539290428162,
-0.07208945602178574,
-0.41686785221099854,
0.22286543250083923,
0.23137281835079193,
-0.29492998123168945,
-0.6261422038078308,
-0.35311272740364075,
0.2579217255115509,
0.237175852060318,
-0.501276433467865,
0.51904731988906... |
I'm writing up my PhD dissertation, and I tend to compile each chapter separately. Each chapter is in a separate document, and is included in the main LaTeX file. I use `\includeonly` to only include the chapter I need, together with the Bibliography (I'm using classicthesis). Nevertheless, I do want cross-references to work (something like "see Chapter 8"), so what I do now, is do a full run first (compiling the entire thesis), which produces all the .aux files needed for cross-referencing. Afterwards, I then limit compilation to the chapter I'm working on, and compile that one. That works great, but there's one caveat. It means that **all** citations from all other chapters are included as well, which gets a bit annoying after a while (a 20 page chapter quickly turns into a 35 page PDF with 15 pages of references). I would love to have just a single, self-contained PDF of a specific chapter, with the references that are cited in that chapter. I've experimented with `\makeatletter\@fileswfalse\makeatother` when doing the first full compilation, but that also prevents cross-referencing to other chapters and sections from working, so it doesn't solve my problem. Any ideas? Thanks in advance! | [
0.019423136487603188,
0.024794746190309525,
-0.02378999814391136,
0.017597250640392303,
0.0075833420269191265,
-0.007150792051106691,
0.008425215259194374,
-0.02008976973593235,
-0.021655339747667313,
-0.010686762630939484,
0.00624583987519145,
-0.005840040743350983,
-0.01930636167526245,
... | [
0.3385567367076874,
0.5136316418647766,
0.2567859888076782,
-0.3260427713394165,
0.1169273778796196,
-0.05848979577422142,
0.33092212677001953,
-0.04847968369722366,
-0.023215435445308685,
-0.44955042004585266,
-0.10874026268720627,
0.4522841274738312,
-0.03957216069102287,
0.0148673774674... |
I've migrated recently to the new Debian stable, by installing the new system but saving all my data in the `/home` partition. I do this because I don't want the data to be lost between installations, besides, it also saves the configuration of all my applications like Icewaesel bookmarks, Icedove mail accounts. However, I think my old configuration is breaking some features of Gnome3. For example, it seems like if Empathy weren't integrated with Gnome3 at all. I can't set my status with the user menu and notifications aren't showed when anyone talks to me. I've tried to remove some folders like `.gnome`, `.gnome2`, `.conf`... to reset the configuration to defaults, but it didn't work. Any idea about what's the problem? | [
-0.002935850527137518,
0.016230151057243347,
-0.01049708016216755,
0.0007463231449946761,
-0.009265972301363945,
0.00344632426276803,
0.008892321959137917,
-0.007708556950092316,
-0.009028906002640724,
-0.005627936217933893,
-0.011691849678754807,
0.01366114430129528,
-0.011615443043410778,
... | [
0.22889474034309387,
0.2801467776298523,
0.2838394045829773,
-0.15425769984722137,
-0.27689120173454285,
-0.1318243443965912,
0.6758568286895752,
-0.12368517369031906,
-0.39622604846954346,
-0.9677891135215759,
0.10946068167686462,
0.3015877902507782,
-0.1078890785574913,
0.180987745523452... |
I am running a multiple regression looking at whether TV viewing predicts waist circumference (WC). When I ran through the tests with my tutor we placed WC as the dependant and TV as independent, then ran it again with some of the potential confounders. However, the TV variable is ordinal (1- never, 2- 0 to 59 mins, 3- 1 to 2 hours, 4- 2 to 3 hours, 5- 3 to 4 hours, 6- 4 to 5 hours, and 7- 5+ hours). Should I be recoding these as dummy variables? I also plan to run regressions with similarly collected snack food consumption ordinal data. I'm hesitant to do it differently to my tutor (who is away for 2 weeks), and think it may be too many dummy variables, but is it still ok to interpret the results as I would a continuous dataset (in terms of mins/hours)? Many thanks, Nick. | [
0.0013653041096404195,
0.01611155830323696,
-0.028092019259929657,
0.013786598108708858,
-0.029875632375478745,
-0.013378876261413097,
0.008531797677278519,
-0.000696615083143115,
-0.005059414077550173,
-0.0018996680155396461,
-0.021443963050842285,
0.004793004132807255,
0.010220659896731377... | [
0.8284196257591248,
-0.4569343626499176,
1.101330280303955,
-0.0010547295678406954,
-0.300250381231308,
0.08732618391513824,
0.43601468205451965,
-0.0072918483056128025,
-0.285340815782547,
-0.5992082953453064,
0.40949636697769165,
0.2079356163740158,
0.302662193775177,
0.5077342391014099,... |
I would like to add a colour bar to a plot. I tried to use `GraphicsRow` for this. In a `GraphicsRow`, each item is given the same space, resulting in this: Clear[colorbar] colorbar[colorFunction_: Automatic, divs_: 25] := DensityPlot[y, {x, 0, .1}, {y, 0, 1}, AspectRatio -> Automatic, PlotRangePadding -> 0, PlotPoints -> {2, divs}, MaxRecursion -> 0, FrameTicks -> {None, Automatic, None, None}, ColorFunction -> colorFunction] GraphicsRow[{DensityPlot[Sin[Norm[{x, y}]], {x, -10, 10}, {y, -10, 10}], colorbar[]}]  **The colour bar has too much space around it. How can I specify the amount of space`GraphicsRow` should give a particular item?** Alternatively, what is a better way to include the colour bar? * * * ### Answer summary After experimenting with this for a while, it seems that the situation is the following (simplified): * `Grid` and friends (`Row`, `Column`) will size the grid cells to fit each item individually (cells resized to fit items). * `GraphicsGrid` will first set up a grid with fixed cell sizes, then fit each item into the cells (items resized to fit cells). `GraphicsGrid`-like solutions are more convenient when the whole graphic need to be sized to a specification. **István's answer** hacks `GraphcisRow` by setting a negative spacing and thus pushing the elements closer together. It's the most convenient for this situation, but it doesn't generalize for many cells. **R.M.'s solution** suggests using `Grid` instead. This generalizes well, but requires pre-sizing all items individually, and no resizing is possible after (e.g. just before import). Since `GraphicsGrid` is implemented in terms of `Inset`, the most general easily resizable solution would be implementing a `GraphicsGrid`-like construct where cell size ratios can be specified. **kguler's last answer** illustrates this best. Several other solutions used `Inset` directly as well. A problem with resizing these solutions can be that the aspect ratio of elements is size-dependent (due to the absolute sizes used in `ImagePadding`), so how they fit into a fixed aspect ratio `Inset` will depend on the scale. Note for example the difference in scaling behaviour between István's solution and kguler's solution at small sizes: in kguler's solution (using a cell aspect ratio matching that of the colour bar) the colourbar suddenly get shrunk compared to the main plot at small sizes, but the tick marks will never overlap with the other plot. in István's solution (which uses overlapping square cells) the colour bar never gets overshrunk, but the tick marks will overlap the main plot. **Update:** Version 9 has built-in support for plot legends, including colour bars. `Legended` is used to append a legend to a graphics object. | [
-0.0005353785818442702,
0.00345730222761631,
-0.013547703623771667,
0.00862991251051426,
-0.02710169553756714,
-0.023682545870542526,
0.004903952591121197,
0.006053859367966652,
-0.012433594092726707,
0.0016225988510996103,
-0.007569962181150913,
0.00506164412945509,
-0.014881559647619724,
... | [
-0.08216114342212677,
-0.4065198302268982,
0.8602477312088013,
0.14874814450740814,
0.07380229234695435,
0.43429237604141235,
-0.20546524226665497,
-0.3223997950553894,
-0.12902522087097168,
-0.5801528096199036,
-0.14744597673416138,
0.37450170516967773,
0.02185453101992607,
-0.01701613143... |
I have 1:250 streams data for a few western states. I find this scale to be excellent in many settings as base hydro data. I have never been able to find a USA or better yet, NA wide dataset of this scale. Does anything like this exist for the USA or NA? Look at the attached Idaho jpg for an example of this data  | [
-0.019516805186867714,
0.014318183064460754,
-0.0049248673021793365,
0.022334953770041466,
0.0030950771179050207,
0.01647096499800682,
0.00628254096955061,
-0.006201513111591339,
-0.020999353379011154,
0.027810731902718544,
0.00846913829445839,
0.01695817895233631,
-0.021738793700933456,
0... | [
0.6115739345550537,
-0.011863231658935547,
0.1187913790345192,
0.17930170893669128,
0.0037480671890079975,
-0.09944503754377365,
0.3894268870353699,
0.13102088868618011,
-0.4826521575450897,
-0.2732177972793579,
0.1756972372531891,
0.20900271832942963,
-0.22623620927333832,
0.1566646397113... |
> If momentum is conserved when there is no externel force, why is there an > acceleration when a momentum parameter is changed (inertia)? How does it > accelerate with no external force? For example angular momentum is conserved when: ${\tau}=\frac {d(I\omega)}{dt}=0$ But in this case momentum is conserved, so both $ I $ and $\omega $ are changing, so the product rule applies: So it equals: $ I{\dot \omega}+{\dot I}\omega=0$, hence $\dot \omega $ is acceleration, and we also know the object accelerates when the rotational inertia changes. | [
0.009182524867355824,
0.008678211830556393,
-0.007797615602612495,
0.025785375386476517,
-0.012913625687360764,
-0.03178999200463295,
0.008822265081107616,
-0.040713708847761154,
-0.014217009767889977,
-0.02044624462723732,
0.0008496859227307141,
0.02116888202726841,
-0.002104443497955799,
... | [
-0.2932508587837219,
-0.5511455535888672,
0.7062838077545166,
0.05983790010213852,
0.15625126659870148,
0.31449511647224426,
-0.17742864787578583,
-0.5085707902908325,
0.02333071641623974,
-0.7487196326255798,
0.04186705872416496,
0.6958745718002319,
-0.23482158780097961,
0.137806072831153... |
I will give you an example to write a CV. or I will give you an example how to write a CV. or I will give you an example about how to write a CV. or I will give you an example about writing a CV. Which one of the above is right? If none, please, give me the correct one. | [
0.01770128309726715,
0.01846776343882084,
-0.030266588553786278,
0.03556690737605095,
-0.025821970775723457,
-0.00656471261754632,
0.013782831840217113,
-0.010166640393435955,
-0.01871676556766033,
0.0045418040826916695,
-0.009995270520448685,
0.00020022880926262587,
0.002997385337948799,
... | [
0.6195536255836487,
0.34694209694862366,
0.13591989874839783,
0.18365462124347687,
0.09177963435649872,
-0.04100871831178665,
-0.27614709734916687,
0.13297826051712036,
-0.10624082386493683,
-0.5554282069206238,
0.42507198452949524,
1.2835626602172852,
-0.1423904001712799,
-0.1850010156631... |
I'm using this code. I cannot figure out what the heck is wrong with it? $args = array( 'description',"My Desc", 'slug' => "My Slug", 'parent' => 0 ); $result = wp_insert_term("Term1", "category", $args); The result is that term is added, term_taxonomy is added. Slug is added. But the darn description is skipped. wp_terms: term_id name slug term_group 1 Uncategorized uncategorized 0 2 Blogroll blogroll 0 3 Term1 my-slug 0 wp_term_taxonomy: TT_id T_id tax description parent count 1 1 category 0 0 2 2 link_category 0 0 3 3 category 0 0 | [
-0.030271515250205994,
0.008201678283512592,
0.0003496058052405715,
0.0256805419921875,
0.0014951201155781746,
0.0022425316274166107,
0.009041099809110165,
0.015497361309826374,
-0.01197672076523304,
-0.013125833123922348,
-0.019642885774374008,
0.004445270635187626,
-0.008491721004247665,
... | [
0.21698611974716187,
0.039262767881155014,
0.5449251532554626,
-0.07112143188714981,
-0.03904778137803078,
-0.20364154875278473,
0.08988124877214432,
-0.45292043685913086,
-0.07772012799978256,
-0.41137221455574036,
0.05311087518930435,
0.6673296689987183,
-0.29114586114883423,
0.549203157... |
I often hear in English conversation or movies the contraction "ain't" (for "isn't"), but I am more surprised to see it in writing (and I am not referring to a novel, where I can understand its usage: convey common oral expressions in a text) See this question (on a technical forum) for instance: "There ain’t `ListBox.SelectionMode=“None”`, is there another way to disable selection in a listbox?" Is it appropriate in that context (formal written technical question)? | [
-0.013345280662178993,
0.004444177262485027,
-0.012198208831250668,
0.01814139634370804,
0.017603741958737373,
-0.013961467891931534,
0.005848553963005543,
0.006780492141842842,
-0.0059369709342718124,
0.0018933559767901897,
0.0037373132072389126,
0.00551911536604166,
0.0047829644754529,
0... | [
0.583072304725647,
-0.04672038555145264,
-0.22521643340587616,
-0.1722707748413086,
-0.061130184680223465,
-0.12581093609333038,
0.3049646317958832,
0.20005333423614502,
-0.490119069814682,
-0.4006199836730957,
-0.2967052459716797,
0.6056553721427917,
-0.26889321208000183,
0.30785003304481... |
I am using WordPress as the CMS for my website. For my navigation menu, I am using WordPress' inbuilt navigation menu function. You add categories, page, etc, to this and it generates a list with certain classes you can style - like `current-menu-item`. My problem lies here: * I have several categories in my menu, and some posts have to be assigned to multiple categories. * If a post was for example in a `Category A` only, then when you are on the page with that post, `Category A` would be highlighted in the menu. * If a post is in `Category A` and `Category B`, then when you are on the page with that post, `Category A` and `Category B` would both be highlighted. How can I highlight only one menu item, even though the post is in multiple categories? | [
0.009664792567491531,
0.00945708341896534,
0.002752749715000391,
0.0271487794816494,
0.007923992350697517,
-0.0044966330751776695,
0.006245855242013931,
0.00907332543283701,
-0.013835040852427483,
0.014811022207140923,
-0.01893727295100689,
0.006593612488359213,
0.0029368000105023384,
0.01... | [
0.16054679453372955,
0.5347952842712402,
0.44822949171066284,
-0.06884075701236725,
-0.29619038105010986,
0.0605592206120491,
0.13992777466773987,
0.08322907984256744,
-0.26768365502357483,
-0.6244546175003052,
0.06698979437351227,
0.2019953429698944,
-0.31664860248565674,
0.43962025642395... |
Does it work with Rivens abilities? Olaf gets spellvamp from vicious strikes does it proc his True damage / his axe / etc? | [
0.021676847711205482,
0.04026254639029503,
0.012300234287977219,
0.0010674078948795795,
0.017850393429398537,
0.04513247311115265,
0.020975347608327866,
0.028289804235100746,
-0.0362042561173439,
0.014767578803002834,
-0.013380829244852066,
0.04621428996324539,
-0.02403741143643856,
0.0136... | [
0.09373406320810318,
-0.08356839418411255,
0.4637780487537384,
-0.0694253146648407,
-0.6822830438613892,
-0.09178631752729416,
0.4996386468410492,
-0.5414276123046875,
0.06018812209367752,
-0.002605221001431346,
-0.038560446351766586,
0.47908279299736023,
0.28577038645744324,
-0.4930305480... |
I'm learning basic maths for physicist and was wondering what do we use the Dirac delta function for? What is the difference between "the Fourier integral form" and the usual way of expressing the delta function? I know how to use it from elementary quantum mechanics classes so for instance $\delta _{ij}$ is equal to one if $i=j$ and zero if not. | [
0.004666999448090792,
0.009967631660401821,
-0.022936027497053146,
-0.0075800153426826,
-0.03218889608979225,
-0.017946846783161163,
0.009020269848406315,
-0.014261141419410706,
-0.03100847639143467,
-0.03519854322075844,
-0.0006882691523060203,
0.009389541111886501,
-0.014754905365407467,
... | [
-0.017369749024510384,
-0.04871680960059166,
0.04070635512471199,
-0.16624975204467773,
-0.20183730125427246,
0.19886918365955353,
-0.16134315729141235,
-0.10972245782613754,
0.1920250952243805,
-0.5321841239929199,
0.4793509542942047,
0.7575737237930298,
-0.12648406624794006,
0.4038508832... |
If experienced programmers actually ever use debuggers, and if so under what circumstances. Although in the answer to that question I said "months" ago I probably meant "years" - I really don't use a debugger. So my specific answerable question is under which circumstances would you, as an experienced programmer, use a debugger? | [
0.00297390460036695,
0.017433306202292442,
-0.0187783595174551,
0.009150397032499313,
-0.003428233088925481,
0.026470573619008064,
0.00699977483600378,
-0.003932996187359095,
-0.025001784786581993,
-0.03633536398410797,
0.011575357988476753,
0.022398939356207848,
0.018094254657626152,
0.00... | [
0.5012645125389099,
0.33495867252349854,
-0.08642099797725677,
0.1996973752975464,
0.39654305577278137,
-0.11977611482143402,
0.1204499751329422,
-0.004254940431565046,
-0.34099265933036804,
-0.11897720396518707,
-0.12894482910633087,
0.40777587890625,
0.40246886014938354,
-0.1110645234584... |
What is the maximum power of Return and Frustation? How does the happiness of the pokemon affect it? | [
-0.017258644104003906,
0.05963511765003204,
0.002311113988980651,
0.0264646727591753,
-0.04125203192234039,
0.007625745143741369,
0.017616553232073784,
-0.017573684453964233,
-0.015904709696769714,
-0.031004374846816063,
-0.05029836297035217,
0.0724545493721962,
-0.01731921173632145,
0.053... | [
-0.22481587529182434,
-0.4759869873523712,
0.4986223578453064,
0.3691641092300415,
-0.30064088106155396,
-0.06040776148438454,
0.3105972409248352,
-0.04898688942193985,
0.03686227649450302,
0.13686254620552063,
-0.02387835644185543,
0.36335599422454834,
-0.14923757314682007,
-0.00350721343... |
How can I set the output feature type name so that it consists of a constant part and a variable part, such as "Circle_205", where the number part could be different each time? When using a fanout, this is easy to set, but without a fanout, I do not know how to do this, unfortunately. | [
0.018811166286468506,
0.014724177308380604,
-0.007349125109612942,
0.020639773458242416,
-0.015185660682618618,
0.014408721588551998,
0.010683676227927208,
0.0341358445584774,
-0.02827545255422592,
-0.019279643893241882,
-0.006460349541157484,
0.016638925299048424,
0.00843616109341383,
0.0... | [
0.23142600059509277,
-0.12416758388280869,
0.495543509721756,
-0.12355480343103409,
-0.12054093927145004,
-0.11484462022781372,
-0.17753738164901733,
-0.27477312088012695,
-0.12769107520580292,
-0.5247800350189209,
0.27258503437042236,
0.4986402094364166,
-0.2161678969860077,
0.30692589282... |
Is it possible to only reset the Young Drivers Test mode in F1 2012 (PS3)? | [
0.006764667108654976,
0.03713172301650047,
-0.040735770016908646,
0.012157822027802467,
0.008981973864138126,
0.0010156241478398442,
0.020080052316188812,
0.002673792652785778,
-0.02002379670739174,
0.07067552208900452,
-0.04222239553928375,
0.0717415064573288,
-0.00010954013123409823,
0.0... | [
0.1312226802110672,
0.0284581296145916,
0.3896760940551758,
0.2601243853569031,
0.10240104794502258,
-0.17053472995758057,
0.34472405910491943,
0.06689345836639404,
0.03717201575636864,
-0.015272842720150948,
-0.031952232122421265,
0.6420060396194458,
0.046145468950271606,
-0.5310312509536... |
_(Newbie question)_ For every function I define I get this message:  When I close and reopen Mathematica, and re-enter the function definition, I don't get the message anymore. What does it mean? | [
-0.0005263651255518198,
0.0014778489712625742,
0.005253027658909559,
0.026474902406334877,
-0.009274599142372608,
-0.03264855965971947,
0.005554772913455963,
0.012328124605119228,
-0.02651410549879074,
0.0017167554469779134,
-0.020793551579117775,
0.005227916873991489,
0.00587611086666584,
... | [
0.2590479254722595,
0.29703107476234436,
0.4743478000164032,
0.09967241436243057,
0.15090900659561157,
-0.15051032602787018,
0.2579928934574127,
0.12033718079328537,
-0.46305397152900696,
-0.507590115070343,
-0.10393716394901276,
0.3782351016998291,
-0.3343667685985565,
0.24767564237117767... |
I regularly create my own GeoTIFF rasters with GDAL in Python, e.g.: from osgeo import gdal from numpy import random data = random.uniform(0, 10, (300, 200)) driver = gdal.GetDriverByName('GTiff') ds = driver.Create('MyRaster.tif', 200, 300) band = ds.GetRasterBand(1) band.WriteArray(data) ds = band = None # save, close however when the result is viewed with ArcCatalog/ArcGIS, it looks either black or grey, since it has no statistics. This is solved either by right- clicking the raster and choosing "Calculate Statistics..." in ArcCatalog (there are several other ways to do this), or using gdalinfo in a command prompt: gdalinfo -stats MyRaster.tif will generate `MyRaster.tif.aux.xml`, which is used by ArcGIS to properly scale the raster. The PAM (Persistent Auxiliary Metadata) file contains the statistics, most notably the minimum and maximum values: <PAMDataset> <PAMRasterBand band="1"> <Metadata> <MDI key="STATISTICS_MINIMUM">0</MDI> <MDI key="STATISTICS_MAXIMUM">10</MDI> <MDI key="STATISTICS_MEAN">5.0189833333333</MDI> <MDI key="STATISTICS_STDDEV">2.9131294111984</MDI> </Metadata> </PAMRasterBand> </PAMDataset> My question: is there a built-in way of getting GDAL to create a statistics file (other than using the `gdalinfo -stats` command)? Or do I need to write my own? | [
-0.00978030450642109,
0.0027013863436877728,
-0.010236991569399834,
0.010337665677070618,
0.004067868459969759,
0.0028863437473773956,
0.007686048746109009,
0.023394152522087097,
-0.012964306399226189,
-0.0017463923431932926,
0.008892406709492207,
0.005808420479297638,
0.006400091573596001,
... | [
0.15710490942001343,
0.03430065140128136,
0.6181647777557373,
-0.028438273817300797,
-0.14811120927333832,
0.15680263936519623,
0.22467800974845886,
-0.1652919352054596,
-0.023748477920889854,
-0.8175793886184692,
-0.1711835116147995,
0.48441529273986816,
-0.3345656991004944,
-0.2602951228... |
I have these tile elements on the top of my homepage: <div class="tile1"> <div class="tile-textbox" style="color: #22284f;">Just Some Title</div> </div> <div class="tile2"> <img class="post-image" src="images/sample-large-2.jpg"/> <div class="tile-datebox"> <img src="images/video-icon.png" > <p>2013/2/25</p> <div class="tile-info"><h1><a href="index2.html">Title 1</a></h1></div> </div> </div> <div class="tile3"> <img class="post-image" src="images/sample-mid-2.jpg"/> <div class="tile-datebox"> <img src="images/image-icon.png" > <p>2013/5/15</p> <div class="tile-info"><h1>Title 2</h1></div> </div> </div> <div class="tile4"> <img class="post-image" src="images/sample-mid-3.jpg"/> <div class="tile-datebox"> <img src="images/text-icon.png" > <p>2013/6/17</p> <div class="tile-info"><h1>Title 3</h1></div> </div> </div> <div class="tile5"> <div class="tile-textbox" style="color: #ffffff;">Another Title</div> </div> </div> <!-- END Tile Holder --> and I want to show 3 most recent/viewed posts in tile 2, 3 and 4; just the title, date and an image of that post that it gets the url from custom fields that I defined, I tried using : . . . <?php query_posts("post_per_page=3"); the_post(); ?> <div class="tile2"> <img class="post-image" src="<?php echo get_post_meta($post->ID, 'post_image', true) ?>"/> <div class="tile-datebox"> <img src="<?php echo get_post_meta($post->ID, 'post_icon', true) ?>" > <p><?php the_time('F jS, Y') ?></p> <div class="tile-info"><h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1></div> </div> </div> <div class="tile3"> <img class="post-image" src="<?php echo get_post_meta($post->ID, 'post_image', true) ?>"/> <div class="tile-datebox"> <img src="<?php echo get_post_meta($post->ID, 'post_icon', true) ?>" > <p><?php the_time('F jS, Y') ?></p> <div class="tile-info"><h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1></div> </div> </div> <div class="tile4"> <img class="post-image" src="<?php echo get_post_meta($post->ID, 'post_image', true) ?>"/> <div class="tile-datebox"> <img src="<?php echo get_post_meta($post->ID, 'post_icon', true) ?>" > <p><?php the_time('F jS, Y') ?></p> <div class="tile-info"><h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1></div> </div> </div> <?php wp_reset_query(); ?> . . . Actually these are just some place to show 3 most recent/viewed post with an image, I mean there will be a list of recent posts beneath them with an excerpt (just for the record). the problem is that it just gets one post and shows it there, what's wrong? what did I missed? please help, I'm new in the world of wordpress! | [
-0.01436593197286129,
0.0033581031020730734,
-0.0011316421441733837,
0.01337033323943615,
-0.008009419776499271,
-0.001571993692778051,
0.006392603740096092,
0.014749506488442421,
-0.0100297462195158,
0.010303914546966553,
-0.012175026349723339,
-0.0035417783074080944,
0.0026035113260149956,... | [
0.3668806850910187,
0.1240047737956047,
0.5490353107452393,
-0.05013969540596008,
-0.05889302119612694,
0.20281076431274414,
0.024749571457505226,
-0.05895977094769478,
-0.22439095377922058,
-1.0074821710586548,
0.06403853744268417,
0.1773427277803421,
0.2550763785839081,
0.226299896836280... |
I want to analyze a .csv file with the results of a customer survey. One of the questions is: "Tell us the top 3 reasons you chose us.". The answers are short paragraphs of text listing a ranging number of reasons (not always 3). An example answer could be "1. Speed, 2. Customer service, 3. Price". Another might be: "I liked your customer service, and it wasn't that expensive!" I would like to be able to turn this data into an overview like this: REASONS Customer Service: 2 Price: 2 Speed: 1 I'm facing two problems: 1. I'm interpreting and splitting up the reasons manually in a spreadsheet. Any tips on how to do this more efficiently are very welcome. 2. I have a field "Reasons" which I want to contain a variable amount of values per record. I don't think spreadsheet software such as Libre Calc supports that, and I suspect I might need to export this to SQL. Am I right in suspecting that? And how would I achieve the desired multiple-fields-per-attribute requirement in SQL? | [
0.007221470586955547,
0.017680317163467407,
-0.02122282050549984,
0.012944667600095272,
-0.0019905457738786936,
-0.00003394903615117073,
0.008512582629919052,
-0.008198210038244724,
-0.009645259007811546,
0.005993539933115244,
-0.003453414421528578,
-0.004768287762999535,
0.00080628693103790... | [
0.7284377217292786,
0.13731029629707336,
0.47096967697143555,
0.2012770026922226,
0.014042908325791359,
0.15287144482135773,
0.03000439517199993,
-0.28281664848327637,
0.030101662501692772,
-0.48028993606567383,
0.1442251354455948,
0.5311123132705688,
-0.1993355005979538,
-0.02297270111739... |
The following example prints only the figure's caption: \documentclass[a4paper,11pt]{article} \usepackage{emp} \ifx\pdftexversion\undefined \usepackage[dvips]{graphicx} \else \usepackage[pdftex]{graphicx} \DeclareGraphicsRule{*}{mps}{*}{} \fi \begin{document} \begin{empfile} \begin{empcmds} input metauml; \end{empcmds} \begin{figure} \centering \begin{emp}[classdiag](20, 20) Class.A("A")()(); Class.B("B")()(); B.e = A.w + (-20, 0); drawObjects(A, B); link(inheritance)(B.e -- A.w); \end{emp} \caption{A class diagram} \end{figure} \end{empfile} \end{document} Environment: Ubuntu 11.04 (amd64), TexLive 2009, MetaUML 0.2.5, TeXMaker 2.2.1. **EDIT** : Here's full example with replacement of `\ifx ... \fi` with suggestion based on `ifpdf` package: \documentclass[a4paper,11pt]{article} \usepackage{emp} \usepackage{ifpdf,graphicx} \ifpdf \DeclareGraphicsRule{*}{mps}{*}{} \fi \begin{document} \begin{empfile} \begin{empcmds} input metauml; \end{empcmds} \begin{figure} \centering \begin{emp}[classdiag](20, 20) Class.A("A")()(); Class.B("B")()(); B.e = A.w + (-20, 0); drawObjects(A, B); link(inheritance)(B.e -- A.w); \end{emp} \caption{A class diagram} \end{figure} \end{empfile} \end{document} Processing still gives no graphical output. Only figure's caption is printed. | [
-0.00017946679145097733,
-0.00027587416116148233,
0.0034942927304655313,
0.024646971374750137,
-0.013334028422832489,
0.012478294782340527,
0.006099911406636238,
0.011808018200099468,
-0.010969934985041618,
-0.035134658217430115,
-0.02748299576342106,
-0.002806182950735092,
0.005908814258873... | [
-0.07167232781648636,
-0.18320351839065552,
0.7243794798851013,
0.11973759531974792,
0.0007097800262272358,
0.4823693335056305,
-0.09238387644290924,
-0.12979018688201904,
-0.6516473293304443,
-0.37034374475479126,
-0.23479673266410828,
0.1914743334054947,
-0.4781908690929413,
-0.378782868... |
I want to get rid of the standards backgrounds of beamer. I want to put my own image as background. How can I make it? | [
0.03262171521782875,
0.00879384484142065,
-0.014903810806572437,
0.006055569276213646,
0.013549343682825565,
-0.02296990156173706,
0.015540138818323612,
0.015552137047052383,
-0.019874155521392822,
0.03661080077290535,
-0.010631437413394451,
0.028262119740247726,
0.016538772732019424,
0.00... | [
0.7234301567077637,
0.17977546155452728,
0.36340734362602234,
0.0829794779419899,
0.0703362450003624,
0.1270531266927719,
0.35401248931884766,
0.0011070345062762499,
-0.2626999318599701,
-0.7539901733398438,
0.08707248419523239,
0.2919975221157074,
0.048889920115470886,
0.17851290106773376... |
Just beat it with my monk, and the language isn't clear — is investing in the guardian pet stat _guardian's range_ going to enhance the range at which the little pet reaches out to boost towers, or will it enhance how much range boost the towers he can reach will receive? | [
-0.0028468300588428974,
0.018545718863606453,
0.0053113903850317,
0.0027634967118501663,
0.012457062490284443,
0.0025649245362728834,
0.012765982188284397,
0.0033951590303331614,
-0.025317877531051636,
0.008454492315649986,
-0.023943614214658737,
0.020115075632929802,
-0.003645970020443201,
... | [
0.6336976885795593,
0.2950965166091919,
0.36036208271980286,
0.08461244404315948,
0.0074062952771782875,
-0.19117209315299988,
0.7184391021728516,
-0.6767480373382568,
0.044381484389305115,
-0.01915157586336136,
0.32133641839027405,
0.3920516073703766,
-0.1220412328839302,
-0.4856785237789... |
I have a python script that i am trying to run in order to dump a postgres table and I noticed there is a pgsql2shp command in bash to perform this easily but I would like to incoperate the same command in a python script and also use parameter substitution. I thought the following would work but it hasn't yielded any result. What is the equivalent of the this command in python (pgsql2shp -f %s.shp -h localhost -p 5432 testdb "%s_%s")%(table,table,test) | [
0.00273768394254148,
0.010815235786139965,
0.007054608315229416,
0.01299380511045456,
-0.00863630697131157,
-0.0004643336869776249,
0.009593743830919266,
0.010265552438795567,
-0.019006313756108284,
-0.012508616782724857,
-0.015013692900538445,
0.006281194277107716,
-0.011116372421383858,
... | [
0.2474837750196457,
0.10891900211572647,
-0.06546502560377121,
-0.015321135520935059,
-0.15902552008628845,
-0.14098387956619263,
0.3625083267688751,
-0.07475925981998444,
-0.18078960478305817,
-0.5157502293586731,
0.2197422832250595,
0.7459942698478699,
-0.1811746209859848,
0.243556201457... |
Is there a way to make the different numbers within the enumerate environment different colors. \begin{enumerate} \item First \item Second \item Third \end{enumerate} I wish to make the 1. green, the 2. orange and the 3. red i.e Not the text that follows but the preceding number a particular colour Thanks | [
0.029259666800498962,
0.022395092993974686,
-0.021546149626374245,
0.0189198050647974,
-0.031093623489141464,
0.014049169607460499,
0.01168314553797245,
0.020875275135040283,
-0.02318030782043934,
0.007403921335935593,
-0.016432011500000954,
-0.008984213694930077,
0.007074257824569941,
-0.... | [
-0.00941359531134367,
-0.22087258100509644,
0.2667158246040344,
-0.2022680789232254,
-0.2075931578874588,
0.4026297628879547,
-0.07787777483463287,
-0.15889321267604828,
-0.2390497922897339,
-0.6377920508384705,
-0.16778379678726196,
0.47810375690460205,
-0.44086354970932007,
-0.4034936428... |
Is there a word or phrase that describes the act of saying something for the sake of it? | [
-0.06512607634067535,
0.012568661011755466,
0.003655552864074707,
0.05734772980213165,
0.03295028209686279,
0.06373163312673569,
0.0126444511115551,
-0.04399369657039642,
-0.016975414007902145,
0.04562760889530182,
-0.03762875869870186,
0.01093846745789051,
0.03260667622089386,
0.060864564... | [
0.7706274390220642,
0.2798588275909424,
-0.21966372430324554,
0.05446048825979233,
-0.3580535650253296,
0.16617730259895325,
0.38280922174453735,
0.38436537981033325,
-0.21381404995918274,
-0.35608410835266113,
-0.0008067149319685996,
0.12242227047681808,
-0.07438429445028305,
0.0206326972... |
I have a problem with the end user form. Users can spam by just pressing all the time the add button. Is there a way to hide it or disable it when someone click the Wyslij button? I am using this code. This is in php <?php /** * Template Name: Dodaj Page */ acf_form_head(); get_header(); the_post(); ?> <div id="content-area" class="clearfix fullwidth"> <div id="left-area"> <?php get_template_part('includes/breadcrumbs', 'page'); ?> <article id="post-<?php the_ID(); ?>" <?php post_class('entry clearfix'); ?> role="article"> <div class="post_content clearfix"> <?php $options = array( 'post_id' => 'newdata', // post id to get field groups from and save data to 'field_groups' => array( 27 ), // this will find the field groups for this post (post ID's of the acf post objects) 'form' => true, // set this to false to prevent the <form> tag from being created 'form_attributes' => array( // attributes will be added to the form element 'id' => 'post', 'class' => '', 'action' => '', 'method' => 'post', ), 'return' => add_query_arg( 'updated', 'true', get_permalink() ), // return url 'html_before_fields' => '', // html inside form before fields 'html_after_fields' => '', // html inside form after fields 'submit_value' => 'Wyślij', // value for submit field 'updated_message' => 'Wpis został dodany prawidłowo.', // default updated message. Can be false to show no message ); //Sprawdzenie id zalogowanego użytkownika if ( is_user_logged_in() ) { $user_ID = get_current_user_id(); //Funckja licząca statusy wpisów. global $wp_query; $curauth = $user_ID; $post_count_draft = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '" . $curauth . "' AND post_type = 'post' AND post_status = 'draft'"); $post_count_publish = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '" . $curauth . "' AND post_type = 'post' AND post_status = 'publish'"); //Jeśli więcej niż 1 wpis, zakaż dodawania więcej. if (!current_user_can('moderate_comments') AND (($post_count_draft > 0) OR ($post_count_publish > 0))) { echo '<h2 class="notice">Wpis został dodany prawidłowo.</h2>'; echo '<h2 class="notice">Możesz tylko dodać jeden wpis, wróć na stronę główną.</h2>'; } else { acf_form( $options ); } } else { echo '<h2 class="warning">Tylko dla zalogowanych użytkowników.</h2>'; echo wp_login_form(); echo wp_register('', ''); } ?> </div> <!-- end .post_content --> </article> <!-- end .entry --> <?php if ( 'on' == et_get_option('lucid_show_pagescomments') ) comments_template('', true); ?> </div> <!-- end #left-area --> </div> <!-- end #content-area --> <?php get_footer(); ?> This is in functions.php function add_new_post( $post_id ) { if( $post_id == 'newdata' ) { // Create a new post $post = array( 'post_title' => $_POST["fields"]['field_52e8ce62f6982'], 'post_status' => 'draft', 'post_category' => array(6), 'post_type' => 'post' ); // insert the post $post_id = wp_insert_post( $post ); return $post_id; } } add_filter('acf/pre_save_post' , 'add_new_post' ); function acf_set_featured_image( $value, $post_id, $field ){ // echo '<pre>'. print_r($value,1).'<br/>'.print_r($_POST,1).'</pre>'; die(); if($value != ''){ //Add the value which is the image ID to the _thumbnail_id meta data for the current post add_post_meta($post_id, '_thumbnail_id', $value); } return $value; } // acf/update_value/name={$field_name} - filter for a specific field based on it's name add_filter('acf/update_value/name=zdjecie1', 'acf_set_featured_image', 10, 3); function acf_set_miejsce( $value, $post_id, $field ){ // echo '<pre>'. print_r($value,1).'<br/>'.print_r($field,1).'</pre>'; die(); if($value['address'] != ''){ //Add the value which is the image ID to the _thumbnail_id meta data for the current post add_post_meta($post_id, 'codespacing_progress_map_address', $value['address']); } if($value['lat'] != ''){ //Add the value which is the image ID to the _thumbnail_id meta data for the current post add_post_meta($post_id, 'codespacing_progress_map_lat', $value['lat']); } if($value['lng'] != ''){ //Add the value which is the image ID to the _thumbnail_id meta data for the current post add_post_meta($post_id, 'codespacing_progress_map_lng', $value['lng']); } return $value; } // acf/update_value/name={$field_name} - filter for a specific field based on it's name add_filter('acf/update_value/name=miejsce_kradziezy', 'acf_set_miejsce', 10, 3); | [
-0.006375294178724289,
0.006611857563257217,
0.003302549244835973,
0.016367070376873016,
-0.02124083787202835,
0.015264997258782387,
0.007445644121617079,
0.014567110687494278,
-0.01621626317501068,
-0.0037791903596371412,
-0.012379427440464497,
0.01018076203763485,
-0.01654793694615364,
0... | [
0.3141656219959259,
0.14705130457878113,
0.5474498867988586,
-0.16072051227092743,
-0.11820495873689651,
-0.3242329955101013,
0.24616816639900208,
0.015265333466231823,
-0.08242946118116379,
-0.5877260565757751,
0.009725850075483322,
0.263273149728775,
-0.45579367876052856,
0.1441380530595... |
I am writing a code in the header that pertains to link rel='prev' and link rel='next' thing but I need to check if the post is multipage. I check out these global variables: $numpages $multipage However they don't work in header.php or outside the loop? Example code to verify in header (just a test, but it does not work): <?php global $wp_query; global $numpages; global $multipage; If ($multipage) { echo 'This is a multipage post'; } else { echo 'This is not multipage'; } ?> I am wondering how to do this, can somebody help me please? Thanks. | [
0.00791207142174244,
0.0014830395812168717,
0.007384466007351875,
0.02065505087375641,
0.038250647485256195,
0.02229882776737213,
0.00891619361937046,
0.0067212763242423534,
-0.017287712544202805,
-0.01123005524277687,
0.0038987575098872185,
0.00739275012165308,
-0.008607343770563602,
0.01... | [
0.2978110611438751,
0.1969919204711914,
0.43828898668289185,
0.00513543002307415,
-0.31318584084510803,
0.02532551810145378,
0.4200899600982666,
-0.1318584680557251,
-0.49190208315849304,
-0.5617836713790894,
0.1440846472978592,
0.05206167697906494,
-0.5062781572341919,
0.5191441178321838,... |
I came across a new interjection (seemingly) “E!” in the following sentence of the Washington Post (April 18) article titled, “Ryan Lochte, Ke$ha and the rules for celebrity reality shows”. > Ryan Lochte’s bold personal style: The Olympic swimmer’s reality series > “What Would Ryan Lochte Do?” **premires on E!** April 21. > > This week marks the debut of two such shows. **Sunday, E!** sets in motion > “What Would Ryan Lochte Do?,” a look at the Olympic swimmer who made > headlines at last year’s London games — not so much for his victories and > friendly rivalry with teammate Michael Phelps as for a flurry of awkward > interviews and self-deluded sound bites (trademarking the **frat- > thusiastic** phrase “ **Jeah**!”) that gave him a party-boy reputation. What does “E!” mean? Is it an interjection or a capital letter for something associated with TV entertainment programs? Additionally, is “Jeah” similar with “gee / jee”? Is the word, “ frat- thusiastic” which I presume to be a compound of “fraternity + enthusiastic” (Pls. correct me if I’m wrong) a current English word, or just a coinage by the author? | [
-0.0012722746469080448,
0.0004819669993594289,
0.00709131732583046,
0.020547181367874146,
0.005491826683282852,
0.00016355514526367188,
0.010008633136749268,
-0.02032751403748989,
-0.013450643979012966,
0.024398714303970337,
-0.016991237178444862,
0.013036735355854034,
0.0035611705388873816,... | [
0.7428327202796936,
-0.09951601177453995,
0.6436193585395813,
0.10039917379617691,
0.010969966650009155,
-0.4117409586906433,
0.20912271738052368,
-0.05766448378562927,
-0.4912213087081909,
-0.21538390219211578,
-0.12451191991567612,
0.35579800605773926,
0.02540765330195427,
0.011895147152... |
I'm exploring different options for creating an offline mobile application with Esri's technologies. The option that fits my needs the best is to use the ArcGIS Runtime SDK with offline maps created with ArcGIS for Desktop(In ArcMap : File->ShareAs->Runtime Content). The next step is now to automate the Runtime Content creation. Is there a way, using ArcObjects, to create Runtime content progamatically? | [
-0.024410033598542213,
0.005221420433372259,
-0.01661590486764908,
0.0017883307300508022,
-0.025965720415115356,
0.00000929386806092225,
0.011320129036903381,
0.017481079325079918,
-0.019464371725916862,
-0.028204774484038353,
-0.0023716220166534185,
0.01698196679353714,
-0.00014204677427187... | [
0.22293834388256073,
-0.048036713153123856,
0.3084491789340973,
0.07876218855381012,
-0.011876805685460567,
-0.08815008401870728,
0.06903587281703949,
-0.06126672774553299,
-0.05070316046476364,
-0.9319732189178467,
0.0644761174917221,
0.4653858244419098,
-0.10430090874433517,
0.0269512347... |
I want to make a CAR positioning system. I wrote a program which can show me the coordinate locations on a map. But when I get coordinates from MOBILE GPS and from CAR GPS, they both differ.  Why do they differ? How can I resolve this problem? | [
-0.013436288572847843,
-0.00022732949582859874,
-0.0024400579277426004,
0.013263744302093983,
-0.014083785004913807,
0.02759111113846302,
0.008270280435681343,
0.023286137729883194,
-0.02349342592060566,
-0.013563426211476326,
-0.0032001531217247248,
0.022804956883192062,
0.01084704883396625... | [
0.5625171661376953,
0.3467221260070801,
0.6659624576568604,
0.10934363305568695,
0.31720516085624695,
0.2178899645805359,
-0.2893465459346771,
-0.012079305946826935,
-0.13921763002872467,
-0.39897963404655457,
0.3945297300815582,
0.49138665199279785,
-0.01999499835073948,
0.208523333072662... |
When I prepare an exercise list for my students I use to also include there my own solutions. I prepare these documents with some macros based on `mdframed` and with `comment` help I easily obtain two pdfs, one with exercises and another one with exercises and solutions. I encourage my students to try to write their solutions with `LaTeX` so I give them the `.pdf` file with exercises and a source `.tex` file without answers. This way, they only have to worry about writing their solutions because the format is already provided. The problem is that I need to have two source files one with problems+solutions and another one only with problems. What I would like would be to have only one `.tex` file with problems and solutions and, from it be able to extract another `.tex` file without solutions. As a possible frame work suppose a main `.tex` file like: % This is main.tex file \documentclass{article} \begin{document} \begin{exercise} This is the first exercise \begin{solution} This is my solution \end{solution} \end{exercise} \end{document} from which I want to easily obtain a similar one with empty solutions: % This is student.tex file \documentclass{article} \begin{document} \begin{exercise} This is the first exercise \begin{solution} \end{solution} \end{exercise} \end{document} I suppose I'm looking for something like a `.dtx` file but I've never used it and may be there are better solutions. I'm working on windows so `grep` commands won't work. | [
0.013856852427124977,
0.019314732402563095,
-0.0083075650036335,
0.010596448555588722,
0.029064591974020004,
0.0015704224351793528,
0.008319158107042313,
0.010227672755718231,
-0.01668490096926689,
-0.03408384323120117,
0.0013848308008164167,
0.002581814769655466,
-0.013665142469108105,
0.... | [
0.04644928500056267,
0.3215254545211792,
0.40666982531547546,
0.24685993790626526,
0.16849765181541443,
-0.17820188403129578,
-0.0103426743298769,
-0.3184034526348114,
0.01640799641609192,
-0.6502811908721924,
-0.19161970913410187,
0.7790772318840027,
0.011605597101151943,
-0.1110317111015... |
I recently came across a statement "The silver lining on the cloud is dull." I was wondering if one can call a silver lining dull. Isn't it contradictory? | [
0.000116934155812487,
0.034177590161561966,
-0.014047113247215748,
0.02151063270866871,
0.000037246805732138455,
-0.0003710004675667733,
0.012542678974568844,
-0.0008353950106538832,
-0.02282736822962761,
-0.035709988325834274,
-0.011712629348039627,
0.026106245815753937,
-0.0030312696471810... | [
0.9079470038414001,
0.45744073390960693,
0.3687010109424591,
0.0921546071767807,
-0.43545347452163696,
-0.24486024677753448,
-0.2325282096862793,
0.8128178119659424,
-0.35702231526374817,
-0.31452783942222595,
0.2168063074350357,
0.09981018304824829,
-0.024844296276569366,
0.85576689243316... |
Wyrdward ring: > Lightning damage has a 13–17% chance to Stun for 1.5 seconds. If a barb uses call of the ancients with the 'Together as One' rune, does the ring proc? | [
-0.02186042256653309,
0.037099141627550125,
-0.023210719227790833,
0.0016799186123535037,
-0.014012987725436687,
0.0014923469861969352,
0.016629835590720177,
0.0178352240473032,
-0.019220637157559395,
0.01976802386343479,
-0.014887583442032337,
0.01756274700164795,
-0.0076873223297297955,
... | [
0.19985106587409973,
0.11643561720848083,
0.5250356793403625,
-0.29807424545288086,
-0.581522524356842,
-0.13812807202339172,
0.6444307565689087,
-0.7611359357833862,
-0.02526797540485859,
-0.1820496916770935,
-0.05046137049794197,
0.3603056073188782,
0.2456604689359665,
0.0207870882004499... |
I am looking at our quote from Esri and am not sure on the difference between two items on the quote. They are: ArcGIS for Server Workgroup Standard One Core Additional Migrated Maintenance Start Date: 04/19/2013 End Date: 04/18/2014 ArcGIS for Server Workgroup Standard Up to Two Cores Migrated Maintenance Start Date: 04/19/2013 End Date: 04/18/2014 They look one in the same to me. They are quoting me for two of the first one and one of the latter one. Can anyone tell me what the difference is? | [
-0.0032227253541350365,
0.0026938244700431824,
-0.008404417894780636,
0.023408090695738792,
0.006200264673680067,
0.005861615762114525,
0.01230337843298912,
0.0033302679657936096,
-0.015324626117944717,
-0.0008302382775582373,
-0.006581555120646954,
0.01114307064563036,
-0.004934346303343773... | [
0.335770845413208,
0.1255892515182495,
0.4580743610858917,
-0.1212441623210907,
-0.24206683039665222,
0.4442236125469208,
0.24496696889400482,
0.13539224863052368,
-0.4710548520088196,
-0.6682037711143494,
-0.03929251804947853,
0.6363599300384521,
0.4424740970134735,
0.12186245620250702,
... |
By definition, rainfalls are transitions from vapor state to liquid state of water. I can say that "by definition" rainfalls must viewed as critical phenomenon? | [
-0.022457387298345566,
0.04476376995444298,
0.008449657820165157,
0.04349628835916519,
0.01783565618097782,
-0.09304637461900711,
0.019707001745700836,
-0.03730390593409538,
-0.037387482821941376,
-0.05161665007472038,
0.007397832814604044,
0.03951548412442207,
-0.004991225898265839,
0.007... | [
0.05938553810119629,
0.10139942914247513,
0.20092910528182983,
0.23613958060741425,
0.15243422985076904,
-0.15837305784225464,
0.39146968722343445,
0.1480531394481659,
-0.14489981532096863,
-0.3750682771205902,
-0.30495816469192505,
0.02071094512939453,
-0.305113822221756,
0.84628033638000... |
I'm attempting to construct a very-large sliding-block device in Little Big Planet 2, but every material I've tried to use—glass for less friction, sponge or pink/orange foam for minimal weight, metal for structural integrity, cardboard and wood just to exhaust the options—the result is the same: a powered block can push another block, but as soon as I attempt to push two unpowered blocks, the middle one breaks and pops out of existence. Am I overlooking a material or a setting somewhere to keep my structures from destroying themselves, or is there a better way of going about their design to avoid this particular characteristic of LBP's reality? | [
-0.0056639485992491245,
0.005910397507250309,
-0.005987286102026701,
0.006130460649728775,
-0.017623743042349815,
-0.0136036965996027,
0.007115200161933899,
0.014287864789366722,
-0.008261550217866898,
0.009923969395458698,
-0.019608808681368828,
0.008193380199372768,
0.011423124931752682,
... | [
0.2810380756855011,
0.44856542348861694,
0.1898733526468277,
0.2923724949359894,
0.36182087659835815,
0.19289471209049225,
-0.2332281917333603,
0.04648251459002495,
-0.5568510890007019,
-0.6420808434486389,
0.005363215692341328,
0.08334579318761826,
-0.08424583077430725,
0.2937784790992737... |
The past tense of _to occur_ is _occurred_ (not _occured_ ), but the past tense of _to listen_ is _listened_ (not _listenned_ ). Why? What is the general rule that is applied to make the past tense of a verb? | [
0.009556591510772705,
0.02709399349987507,
-0.010250303894281387,
-0.0025859393645077944,
0.045805949717760086,
-0.02324584871530533,
0.012446990236639977,
-0.0005927681922912598,
-0.016276316717267036,
0.022658417001366615,
-0.0033016433008015156,
0.006070692557841539,
0.021767307072877884,... | [
-0.13373678922653198,
0.044110819697380066,
0.4425891935825348,
-0.48147037625312805,
-0.4023755192756653,
0.15830102562904358,
0.8997285962104797,
0.0459187775850296,
-0.6747676730155945,
-0.30345484614372253,
-0.16853490471839905,
0.7328128814697266,
-0.21664007008075714,
-0.034432236105... |
I routinely find this expression in newspaper, magazines, blogs... My guess is that it's used to report a widely shared opinion, but I couldn't find any confirmation of this. Or maybe it's just used to emphasize the adjective? I'm afraid I might be missing a subtelty here. Here are a few examples from the first page of googling "oh so *": * Paul Ryan's oh-so-clever jab at Jay Cutler * Chivas USA came oh so close to getting the first goal of the match * The movie-star-handsome [...] stung with that oh-so-direct comeuppance * Robert Pattinson Oh So Lonely: 'No One Ever Calls Or Texts Me!' * An Oh-So-British Affair Projects a Fresh, Antique Charm * LaPorta made an oh-so-costly error in the game * Finally, the long, oh so very long flight back to Vancouver | [
-0.0023798781912773848,
-0.00015378929674625397,
-0.010171368718147278,
0.014050547033548355,
-0.029007257893681526,
0.015836479142308235,
0.0053988853469491005,
-0.005723637994378805,
-0.012626979500055313,
0.0010217188391834497,
0.005727720446884632,
0.006626715883612633,
0.007732556201517... | [
0.35171687602996826,
0.0236806683242321,
0.19777268171310425,
-0.08371014893054962,
-0.09141023457050323,
-0.6817357540130615,
0.47785890102386475,
0.11724355071783066,
-0.37122902274131775,
-0.4950718283653259,
0.41864797472953796,
0.47632014751434326,
-0.13104037940502167,
-0.07801126688... |
Is there a way to load the library GAUL (Genetic Algorithm Utility Library) for use within Mathematica? | [
-0.01032400131225586,
0.012714791111648083,
0.000733796157874167,
0.007863206788897514,
0.03729963302612305,
-0.01021250244230032,
0.017544960603117943,
-0.039235275238752365,
-0.020440155640244484,
-0.02335539273917675,
-0.003862133715301752,
0.015181080438196659,
-0.03779718279838562,
0.... | [
0.2621377110481262,
-0.19371919333934784,
-0.24952159821987152,
0.5719947218894958,
0.012576445937156677,
0.1025683581829071,
-0.2829076945781708,
0.11381175369024277,
-0.4293752908706665,
-0.26855698227882385,
0.24000507593154907,
0.1954316645860672,
-0.19563028216362,
-0.3689598739147186... |
I'm trying to help with an Instructor's Guide for an introductory calc-based physics text, and it would really help if I could locate some lists of typical student difficulties with topics like ... flux induced E and B fields Faraday's law Lenz's law DC circuits AC circuits Is there a better approach than just Googling "student difficulties with XXX," as I have been trying with rather inconsistent luck? _Added--_ Thanks for the reminder! I actually found a copy of Randy Knight's book in the attic that I got from him at an AAPT meeting some years back. I can't believe I actually located it in my chaos ... great suggestion! | [
0.010711676441133022,
0.0019170241430401802,
-0.016280004754662514,
0.018151739612221718,
-0.011362397111952305,
-0.01436389796435833,
0.007827961817383766,
0.0003984578652307391,
-0.02223820798099041,
0.01814316213130951,
-0.0013332839589565992,
0.012333939783275127,
-0.017923982813954353,
... | [
0.24326540529727936,
0.1176663339138031,
0.22905811667442322,
0.45134639739990234,
-0.028188643977046013,
-0.40301117300987244,
0.11666952073574066,
-0.06252787262201309,
-0.3020903170108795,
-0.3739858567714691,
0.12339071929454803,
0.39100611209869385,
-0.08590607345104218,
-0.0710436105... |
I have been trying to install debian wheezy on my desktop with no sucess. During the install when I get to the grub screen it says if I see my operating systems listed to go ahead with grub. During this screen it only lists windows vista(loader)(this is actually windows 7) but no debian. I succesfully installed debian on my laptop no problem with the same disk, my laptop only runs debian in comparison though. After the install and my computer loads past my BIOS I get a black screen with a blinking cursor in the top left corner. I believe that debian has installed properly but that grub did not. | [
-0.03372208774089813,
-0.020913776010274887,
-0.01932811737060547,
0.014948911033570766,
-0.048962682485580444,
-0.02390941232442856,
0.009174587205052376,
0.0035343088675290346,
-0.017038539052009583,
-0.03537778556346893,
-0.020463433116674423,
0.012029509991407394,
-0.006155187264084816,
... | [
0.3520328104496002,
0.3216380476951599,
0.32442736625671387,
-0.21877293288707733,
-0.14500591158866882,
-0.021193237975239754,
0.3961528539657593,
0.3529888093471527,
-0.35314035415649414,
-0.6809898018836975,
-0.018873941153287888,
0.727706789970398,
-0.2656513452529907,
0.48379263281822... |
I'm using `beamer` with `textpos` to place certain blocks at particular positions (in particular, I use the `textblock*` environment). When I attempt to create a handout, the pieces of text within `textblock*` are moved into (what seems to me) random positions of the page. Any advice? Here is a small example: \documentclass[t, handout]{beamer} \usepackage[absolute,overlay]{textpos} \usepackage{pgfpages} \pgfpagesuselayout{4 on 1}[letterpaper, border shrink = 5mm, landscape] \mode<presentation>{ \setbeamercovered{invisible} } \usetheme{Madrid} \usecolortheme{beaver} \title{Presentation Title} \author{ A, B } \institute[Institute]{ The Institute } \date{September 5, 2012} \setbeamertemplate{footline}[frame number] \setbeamertemplate{navigation symbols}{} \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame}{Some title} Some text \end{frame} \begin{frame}[center]{Part A} \begin{textblock*}{300pt}(0.1\textwidth, 0.5\textheight) \Large \centering This title should not appear at the first slide! \end{textblock*} \end{frame} \end{document} | [
-0.019554708153009415,
0.009171923622488976,
-0.0015737463254481554,
0.02963843196630478,
0.013088451698422432,
0.00792235229164362,
0.00846300832927227,
0.033146101981401443,
-0.014192473143339157,
-0.00455195177346468,
-0.02263406105339527,
0.00191391387488693,
0.0211008433252573,
0.0100... | [
0.28165382146835327,
0.03926535323262215,
0.6168826818466187,
-0.24201780557632446,
0.10326848179101944,
0.06633100658655167,
0.037602122873067856,
-0.3338504433631897,
-0.18715228140354156,
-0.5990796685218811,
0.05776975676417351,
0.30800876021385193,
-0.24605712294578552,
-0.02792331390... |
I have an info obsidian farm, which I'm trying to set up to AFK. Unfortunately, I seem unable to guarantee every mined block is picked up by my hopper system. In the image below, I have a minecart hopper underneath the solid obsidian block, and hoppers completely surrounding the obsidian block. (even underneath the solid blocks). Yet, you can see in the screen shot, they aren't grabbing that obsidian. This happens about 1 in 15 blocks that I mine. Thoughts on how to set up hoppers to catch that errant obsidian?  | [
0.00530490605160594,
0.0179713424295187,
-0.025028133764863014,
0.025877967476844788,
-0.03585319221019745,
-0.015895158052444458,
0.007492724806070328,
0.003919432405382395,
-0.02235441282391548,
-0.01358422078192234,
-0.008679477497935295,
0.018842443823814392,
0.0048529235646128654,
0.0... | [
0.6872310638427734,
0.03342077136039734,
0.13457372784614563,
0.39714908599853516,
0.07176176458597183,
0.09865090250968933,
0.27890145778656006,
0.39504021406173706,
-0.28255921602249146,
-0.6939075589179993,
0.3982141315937042,
0.5026113986968994,
0.29262280464172363,
0.06569921970367432... |
I have a watershed polygon with sub-watersheds contained within the larger watershed. I would like the sub-watersheds drawn on top. Can i control the drawing order of features within a geojson object or do i have to add the features separately and then control the layer drawing order? I'm using leaflet 0.7.2 | [
-0.01752852462232113,
0.013925284147262573,
-0.02536158449947834,
0.03703000769019127,
-0.0016132593154907227,
0.007566845044493675,
0.012543022632598877,
0.04486169293522835,
-0.029125628992915154,
0.004402026534080505,
-0.010294140316545963,
0.022412415593862534,
-0.03572259470820427,
0.... | [
0.16899892687797546,
-0.08785398304462433,
0.3583727180957794,
0.11095884442329407,
0.20726710557937622,
0.1548403799533844,
-0.23287059366703033,
0.1937483251094818,
-0.00006632999429712072,
-0.8019909858703613,
0.3667283058166504,
0.17557205259799957,
-0.2473042905330658,
-0.224129781126... |
How can labels be nicely positioned in a polaraxis environment ranging from -90...+90 degree and having the data facing south? In ideal case, the yaxis (0...1.0) will be arranged vertically at the lefthand side centered. Any suggestions? \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{polar} \usetikzlibrary{shapes.geometric} \begin{document} \begin{tikzpicture} \begin{polaraxis}[ rotate=-90, xmin=-90, xmax=90, xtick={-90,-60,-30,0,30,60,90} ] \addplot coordinates {(-60,1) (10,0.8) (80,0.2)}; \end{polaraxis} \end{tikzpicture} \end{document}  | [
-0.00323193846270442,
0.02123669907450676,
-0.011225788854062557,
0.017552964389324188,
0.0019253038335591555,
-0.0076167993247509,
0.007615430746227503,
0.032604023814201355,
-0.013832133263349533,
0.0035202312283217907,
-0.010135667398571968,
0.0020647509954869747,
-0.01138673722743988,
... | [
0.25670140981674194,
-0.029124462977051735,
0.5946776270866394,
0.253224641084671,
-0.013230697251856327,
-0.07374570518732071,
-0.048689644783735275,
-0.2304822951555252,
-0.16572177410125732,
-0.5722054839134216,
0.05180155858397484,
0.08446653932332993,
-0.15661568939685822,
0.281064629... |
I want to select polygons in wms/wfs layers (openlayes). I used the code of this example http://openlayers.org/dev/examples/getfeature-wfs.html . Then, when I select a polygon in my the layer, nothing is selected, I don't no why. Could you help me please. Thanks Here is the code : WFS: GetFeature Example (GeoServer) var map, layer, select, hover, control; function init(){ //OpenLayers.ProxyHost= ""; //OpenLayers.ProxyHost= "proxy.cgi?url="; map = new OpenLayers.Map('map', { controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.Navigation() ] }); layer = new OpenLayers.Layer.WMS( "States WMS/WFS", "http://v2.suite.opengeo.org/geoserver/ows", {layers: 'usa:states', format: 'image/gif'} ); select = new OpenLayers.Layer.Vector("Selection", {styleMap: new OpenLayers.Style(OpenLayers.Feature.Vector.style["select"]) }); hover = new OpenLayers.Layer.Vector("Hover"); map.addLayers([layer, hover, select]); control = new OpenLayers.Control.GetFeature({ protocol: OpenLayers.Protocol.WFS.fromWMSLayer(layer), box: true, hover: true, multipleKey: "shiftKey", toggleKey: "ctrlKey" }); control.events.register("featureselected", this, function(e) { select.addFeatures([e.feature]); alert("yes"); }); control.events.register("featureunselected", this, function(e) { select.removeFeatures([e.feature]); }); control.events.register("hoverfeature", this, function(e) { hover.addFeatures([e.feature]); }); control.events.register("outfeature", this, function(e) { hover.removeFeatures([e.feature]); }); map.addControl(control); control.activate(); map.setCenter(new OpenLayers.Bounds(-140.444336,25.115234,-44.438477,50.580078).getCenterLonLat(), 3); } </script> WFS GetFeature Example (GeoServer) WFS, GetFeature Shows how to use the GetFeature control to select features from a WMS layer. Click or drag a box to select features, use the Shift key to add features to the selection, use the Ctrl key to toggle a feature's selected status. Note that this control also has a hover option, which is enabled in this example. This gives you a visual feedback by loading the feature underneath the mouse pointer from the WFS, but causes a lot of GetFeature requests to be issued. | [
-0.006016377359628677,
-0.002057073637843132,
-0.009994527325034142,
0.016690896824002266,
0.007538238540291786,
-0.021380355581641197,
0.010166001506149769,
0.035382650792598724,
-0.017942193895578384,
0.031880028545856476,
-0.013515307568013668,
0.02029094658792019,
-0.01853053644299507,
... | [
0.1208767294883728,
-0.12496773153543472,
0.5513185858726501,
0.1485617458820343,
-0.04413582757115364,
0.3621685206890106,
-0.0697210282087326,
0.009531114250421524,
-0.22325730323791504,
-1.23137629032135,
-0.03684425726532936,
0.22997841238975525,
-0.37645187973976135,
0.239401698112487... |
When items get dropped and left, do they ever expire or will they be available indefinitely until somebody picks them up? I believe keys that get dropped by portals when links decay expire in a day or two and vanish. Is there anything like that for manually placed items? | [
0.01409418135881424,
0.028842436149716377,
-0.00331233162432909,
0.0025044993963092566,
0.018522577360272408,
-0.011944263242185116,
0.012547777034342289,
0.015128714963793755,
-0.027254141867160797,
0.02154172770678997,
-0.026668855920433998,
0.035899244248867035,
0.009013061411678791,
0.... | [
0.30401375889778137,
-0.06307213008403778,
0.40440306067466736,
0.4830235242843628,
0.40923789143562317,
-0.39719563722610474,
0.1167333722114563,
0.3543643057346344,
-0.7199264764785767,
0.12089293450117111,
-0.18656465411186218,
0.1045181080698967,
-0.03871404379606247,
0.370562911033630... |
Most programming languages have some design decisions that influence their usage and applicability. For example: * Python focused on maintainability/readability of code and had indentation be a part of the language itself. * Java's intention was to be cross platform OOP 'easier' and 'friendlier' than C++ * Objective-C was built as an OO wrapper around C not knowing the future of C++ at the time * Erlang is designed for highly fault tolerant and concurrent systems * PHP designed for handling dynamic creation of web pages * CoffeeScript designed to expose the _good parts_ of Javascript and adding OOP syntactical sugar and hiding the nuances (globals etc.) of JS 'behind the scenes' etc. Each programming language tried to exploit and capitalize on a particular niche IMHO. The above are my perspectives on what were the founding principles of the programming languages and that governed their evolution and widespread adoptability. Of course, there are many more, but the list is only intended as an example However, I've struggled to understand the founding principles on which Ruby is based and its growing popularity. What were the founding principles of Ruby that makes it popular today? Or is it the genius of one man who designed the Rails framework? If the latter was it that Ruby made the designing of Rails better/easier/faster? In what sense? The most commonly cited reason as per its creator is '...wanted a fun weakly typed programming language' - I don't see that as a reason for creating a new programming language altogether! Programming is sheer fun IMHO irrespective of the language (each language has some bad parts, but one either gets around it or lives with it). So what niche did (or does) Ruby exploit that isn't exploited by the current languages? What is the 'strong point' (USP) of Ruby that has led to its widespread adoptability? What did Ruby do that wasn't done before (or was extremely difficult)? I'm not a Ruby programmer, but just a Ruby noob and hence the confusion. **Disclaimer** : This is NOT a flame war and I'm not looking for Ruby vs Programming language type of answers. I am looking for the design decisions on which Ruby is based that has led to widespread adoption. What niche does Ruby satisfy to have become popular or is that purely attributed to Rails? | [
0.0034743198193609715,
0.016580600291490555,
-0.022543368861079216,
-0.0003985676448792219,
-0.033272985368967056,
0.00644346559420228,
0.0072954134084284306,
0.040263012051582336,
-0.010975046083331108,
-0.002979516750201583,
-0.018292048946022987,
0.008312353864312172,
0.001958950655534863... | [
-0.004930127412080765,
0.3279859125614166,
-0.18592621386051178,
-0.13153646886348724,
-0.5254172086715698,
-0.04895779862999916,
0.3519299328327179,
0.32567915320396423,
-0.204985111951828,
-0.49845004081726074,
-0.093459352850914,
0.19286119937896729,
-0.5251502990722656,
-0.099538102746... |
I try to save my _WWE 2k14_ data and it says, "Save failed, hard drive removed." What do I do to save my data? | [
0.037262607365846634,
0.017217271029949188,
-0.0012273953761905432,
-0.003293796442449093,
0.034272536635398865,
0.06521101295948029,
0.016089975833892822,
0.00266606779769063,
-0.004959413316100836,
0.036645445972681046,
-0.02702033892273903,
0.03922075033187866,
-0.00518130324780941,
0.0... | [
0.308388888835907,
0.12298266589641571,
0.19583769142627716,
0.10064130276441574,
0.28659433126449585,
0.0012036592233926058,
0.41729453206062317,
0.2477993369102478,
0.24183596670627594,
-0.2589606046676636,
0.0651341900229454,
0.42363613843917847,
-0.07331926375627518,
0.3208762705326080... |
I'm trying to analyze for any trends in what I consider to be low observations or counts. Let's say you have a bus service with the following commuters: year average count 2001 12 2002 15 2003 17 2004 13 2005 18 2006 12 2007 9 2008 12 The above numbers are fictitious but similar to what my problem is. How can I analyze the above data for any trends and perhaps attempt to forecast for 2009 to 2012 values? | [
0.009910070337355137,
0.014355704188346863,
-0.021960357204079628,
0.019171111285686493,
0.01080276258289814,
-0.01539650373160839,
0.008191484957933426,
-0.017613518983125687,
-0.01700146123766899,
0.0034715691581368446,
-0.004283241927623749,
0.008969969116151333,
0.010620647110044956,
0... | [
0.22052723169326782,
-0.2957971692085266,
0.36495843529701233,
0.17236462235450745,
-0.26674988865852356,
0.5993134379386902,
0.2981794774532318,
0.38607844710350037,
-0.7520033121109009,
-0.38308146595954895,
0.4726240038871765,
0.16447506844997406,
0.1076950877904892,
0.00035520482924766... |
I've just used the woocommerce CSV uploader to add 1000+ products to an online store. However the products only appear in the store after they have been updated - And it has to be from the main edit page - bulk edit doesn't work. I don't want to do them individually and I'm looking for a way to bulk update the posts. I found this, but can't get it to work: add_action('init','example_hide'); function example_hide(){ $my_posts = get_posts( array('post_type' => 'post', 'numberposts' => 10 ) ); foreach ( $my_posts as $my_post ): $my_post['post_content'] = 'This is the updated content.'; wp_update_post( $my_post ); endforeach; } | [
0.0042199380695819855,
0.010717518627643585,
-0.004221459850668907,
0.041726887226104736,
-0.026184488087892532,
0.004120474215596914,
0.0077043455094099045,
0.014501831494271755,
-0.018210172653198242,
0.012082546949386597,
-0.009634578600525856,
0.014194194227457047,
-0.013244979083538055,... | [
0.7416350245475769,
-0.03840255364775658,
0.38909199833869934,
-0.1461343616247177,
-0.13826540112495422,
0.15686620771884918,
0.33311372995376587,
-0.31203752756118774,
-0.19307106733322144,
-0.7419105172157288,
0.1592724621295929,
0.24090859293937683,
-0.43978795409202576,
-0.02110116183... |
I've one usb modem qualcomm based, here is my configuration what I've done in the past. ### wvdial # wvdial phone --> WvDial: Internet dialer version 1.61 --> Cannot get information for serial port. --> Initializing modem. --> Sending: ATZ --> Sending: ATQ0 --> Re-Sending: ATZ --> Modem not responding. ### udev $ cat /etc/udev/rules.d/option.rules ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="1000", RUN+="/usr/bin/usbModemScript" ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="1000", RUN+="/sbin/modprobe option" ### script $ cat /usr/bin/usbModemScript #! /bin/bash echo 05c6 1000 > /sys/bus/usb-serial/drivers/generic/new_id ### lsusb $ lsusb |grep "1000" Bus 003 Device 004: ID 05c6:1000 Qualcomm, Inc. Mass Storage Device ### /dev $ ls /dev/ttyUSB0 /dev/ttyUSB0 ### wvdial.conf $ cat /etc/wvdial.conf [Dialer phone] Modem Type = Analog Modem Phone = #777 ISDN = 0 Baud = 460800 Username = "user" Password = "pwd" Modem = /dev/ttyUSB0 Init1 = ATZ Stupid Mode = 1 ### wvdialconf $ wvdialconf Editing `/etc/wvdial.conf'. Scanning your serial ports for a modem. Modem Port Scan<*1>: S0 S1 S2 S3 WvModem<*1>: Cannot get information for serial port. ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up. Sorry, no modem was detected! Is it in use by another program? Did you configure it properly with setserial? Please read the FAQ at http://alumnit.ca/wiki/?WvDial ### wvdial $ wvdial phone --> WvDial: Internet dialer version 1.61 --> Cannot get information for serial port. --> Initializing modem. --> Sending: ATZ --> Sending: ATQ0 --> Re-Sending: ATZ --> Modem not responding. I'm using x86 fedora 18. ### UPDATE #1 ### lsmod $ lsmod Module Size Used by option 29833 0 usb_wwan 18701 1 option ip6table_filter 12712 0 ip6_tables 17745 1 ip6table_filter ebtable_nat 12696 0 ebtables 21316 1 ebtable_nat fuse 71577 9 bnep 18864 2 bluetooth 275642 7 bnep vboxpci 22897 0 vboxnetadp 25637 0 vboxnetflt 27262 0 vboxdrv 264146 3 vboxnetadp,vboxnetflt,vboxpci be2iscsi 76220 0 iscsi_boot_sysfs 15122 1 be2iscsi bnx2i 49543 0 cnic 57574 1 bnx2i uio 14413 1 cnic cxgb4i 32075 0 cxgb4 97513 1 cxgb4i cxgb3i 28034 0 cxgb3 130967 1 cxgb3i mdio 13244 1 cxgb3 libcxgbi 54562 2 cxgb3i,cxgb4i ib_iser 32692 0 rdma_cm 37085 1 ib_iser ib_addr 13513 1 rdma_cm iw_cm 13753 1 rdma_cm ib_cm 36713 1 rdma_cm ib_sa 23966 2 rdma_cm,ib_cm ib_mad 37175 2 ib_cm,ib_sa ib_core 61976 6 rdma_cm,ib_cm,ib_sa,iw_cm,ib_mad,ib_iser iscsi_tcp 18016 0 libiscsi_tcp 19468 4 cxgb3i,cxgb4i,iscsi_tcp,libcxgbi libiscsi 44825 8 libiscsi_tcp,bnx2i,cxgb3i,cxgb4i,be2iscsi,iscsi_tcp,ib_iser,libcxgbi scsi_transport_iscsi 46616 8 bnx2i,be2iscsi,iscsi_tcp,ib_iser,libcxgbi,libiscsi arc4 12544 2 rtl8187 56256 0 eeprom_93cx6 12987 1 rtl8187 mac80211 471137 1 rtl8187 uvcvideo 71339 0 videobuf2_vmalloc 12840 1 uvcvideo videobuf2_memops 13191 1 videobuf2_vmalloc videobuf2_core 33259 1 uvcvideo videodev 91347 2 uvcvideo,videobuf2_core media 19720 2 uvcvideo,videodev cfg80211 170721 2 mac80211,rtl8187 snd_hda_codec_conexant 56642 1 snd_hda_intel 32539 2 snd_hda_codec 109374 2 snd_hda_codec_conexant,snd_hda_intel toshiba_acpi 18335 0 sparse_keymap 13343 1 toshiba_acpi snd_hwdep 13233 1 snd_hda_codec snd_seq 54700 0 rfkill 20452 5 cfg80211,toshiba_acpi,bluetooth snd_seq_device 13825 1 snd_seq snd_pcm 81512 2 snd_hda_codec,snd_hda_intel snd_page_alloc 13710 2 snd_pcm,snd_hda_intel snd_timer 23743 2 snd_pcm,snd_seq snd 63247 12 ### /var/log/messages $ tail -f /var/log/messages Jul 13 14:16:43 localhost ntfs-3g[1519]: Version 2012.1.15 integrated FUSE 27 Jul 13 14:16:43 localhost ntfs-3g[1519]: Mounted /dev/sda5 (Read-Write, label "", NTFS 3.1) Jul 13 14:16:43 localhost ntfs-3g[1519]: Cmdline options: rw Jul 13 14:16:43 localhost ntfs-3g[1519]: Mount options: rw,allow_other,nonempty,relatime,fsname=/dev/sda5,blkdev,blksize=4096 Jul 13 14:16:43 localhost ntfs-3g[1519]: Ownership and permissions disabled, configuration type 1 Jul 13 14:16:44 localhost systemd[1]: Starting Stop Read-Ahead Data Collection... Jul 13 14:16:44 localhost systemd[1]: Started Stop Read-Ahead Data Collection. Jul 13 14:17:17 localhost kernel: [ 102.933110] usb 3-1: new full-speed USB device number 2 using uhci_hcd Jul 13 14:17:17 localhost kernel: [ 103.081203] usb 3-1: New USB device found, idVendor=05c6, idProduct=1000 Jul 13 14:17:17 localhost kernel: [ 103.081214] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 13 14:17:17 localhost kernel: [ 103.081221] usb 3-1: Product: USB MMC Storage Jul 13 14:17:17 localhost kernel: [ 103.081228] usb 3-1: Manufacturer: Qualcomm, Incorporated Jul 13 14:17:17 localhost kernel: [ 103.081234] usb 3-1: SerialNumber: 000000000002 Jul 13 14:17:17 localhost mtp-probe: checking bus 3, device 2: "/sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1" Jul 13 14:17:17 localhost mtp-probe: bus: 3, device: 2 was not an MTP device Jul 13 14:17:17 localhost kernel: [ 103.132523] usbserial_generic 3-1:1.0: The "generic" usb-serial driver is only for testing and one-off prototypes. Jul 13 14:17:17 localhost kernel: [ 103.132531] usbserial_generic 3-1:1.0: Tell linux-usb@vger.kernel.org to add your device to a proper driver. Jul 13 14:17:17 localhost kernel: [ 103.132535] usbserial_generic 3-1:1.0: generic converter detected Jul 13 14:17:17 localhost kernel: [ 103.134761] usb 3-1: generic converter now attached to ttyUSB0 Jul 13 14:17:17 localhost kernel: [ 103.159122] usbcore: registered new interface driver option Jul 13 14:17:17 localhost kernel: [ 103.160896] USB Serial support registered for GSM modem (1-port) Jul 13 14:17:17 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) opening serial port... Jul 13 14:17:17 localhost dbus-daemon[593]: modem-manager[720]: <warn> (ttyUSB0): port attributes not fully set Jul 13 14:17:17 localhost modem-manager[720]: <info> (ttyUSB0) opening serial port... Jul 13 14:17:17 localhost modem-manager[720]: <warn> (ttyUSB0): port attributes not fully set Jul 13 14:17:29 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) closing serial port... Jul 13 14:17:29 localhost modem-manager[720]: <info> (ttyUSB0) closing serial port... Jul 13 14:17:59 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) serial port closed Jul 13 14:17:59 localhost modem-manager[720]: <info> (ttyUSB0) serial port closed Jul 13 14:17:59 localhost modem-manager[720]: <info> (ttyUSB0) opening serial port... Jul 13 14:17:59 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) opening serial port... Jul 13 14:18:05 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) closing serial port... Jul 13 14:18:05 localhost modem-manager[720]: <info> (ttyUSB0) closing serial port... Jul 13 14:18:09 localhost dbus-daemon[593]: dbus[593]: [system] Activating service name='net.reactivated.Fprint' (using servicehelper) Jul 13 14:18:09 localhost dbus[593]: [system] Activating service name='net.reactivated.Fprint' (using servicehelper) Jul 13 14:18:09 localhost dbus-daemon[593]: dbus[593]: [system] Successfully activated service 'net.reactivated.Fprint' Jul 13 14:18:09 localhost dbus[593]: [system] Successfully activated service 'net.reactivated.Fprint' Jul 13 14:18:09 localhost dbus-daemon[593]: Launching FprintObject Jul 13 14:18:09 localhost dbus-daemon[593]: ** Message: D-Bus service launched with name: net.reactivated.Fprint Jul 13 14:18:09 localhost dbus-daemon[593]: ** Message: entering main loop Jul 13 14:18:35 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) serial port closed Jul 13 14:18:35 localhost modem-manager[720]: <info> (ttyUSB0) serial port closed Jul 13 14:18:35 localhost modem-manager[720]: <info> (ttyUSB0) opening serial port... Jul 13 14:18:35 localhost modem-manager[720]: <warn> (ttyUSB0): port attributes not fully set Jul 13 14:18:35 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) opening serial port... Jul 13 14:18:35 localhost dbus-daemon[593]: modem-manager[720]: <warn> (ttyUSB0): port attributes not fully set Jul 13 14:18:40 localhost dbus-daemon[593]: ** Message: No devices in use, exit Jul 13 14:18:47 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) closing serial port... Jul 13 14:18:47 localhost modem-manager[720]: <info> (ttyUSB0) closing serial port... Jul 13 14:19:17 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) serial port closed Jul 13 14:19:17 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) opening serial port... Jul 13 14:19:17 localhost modem-manager[720]: <info> (ttyUSB0) serial port closed Jul 13 14:19:17 localhost modem-manager[720]: <info> (ttyUSB0) opening serial port... Jul 13 14:19:23 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) closing serial port... Jul 13 14:19:23 localhost modem-manager[720]: <info> (ttyUSB0) closing serial port... Jul 13 14:19:53 localhost dbus-daemon[593]: modem-manager[720]: <info> (ttyUSB0) serial port closed Jul 13 14:19:53 localhost modem-manager[720]: <info> (ttyUSB0) serial port closed Jul 13 14:19:55 localhost dbus-daemon[593]: dbus[593]: [system] Activating service name='net.reactivated.Fprint' (using servicehelper) Jul 13 14:19:55 localhost dbus[593]: [system] Activating service name='net.reactivated.Fprint' (using servicehelper) Jul 13 14:19:55 localhost dbus-daemon[593]: dbus[593]: [system] Successfully activated service 'net.reactivated.Fprint' Jul 13 14:19:55 localhost dbus[593]: [system] Successfully activated service 'net.reactivated.Fprint' Jul 13 14:19:55 localhost dbus-daemon[593]: Launching FprintObject Jul 13 14:19:55 localhost dbus-daemon[593]: ** Message: D-Bus service launched with name: net.reactivated.Fprint Jul 13 14:19:55 localhost dbus-daemon[593]: ** Message: entering main loop Jul 13 14:20:01 localhost modem-manager[1827]: <info> ModemManager (version 0.6.0.0-2.fc18) starting... Jul 13 14:20:01 localhost modem-manager[1827]: <warn> Could not acquire the org.freedesktop.ModemManager service as it is already taken. Return: 3 //here logged because I ve just tried to manually start modem-manager from terminal but the log below says Jul 13 14:20:25 localhost modem-manager[1833]: <info> [1373700025.052722] ModemManager (version 0.6.0.0-2.fc18) starting... Jul 13 14:20:25 localhost modem-manager[1833]: <warn> [1373700025.057438] Could not acquire the org.freedesktop.ModemManager service as it is already taken. Return: 3 Jul 13 14:20:26 localhost dbus-daemon[593]: ** Message: No devices in use, exit | [
-0.00013275828678160906,
-0.0038428306579589844,
-0.005975756328552961,
0.017360489815473557,
-0.01662612147629261,
0.016127709299325943,
0.01080181822180748,
0.016376551240682602,
-0.021211974322795868,
0.00018049520440399647,
-0.01355096884071827,
0.003837892320007086,
-0.02072403021156788... | [
0.3018011152744293,
-0.16915179789066315,
0.5890656113624573,
-0.12513163685798645,
0.016715707257390022,
0.047540366649627686,
-0.004282854031771421,
-0.2945789098739624,
-0.35426193475723267,
-0.8664730191230774,
0.4271802306175232,
0.7157905697822571,
-0.5861880779266357,
0.070559307932... |
I'm having a issue, I need to copy the file contents and remove a couple of lines if they match the output from a previous command. But so far, I'm having an issue in maintaining the file lines exactly the same. I'm putting the simple part of the script as the if to omit the copy are not part of the problem as this happens with unaffected lines. For the example: In the original file I have the following Testing, resuming text When run the script the fields become: Testing, resuming text I'm doing the following: #!/usr/bin/bash rm /tmp/dest_file while read line do echo $line >> /tmp/dest_file done < $1 The problem I have with this is that the files will become different due to the tab formatted fields. | [
0.014514310285449028,
0.009716404601931572,
-0.010589790530502796,
0.016808316111564636,
-0.0001838782336562872,
0.003518748562783003,
0.006027023307979107,
0.015769587829709053,
-0.020072106271982193,
0.0052066463977098465,
-0.016156459227204323,
0.009650886058807373,
0.0019974946044385433,... | [
0.6545865535736084,
0.19484341144561768,
0.27019166946411133,
-0.17996950447559357,
-0.003765893867239356,
-0.035271450877189636,
0.47784698009490967,
-0.4654671251773834,
-0.1752466857433319,
-0.4693395495414734,
-0.056819334626197815,
0.8871984481811523,
-0.08406703919172287,
-0.00288173... |
I have three Gmail accounts. All of them are configured on my Samsung Galaxy 5. My phone is on Wi-Fi almost every time so accounts are always active. Gmail has an ability to chat. The problem is when I connect to one of my Gmail accounts using computer, I can only see in gTalk that only one my Gmail account is active, online. Always one and always the same... though all three accounts are online on my phone and ready to receive mails or talks. Others are always shown as offline. Maybe there is a program which helps to do this, or maybe the idea is that this active account is the first on my phone? Is it possible to do that all accounts would be shown as active in gTalk? Thank You all in advance. | [
-0.0025825784541666508,
0.005269029643386602,
-0.008929608389735222,
0.012581278569996357,
0.01956375502049923,
-0.0005655918503180146,
0.008691269904375076,
-0.0013899719342589378,
-0.01486374344676733,
-0.016726814210414886,
-0.0036393345799297094,
0.017120925709605217,
-0.0003243922255933... | [
0.01965269446372986,
0.4015548825263977,
0.9439923763275146,
-0.10766088217496872,
-0.28617170453071594,
0.48431020975112915,
0.6795980334281921,
0.35792991518974304,
-0.320987731218338,
-0.7692335247993469,
0.1651362031698227,
0.6701956391334534,
-0.2418030947446823,
0.28648942708969116,
... |
I'm using the snugshade environment to draw a quote box, but it's a little to wide and not flush with the text on both sides. I have absolutely no idea if i can fix this with this environment or if i have to use something else - which i would not prefer as a solution. MWE: \documentclass[12pt,a4paper]{scrbook} \usepackage[svgnames]{xcolor} \definecolor{lightgray}{gray}{0.95} \definecolor{quoteColor}{gray}{0.15} \usepackage{libertine} \usepackage{graphicx} \usepackage{framed} \usepackage{lipsum} \newcommand*\openquote{\makebox(0,-45){\scalebox{5}{``}}} \newcommand*\closequote{\makebox(0, -5){\scalebox{5}{''}}} \colorlet{shadecolor}{lightgray} \makeatletter \newif\if@right \def\shadequote{\@righttrue\shadequote@i} \def\shadequote@i{\begin{snugshade}\begin{quote}\openquote} \def\endshadequote{% \if@right\hfill\fi\closequote\end{quote}\end{snugshade}} \@namedef{shadequote*}{\@rightfalse\shadequote@i} \@namedef{endshadequote*}{\endshadequote} \makeatother \begin{document} \lipsum[3] \color{quoteColor} \begin{shadequote} \begin{quote} \lipsum[4] \end{quote} \end{shadequote} \lipsum[5] \end{document} Picture:  | [
0.0038044704124331474,
0.0014678249135613441,
0.0019539659842848778,
0.015784362331032753,
-0.019668791443109512,
-0.006136659532785416,
0.0058474428951740265,
0.013037970289587975,
-0.009801095351576805,
-0.001729480572976172,
-0.010644683614373207,
-0.003278403775766492,
-0.013599156402051... | [
0.7282692193984985,
0.048526134341955185,
0.7496291399002075,
-0.10014325380325317,
-0.11663514375686646,
-0.18443240225315094,
0.3085915148258209,
-0.14728710055351257,
-0.025578292086720467,
-0.8537012934684753,
0.4246217906475067,
0.4603695571422577,
-0.4570698142051697,
0.3097866475582... |
I am trying to run a program that I downloaded in Ubuntu latest version, but I continue getting an error everytime I try to run the program. It says: File Not Found: BeautifulSoup So in order to attempt to fix this, I've downloaded the bs4 beautiful soup package through the command line. I've tried running `python`, and then importing it by doing, `from bs4 import BeautifulSoup`. I have tried many different variations of this and downloading and redownloading it. I've tried running the `from bs4 import BeautifulSoup` directly from the terminal, but that did not work and returned an error. Does anyone know anyway to fix this issue or what I need to do? | [
-0.008851264603435993,
-0.008233853615820408,
-0.004368991125375032,
0.02036060206592083,
-0.018535301089286804,
-0.0020955330692231655,
0.007472868077456951,
0.01493604015558958,
-0.015571266412734985,
-0.018451375886797905,
-0.009852578863501549,
0.006656355690211058,
-0.015966521576046944... | [
0.2087860256433487,
0.1514514535665512,
0.004536850843578577,
-0.3593573570251465,
-0.2380608767271042,
0.1925983428955078,
0.4217296540737152,
0.5536110401153564,
-0.2722267210483551,
-0.6494891047477722,
-0.18399780988693237,
0.08426620066165924,
-0.3716210126876831,
0.10219553858041763,... |
The basic commutator relation $$[J_1,J_2]=i \hbar J_3$$ of quantum mechanics yields the uncertainty relation $$\Delta(J_1)\Delta(J_2)\ge \frac{\hbar}{2}|\langle J_3\rangle|.$$ However, unlike the position-momentum or energy-time uncertainty relations, I'm not familiar with any intuitive explanation of this uncertainty. I would like to see a heuristic derivation for this uncertainty relation which can be understood by a mathematically untrained layman (i. e. something you could tell your non-physicist friends or print in a book on popular physics). If possible, the explanation should be based on a real-life experiment in which this uncertainty has immediately visible consequences. | [
0.006914781406521797,
0.018544919788837433,
0.008643930777907372,
0.0031765971798449755,
0.02007335238158703,
-0.01961621642112732,
0.006674625910818577,
0.0012373204808682203,
-0.009749933145940304,
-0.013502026908099651,
-0.006849278695881367,
0.013130761682987213,
0.003816304262727499,
... | [
-0.19955207407474518,
0.14695346355438232,
0.31929606199264526,
-0.18507856130599976,
0.16067619621753693,
0.14545035362243652,
-0.2618282437324524,
-0.5166537165641785,
0.2857935428619385,
-0.30317816138267517,
-0.028454886749386787,
0.5649353265762329,
-0.40232306718826294,
0.57507187128... |
as asked in the Android chat room. At home I have a remote-access VNC server set up (running UltraVNC server). My current Android VNC app, called, funnily enough `androidVNC` will only accept IP addresses to connect to. This is fine when using it inside the home, but as I want to access it from outside, my external IP address is dynamic, so when I save the settings one day it may be different the next day. I have a domain, `home.example.co.uk` that is set up for the web server also running on that machine. If I open the ports in my home router, how can I connect via the server hostname (`home.example.co.uk:5900`, or similar)? If it requires a new VNC client, so be it. | [
0.016289856284856796,
0.013851316645741463,
0.0036864285357296467,
-0.00015227682888507843,
-0.05037742108106613,
0.0003130757249891758,
0.008503776043653488,
0.014408975839614868,
-0.015420893207192421,
-0.03238291293382645,
-0.014883505180478096,
0.011303015053272247,
0.012401500716805458,... | [
0.3867746591567993,
0.34163013100624084,
0.6852360963821411,
-0.480425089597702,
0.08055908232927322,
0.46096155047416687,
0.14552946388721466,
0.12826405465602875,
-0.6366116404533386,
-0.6983962059020996,
-0.018283523619174957,
0.4180198907852173,
-0.15416960418224335,
0.3919607102870941... |
I am tasked with designing and implementing a flexible UI solution for deployment across a series of "kiosk"-ed Windows endpoints. There is some debate about what is the considered to be the best technology solution for the actual UI itself. The requirements are: * Must be hardware accelerated * Must play WMV video (for licensing reasons) * Must be skinnable/themeable. * Must support off-screen rendering. | [
-0.020623093470931053,
0.0059471833519637585,
-0.013356714509427547,
0.005075022112578154,
-0.02218022570014,
0.003098804038017988,
0.008575528860092163,
0.02892393060028553,
-0.016198646277189255,
-0.019615009427070618,
-0.024570642039179802,
0.01637125574052334,
0.0015711513115093112,
0.... | [
0.47409775853157043,
0.03804586082696915,
0.7668044567108154,
0.028041161596775055,
0.12413274496793747,
0.03793559595942497,
-0.20833268761634827,
-0.03401258960366249,
0.1261211633682251,
-0.8161100745201111,
-0.35750800371170044,
0.34271439909935,
0.3054821789264679,
0.14974337816238403... |
Im trying to use mergecap to merge 15 old pcap files in a folder. I tried to use FILES=($(find /mnt/md0/capture/DCN/ -maxdepth 1 -type f -name "*.pcap" -print0 | xargs -0 ls -lt | tail -15 | awk '{print $8}')) and use mergecap command as `mergecap -w Merge.pcap ${FILES[@]}` but the mergecap doesnt run when I put it on crontab. Is there any method to combine these two commands to work properly. I tried as answer suggested `@l0b0 tried find /mnt/md0/capture/DCN/ -maxdepth 1 -type f -name "*.pcap" -print0 | tr '\0\n' '\n\0' | tail -15 | tr '\0\n' '\n\0' | xargs -r0 mergecap -w /mnt/md0/capture/DCN/Merge_"${TAG1}".pcap` in order to get the name of the oldest file to be merged into the output files name. But it gives gibberish as the file name. Am I doing anything wrong? Following scripts gets me the file names FILES=($(find /mnt/md0/capture/DCN/ -maxdepth 1 -type f -name "*.pcap" -print0 | xargs -0 ls -lt | tail -15 | awk '{print $8}')) TAG1=$(basename "${FILES[0]}" | sed 's/.pcap//') | [
-0.0045516472309827805,
0.0016561660449951887,
-0.007811973802745342,
0.012685135006904602,
0.0016300622373819351,
-0.009190818294882774,
0.007385856006294489,
-0.0038922447711229324,
-0.017381370067596436,
0.0185953751206398,
-0.004952733404934406,
0.009385449811816216,
-0.00148434762377291... | [
0.12403279542922974,
0.2510080337524414,
0.48415693640708923,
-0.0036970479413866997,
0.01115487515926361,
0.11324729025363922,
0.18119558691978455,
-0.3462551534175873,
0.025303971022367477,
-0.741572916507721,
0.10817266255617142,
0.6715317964553833,
-0.6535903811454773,
0.18197621405124... |
> **Possible Duplicate:** > What would you consider best practice workflow tools for web application > (PHP) development? I start my new job next week as a PHP Developer which is my dream job but it's going to be object-orientated which I've only done in Java whilst at university. My question is regarding PHP tools - what are the best IDE's (I use notepad++), what versioning packages work best and bug trackers etc, so I was just wondering what tools the PHP developers out there use in their working lives. | [
0.0009361461852677166,
0.006753452122211456,
-0.0009739853558130562,
0.001588507671840489,
-0.01759611815214157,
-0.0007849014364182949,
0.006079545244574547,
0.008817282505333424,
-0.017315730452537537,
0.0001578752271598205,
-0.0007605585269629955,
0.02031109295785427,
0.005497017409652471... | [
0.5897836089134216,
0.27063295245170593,
0.16856169700622559,
-0.11045794934034348,
-0.20814383029937744,
0.1149541586637497,
0.3693006932735443,
0.0583156943321228,
-0.38232576847076416,
-0.7609960436820984,
0.3990006148815155,
0.3844166398048401,
0.3203734755516052,
-0.017924094572663307... |
\--Revised-- I am looking at a math workbook for teenagers. This one has the following structure: > 1.Main Chapter > > 1.1 Subchapter > > 1.11 Task 1 > > a) problem 1 b) problem 2 c) problem 3 > > d) problem 4 e) problem 5 > > 1.12 Task 2 > > etc. ... Many of the math problems are very small and the natural thing would be to have them on line, horizontally. However an expression is often broken and aligned at the equal sign. Not unlike an equation (but not). Secondly, when the line that contain the structure breaks, the item indicators also align, presuming the use of an enumerated list. How can I reasonably assume this is done? Does it have to be a forced method, as a table, or can it be a flexible one, like inline? PS.: I would have tagged this under the lacking {structure}. Hence the broad tags. | [
-0.005191836506128311,
0.004937431775033474,
-0.02124086208641529,
0.006969869136810303,
-0.0065248878672719,
0.011382445693016052,
0.006509113125503063,
0.01325194537639618,
-0.01599215157330036,
-0.0038825569208711386,
-0.02459738776087761,
0.005604201927781105,
-0.009622996672987938,
0.... | [
-0.019021108746528625,
0.08589723706245422,
0.37738552689552307,
0.23991329967975616,
-0.06726650893688202,
0.12132342904806137,
0.2211139053106308,
-0.09525133669376373,
-0.2870595157146454,
-0.6775439381599426,
-0.19939814507961273,
0.22818128764629364,
0.14603765308856964,
-0.0695726647... |
I would like to not only pre-populate the title, tags, and categories, but would also like to pre-populate the slug / permalink as well. Can I do this and if so how? **Here's my functions.php code:** add_action( 'load-post-new.php', 'myplugin_post_new' ); function myplugin_post_new(){ add_action( 'wp_insert_post', 'myplugin_wp_insert_post_default' ); } function myplugin_wp_insert_post_default( $post_id ){ wp_set_post_tags( $post_id, $_REQUEST['tags']); wp_set_post_categories( $post_id, $_REQUEST['cat']); } If I go to **.../post-new.php?post_title=testing &content=testing2&tags=2014&cat=1**, I get my title, content, tag, and category pre-populated. Only missing the slug/permalink. Currently, I'm not wanting to use the XML-RPC method... **What I would like to do:** I would like to generate a page dynamically from a user's response in a form. The user would then be presented an editor where they can make final edits before publishing. | [
0.000716374721378088,
0.013742836192250252,
0.013174193911254406,
0.019778337329626083,
0.021311145275831223,
0.0067293052561581135,
0.007193078752607107,
0.011614272370934486,
-0.014884160831570625,
0.009244921617209911,
-0.01066663023084402,
0.006290487479418516,
-0.007435578387230635,
0... | [
0.3057604730129242,
-0.010206356644630432,
0.7663373947143555,
-0.17541058361530304,
0.056943878531455994,
0.11770636588335037,
0.02503236010670662,
-0.28313082456588745,
0.1057826429605484,
-0.604410707950592,
-0.07245895266532898,
0.5245616436004639,
-0.08925110846757889,
-0.106183961033... |
I am trying to get rid of the default "boxedsections" with shadows used in the sciposter class and replace them with either "plainboxedsections" or "plainsections". In the manual three heading options are mentioned, but not how to switch between them. | [
0.01945236138999462,
0.00795028917491436,
-0.0007950147846713662,
0.04554353281855583,
-0.030452534556388855,
-0.01431141048669815,
0.013551618903875351,
0.021710865199565887,
-0.018725138157606125,
-0.029571307823061943,
-0.020916683599352837,
-0.0006392411305569112,
0.005359322763979435,
... | [
0.2008609175682068,
-0.1896234154701233,
0.14664007723331451,
0.03183094039559364,
-0.07417184859514236,
0.24219226837158203,
-0.12712454795837402,
0.20242032408714294,
-0.16860532760620117,
-0.6886075735092163,
0.0630873441696167,
0.08137698471546173,
-0.19846664369106293,
-0.121961295604... |
I'm just getting into upstart so i wrote a very basic script just to print to log file called: `vm-service.conf` that I put in `/etc/init`: description "Virtual Images" author "Me" start on runlevel [2345] stop on runlevel [016] respawn script echo "DEBUG: `set`" >> /tmp/vm-service.log end script pre-stop script echo "DEBUG: `set`" >> /tmp/vm-service.log end script if I run `sudo start vm-service`, it outputs: vm-service start/running, process 29034 But, when I run `sudo stop vm-service`, it outputs: stop: Unknown instance I've tried running `sudo initctl reload-configuration`, but i still get the error on stop. I've looked at the cookbook but I'm probably missing something obvious. | [
0.009308179840445518,
0.014171367511153221,
0.014940844848752022,
0.005204006098210812,
-0.006788585335016251,
0.0145317567512393,
0.009270155802369118,
0.026644978672266006,
-0.018311619758605957,
0.0017828517593443394,
-0.01354127936065197,
0.021023033186793327,
0.0008016735082492232,
0.... | [
0.4283343553543091,
0.21361759305000305,
0.6238688230514526,
-0.2672553062438965,
0.31601670384407043,
-0.023507457226514816,
0.56242436170578,
-0.2798308730125427,
-0.23702079057693481,
-0.47605323791503906,
0.012828875333070755,
0.47224050760269165,
0.019067440181970596,
0.10043144971132... |
$id = 25; $post = get_page($id); $title = apply_filters('the_title', $post->post_title); $content = apply_filters('the_content', $post->post_content); echo $title, $content; The above code shows title and full content, but I want to show the short summary only. How can I do this? | [
-0.011423510499298573,
0.01727854087948799,
0.010970129631459713,
0.014508944936096668,
-0.011989862658083439,
0.008150883950293064,
0.010805641300976276,
0.01111766416579485,
-0.01692904718220234,
0.001912778476253152,
-0.0368320532143116,
0.014537543058395386,
-0.016425134614109993,
0.03... | [
0.5243023633956909,
0.3897327184677124,
0.5529568791389465,
-0.1552223116159439,
-0.06916747242212296,
-0.16018721461296082,
0.3374691903591156,
-0.6317108273506165,
0.056746914982795715,
-0.5011377334594727,
-0.3140309154987335,
0.4048096835613251,
-0.20235860347747803,
0.2442800402641296... |
I can intersect 2 layers with polygons using ArcMap. However I can specify only overall tolerance no matter what layer a feature is in (even same layer). So I either end up with lots of slivers if I don't tolerate snapping, or I end up collapsing small features from the first layer that I'd want to keep. The problem is that I would like for features let's say less than 10 m apart in the first layer to stay as they are if they happen to be contained within some polygon of the second layer. However I'd like for edges of polygons of the 2nd layer to snap to those in the first layer if they are within 10 m. I'm open to a solution using any tool be it ArcMap or some python library/script. Here is the rough idea of what I want.  | [
0.0003270958550274372,
0.01746627874672413,
-0.021358560770750046,
0.008526001125574112,
-0.01000953372567892,
-0.009484359063208103,
0.00799039751291275,
0.0031349214259535074,
-0.012721234932541847,
0.0067825233563780785,
-0.006016968283802271,
0.012832911685109138,
-0.01843826100230217,
... | [
0.47488972544670105,
0.0730353519320488,
0.36250850558280945,
0.016287965700030327,
-0.2557060122489929,
0.03299173712730408,
0.5385056734085083,
-0.23038889467716217,
-0.21316656470298767,
-0.9056051969528198,
0.07913825660943985,
0.48571303486824036,
-0.05025766044855118,
0.1292135119438... |
The World's Best Dad achievement's description is "Say things to Jess that no parent should ever say," with a counter for 3 things. What things do I need to say to her to get this achievement? For that matter, are all 3 things in Episode 1? | [
-0.0038405084051191807,
0.012713789939880371,
-0.030648361891508102,
0.007073955610394478,
-0.008341767825186253,
0.02378746308386326,
0.012817942537367344,
0.020072083920240402,
-0.029729699715971947,
0.005783201660960913,
-0.020333047956228256,
0.0060813212767243385,
0.008685520850121975,
... | [
0.07362782955169678,
0.22617872059345245,
0.572166919708252,
-0.1712830513715744,
-0.2448074072599411,
0.15460731089115143,
0.9791220426559448,
0.1448272317647934,
0.005632695276290178,
-0.15359297394752502,
-0.07826532423496246,
0.1807660311460495,
0.11661803722381592,
0.24481694400310516... |
I'm dealing with Gibbs Sampling now. Let's consider the example: I know the distribution of X|Y and the distribution of Y. They are some known - Binomial or Beta or other but particular. Thus I have in analytical view f(X|Y), f(Y) and I can calculate joint distribution f(X,Y). To provide Gibbs Sampling I need to calculate many times X∼X|Y and Y∼Y|X. The question is: which technique can I use to sample Y∼Y|X in general case, for any given f(X|Y), f(Y)? | [
-0.007471561431884766,
0.009757695719599724,
-0.022434066981077194,
0.018167413771152496,
-0.01963667757809162,
0.005267086438834667,
0.00933846365660429,
-0.0019073301227763295,
-0.019379308447241783,
-0.03065655007958412,
-0.009735167026519775,
0.005257235839962959,
-0.029781796038150787,
... | [
0.3066958487033844,
-0.38754943013191223,
-0.3821439743041992,
-0.16457977890968323,
-0.1524207890033722,
0.3190755546092987,
-0.07986396551132202,
-0.3637491464614868,
0.06545090675354004,
-0.5184528827667236,
0.3121761381626129,
0.41411319375038147,
-0.09950900077819824,
0.34317576885223... |
In playing with and comparing the various answers to my question here, I tried applying `Timing[]` to see how fast things ran, but it seemed that some of the answers (but not all of them) were a lot faster when run for a second time. How can I make sure that there isn't some kind of caching of intermediate results throwing off the `Timing[]`? | [
-0.010695277713239193,
0.012649841606616974,
-0.010808439925312996,
0.017475351691246033,
0.007869563065469265,
0.006844535004347563,
0.006556258071213961,
0.00926288217306137,
-0.015220311470329762,
0.0032567447051405907,
-0.0016287011094391346,
0.008874357677996159,
-0.015104226768016815,
... | [
0.45901545882225037,
-0.2238335907459259,
-0.12045647948980331,
0.2593194246292114,
-0.10961006581783295,
0.08841919898986816,
0.3431081771850586,
0.03213740140199661,
-0.3325028717517853,
-0.19188237190246582,
0.5924936532974243,
0.3268527686595917,
0.07999160885810852,
-0.057054534554481... |
What is the correct (Ooops, I'm afraid it's me again! rule-o-cratic French speaker), preferred, then, word order in a superlative? "She booked the earliest flight she could back to London." or "She booked the earliest flight back to London she could." Or neither, the sentence sounding awkward anyway… How would you put it then? | [
0.006493694614619017,
0.0187289509922266,
-0.023798858746886253,
0.003155062673613429,
-0.005625979043543339,
-0.0060690781101584435,
0.0134432977065444,
-0.014774855226278305,
-0.018031416460871696,
0.01698366366326809,
-0.015616034157574177,
-0.0017199693247675896,
0.016665667295455933,
... | [
-0.09065621346235275,
-0.05884520336985588,
0.5435153245925903,
-0.30995407700538635,
0.1248670145869255,
0.3255835473537445,
0.3089807331562042,
0.2909785807132721,
-0.43432193994522095,
0.058634258806705475,
-0.2898991107940674,
0.2634761333465576,
0.026255374774336815,
-0.05539124831557... |
I have social icons that are being set via my theme options in WP. Of course if they are not entered I am getting an Undefined Index error. I tried wrapping isset around which removes the error, but when my options panel is saved it shows all the icons? Even if they have not been set? Confused on how to do the isset correctly? <ul class="social-icons"> <?php if ( $theme_global['social-twitter'] ) { ?> <li><a class="social-twitter" href="<?php echo $theme_global['social-twitter']; ?>" title="<?php _e( 'View Twitter Profile', 'lang' ); ?>" target="_blank"><i class="fa fa-twitter"></i><div class="tooltip"><span>Twitter</span></div></a></li> <?php } if ( $theme_global['social-facebook'] ) { ?> <li><a class="social-facebook" href="<?php echo $theme_global['social-facebook']; ?>" title="<?php _e( 'View Facebook Profile', 'lang' ); ?>" target="_blank"><i class="fa fa-facebook"></i><div class="tooltip"><span>Facebook</span></div></a></li> <?php } if ( $theme_global['social-linkedin'] ) { ?> <li><a class="social-linkedin" href="<?php echo $theme_global['social-linkedin']; ?>" title="<?php _e( 'View Linkedin Profile', 'lang' ); ?>" target="_blank"><i class="fa fa-linkedin"></i><div class="tooltip"><span>Linkedin</span></div></a></li> <?php } if ( $theme_global['social-pinterest'] ) { ?> <li><a class="social-pinterest" href="<?php echo $theme_global['social-pinterest']; ?>" title="<?php _e( 'View Pinterest Profile', 'lang' ); ?>" target="_blank"><i class="fa fa-pinterest"></i><div class="tooltip"><span>Pinterest</span></div></a></li> <?php } ?> </ul> Many thanks | [
0.026605449616909027,
-0.006996561773121357,
0.005982260685414076,
0.02100328356027603,
0.013048732653260231,
0.005607836879789829,
0.007996656931936741,
-0.0022504765074700117,
-0.01520316768437624,
0.0006529034581035376,
-0.015451762825250626,
0.004103060346096754,
-0.011812541633844376,
... | [
-0.049347467720508575,
-0.14064399898052216,
0.6851496696472168,
-0.22670216858386993,
-0.10338065773248672,
0.3125193417072296,
0.28117844462394714,
-0.142718106508255,
-0.6522006392478943,
-0.5543335676193237,
0.1680024266242981,
0.423298180103302,
-0.1395636647939682,
0.1622366756200790... |
I'm working on implementing the OSM Mobile Binary format for map data, and because it uses a 16 bit delta for each point along a way, it cannot represent a way if there is a large distance between two points. The documented solution is to inject new points into the way, to keep the gap smaller. Here's the relevant section of my code: // calculate the distance between this point and the previous point, // multiplied by 1,000,000 so it can be represented as an integer. int32_t realNodeLatDelta = ((point.latitude - lastPoint.latitude) * 1000000); int32_t realNodeLonDelta = ((point.longitude - lastPoint.longitude) * 1000000); // cast as a 16 bit int (reduces filesize by about half) int16_t nodeLatDelta = realNodeLatDiff; int16_t nodeLonDelta = realNodeLonDiff; // check if the cast caused corruption if (realNodeLatDelta != nodeLatDelta || realNodeLatDelta != nodeLatDelta) { // if this point is reached, we need to add new points in the way, // which can be represented in a 16 bit delta } I'm not sure how to calculate the position of new points along the way? I assume it needs to be a great circle? Points far enough apart to cause this issue are rare, but when they do happen it's usually a political boundary or similar, which tend to be quite long, and need to be accurately represented. | [
-0.006241681519895792,
0.007471306249499321,
-0.021498609334230423,
-0.004322282504290342,
-0.011598799377679825,
-0.010210956446826458,
0.006904477719217539,
0.012729745358228683,
-0.009596324525773525,
-0.009702013805508614,
-0.012356841005384922,
0.011481002904474735,
-0.00849621742963790... | [
0.025732548907399178,
-0.15479117631912231,
0.9813106060028076,
-0.1339208334684372,
0.284816175699234,
0.2353277951478958,
0.0358089879155159,
-0.2696656584739685,
-0.3138939142227173,
-0.782349705696106,
0.16136576235294342,
0.136773020029068,
0.09407473355531693,
0.27678364515304565,
... |
How can I use `add_menu_page()` functions some variable function ? add_menu_page('My page','My page','manage_options','my_page', 'func' ); $func = function() { echo "Done !"; }; I know I can use like function func() { echo "Done !"; }; But how can I use like $func = function() { echo "Done !"; }; to call it ? | [
0.00753553444519639,
0.013575011864304543,
0.005107436329126358,
-0.0023486041463911533,
-0.00252620130777359,
-0.014169197529554367,
0.007391326129436493,
-0.00531114311888814,
-0.017473766580224037,
-0.0075795771554112434,
-0.02335771918296814,
0.00822041928768158,
-0.008187257684767246,
... | [
0.4694397747516632,
0.016672682017087936,
0.455859512090683,
-0.1943730115890503,
0.10809128731489182,
-0.18548479676246643,
0.4718915820121765,
-0.37311044335365295,
-0.16782495379447937,
-0.14477667212486267,
-0.15330512821674347,
0.5249575972557068,
-0.3156912326812744,
0.15594641864299... |
It seems like a particular dance is called "Two-step". It gave me some doubts about how to spell step in the description of a method I use. If my method has two steps, should it be called a two step method or a two steps method? | [
0.0021496613044291735,
0.027268119156360626,
-0.014294622465968132,
0.0018180384067818522,
-0.020965974777936935,
0.016407929360866547,
0.013652301393449306,
-0.010037208907306194,
-0.027174068614840508,
-0.03739085793495178,
-0.01621265523135662,
-0.0011663734912872314,
0.005834429059177637... | [
0.24118869006633759,
-0.16811038553714752,
0.09925815463066101,
-0.07841968536376953,
-0.19133514165878296,
0.016096651554107666,
0.7305731177330017,
-0.2760836184024811,
-0.4688418507575989,
-0.5110249519348145,
0.27123162150382996,
-0.10358928143978119,
-0.24964652955532074,
-0.216509073... |
I am a longtime openSUSE user. However, my friend convinced me to give debian a try. When installing, I noticed there was no ext3 option (which I usually use), so I selected ufs. Then I got an error: > ufs file system creation failed. I tried multiple times. It would seem that it only succeeded when I created only one partition (and not a seperate /home like I usually do). Any ideas what went wrong here? And why is there no ext3 option? Are people no longer using that? I thought they were. | [
-0.006992261856794357,
0.014128338545560837,
-0.013705841265618801,
0.006846593227237463,
-0.023433420807123184,
-0.007911806926131248,
0.007423649542033672,
0.009279558435082436,
-0.017930960282683372,
-0.01394648477435112,
-0.013182107359170914,
0.005638197995722294,
-0.00966346450150013,
... | [
0.26239731907844543,
0.3690280020236969,
-0.050404567271471024,
-0.17942491173744202,
-0.2935801148414612,
-0.1531069129705429,
0.22482754290103912,
0.1700834184885025,
-0.2683615982532501,
-1.1058672666549683,
0.050517745316028595,
0.4068635404109955,
-0.5726115107536316,
0.57323271036148... |
I want to reduce spacing between figure and text (not caption) and between paragraphs. I'm using revtex4 package (two column style). | [
0.00795097928494215,
0.02819168195128441,
-0.039362166076898575,
0.05065862089395523,
0.027030281722545624,
0.00007701455615460873,
0.018578797578811646,
-0.00006405171006917953,
-0.016051411628723145,
-0.01599173992872238,
-0.037916991859674454,
-0.0008570142090320587,
0.004514463245868683,... | [
0.011853761039674282,
0.02369958721101284,
0.6600378751754761,
0.10328389704227448,
-0.2659524083137512,
0.15564140677452087,
0.24474145472049713,
-0.4120621979236603,
-0.23986117541790009,
-0.7542793154716492,
-0.09920662641525269,
0.5599097609519958,
-0.26091721653938293,
-0.545412003993... |
Is there a way to avoid linebreaks before all numbers without explicitly using the tilde? It would be nice if it worked both for explicit numbers, as in `Sample~1` as well as when a number is implied, as in `Figure~\ref{fig:label}`. If not, I think I could write a macro in emacs that uses regex to find and fix all the instances of a number or `\ref{}` that should have a tilde. | [
0.015485179610550404,
0.01471774559468031,
-0.010205652564764023,
0.02695075236260891,
0.008337043225765228,
0.007249416317790747,
0.008099505677819252,
0.0048120031133294106,
-0.020486148074269295,
0.004535598214715719,
-0.007238110993057489,
0.003988962154835463,
-0.003006629180163145,
0... | [
0.014823129400610924,
-0.20461291074752808,
0.07444092631340027,
0.1390276998281479,
-0.06179608777165413,
-0.025267837569117546,
-0.00960658397525549,
0.02482551522552967,
-0.20253559947013855,
-0.41255077719688416,
0.14390039443969727,
0.6500110030174255,
-0.24280589818954468,
-0.1973869... |
I am running factor analysis on stata to reduce a few variables to a single explanatory variable which means "experience" of a manager (should be non- negative value), however, after using "predict" command I check the range of the new variable and found that there are many negative values, how do I avoid this? The original variables are 1) number of projects done by a manager 2) number of people interacted for each project 3) number of unfinished projects. Since these 3 variables are highly correlated so I want to use factor analysis to reduce them to one single variable. If there is any other method that can also tackle this problem, please let me know! Thank you guys!! | [
0.03901845961809158,
0.018948107957839966,
-0.002375663723796606,
0.012443257495760918,
-0.002705811057239771,
-0.0026318258605897427,
0.007810676470398903,
-0.00644214591011405,
-0.012245485559105873,
-0.007821080274879932,
-0.005805986002087593,
0.007517906371504068,
0.0002926862798631191,... | [
0.3369714319705963,
0.11828064918518066,
0.2252930998802185,
-0.14827938377857208,
-0.15928664803504944,
0.10454580187797546,
0.44624513387680054,
-0.2588135302066803,
-0.24439169466495514,
-0.5404860973358154,
0.30673784017562866,
0.4612943232059479,
-0.31852248311042786,
0.40900400280952... |
I have made the mistake of not indenting the HTML tags on a page that slowly grew to over 500 lines of dense HTML. I have looked for a tool to fix the indentation, but what I have found so far seem to insist on doing additional formatting, and I really don't need those 500 lines to become 1000 because big bunches of small tags get one line per tag. Any suggestions for a tool to do the job? | [
-0.014827917329967022,
0.005353023763746023,
-0.029608650133013725,
0.019774330779910088,
-0.017569631338119507,
-0.01775587908923626,
0.008675763383507729,
-0.006226887460798025,
-0.026163294911384583,
-0.027331862598657608,
0.003816545009613037,
0.0030479312408715487,
0.002969298278912902,... | [
0.7639755606651306,
0.16338090598583221,
0.23031455278396606,
0.02387595735490322,
-0.05232223495841026,
0.11577393114566803,
0.24575957655906677,
0.19032229483127594,
-0.3578486740589142,
-0.5642896890640259,
0.43385303020477295,
0.3011390268802643,
-0.21530312299728394,
0.030952053144574... |
I'm running stock TW 4.1.1 with root and xposed mods on a Galaxy note 2 with T-mo. Up to this point, I've been happy with my setup, but now I'm reading that I am the only exception to the HB vulnerability on Android. I'd rather not upgrade, or flash a rom if I don't have to. Is there a way I can replace the lib file in es file, or some other tactic? Where would the file be, I can't find anything familiar in /system.lib. Am I understanding correctly that it is only vulnerable through browser, not apps? I changed all my passwords on app services that were susceptible. Trying to get a grasp on it all. Edit 1: I found Bluebox's heartbleed scanner in the Playstore via Android police. It says I'm running 1.0.1c but heartbeat is disabled. It did report that Netflix app was running 1.0.1e and was enabled/vulnerable. PStouch, Google+, my VPN app and xbmc all have openssl too, but supposedly safe. | [
0.012272545136511326,
0.010754238814115524,
-0.020999930799007416,
0.002545673865824938,
-0.006102883256971836,
-0.0031264766585081816,
0.004664052743464708,
0.00024213007418438792,
-0.015738997608423233,
-0.010574218817055225,
-0.013429120182991028,
0.00993523932993412,
-0.00506205391138792... | [
0.5221735239028931,
0.3871656656265259,
0.22741594910621643,
-0.2176041603088379,
0.11175034195184708,
-0.17484690248966217,
0.4917486011981964,
-0.03179820626974106,
-0.28667351603507996,
-0.7794911861419678,
-0.12736175954341888,
0.6849011778831482,
-0.3163148760795593,
0.119899123907089... |
In Russian when we want to call up a cat we say _ks-ks-ks_. What is the usual way to call it up in English? | [
0.010107162408530712,
0.02652224712073803,
-0.008351323194801807,
0.041014671325683594,
0.04224369674921036,
0.05563228949904442,
0.01917262375354767,
-0.025125963613390923,
-0.023948216810822487,
-0.006971240043640137,
-0.01293928176164627,
-0.006080924067646265,
-0.007411265280097723,
0.... | [
0.39116430282592773,
0.0940089151263237,
-0.07167653739452362,
-0.43438005447387695,
-0.2100468873977661,
0.17263278365135193,
0.5818944573402405,
0.45051541924476624,
-0.4852764308452606,
-0.1337156444787979,
-0.3298974931240082,
-0.19147156178951263,
-0.5378373861312866,
0.26478824019432... |
I learned the phrase “Turtles all the way down,” popularized by Stephen Hawking in an answer to my latest question asking the meaning of the phrase, “Mercy within mercy within mercy." Jmereno suggested that Thomas Merton’s famous phrase is similar to “Turtles all the way down.” Does “Turtles all the way down” mean endless continuation or exercise of something like ‘peeling onions’ skin’ and ‘Russian matryoshka doll,’ or it represents for dodging a question, or a simple sophism? I’m unable to judge it from explanation of Wikipedia. I should have asked this to the answerer, but I venture to put it as a question as this is different subject from my previous one. | [
-0.013454558327794075,
0.017229514196515083,
-0.005610468797385693,
0.011526402086019516,
-0.01026005856692791,
-0.004706708714365959,
0.008931219577789307,
-0.017683733254671097,
-0.01543451938778162,
0.003787097055464983,
-0.005534512456506491,
0.006630741059780121,
-0.00035239383578300476... | [
0.4081842005252838,
-0.045298751443624496,
-0.7224804759025574,
-0.07681065797805786,
0.21374322474002838,
0.6826295256614685,
0.1881188005208969,
0.4029143750667572,
-0.42566734552383423,
-0.11272872239351273,
-0.10116030275821686,
0.537183940410614,
0.14394958317279816,
0.287120282649993... |
How should a geometer think about quotienting out by a Fermionic symmetry? Is this a formal concept? A strictly linear concept? A sheaf theoretic concept? How does symplectic reduction work with odd symmetries within geometric quantization? Are there moduli or instanton-like deformation complexes where the space of symmetries acting on the space of fields includes both even and odd symmetries? For example, can the familiar instanton moduli problem whose deformations are governed by the linearized complex: $$\Omega^0(Ad_0) \stackrel{d_A}\longrightarrow \Omega^1(Ad_0 ) \stackrel{\Pi \circ d_A} \longrightarrow \bar\Omega^2(Ad_0 )$$ be enhanced by fermionic symmetries to some structure whose linearized deformation complex looks like: $$\Omega^0(Ad_0 \oplus Ad_1) \stackrel{d_A}\longrightarrow \Omega^1(Ad_0 \oplus Ad_1) \stackrel{\Pi \circ d_A} \longrightarrow \bar\Omega^2(Ad_0 \oplus Ad_1)$$ in a geometrically meaningful way? In some sense the question is trying to understand how 'odd symmetries' or Fermionic coordinates can be meaningfully carried through a familiar non- linear problem in geometry which makes use of a non-linear group action. Are these odd symmetries true geometric symmetries to be exponentiated in some way, or are they more properly formal symmetry-like operators analogous to true symmetries? Thanks in advance. | [
-0.011727713979780674,
0.016391068696975708,
-0.005298945587128401,
0.031021345406770706,
-0.015852458775043488,
-0.0004736414994113147,
0.010409843176603317,
0.011938349343836308,
-0.014526048675179482,
0.005919944029301405,
-0.01677289605140686,
0.022429481148719788,
0.005421597510576248,
... | [
0.02749127522110939,
-0.2753114402294159,
0.17458589375019073,
0.1756172627210617,
-0.05650227516889572,
0.12128333747386932,
-0.17520281672477722,
-0.3307320177555084,
-0.1497703641653061,
-0.4364776015281677,
-0.28637832403182983,
0.563457727432251,
-0.5005427002906799,
0.261244326829910... |
I've been unable to move the post entry title to under the post's image. Whenever I do this, the title moves under the content and appears just above the footer. **loop-single.php -** <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div class="post_title"> <div id="nav-above" class="navigation"> </div><!-- #nav-above --> <div class="entry-meta"> </div><!-- .entry-meta --> </div> <table id="post-<?php the_ID(); ?>" <?php post_class(); ?> <div class="entry-content-left"> <h3 class="entry-title"><?php the_title(); ?></h3> <h2 class="the_subtitle"><?php the_subtitle(); ?></h2> <div class="entry-content-right"> <?php the_content(); ?> Here is my site. What am I doing wrong? | [
-0.020767975598573685,
0.01087466161698103,
-0.004092689603567123,
0.024712050333619118,
0.034006692469120026,
-0.008994265459477901,
0.006412634626030922,
0.017906416207551956,
-0.017762135714292526,
0.016262654215097427,
-0.027141369879245758,
0.00868661142885685,
-0.006269871257245541,
... | [
0.4258958399295807,
0.06557619571685791,
0.858553409576416,
-0.25535494089126587,
0.14177018404006958,
0.0833582729101181,
0.3852075934410095,
-0.19613496959209442,
-0.053419336676597595,
-0.6606997847557068,
-0.13955947756767273,
-0.011090408079326153,
0.0902053564786911,
0.50824952125549... |
In my scenario, I have 2 servers, both are communicating with HAProxy. When a request comes in, HAProxy splits the request and sends it to both servers, following a round robin method. If in any case my first instance goes down, at that time HAProxy should come to know that one of the servers are down and it should not forward any requests to that server. It should only communicate with the other server for every request. Can anybody tell me how I can configure my HAProxy for above scenario, please? | [
-0.009378757327795029,
0.022314194589853287,
-0.005544044077396393,
0.02426028437912464,
-0.010953566059470177,
-0.009894309565424919,
0.010673814453184605,
0.0012693615863099694,
-0.018002957105636597,
0.008694792166352272,
-0.010313322767615318,
0.01984712854027748,
-0.007087958976626396,
... | [
-0.007458509411662817,
0.13261981308460236,
0.25548240542411804,
-0.1192178726196289,
0.0431998185813427,
0.23264260590076447,
0.09369240701198578,
-0.37296760082244873,
-0.16036710143089294,
-0.6515491008758545,
-0.048365745693445206,
0.1033114343881607,
-0.686339259147644,
0.085047736763... |
I am writing a IEEE journal article, the entire reference file is done in JabTex and all the entries seem pretty alright. I am referring to around 200+ papers. However when I build the file the first two pages of my bibliography are alright, then all of a sudden the spacing between the paragraphs changes. Here is my code. Just the initial and ending parts. \documentclass[journal]{IEEEtran} \usepackage{graphicx} \usepackage{upgreek} \usepackage{cite} \usepackage{amsmath} \usepackage{tabularx} \usepackage{multirow} \listfiles \usepackage{cite} \begin{document} Followed by.... \bibliographystyle{IEEEtran} \bibliography{ppy} \end{document}  | [
0.002007816219702363,
0.014933857135474682,
0.002368941204622388,
0.028429895639419556,
0.014089604839682579,
-0.008567349053919315,
0.007484622299671173,
0.009896382689476013,
-0.014356682077050209,
-0.02294846624135971,
-0.010406832210719585,
-0.0007252036011777818,
-0.011945951730012894,
... | [
0.25514599680900574,
0.38026663661003113,
0.5002856254577637,
-0.07328490167856216,
0.02613621950149536,
-0.09794139862060547,
0.3343896269798279,
-0.2301122099161148,
-0.07099245488643646,
-0.49259278178215027,
-0.05262128263711929,
0.3547399044036865,
-0.12081100791692734,
-0.27191525697... |
Does any one know a online shop script ( php - mysql) which support multi providers? I want to run a shop and some providers can login and manage their own products / sales and admin can manage all of them. Providers may create / delete edit own products and can't access to other provider information. | [
0.026374440640211105,
0.01763138361275196,
0.003540223464369774,
0.028480632230639458,
-0.029043784365057945,
-0.003193158656358719,
0.009097478352487087,
0.043313466012477875,
-0.027554547414183617,
0.021729735657572746,
-0.006930812727659941,
0.026492858305573463,
0.00692242244258523,
0.... | [
1.0291602611541748,
0.2932788133621216,
0.14132383465766907,
0.15776337683200836,
-0.09675413370132446,
0.01537148468196392,
0.23479828238487244,
0.06610773503780365,
-0.1727733165025711,
-0.36760011315345764,
-0.04024413600564003,
0.5021989941596985,
-0.005207172594964504,
0.0919004902243... |
I know that XMLTeX has already been used to typeset TEI documents, but has anyone publicly worked on a set of environment files and stylesheets to typeset OpenDocument Text? I have been looking for such things lately but could not find anything. The rationale is that I want a comprehensive solution for typesetting ODT documents produced by OpenOffice and LibreOffice without having to rely on XSLT. Writer2LateX does a great job in some situations, but for more consistency and efficiency I deem it eminently desirable to be able to define the style of an ODT document directly in TeX and then apply this style to a set of documents that have the same structure and use the same styles. Writer2LaTeX uses Java, XSLT and components from the OpenOffice SDK to produce a relatively faithful LaTeX document from the provided ODT; this means that every time the source ODT is modified, a new LaTeX document must be produced from it, with _all_ content and _all_ styles converted each time. What is more, Writer2LaTeX must more or less “reinvent the wheel” each time it is given a new paragraph, character or list style, resulting in environment and command definitions which are extremely verbose. It would be great to instead create concise and generic environment definitions for each ODT element and then create more detailed definitions for each style attribute. Am I making sense? I am aware of the fact that what I am asking for is huge. After all, to get the expected results, one would have to provide definitions for _all_ the elements of _all_ the relevant XML namespaces (a typical ODT file has many besides the standard ODF 1.2 namespaces). However, if someone provided those generic element definitions “once and for all”, then the person who is in charge of typesetting a given document could concentrate on defining environments for the particular styles encountered in the particular document. | [
0.010224085301160812,
0.009582418948411942,
-0.008013122715055943,
0.009279484860599041,
0.026112541556358337,
0.022517109289765358,
0.009308375418186188,
0.01395703200250864,
-0.015590381808578968,
-0.031101932749152184,
-0.0131808677688241,
0.0035941938403993845,
0.012494836002588272,
-0... | [
0.36037465929985046,
0.27865204215049744,
0.345552533864975,
0.11028613150119781,
-0.351997971534729,
-0.363534152507782,
0.03668107092380524,
-0.08714361488819122,
0.1569989174604416,
-0.6831472516059875,
-0.038254767656326294,
0.610223114490509,
-0.18190523982048035,
-0.03594008088111877... |
I would like to know what IP-address my Android phone has. E.g. if I use my phone over WiFi, how can I get the local IP-address that is assigned to my phone? | [
0.012308361940085888,
0.002449204446747899,
0.005776724312454462,
-0.021114015951752663,
-0.058448340743780136,
0.03456776961684227,
0.011172589845955372,
0.04490044713020325,
-0.02420785464346409,
0.015301584266126156,
0.004359791520982981,
0.02112393081188202,
0.0051489598117768764,
0.01... | [
0.39154165983200073,
0.26728546619415283,
0.25510215759277344,
0.4163464307785034,
0.03405546769499779,
0.06472814083099365,
-0.061720702797174454,
-0.059852149337530136,
-0.1673268973827362,
-0.5280175805091858,
0.18219907581806183,
0.22221657633781433,
0.1183360144495964,
0.3377327620983... |
While trying to figure out how to implement a Producer/Consumer Queue in Qt, I stumpled upon several SO answers, blogs and sites linking to this site: You're doing it wrong... I got the point of this site, but people are usually referring to the code example which is in the referenced blog: Threading without the headache The blog has a small code example attached, the core of it being posted by KornP in this SO answer: Qt moveToThread() vs calling new thread when do we use each So if you take a closer look we have the following behaviour: 1. Producer P produces an item, while Consumer C waits for events to appear in its event loop. 2. P forwards the produced data through a signal and returns to event loop idling. 3. C receives the signal in its event loop and consumes the data. 4. C emits a signal to the producer thread and returns to event loop idling. 5. Start over from 1. In other words: while P is producing, C does nothing and while C is producing, P does nothing. What is the point of having a producer and consumer **like this** in two different threads? Wouldn't a single thread accomplish exactly the same? | [
0.005670245736837387,
0.0047710067592561245,
-0.000749779399484396,
0.0097737405449152,
0.0046853916719555855,
0.000376387033611536,
0.005910020787268877,
0.006941033527255058,
-0.01677868701517582,
-0.015526268631219864,
-0.005897488445043564,
0.01212626788765192,
-0.005814525298774242,
0... | [
0.6217148900032043,
0.20326058566570282,
0.16335423290729523,
-0.26014378666877747,
-0.3054390549659729,
-0.21730628609657288,
0.35087087750434875,
0.015146980062127113,
-0.24534295499324799,
-0.4101029634475708,
0.30439433455467224,
0.603961169719696,
-0.21629926562309265,
0.1768762469291... |
I would like to be able to detect if the `standalone` package was used with `[preview=false]` or `[preview=true]`. Not too concerned if this setting was a default or user defined. Based on How can one undefine an already processed class option?, the macro `@classoptionslist` is supposed to be a comma separated list of options passed to the class. I attempted to detect if this macro had the string `preview=true` in it, but this does not yield the correct results. The following always prints `Package Option: [preview=false]`. \documentclass[preview=true]{standalone}% Does not work %\documentclass[preview=false]{standalone}% works \usepackage{xstring} \makeatletter% \newcommand*{\DetectPreviewOption}{% \IfSubStr{@classoptionslist}{preview=true}{true}{false}% }% \makeatother% \begin{document} Package Option: [preview=\DetectPreviewOption]. \end{document} | [
0.0036273919977247715,
0.02155410870909691,
0.007383724674582481,
0.013870893977582455,
0.01294132973998785,
-0.011725731194019318,
0.00719302985817194,
-0.019989699125289917,
-0.016845617443323135,
0.01460297778248787,
-0.015117114409804344,
0.004938126541674137,
0.02619030699133873,
0.01... | [
0.26349136233329773,
-0.23067697882652283,
-0.06890889257192612,
-0.15273936092853546,
0.015287335962057114,
-0.08367353677749634,
0.2848958969116211,
-0.04320518672466278,
-0.12798255681991577,
-0.48925158381462097,
-0.0039400518871843815,
0.7566535472869873,
-0.31513097882270813,
0.02273... |
I am wondering how to perform PCA on data with unequal lengths. In the simplest case you could split up the data matrix so that one block would be $T_{1}Xn$ and the rest is $T_{2}Xn$. The second block has effectively missing data in the first $T_{1}-T_{2}Xn$ block. Many of the applications of PCA on missing data are variants of the EM algorithm methodology (these typically will assume the distribution is multivariate Gaussian) that are more suited to applications where the data is missing at random. Oftentimes, these techniques do not particularly apply to data with uneven lengths. However, there are techniques to estimate the mean and covariance matrix in these cases and it is possible to apply PCA to the resulting covariance matrix. However, when the number of variables becomes large (absolutely or relative to the number of observations), then it may no longer be convenient to estimate the covariance matrix in this fashion. | [
-0.002217886969447136,
0.02986297756433487,
0.0005822420353069901,
0.010376917198300362,
0.01758587174117565,
-0.007122109178453684,
0.007845847867429256,
-0.02322472259402275,
-0.010615029372274876,
-0.0014775653835386038,
-0.02256077714264393,
0.005545767955482006,
-0.01063765399158001,
... | [
0.07654914259910583,
0.16055427491664886,
-0.08234425634145737,
-0.013090023770928383,
0.08931370079517365,
0.07704733312129974,
-0.19033169746398926,
0.010447402484714985,
-0.3020824193954468,
-0.4639779329299927,
-0.14349253475666046,
0.22304575145244598,
-0.39327114820480347,
0.42432236... |
Which may be good techniques to face this abstract problem? You have a data stream of a continuous signal, as one from a physical sensor. That signal has real (discretized) values, no attribute; addictional features (e.g., power, auto-correlation, entropy) might be extracted. You can assign one label from a finite set to a window of the signal. Let this label be a _training_ label. You have to choise start and end points of the window as well as the window label. The task is to classify next windows online, as just as the signal is received. I am asking for an incremental algorithm, in the sense that it should increase its detection performance given more training labels. But it must be able to classify even after only one training label. If the problem turns out to be too hard because of windows-boundaries detection, let's say you can fix their size at a small constant. Thus the algorithm classifies little slices of the signal and then it merges adjacent ones with same labels. If you use that simplified approach, please justify why it is reasonable. | [
0.010071673430502415,
0.012218065559864044,
-0.012954170815646648,
0.006592870224267244,
-0.016182757914066315,
-0.007918947376310825,
0.008432677946984768,
0.01232199091464281,
-0.009758489206433296,
0.01850726641714573,
-0.021145273000001907,
0.014249417930841446,
-0.003567758481949568,
... | [
0.22836941480636597,
-0.19079434871673584,
0.18483170866966248,
0.3505314588546753,
0.12866751849651337,
0.10900316387414932,
-0.11192947626113892,
-0.4798888564109802,
-0.1921466439962387,
-0.6860080361366272,
0.017460787668824196,
0.5933924913406372,
-0.2245999425649643,
-0.0167742408812... |
I'm writing my thesis and I'd like to insert A3 pages within my A4 document. Is it possible to place figures with captions (as normal) on those A3? I'm able to include full PDF pages which are A3 by `\includepdf`, however that way I can't have captions. I get this error: ! Package caption Error: No float type ! Package caption Error\caprion outside float | [
-0.011472109705209732,
0.012684806250035763,
-0.009963895194232464,
0.04023775830864906,
0.003770045470446348,
0.013002421706914902,
0.010924269445240498,
0.0021839423570781946,
-0.017316505312919617,
-0.015995368361473083,
-0.01909043826162815,
0.007110568229109049,
-0.00560351088643074,
... | [
0.18296244740486145,
0.2953244149684906,
0.45496484637260437,
-0.09873849898576736,
-0.06805562227964401,
0.025486018508672714,
0.18113493919372559,
-0.3936002552509308,
-0.2554866075515747,
-0.2668282985687256,
0.03402146324515343,
0.38654571771621704,
0.03308676928281784,
-0.288346350193... |
I have a set-top box which has a Google vendor ID 18D1:0005. I have installed it's driver with Zadig and now there is an Android device under "libusb (WinUSB) devices under Computer Management -> Device Manager named Android (Interface 1). But when I want to run an application I can not see my set-top box in Android Device Chooser. My set-top box has Android 2.2. This set-top box has a Samsung component in it: I wan to upgrade this device to Android 3 or 4. Do you now a way to upgrade ROM of a device like this? | [
-0.000720292329788208,
-0.007445281837135553,
-0.0024986383505165577,
0.011383095756173134,
-0.0134914331138134,
0.007648549508303404,
0.008425301872193813,
0.035959642380476,
-0.016550403088331223,
-0.015605967491865158,
-0.010053006932139397,
0.0039681680500507355,
0.009751073084771633,
... | [
0.29538506269454956,
-0.1510474979877472,
0.6630440950393677,
0.25936827063560486,
0.18509545922279358,
0.1719145029783249,
0.025770213454961777,
-0.22638605535030365,
-0.03934688866138458,
-0.5777297616004944,
-0.09776989370584488,
0.5142443180084229,
-0.3589417040348053,
0.19449585676193... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.