text stringlengths 23 30.4k | embeddings_A list | embeddings_B list |
|---|---|---|
I'm playing _The Ballad Of Gay Tony_ and I've completed all of the main story missions. However, there's a random "female" icon on the map on (or very, very close to) Massionet9 I've been inside, out, on the first floor (above the bar) and even on top of the building and at various times as well and I can't seem to find the character. Google search claimed that I had to go into the bar at 9 sharp and have a shot - which I did but I am still missing the character. Is there any planetary alignment I need to be aware of in order to start this random character mission, please? | [
-0.003200693055987358,
0.007128563243895769,
-0.011224734596908092,
-0.00623707240447402,
-0.011674962937831879,
-0.005324231460690498,
0.005905514117330313,
0.0038922776002436876,
-0.012223515659570694,
-0.0038783543277531862,
-0.007649390958249569,
0.010233113542199135,
-0.0124236289411783... | [
-0.21010543406009674,
0.21337470412254333,
0.8673922419548035,
-0.11057842522859573,
0.0851578637957573,
0.22381258010864258,
0.2548931837081909,
0.4000098407268524,
-0.4127756655216217,
-0.3658609092235565,
-0.009265897795557976,
0.4425398111343384,
0.0553741380572319,
-0.2665219008922577... |
**Actions before the GDM failure** I was trying to install _RT tool_ in my system. However, the RT tool required _Perl 5.10_. So, I did `yum remove perl` to remove the existing version. While the command was getting executed, I was not able to navigate to any other tab or window. The system was stuck. So, I long pressed the power button and turned it on. **After Turning ON** I got the below error messages (Not exactly in the same order, but after trying various options) * Couldn't start X server on card 0. (I think when I did the `startx` command) * Xserver not found. * Install x server or correct GDM configuration and restart GDM. I tried to do the below command. cp xorg.conf failsafe xorg.conf However, I did not find the file **xorg.conf** file itself. I tried to update the GDM by doing `yum install GDM` after removing GDM. However, I still do not get the display. I want to bring back the display without having to reinstall the entire OS again. | [
0.0005504279397428036,
0.014979643747210503,
-0.005261329468339682,
0.016734624281525612,
-0.04844791442155838,
0.01630759797990322,
0.0074592093005776405,
-0.012422212399542332,
-0.017587507143616676,
-0.0005435957573354244,
-0.02435649186372757,
0.010914900340139866,
0.009798827581107616,
... | [
0.33667001128196716,
0.12480735778808594,
0.7106505036354065,
-0.28569355607032776,
-0.3369685709476471,
0.0725935772061348,
0.6881552934646606,
0.032198067754507065,
-0.4347996711730957,
-0.39532697200775146,
0.016411982476711273,
0.5720961093902588,
-0.5476677417755127,
0.468304216861724... |
I'd like to create a wall calendar where the bottom of each page is a `tikzpicture`, stretching the list of days always to the `\linewidth`, as if it was justified text. How can I set a calendar style that will `xshift` the days just so? I got as far as you can see below, but since `day xshift={0.0322\linewidth}` is fixed, it only works for 31 day months.  \documentclass[11pt]{article} \usepackage[showframe]{geometry} \usepackage{tikz} \usetikzlibrary{calendar} \setlength{\parindent}{0pt} \pagestyle{empty} \definecolor{gold}{RGB}{199,147,22} \begin{document} \raggedright \makeatletter \tikzset{ every calendar/.style={ day list right, day xshift={0.0322\linewidth}, month text={\color{gold}\%mt \%y0}, month label above left, execute at begin day scope={ \ifdate{Sunday}{\color{red}} } } } \makeatother \raggedright \tikz\calendar[dates=2013-01-01 to 2013-01-last]; \tikz\calendar[dates=2013-02-01 to 2013-02-last]; \tikz\calendar[dates=2013-03-01 to 2013-03-last]; \tikz\calendar[dates=2013-04-01 to 2013-04-last]; \tikz\calendar[dates=2013-05-01 to 2013-05-last]; \end{document} | [
0.006713004782795906,
0.012271275743842125,
-0.02485302835702896,
0.00893694069236517,
0.012399880215525627,
0.002175642177462578,
0.00792599841952324,
0.013713045045733452,
-0.012948719784617424,
-0.031235411763191223,
-0.0054498957470059395,
0.002139377873390913,
0.0023636487312614918,
0... | [
0.519500195980072,
-0.03169967234134674,
0.8727295398712158,
-0.03716934844851494,
0.19210511445999146,
0.09057758003473282,
0.22611325979232788,
0.22554168105125427,
-0.5153625011444092,
-0.3589848279953003,
0.13214722275733948,
0.4220040440559387,
-0.15691713988780975,
0.1448081433773040... |
Suppose that I am running `screen` on a remote server with four open screens. Is there a quick way to `cd` all the screens to the working directory of the currently-open screen? | [
-0.0360163152217865,
0.017970383167266846,
-0.02608681656420231,
0.023790836334228516,
-0.027235472574830055,
-0.008423063904047012,
0.011916722171008587,
0.00811639055609703,
-0.026999210938811302,
-0.007603505160659552,
-0.013522446155548096,
0.014040405862033367,
0.015391903929412365,
0... | [
0.23539189994335175,
0.07888995856046677,
0.23676960170269012,
0.05930446833372116,
0.272355854511261,
0.1609012931585312,
0.1227957159280777,
0.1807435154914856,
-0.12404057383537292,
-0.7002572417259216,
0.10851412266492844,
0.501695454120636,
-0.08718743920326233,
0.08142874389886856,
... |
s = OpenWrite[ofile, CharacterEncoding -> "UTF8"] Export[s, "∂f/∂t"] Close[s] did not successfully write `∂` into the file. Instead, it writes the `InputForm`. How to let it write `∂`? | [
-0.02715946175158024,
0.019296415150165558,
-0.008051504381000996,
0.02452627383172512,
-0.007419620640575886,
0.01420646347105503,
0.010661071166396141,
0.032299015671014786,
-0.020619411021471024,
0.007772124372422695,
-0.019637977704405785,
0.006890279706567526,
0.005503128748387098,
0.... | [
-0.252216100692749,
-0.21876874566078186,
0.6457931995391846,
-0.4026455879211426,
0.16914987564086914,
-0.1404854655265808,
0.4343416690826416,
-0.678737461566925,
0.3533501625061035,
-0.6405808925628662,
-0.33625391125679016,
0.3861550986766815,
-0.32348963618278503,
-0.23557332158088684... |
How to do that? Without PAM on my GNU/Linux OS the number of open files is 1024 by default and cannot be raised above 4096 (via `ulimit -n NNNN` command) despiting what is written in /etc/security/limits.conf. So, how does it work without PAM and how to set limits in such case? ===upd=== I decided for myself to use PAM. For those who wants to exceed the hard limit of opened files without PAM, look up for the `RLIMIT_NOFILE` constant in `include/asm-generic/resource.h` and `INR_OPEN_MAX` in `include/linux/fs.h` which defines the number of 4096 files as hard limit for rlimits. Check also CAP_SYS_RESOURCE which is required to be able to call `setrlimit()` on a running system to exceed the limit. It seems there is no way to do a system call like `setrlimit()` in bash, but it may be implemented as a binary executable file. Or you can make a kernel patch. | [
-0.0003125725779682398,
0.012986814603209496,
-0.012213397771120071,
-0.003577751573175192,
-0.0034584016539156437,
-0.019212525337934494,
0.008222458884119987,
-0.023748956620693207,
-0.016526568681001663,
-0.015826866030693054,
-0.012662943452596664,
-0.005293136928230524,
0.01671760156750... | [
0.1208253875374794,
0.16939297318458557,
0.6004292964935303,
-0.08088821172714233,
-0.07475237548351288,
-0.16933362185955048,
0.335205078125,
-0.6565983891487122,
-0.5014146566390991,
-0.3257944881916046,
-0.18616753816604614,
0.8399629592895508,
-0.4647483825683594,
0.025998352095484734,... |
I have a mobile app built using jquerymobile, PhoneGap and some custom CSS and JavaScript. The data objects are received in JSON and used to display different forms to the user. For example { id: 1, type: personal_details, question_1: "First name", question_2: "Last name" }, { id: 2, type: work_details, question_1: "Occupation", question_2: "Experience" } The user fills out these forms and sends the data back to a .NET application. Things work great when there is a good 3G connection but that is not always the case. As each form is sent there is a danger that not all the forms will make it back together. In our example the personal details could be sent first, the connection is lost and the work details are left on the mobile device or lost on the network either of which frustrates my users. What is the best strategy to handle and recover elegantly from network failures? Relying on the HTTP response codes doesn't seem to be working. E.g. for ( form in forms ) { $.ajax({ url: 'http://ac.me', data: form, success: function (){ // delete from localStorage }, error: function (){ // show error message 'try again later' } }); } The request can fail and the error function is never called. The alternative I see is sending all the forms in one JSON string but I am concerned about the performance implications of SQL server processing many short requests or fewer longer requests. | [
-0.004783854819834232,
0.011305468156933784,
0.002753280568867922,
-0.0030084417667239904,
-0.027916576713323593,
-0.0025458463933318853,
0.007270748261362314,
0.027183352038264275,
-0.010894005186855793,
-0.004263678099960089,
-0.004414192866533995,
0.009153520688414574,
0.01682697981595993... | [
0.6153491139411926,
0.26506972312927246,
0.49439045786857605,
-0.06720909476280212,
0.1600217968225479,
0.12879441678524017,
0.0023916091304272413,
-0.15051743388175964,
0.30339232087135315,
-0.6751367449760437,
0.1483389288187027,
0.28439468145370483,
0.009924747981131077,
0.1464798748493... |
I had one normal Android apk. It is working fine on my Android mobile. Now I want to install the same .apk on an Android tablet PC; is it possible? If possible, how can I install it? | [
0.011359564028680325,
0.019418593496084213,
-0.01871289312839508,
0.02762593701481819,
-0.04727999493479729,
0.01742243580520153,
0.009515326470136642,
-0.005447793286293745,
-0.0467798225581646,
-0.04667668417096138,
0.0014092291239649057,
0.030722726136446,
0.013471744023263454,
-0.00746... | [
0.35677844285964966,
0.1734790951013565,
0.43507900834083557,
0.17723457515239716,
0.11728543043136597,
0.38316071033477783,
0.3125981092453003,
0.33000579476356506,
-0.24188867211341858,
-0.5856608152389526,
0.0035619146656244993,
0.5674576163291931,
-0.34144327044487,
-0.2187901437282562... |
Last time when I printed my thesis at a copy shop the nice girl asked me if my `pdf` has some kind of color information stored inside. She explained to me that their printers can detect black and white pages and print them without using any color. Unfortunately my `pdf` which was generated using `pdflatex` (`MikTeX`, now I'm on `macTeX`) did not provide the information if a page uses any color (every page was detected as colored). Now my question is: How can I provide this information? Is there any option I have to use when generating my `pdf`? I'm asking because the price of a black and white page is one-tenth of a colored page. This makes a huge difference when printing 150+ pages. Colored pages should stay colored so black and white _only_ is not an option. * * * I printed my thesis (created with `macTeX`) yesterday and every text page was recognized correctly as being b/w only. However every page with a figure was detected colored although the figure were b/w only. Now what's the problem? Is there any option for figure to give `pdfLaTeX` a hint? According to pixelmator the png image (which was created with the osx snapshot tool from a pdf) is using the rgb profile with depth of 8. Profile Name is `Colored LCD` (I've no idea what I'm talking about ;)):  | [
0.008150780573487282,
0.0020341898780316114,
-0.009871121495962143,
0.005769640672951937,
-0.001135747879743576,
-0.0033090603537857533,
0.006873928941786289,
-0.009050384163856506,
-0.015356759540736675,
-0.01635950617492199,
-0.00986967608332634,
0.0025344928726553917,
0.015224870294332504... | [
0.40463122725486755,
0.14627541601657867,
0.36316612362861633,
0.35518109798431396,
0.029355797916650772,
-0.04261821508407593,
-0.1561938375234604,
0.015915250405669212,
-0.08838730305433273,
-0.516821026802063,
0.1410001665353775,
0.3735889792442322,
-0.008752102963626385,
0.266485959291... |
Is there any tool or method that will load a localhost page a number of times, and return the averaged data for load times, onload events, Dom ready events, etc? I'd like to work on page speed optimization, but need a baseline before I begin. I have used both Google analytics and Webmaster tools, but I'd like an automated solutions that runs locally. My ideal solution would be a program or script that would take the path/file, number of iterations, and then take several minutes to load the page n times without cache and crunch numbers to create a baseline. | [
0.007540102582424879,
0.008601033128798008,
0.0011141160503029823,
0.007779388222843409,
-0.00574165303260088,
-0.006533088628202677,
0.007420639507472515,
0.005470281932502985,
-0.01943081058561802,
-0.007014493457973003,
0.004067844245582819,
0.0031639100052416325,
0.007957537658512592,
... | [
0.19529606401920319,
0.0008953654323704541,
0.376522958278656,
0.09054595232009888,
-0.02172687277197838,
0.0905226543545723,
0.17041510343551636,
0.03907647356390953,
-0.2915424406528473,
-0.8545653223991394,
0.35869452357292175,
0.6427890062332153,
0.09540320932865143,
0.0129769919440150... |
when import data, the widget text is missing, and i find the problem is the serialize string is wrong, so i try to fix that string. $fixed = fixString($string); $wpdb->update( 'wp_options', array('option_value' => $fixed ), array('option_id' => 80) // Id of widget_text option ); I try the above update query, but it does not work. But it works with update_option('widget_text', unserialize($fixed )); So what is wrong ? I need to check and fix all the serialize string in database, so i need to use run sql query | [
0.0011116645764559507,
0.01132727600634098,
-0.00533260777592659,
0.009435787796974182,
-0.0099885743111372,
-0.0023918082006275654,
0.0101693794131279,
0.02330915816128254,
-0.015170951373875141,
0.004099640063941479,
-0.01579217053949833,
0.009398920461535454,
-0.006475715432316065,
0.02... | [
-0.05530136823654175,
-0.26851388812065125,
0.694153368473053,
-0.2763528823852539,
0.06855285912752151,
-0.04775392636656761,
0.22845500707626343,
-0.34805041551589966,
-0.2847672402858734,
-0.242249995470047,
-0.06973110139369965,
1.0610644817352295,
-0.635358452796936,
-0.21080659329891... |
What is the best way to tell your team that your laning opponent(s) is missing? Should blue-ping the map that leads towards them, yellow-ping (Fall back) on top of them? Should you stop for a moment to type [lane] mia/ss or care [lane]? Should you say which champ is missing? I want to make sure that my team knows that my lane is empty and that they could be in danger, but I don't want to become a pest pinging the map constantly when Twitch wants to stealth either. Assume that voice-chatting programs are unavailable. What is the general method that most players know and use? | [
0.018974099308252335,
0.025442317128181458,
-0.005893412511795759,
-0.015364785678684711,
0.013578876852989197,
0.004418767057359219,
0.009076427668333054,
-0.00866437517106533,
-0.017583023756742477,
-0.02109217271208763,
-0.009204380214214325,
0.0004905406967736781,
-0.009728052653372288,
... | [
0.10379786044359207,
-0.1293572038412094,
0.233211487531662,
0.5146188139915466,
0.11662667989730835,
-0.20372465252876282,
0.13219285011291504,
0.05021274834871292,
-0.4864518344402313,
-0.4245745837688446,
0.051027581095695496,
0.3794862627983093,
-0.053874533623456955,
-0.37897229194641... |
**I am using horizontal-scrolling-announcement plugin to announce a news bellow the header.I have added some custom code to hide and display scrolling news announcement at one event if the admin change the status display no or yes from back end and its working good for Firefox browser. Before the customize the plugin if i set the status display no it was scrolling news with text "No announcement available. But the problem is that in chrome browser when i set status display no from back end code work properly and if i set status yes this time it's not scroll the news in chrome but work with fire fox. Now the display status is yes from back end.** Site link:- click here if ( ! empty($data) ) { //Display news } else { ?> <style > .breaking-news{ visibility:hidden; height:0; width:0; opacity:0; } </style> <?php /* $what_marquee = $what_marquee . "No announcement available."; if($group <> "") { $what_marquee = $what_marquee . " Please check this group " . $group; } */ } return $what_marquee; } | [
-0.018452562391757965,
0.010861197486519814,
0.005862786900252104,
0.008976778946816921,
-0.0155876986682415,
-0.02147035300731659,
0.011382444761693478,
-0.02275962196290493,
-0.015494732186198235,
-0.011509194038808346,
-0.010551277548074722,
0.009033236652612686,
0.00886517483741045,
0.... | [
0.40382125973701477,
0.224104106426239,
0.6152641773223877,
-0.18272888660430908,
-0.4206787645816803,
-0.3659808933734894,
0.39377281069755554,
0.2768172323703766,
-0.3589326739311218,
-0.4624098241329193,
-0.062126267701387405,
0.576199471950531,
-0.20781724154949188,
0.1965155303478241,... |
I've been trying to figure this one out for a while on my own, so I'd like to ask for your help if you could offer some. The task states: > A heater made out of a wire with a diameter $R = 0.2\text{ mm}$, length > $4\pi\text{ m}$ and electrical resistivity of $0.5\times 10^{-6}\ > \Omega\;\mathrm{m}$ is connected to a voltage source of $220\text{ V}$, > sinked in the water. > > Which mass of water will it heat up from $20^{\circ}\mathrm{C}$ to > $50^{\circ}\mathrm{C}$ in the time of 10 minutes? (C of water = $4200\ > \mathrm{J\;kg}/\mathrm{K}$) I know I have the electrical properties of the wire and the thermodynamic properties of the water, but I don't know how to proceed from there. We've been studying electricity and I am not really aware how I can connect it with thermodynamics? | [
0.0005707851960323751,
0.0009119821479544044,
-0.0032966856379061937,
0.008291236124932766,
0.010809472762048244,
0.0009005859028548002,
0.005240454338490963,
0.0000037993304431438446,
-0.00979226641356945,
-0.005990589503198862,
0.01087652426213026,
0.01018131896853447,
-0.00102857965975999... | [
0.7468013167381287,
-0.18928880989551544,
0.5746320486068726,
0.25180870294570923,
0.37732571363449097,
0.15873368084430695,
0.06673047691583633,
-0.705256462097168,
0.041875291615724564,
-0.25420305132865906,
0.4163260757923126,
0.08408039808273315,
-0.1704769730567932,
0.3681853413581848... |
I use openlayers 2.12 I use HTML5's geolocation API to get the coords and then I insert them in a layer as feature (point). After that, I zoom in , since the layer has no other feature. map.zoomToExtent(geoloc.getDataExtent()); `geoloc` is the name of the layer... My problem is, how do I zoom-out automatically after the `zoomToExtent`? Because the map zooms in too much and I can see just the point and very little details. It would be more user-friendly to zoom out a bit Thanks | [
-0.018230628222227097,
0.0020673442631959915,
-0.00007921992801129818,
0.0006679380312561989,
-0.007202122360467911,
-0.00093110091984272,
0.0069534266367554665,
0.013912621885538101,
-0.019285941496491432,
-0.001982197631150484,
0.0036429010797291994,
0.011705178767442703,
-0.00268140481784... | [
0.27317750453948975,
-0.11776173114776611,
0.9230090975761414,
-0.10723899304866791,
0.08368725329637527,
-0.1687610000371933,
0.23127223551273346,
0.1050134152173996,
0.0033692147117108107,
-0.8143027424812317,
-0.24826247990131378,
0.4596124589443207,
-0.22902722656726837,
-0.13440440595... |
I wanted to write a blog post about a common feature of some popular websites. To illustrate, I'll need to take screenshot, crop and shows the specific features that's I'm referring to. I wonder if that's legal? Do I need to inform the webmaster for each of the site before I publish my post? A second question is that since my focus is that specific feature, so I guess I should blur out the content of the screenshot, or I shouldn't alter anything? | [
0.00204383279196918,
-0.004726188722997904,
0.005440382286906242,
0.011997622437775135,
-0.026107273995876312,
0.02759985439479351,
0.006846065167337656,
0.026570258662104607,
-0.01641128771007061,
-0.005346482153981924,
-0.0035298059228807688,
0.020804299041628838,
0.00441058911383152,
0.... | [
0.81948322057724,
0.10863097757101059,
0.29184746742248535,
0.03272130712866783,
0.08574514836072922,
-0.21215569972991943,
0.056657496839761734,
0.4157065749168396,
-0.40654927492141724,
-0.40431639552116394,
0.29297348856925964,
0.13495610654354095,
-0.06425922363996506,
0.40059852600097... |
I came across an odd-looking usage in the paper today... > The wife of President Assad listens to her husband yesterday with her two > _younger_ children The sentence suggests that she has some other children somewhere, as otherwise it would just have referred to "her children". But if there are three or more children, ought not the two on show be the _youngest_? But the _youngest_ should only be one child; more than one can't be the _youngest_? Or are they _younger_ because they are a group, and there may only be one other? Can anyone help me out with this? | [
-0.0075217075645923615,
0.01684456877410412,
-0.01546753104776144,
0.020230554044246674,
0.0005574042443186045,
-0.013193948194384575,
0.006884557660669088,
-0.0016136360354721546,
-0.009707240387797356,
-0.02409341186285019,
-0.0022917699534446,
0.008204185403883457,
-0.009268688037991524,
... | [
0.27432161569595337,
0.479509562253952,
-0.04340701550245285,
-0.096870556473732,
0.12073712795972824,
0.25692638754844666,
-0.22105330228805542,
-0.19311732053756714,
-0.5158650875091553,
-0.2679130733013153,
-0.20821261405944824,
0.1799701303243637,
-0.34995123744010925,
-0.0194231681525... |
Can a NG player be summoned by a NG+ player (and vice versa) ? I'm curious as I'm going to start my NG+ with my lvl 61 sorceror. Maybe lvl 61 is too low for NG+, from what I've read people seem to be lvl 150 by the time they beat Gwyn. | [
-0.011561784893274307,
0.022465674206614494,
-0.00725846691057086,
0.002227307064458728,
0.036724530160427094,
0.004354326520115137,
0.009214877150952816,
-0.028431354090571404,
-0.025629963725805283,
0.0015581755433231592,
0.011437110602855682,
0.025225067511200905,
-0.004093659110367298,
... | [
-0.3611568808555603,
-0.29690176248550415,
0.5900881886482239,
-0.328969269990921,
-0.6678182482719421,
0.13233014941215515,
0.24224892258644104,
-0.27491655945777893,
-0.1376768946647644,
-0.43153998255729675,
0.014928607270121574,
0.5127649307250977,
0.14802278578281403,
-0.3099952042102... |
I have coded like this many times, and I've never encountered an issue, but the compiler always warns when it expects a return and there is none. For instance, look at this: -(NSString *)outputStringForInteger:(NSInteger)int { if (int == 0) { return @"Number is Zero"; } else { return @"Number is not Zero"; } //no "failsafe" or other explicit return } If the function will never get to the last line, ever, is it important to still have a failsafe option, or do you guys just deal with compiler warnings? | [
0.011586734093725681,
0.01329704001545906,
-0.00019650807371363044,
0.010704835876822472,
-0.003320487681776285,
0.007848380133509636,
0.006505447905510664,
-0.0066998666152358055,
-0.012841356918215752,
-0.02935645915567875,
0.005930236540734768,
0.008983632549643517,
0.01244808267802,
0.... | [
0.11791297793388367,
-0.21293558180332184,
0.23336371779441833,
-0.1973758339881897,
0.03155602887272835,
0.24650971591472626,
0.595367968082428,
0.006180278025567532,
-0.1414293348789215,
-0.7401336431503296,
0.10259615629911423,
0.4929717183113098,
-0.28088855743408203,
0.145765438675880... |
> QUESTION: How does one write a pair of macros that work in 1) beamer class > and 2) article class, respectively, such that if it, `\macroname{...}`, is > executed at a point in the code, that point repeats (run again at that point > in the code) a definite command ... if a page break (article class) or slide > break (beamer class) else `\relax` and continues to the next line of code > where it checks the condition, until the end of the document, in which case > `\fi`. This is the question. Thoughts\clarification: The `...` may be for example a `\begin{Y} X \end{Y}` type environment or another command. Or it loads an image with the graphics package at that place in the code. I presume it is doable in beamer. Making a new slide is itself an explicit command in the code, so the macro reads the next line and does nothing if this command is not present and moves on to next line if there is a next line of code else does nothing if there is no next line of code in the document. I suspect (but I may be wrong) that it is not possible in the article class, where page break is done automatically unless invoked by the typsetting explicitly and the paragraphs and images are already typeset by that time. On the other hand maybe the way to do this is to think about David Carlisle's answer in Break line only if it's too long, but breaking won't create a new page The difference here would be to set new conditions for pagebreak instead of line break (these can control it to be identical to ordinary page break, but not explicitly invoked by the macro). Then add a counter that checks if a pagebreak (invoked explicitly by the macro did occur). If it was found, then execute ... else relax and move on to the next line of code. This is done for every line within that environment, so the behavior ends when the environment ends and begins when the environment begins. I do not think it will take too long to compile, since the environment in my case would contain little text or code and will contain mostly images loaded by the graphics packages, and where they are broken to differentpages the ... would be executed right after the page break (with an expansion command?) hopefully. > SUBQUESTION: I will be working on this possible solution but does anyone > know of a better way, or has this been done before, or am I wrong entirely > in thinking it could be done with the article class? The motivation for this question: it's a step to making concise code for the topic of this question LaTeX Visual Novel Engine: Does it exist? | [
0.006426696199923754,
0.02130221016705036,
-0.001429135911166668,
0.01201731339097023,
0.004701210185885429,
0.005837706848978996,
0.007010976783931255,
-0.0023620680440217257,
-0.012963646091520786,
0.0035974422935396433,
-0.010203300043940544,
0.0037698831874877214,
0.008327892050147057,
... | [
0.23756933212280273,
-0.07704297453165054,
0.6133999228477478,
-0.055164046585559845,
0.2520771324634552,
0.06229894980788231,
0.07481276988983154,
-0.5125563144683838,
-0.09675909578800201,
-0.5272777676582336,
-0.26524895429611206,
0.5594280362129211,
-0.10973373055458069,
-0.17732486128... |
Attack Move is a key bind that I came across in the key binding list. From my own testing it seems to move to the target location and attack the nearest target-able object including turrets. I heard people talking about it in IRC chats and during the casting of Tourney Games. Most pertaining to AD-carries, in particular that Doubleliftt uses it which is the reason he is so fluid. I was just wondering what exactly it is good for and how I could use it to improve my damage out-put as an AD Carry? If anyone could create a little video tutorial showing instances in how you use this it would be great. It is hard to understand when explained in words how to kite using it for instance. To someone who has never used it before. | [
-0.006994083523750305,
0.016133736819028854,
-0.0067033302038908005,
-0.0051276725716888905,
0.004289439879357815,
-0.008822229690849781,
0.005542973522096872,
-0.010979543440043926,
-0.0114755155518651,
0.019114354625344276,
-0.006726521998643875,
0.014085142873227596,
-0.001912827254272997... | [
0.16949310898780823,
-0.0873032733798027,
0.4128919541835785,
-0.26774007081985474,
-0.36583763360977173,
-0.14480949938297272,
0.13080592453479767,
-0.5475003719329834,
-0.14941762387752533,
-0.2642391622066498,
-0.00856037624180317,
0.062120046466588974,
-0.2597455680370331,
0.0377758331... |
I'm attempting to set up WordPress skeleton (https://github.com/markjaquith/WordPress-Skeleton/) in a multisite configuration. WordPress skeleton already places WordPress in a subdirectory (wp by default). I've taken the following steps: * git clone WordPress-Skeleton * Update Submodules and checkout 3.6.1 tag * Setup local-config.php to point to my local DB Install WordPress, set site settings to example.com (site), example.com/wp (WordPress URL) * Configured multisite (subdirectory) and configured NGINX to serve the Multisite properly (NGINX config can be found here: https://gist.github.com/tmort/6582961) Once all of this is configured, I can see that the main site (example.com and example.com/wp/wp-admin) both work. I then add a new site to the network. Upon navigating to the site url (example.com/test-network-site) the front-end is broken (style.css, for example, cannot be found at the URL http://example.com/wp/test-network- site/wp-content/themes/twentythirteen/style.css?ver=2013-07-18). When navigating to the wp-admin, I'm in a redirect loop. My end goal is to be able to use WordPress Skeleton as a base for the sites I deploy and have the multisite configuration work as it does normally (where example.com is the network main site, example.com/test-network-site is a site within the network, and example.com/test-network-site/wp-admin works as it should). At this point my main question may be is this even possible? I have a good feeling that the NGINX configuration is the main issue as (for fun) I created the exact same environment locally and fired up MAMP. Under MAMP, this configuration works fine. Unsure of how to move forward. Any insight would be greatly appreciated! | [
-0.009515220299363136,
0.00006176310125738382,
0.002040452091023326,
0.028853295370936394,
0.019765712320804596,
0.009831862524151802,
0.009268416091799736,
0.015626119449734688,
-0.017855841666460037,
0.006892939563840628,
-0.011421749368309975,
0.007672559469938278,
0.008091752417385578,
... | [
0.27065807580947876,
0.20306217670440674,
0.47889241576194763,
-0.1514553427696228,
-0.012210007756948471,
0.18982703983783722,
0.3018561899662018,
0.002224283292889595,
-0.12846781313419342,
-0.767122209072113,
-0.1386418342590332,
0.2428056001663208,
-0.03719910606741905,
0.2934007048606... |
So I have a pretty good PC. I'm getting a smooth 60 FPS in most places, at highest settings, and I have the FPS setting in Options set to cap at 60. However, the game is frequently setting the FPS cap to 30 (as verified by my FRAPS readout in the corner of my screen). It's not so much that I'm entering an area my computer can't handle (though that may provide some input for the problem), but that the game is simply taking my framecap from 60, down to 30. Sometimes it goes back up. It seems to be largely irregular. I don't have any resource-intensive programs running in the background. What's going on here? EDIT: Setting all of my video settings down to Low (I typically run at highest) has no effect. I still get frequent slowdowns to a smooth 30 FPS. | [
-0.01957368478178978,
0.005095093976706266,
-0.014000129885971546,
-0.005593087524175644,
0.030053026974201202,
-0.03299456089735031,
0.005590633489191532,
-0.02030649036169052,
-0.012286164797842503,
0.01008803490549326,
-0.0014539702096953988,
0.013646458275616169,
-0.014672372490167618,
... | [
0.2375735193490982,
0.06244538351893425,
0.5769346952438354,
-0.10086502879858017,
0.2949359118938446,
-0.16908906400203705,
0.39699140191078186,
0.2298130840063095,
-0.6034813523292542,
-0.6470544338226318,
0.1831347644329071,
0.6773637533187866,
0.17276106774806976,
-0.19610808789730072,... |
zenity list dialog looks different after a system upgrade, `%> zenity --text "Select" --list --column="Profile" --list a b c`  Any idea on the extra space in the dialog? The selector should extend to its maximum size vertically. (It doesn't even if I resize the dialog) I'm running `zenity 3.8.0` in openbox (Arch Linux package `zenity-3.8.0-1`) | [
0.005230162292718887,
-0.0048761735670268536,
-0.013435548171401024,
0.02269255742430687,
-0.034857213497161865,
-0.014414716511964798,
0.007244517095386982,
-0.01188100315630436,
-0.019065137952566147,
0.04301800578832626,
-0.01629222184419632,
0.01368583831936121,
0.016518209129571915,
0... | [
0.3023679554462433,
-0.13283808529376984,
0.6037948131561279,
-0.34252357482910156,
-0.0743807852268219,
-0.03542720898985863,
0.27615058422088623,
-0.47381600737571716,
-0.28208211064338684,
-0.6227924227714539,
0.015356739051640034,
0.5606851577758789,
-0.49391937255859375,
-0.2713190913... |
I know there are already a lot of threads about suggestions on how to improve performance and, strongly related, save battery life on your android. I also have tried most of the tools to diagnose problems (eg. WatchDog). Problem is, my brand new HTC Desire HD will often be snappy and responsive, sometime get a few slow downs, and not-so-rarely start being completely unresponsive, as bad as my previous iPhone 3G which I gave away for exactly that reason. Also, battery would last less than 24hours even with extremely little use of the display (a huge battery drainer indeed), with background- data and auto-sync on, without GPS and with half of the time WiFi connection and for the rest WiFi off. WatchDog is usually not seeing anything weird. No process seems taking a huge hit on the CPU even when the phone is acting slowly; just today I got a first warning - HTC Sense Background 99.9%. So I would like to go a bit deeper in my debug. I /could/ uninstall all applications I installed, but I'd rather understand what is really causing the problem. So this is the real question: how can I better debug what's going on inside my Android? Does anybody have some tutorial/tools/suggestions? I guess going with adb from my PC might provide more information, any hint/feedback? _Some additional information after feedback from DarthNoodles..._ NB. I'm not putting it here to 'debug' my own phone on this forum, just to provide comparison information! ## standard Battery Consumption info If i've been using the phone, i get 'Display' to take most of the battery usage - ~60% on average (is that too much?). If not, it's 'Android OS' which takes on average about 60%, and 'Android System' usually about 10-15% There usually is no installed application appearing there ## hidden debug hey that's great! I might not have yet learned about everything but i'll try to write down what I see... Since it has a graphical, not numerical display I'll rate '100' the first, longest bar and make an estimation of the other ones. **CPU usage** (for all time of timing a get a similar distribution) * 'init' has a HUGE blue+red bar; Android System comes 2nd with a tiny 1px blue bar **Partial wake usage** _Total Time_ * 'HTC Sense' 100 blue bar * 'Android System' 30 blue bar * less for the rest _Since last unplugged_ * 'Android System' 100 blue bar * 'HTC Sense' 30 blue bar * 'Mail' 5 blue bar * ... * 'UID 10013' 'partial Wakelock' ~2 blue bar! **Other Usage** _Total all time_ * Running 35.8% * Screen on 11.1% * Phone on 0.8% * Wifi On 41.6% * Wifi Running 41.6% * BlueTooth On 6.6% _Since last unplugged_ * Running 37.5% * Screen on 3.8% * Phone on 1.8% * Wifi On 45.8% * Wifi Running 45.8% I am under the impression that it's HTC Sense or some other android process that is taking my resources... but I don't really understand why yet... ## WatchDog Getting some warnings for 'com.htc.bgp' taking too much cpu (~55%) Thanks! | [
-0.007343363016843796,
-0.0003514639101922512,
-0.012669578194618225,
-0.004082394298166037,
-0.017608316615223885,
-0.013644777238368988,
0.005742616951465607,
0.008878721855580807,
-0.006522047333419323,
-0.024414654821157455,
-0.016163118183612823,
0.005540638230741024,
0.0059947101399302... | [
0.4290112555027008,
0.1791219264268875,
0.6113641262054443,
0.16936428844928741,
-0.17581482231616974,
0.1936279684305191,
0.3879558742046356,
0.04999522492289543,
0.14979645609855652,
-0.5015990734100342,
0.23053881525993347,
0.862029492855072,
0.04016638174653053,
-0.19769909977912903,
... |
I've noticed that when a `\marginnote` is added (edit: using the marginnote package), the horizontal alignment of that note is inherited from wherever the note is placed. In my case, I wish to have a margin note defined inside a section heading, which makes the margin note centred. If I try to add `\raggedleft` or `\raggedright` to the instruction, then it is either ignored, or overwrites the formatting of the section header (depending on whether it is in the left or right margin). Is there some way to change the horizontal alignment of the marginal text independently of the text in which it is defined? Edit: My apologies, in constructing the minimum working example, I realise I've embarrassingly omitted the important detail of how I (almost certainly incorrectly) set the centering of the section header. Below is a minimum working example of what I want. \documentclass{article} \RequirePackage{sectsty} \allsectionsfont{\centering\sc} % <-- this is probably wrong! \usepackage[fulladjust]{marginnote} \begin{document} \section*{This is a section header\marginnote{I really really want this margin note to be raggedright, and not centred like it is here.}} \end{document} Another point to note is that I actually want the text flushed left or right depending on whether the note is in the left or the right margin. This means is think I _do_ need to change the alignment of the marginal text. | [
-0.013791261240839958,
0.010675163008272648,
-0.006871439050883055,
0.022150177508592606,
-0.004175921902060509,
-0.004852958023548126,
0.00762326642870903,
0.016165440902113914,
-0.01006595604121685,
-0.0026423337403684855,
-0.013607692904770374,
0.0063300952315330505,
-0.00583677040413022,... | [
0.23978088796138763,
-0.06382305920124054,
0.7133548855781555,
0.14302241802215576,
0.22390416264533997,
-0.013278750702738762,
-0.17808741331100464,
0.025260193273425102,
-0.14241653680801392,
-0.7621427774429321,
-0.04692670702934265,
0.5970622897148132,
0.024702977389097214,
-0.17698436... |
I tried the following codesnipped: \begin{frame} \begin{tikzpicture} \tikzstyle{every node} = [draw, align=center,circle, scale = 0.5, thick] \begin{tabular}{ccc} \tikz\node (n1) {N1}; & & \tikz\node (n2) {N2}; \\ & \tikz\node (n3) {N3};& \tikz\node (n4) {N4}; \\ \tikz\node (n5) {N5}; & \tikz\node (n6) {N6}; & \tikz\node (n7) {N7};\\ \end{tabular} \path<1>[blue,->] (n1.south) edge [out= 60, in= 135] (n2.north west); \path<2>[red,->] (n1.south) edge [out=-70, in=-110] (n3.south); \end{tikzpicture} \end{frame} i does not behave as i expect it to. The paths do not get placed at the nodes but rather somewhere strange.  How can i fix this and still arrange the notes neatly like they are arranged now? | [
0.008811797015368938,
0.007887303829193115,
0.0037813549861311913,
0.021451082080602646,
0.0006283605471253395,
-0.0039725154638290405,
0.005537125281989574,
0.012490969151258469,
-0.01541921030730009,
0.018669717013835907,
-0.01263048779219389,
-0.005062516778707504,
-0.025182293727993965,
... | [
0.07377614080905914,
0.02863292023539543,
0.15699918568134308,
-0.19243581593036652,
-0.08828884363174438,
0.3764646053314209,
0.4434354305267334,
-0.3380918800830841,
-0.05513915419578552,
-0.7844685316085815,
0.2790656089782715,
0.32910147309303284,
-0.24246907234191895,
-0.2622864544391... |
Basically, I thinking how i could get a mini wp-admin/edit.php view inside the wp-admin/post.php page. does this even make sense to anyone? | [
-0.01172216422855854,
0.0327613390982151,
0.007495502009987831,
0.03960216045379639,
0.005055274814367294,
0.01806037500500679,
0.013806300237774849,
0.009720835834741592,
-0.0336686410009861,
0.028728652745485306,
-0.0295622069388628,
0.018128428608179092,
-0.006866998039186001,
0.0069823... | [
0.7061200737953186,
0.039570365101099014,
0.3449734151363373,
0.23235183954238892,
-0.04208861663937569,
-0.14781557023525238,
0.32477620244026184,
0.2629428803920746,
-0.22399751842021942,
-0.44701477885246277,
0.3570277690887451,
0.18523192405700684,
0.07288157194852829,
0.32912316918373... |
I have noticed that I can only inspire one unit, whereby AI inspires several. Is extra inspiration due to some retinue/attribute/# of stars on the AI? or is it simply because AI is allowed to cheat/extra advantage? If it is an attribute, any pointers on how to get it? | [
0.009246845729649067,
0.012176266871392727,
-0.012566130608320236,
0.020215706899762154,
0.0023816286120563745,
-0.018947554752230644,
0.009895226918160915,
0.022031934931874275,
-0.027548322454094887,
0.022058213129639626,
-0.028296878561377525,
0.016128921881318092,
-0.004140681587159634,
... | [
0.6373816728591919,
0.2247336059808731,
-0.10580796748399734,
0.29733261466026306,
-0.28728556632995605,
0.05181428790092468,
0.36367809772491455,
0.05967681482434273,
-0.23211681842803955,
-0.5857657194137573,
0.016638487577438354,
0.24073226749897003,
0.02042376808822155,
0.2305236160755... |
I live in a house with multiple gamers. We are considering installing Steam on our HTPC and using it like a sort of gaming console. There are a few ways to approach this, and none of them seem ideal. Steam installs games into a user's home directory. This means that if I have two different OS-level users, many games will get installed twice, which is a waste of a lot of hard drive space. However, if we share an OS-user and just log into Steam with our different profiles, then I expect some problems with saved games and such. Either way, houseguests will have to log into Steam with our accounts (which is a TOS violation, I think?) to play our games. How do others in this situation solve this conundrum? Does the answer to these questions change depending on the base OS being Windows or Linux or OSX? | [
-0.028742877766489983,
0.00848654005676508,
0.0004796846769750118,
0.01388044748455286,
0.00827348418533802,
-0.012737208977341652,
0.006747380364686251,
-0.01493685320019722,
-0.01107143983244896,
-0.002203480340540409,
-0.0007705836906097829,
0.0021101045422255993,
0.011623966507613659,
... | [
0.9321171045303345,
0.2121349275112152,
0.3084929585456848,
0.19595015048980713,
0.44532686471939087,
0.029531555250287056,
0.39178431034088135,
-0.2693527936935425,
-0.10738014429807663,
-0.5511824488639832,
0.11425679177045822,
-0.05303749069571495,
0.11089219152927399,
0.423264920711517... |
I am running Oracle VirtualBox with Debian as guest OS on a Windows 7 host. I have installed Apache and specified the following two network adapters in VM: 1. Bridge 2. Host-only w/ the same IP set as below. My interfaces network settings on the Debian VM are: auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address 192.168.1.110 netmask 255.255.255.0 which all seems to work well enough via `ping` test between guest and host. However, when I try to browse to my guest instance in a web browser `http://192.168.1.110` I keep getting a 404 message. Any help would be appreciated. Thinking that the ifconfig results my help, I will include those also here: eth0 Link encap:Ethernet HWaddr 08:00:27:7a:1a:35 inet addr:192.168.1.106 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe7a:1a35/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:252 errors:0 dropped:0 overruns:0 frame:0 TX packets:19 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:25417 (24.8 KiB) TX bytes:1765 (1.7 KiB) eth1 Link encap:Ethernet HWaddr 08:00:27:56:3d:90 inet addr:192.168.1.110 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe56:3d90/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:231 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:21945 (21.4 KiB) TX bytes:578 (578.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | [
-0.006198588293045759,
0.0028555113822221756,
-0.009396834298968315,
-0.00404580682516098,
-0.022388149052858353,
0.00802641175687313,
0.01048970315605402,
0.017353277653455734,
-0.011002599261701107,
-0.02589605376124382,
-0.014784028753638268,
0.012648489326238632,
-0.023544523864984512,
... | [
0.18682603538036346,
0.27511996030807495,
0.35919052362442017,
-0.09084051102399826,
0.016223972663283348,
-0.3347965478897095,
0.33236807584762573,
-0.20066744089126587,
-0.054409611970186234,
-0.7068399786949158,
-0.08246243745088577,
0.7396914958953857,
-0.3327881693840027,
-0.003850660... |
I have spent the past few days of my life trying to figure out how to get postgis to function properly with a non-standard directory installation of postgres 9.3, but have been unable to resolve the following obnoxious errors: ERROR: could not load library "/pginstall/postgresql93/lib/postgis-2.1.so": libgeos_c.so.1: cannot open shared object file: No such file or directory ********** Error ********** ERROR: could not load library "/pginstall/postgresql93/lib/postgis-2.1.so": libgeos_c.so.1: cannot open shared object file: No such file or directory SQL state: 58P01 I installed geos,gdal and postgres into contained directories in order to be able to update components without needing to manually find individual files and remove them. Thus my libraries would be located in the following installation directories: /pginstall/postgresql93/lib /pginstall/gdal110/lib /pginstall/geos34/lib All other dependencies are installed using standard apt packages and I am using the standard build-essential package. I tried setting various environment variables export LD_LIBRARY_PATH=/pginstall/geos34/lib:/pginstall/gdal110/lib export LDFLAGS="-Wl,-rpath,/pginstall/geos34/lib/,-rpath,/pginstall/postgresql93/lib,-rpath,/pginstall/gdal110/lib" export LDFLAGS="-Wl,-L,/pginstall/geos34/lib,-L,/pginstall/postgresql93/lib,-L,/pginstall/gdal110/lib" export LDFLAGS="-L/pginstall/geos34/lib -Wl,-rpath,/pginstall/geos34/lib" export LDFLAGS="-Wl,-rpath,/pginstall/geos34/lib/,-rpath,/pginstall/gdal110/lib" But they all failed to work with the configuration below ./configure \ --prefix=/pginstall/postgresql93 \ --with-pgconfig=/pginstall/postgresql93/bin/pg_config \ --with-geosconfig=/pginstall/geos34/bin/geos-config \ --with-gdalconfig=/pginstall/gdal110/bin/gdal-config \ --with-topology \ --with-raster I did manage to get this woking by adding the LD_LIBRARY_PATH variable to my upstart configuration for postgres --but this is a crude hack and is clearly not suitable for any kind of pre-production or production environment. I don't want to go the ldconfig route either as that requires root access. I can verify that this issue is that the postgis configure process is ignoring my direct commands to add the paths to the binaries, by running the following command: chrpath -l /pginstall/postgis/postgis-2.1.0SVN/postgis/postgis-2.1.so which yields RPATH=/pginstall/postgresql93/lib The LDFLAG commands work when compiling GDAL with GEOS and Postgres, so I believe this is a postgis specific issue. I have no idea what else I can do as I am not a c compiler expert, nor should I need to be to perform this simple task on the OS upon which postgis was developed! One would assume that postgis should know where the libraries are given that I set them explicitly in the configure step and after concurrently setting LD_LIBRARY_PATH and LD_FLAGS. This is pretty depressing. What more should one need to specify? Does anyone know of a simple way to fix this issue? As a side note I am glad I program in Java, as properly building from source in C basically seems to follow the steps below: 1) Hope configure/make/make install just miraculously work 2) Upon inevitable failure, set random environment variables that each have 6.022E^23 contradictory explanations for its function on the internet for each operating system --and are sourced from. 3) Upon inevitable failure, Sacrifice a macbook to the gods of C 4) Consign yourself to your grim fate and download a mostly broken and ridiculously out-of-date package from apt instead. | [
-0.010263308882713318,
-0.004725694190710783,
-0.010951941832900047,
0.024926960468292236,
0.028561299666762352,
0.01798255741596222,
0.009171785786747932,
0.008886046707630157,
-0.019337395206093788,
-0.013783959671854973,
-0.002579750493168831,
0.004194966983050108,
0.010968261398375034,
... | [
-0.034241631627082825,
0.24438989162445068,
0.29034796357154846,
-0.03579290211200714,
-0.11658667773008347,
-0.14882290363311768,
0.8573417067527771,
0.06960605829954147,
-0.13889279961585999,
-0.6733653545379639,
-0.038062214851379395,
0.45561549067497253,
-0.32395872473716736,
0.1685361... |
I am trying to remove Dropbox from my computer. So far I have done the following: sudo aptitude remove dropbox sudo aptitude purge dropbox But this didn't get rid of it 100% oshiro@debian:~$ locate dropbox /usr/share/nmap/scripts/broadcast-dropbox-listener.nse /var/cache/apt/archives/dropbox_1.6.1_i386.deb /var/lib/apt/lists/linux.dropbox.com_debian_dists_wheezy_Release /var/lib/apt/lists/linux.dropbox.com_debian_dists_wheezy_Release.gpg /var/lib/apt/lists/linux.dropbox.com_debian_dists_wheezy_main_binary-i386_Packages oshiro@debian:~$ I know I can delete each of those manually, but wanted to know if that is the correct way of removing a .deb installed application? | [
-0.0013337176060304046,
-0.00562635762616992,
-0.0020812037400901318,
0.016761373728513718,
0.0007848120294511318,
-0.000596464378759265,
0.006890044081956148,
0.013709292747080326,
-0.018151648342609406,
0.005459863692522049,
-0.0071274228394031525,
0.009597486816346645,
-0.0166827589273452... | [
0.42410287261009216,
0.15443606674671173,
0.42930924892425537,
-0.2534661293029785,
-0.3341384530067444,
-0.1220083013176918,
0.6521550416946411,
-0.08938141912221909,
0.18642884492874146,
-0.8606448769569397,
0.03403032198548317,
0.3097917437553406,
-0.48770564794540405,
0.053718041628599... |
I wanted to load my custom plugin when the "Jobs" page is loaded. How am I able to do it? This is my code so far. <?php /** * Plugin Name: wp-retrieve-database * Description: retrieves data from the database. * Version: 0.5 * Author: Chan */ global $wpdb; $table_name = $wpdb->prefix . "Careers"; $retrieve_data = $wpdb->get_results( "SELECT * FROM $table_name" ); function get_scrapy_scraped(){ <table border="1"> <tr> <th>Job Name</th> <th>Location/Dept</th> <th>Complete Info</th> <th>Application Link<th> </tr> foreach ($retrieve_data as $retrieved_data){ <tr> <td>echo $retrieved_data->Job_Name;</td> <td>echo $retrieved_data->Job_Department;</td> <td>echo $retrieved_data->Job_Link_Info;</td> <td>echo $retrieved_data->Job_Link_Apply;</td> </tr> } </table> } add_action('dont know what to be used', 'get_scrapy_scraped'); ?> | [
0.01393517293035984,
0.011619674041867256,
0.012467226013541222,
0.0027412946801632643,
0.006644634995609522,
-0.0011469675227999687,
0.006758739240467548,
-0.0042671579867601395,
-0.015851780772209167,
0.005770641379058361,
-0.006586770992726088,
0.011307919397950172,
0.016598008573055267,
... | [
0.36531466245651245,
0.0023253322578966618,
0.3839572072029114,
0.07662583142518997,
0.04117166996002197,
0.027537299320101738,
0.20603442192077637,
0.1814626008272171,
-0.5348445773124695,
-0.5448570251464844,
-0.02471267245709896,
0.5687217116355896,
-0.06098668649792671,
-0.416604459285... |
I'm using the package `mcode` to show matlab code in my thesis. This package requires the `xcolor` package so it automatically loads it. My problem is that I have to call the `table` option in the `xcolor` package but when I call it after `mcode` I get an error because it was previously called in `mcode`. How can I resolve the issue? | [
0.012976018711924553,
0.004982410464435816,
-0.009409908205270767,
0.014548243023455143,
-0.025347620248794556,
0.01573500968515873,
0.009495869278907776,
-0.009178288280963898,
-0.01518719457089901,
-0.031188366934657097,
-0.021426936611533165,
-0.004375830292701721,
-0.002135698916390538,
... | [
-0.01855647750198841,
0.4314984381198883,
0.36203810572624207,
-0.12068146467208862,
0.16224880516529083,
-0.2496938705444336,
0.09332329034805298,
-0.21696564555168152,
-0.02816583588719368,
-0.4392063319683075,
-0.07401479780673981,
0.4312765598297119,
-0.15246663987636566,
0.29937186837... |
This was briefly touched on here: "What/When is the best time to call back?" but only in comments for an answer rather than the question itself. Should I use _callback_ , _call-back_ , or _call back_ for > Request a **call-back** ? Is there a standard to use? | [
0.03303191065788269,
0.01998213306069374,
-0.009378448128700256,
0.006728342734277248,
0.0018365761497989297,
0.027758177369832993,
0.010413464158773422,
0.0005472638877108693,
-0.020547157153487206,
-0.059408895671367645,
-0.0010843699565157294,
0.0068662893027067184,
0.008702843450009823,
... | [
0.12205857783555984,
-0.3186829090118408,
0.24272164702415466,
-0.04761242866516113,
-0.08105186372995377,
-0.04614098370075226,
0.2104867547750473,
0.058566588908433914,
-0.15623149275779724,
-0.31755149364471436,
0.4187311828136444,
0.3434678614139557,
0.06549767404794693,
-0.10428048670... |
I'm running a website for a while and I'm still learning how to manage it. One thing I've noticed is that some visitors download all zip files in the same order ( there is a pattern of downloads). I've also noticed that the referrers of those visitors are always blank. I think these downloads are done automatically with the help of certain software. My question is: Are those visitors hackers? If they are, why are they doing this when they can download my files legally? | [
-0.011872475035488605,
0.006131295580416918,
0.002737313276156783,
0.01842842809855938,
-0.028901245445013046,
-0.005553975701332092,
0.00538385147228837,
-0.0027285858523100615,
-0.012911119498312473,
0.003362527582794428,
-0.013664939440786839,
0.005289052613079548,
0.020194096490740776,
... | [
0.8453632593154907,
0.22870567440986633,
0.24180665612220764,
0.20985829830169678,
0.21990196406841278,
-0.28945961594581604,
0.18609048426151276,
0.3029173016548157,
-0.6260442137718201,
-0.3125709891319275,
-0.014724699780344963,
0.2414778769016266,
-0.13957127928733826,
0.35977897047996... |
Grid search suffers from the curse of dimensionality. But is there any case(any hypothetical distribution of data) in a two dimensional feature space where the data’s binary classification using Grid Search would yield very poor results? | [
-0.028158927336335182,
0.016266172751784325,
-0.011151817627251148,
0.022162029519677162,
0.009258957579731941,
-0.006907396949827671,
0.014434571377933025,
0.0033838741946965456,
-0.02691282145678997,
-0.03173966705799103,
-0.03479357063770294,
0.025590188801288605,
-0.015087738633155823,
... | [
-0.1802995502948761,
-0.1412891000509262,
-0.027120232582092285,
0.49097996950149536,
-0.09539240598678589,
0.0566578172147274,
0.16449733078479767,
0.03348609805107117,
0.08283081650733948,
-0.6713573336601257,
-0.1887417733669281,
0.11869876086711884,
-0.39363718032836914,
0.132544070482... |
I am playing around with `htop`, `gprof`, etc. I'd like a program that basically just runs on multiple cores so I can profile it and learn how to use these tools. I know I can write my own `c++` code with `-fopenmp` and run a useless loop, but I was hoping there's a stock unix command I can use? Basically I just want a program that uses 100% of however many cores I tell it, until I ask it to stop. Does this exist? | [
0.01158174593001604,
0.003612220287322998,
0.003703553229570389,
0.008735786192119122,
-0.013736245222389698,
-0.007098015397787094,
0.006575808394700289,
0.017944451421499252,
-0.023361168801784515,
0.01323267538100481,
0.0011108048493042588,
0.005939781200140715,
0.006031231954693794,
0.... | [
0.7001729607582092,
0.397052139043808,
-0.13812319934368134,
0.16226622462272644,
0.023770267143845558,
-0.2654138207435608,
0.07282151281833649,
0.3039328157901764,
-0.3329158425331116,
-0.33037975430488586,
0.015663782134652138,
0.3187955617904663,
-0.34061679244041443,
0.455736249685287... |
I am looking for the Hurst exponent calculation methodology. Please suggest online materials / methodology papers. | [
0.011983519420027733,
0.006108451168984175,
-0.010434948839247227,
0.05416623875498772,
-0.03902242332696915,
-0.022442134097218513,
0.02154463343322277,
-0.029899803921580315,
-0.03684055432677269,
-0.036988671869039536,
0.035180047154426575,
0.020576346665620804,
-0.013807667419314384,
0... | [
0.15681192278862,
0.22395174205303192,
0.13577768206596375,
0.06447022408246994,
-0.4497981667518616,
-0.3432680666446686,
0.19375981390476227,
0.08572017401456833,
-0.1448347419500351,
-0.3189406096935272,
-0.02338479459285736,
0.2294195592403412,
0.17764176428318024,
0.27734071016311646,... |
I used the code below to add the text besides the line, however, it is very near to the bottom node, I wish to add the text besides the center of the line. May someone help me on this? The code is : \path [line] (s8) -- node [left]{hotel}(s9); Now the result is:  | [
-0.010995154269039631,
-0.0014876795466989279,
-0.010662032291293144,
0.013456008397042751,
-0.020153947174549103,
-0.02364858239889145,
0.0077000814490020275,
0.012584391050040722,
-0.01603757217526436,
0.006389248184859753,
-0.017506204545497894,
-0.005811504554003477,
-0.00552191585302352... | [
0.23342296481132507,
0.1956455111503601,
0.7839261293411255,
-0.3489759564399719,
0.10594626516103745,
-0.163498193025589,
0.540225625038147,
0.09192577004432678,
-0.4300825595855713,
-0.5164035558700562,
-0.059347622096538544,
0.3776894509792328,
-0.13136781752109528,
0.2871100604534149,
... |
RHEL system has run out of memory and is now frozen. The SysReq commands are not working, so I am not even sure that /proc/sys/kernel/sysrq is set to 1. Is there any other "safe" way I can reboot w/out power cycling? | [
0.01508080493658781,
0.020555781200528145,
-0.013765155337750912,
0.012949774973094463,
-0.022173438221216202,
-0.010766207240521908,
0.011440346017479897,
0.014111221767961979,
-0.020363232120871544,
0.01746850460767746,
-0.016572751104831696,
0.00568382628262043,
-0.005494666285812855,
0... | [
0.2645975351333618,
0.09160929173231125,
0.2819002568721771,
-0.05266189202666283,
0.17383986711502075,
-0.05487925186753273,
0.27426621317863464,
-0.0939461812376976,
-0.4226799011230469,
-0.45968371629714966,
0.025066690519452095,
0.3747006058692932,
-0.08845539391040802,
0.2326252907514... |
I currently have added a meta box to the media library popup using the following: // ADD CUSTOM INFO INSIDE THE MEDIA LIBRARY function AddLibraryFields( $form_fields, $post ) { $Added_META=get_post_meta($post->ID); // SPEED INPUT $Speed=$Added_META['Speed'][0]; $NEW_form_fields['Speed']=array( 'value' => $Speed ? $Speed : '', 'input' => 'html', 'label' => __('Speed'), 'html' => "<input name='attachments[{$post->ID}][Speed]' value='" . $Added_META['Speed'][0] . "' />"); return array_merge( $form_fields, $NEW_form_fields ); }; add_filter( 'attachment_fields_to_edit', 'AddLibraryFields', 10, 2 ); I then save the information in the new fields using: // SAVE CUSTOM MEDIA LIBRARY FIELDS function MediaLibrarySave($attachment_id){ // SAVE SPEED $Speed=$_REQUEST['attachments'][$attachment_id]['Speed']; if(isset($Speed))update_post_meta($attachment_id, 'Speed', $Speed); }; add_action( 'edit_attachment', 'MediaLibrarySave' ); All of this seems pretty straightforward, but I'm still really new to this. The above seems to work great, save the info when changed and is specific to each image. Now, I need to be able to access the information inside the SPEED meta field I added, when the user inserts it into the post (I'm assuming this would be the best place to piece it up and convert it into a data-attribute to feed to a jquery plugin?) Here's the function I currently have, but I can't seem to echo the speed meta? function InsertToPost( $html, $attachment_id, $attachment){ $attachment = get_post_meta($attachment_id, 'Speed'); // WOULD USE THE SPEED SETTING HERE TO CONSTRUCT A NEW <IMG STRING WITH DATA-SPEED // OR SOMETHING SIMILAR.... return $html; }; add_filter('media_send_to_editor', 'InsertToPost', 10, 3); Basically, I'm wanting to add multiple meta fields to the media library editor so that I'm able to tag each image (like you would with jQuery.data()) and then later retrieve that information and alter it into a single data-attribute for use inside my plugin. data-plugin='{ "speed" : 500 }' Hopefully I'm going about this the right way with the media_send_to_editor hook, but I just can't manage to retrieve the attachment meta from there.... | [
-0.012155856937170029,
0.0016873021377250552,
0.004417296964675188,
0.012662531808018684,
0.00895209051668644,
-0.01138287503272295,
0.006192765198647976,
0.0048828646540641785,
-0.009830417111515999,
0.010723737999796867,
-0.0012069152435287833,
0.010983765125274658,
-0.004750481806695461,
... | [
0.3463428318500519,
0.005098450928926468,
1.0325449705123901,
0.03897516801953316,
-0.2512042224407196,
0.07060449570417404,
-0.014831187203526497,
-0.6582465767860413,
0.12723898887634277,
-0.8271081447601318,
0.028534727171063423,
0.6507711410522461,
-0.20415760576725006,
0.1529460996389... |
I wish to display and print mathematical formulae not using one of the existing TeX distributions and not via a web browser, but using my own code so that the display is integrated into my packages as part of its user interface. At present I use the BaKoMa versions if cmr, cmmi, cmsy and cmex, but I might like to move to using Latin Modern (Math) for the benefit of its broader Unicode coverage. I can find (almost) all the symbols from the original TeX fonts there and so just by adjusting lookup tables I can adapt my existing code to display most stuff. However (checking latinmodern math using fontforge) many of the symbols from cmex10 are present but with codes outside the Unicode range. As a concrete example there is a range of sizes of radical marks starting at U+110790, and a bit before that the various gradually larger and larger parentheses, brackets and braces. Etc Etc. My problem is that because I can only see these symbols with codes beyond U+10ffff I do not know how to get my C++ code to display them. wxWidgets rejects codepoints above the Unicode range, and native calls on Windows are based on UTF16 which also only covers the Unicode range. I am uncertain why these have been given "extended" codepoints not just ones of the broad private use areas! But I need a pointer - please - to how I can write C++ code that will get them rendered on my screen or page. It may be obvious if I just knew which web page to read, but so far my searches have proved unsuccessful. This related to TeX in that my first test program is my own dvi viewer (it behaves OK with old style fonts - but again I want to know if I am locked to them for ever or if I can update to use Unicode fonts and code-mapping). I intended to end up with my own TeX-like layout code but using TeX compatible fonts seems a very good idea both for quality and so I have an easy source of files of metric information. So please can somebody point me either to information that will let me render the cmex10-like characters from Latin Modern Math from my own C++ code, or redirect me to an alternative place where this question might better be asked. | [
0.023708706721663475,
0.00233549065887928,
-0.020382873713970184,
0.007122793234884739,
-0.02577768638730049,
-0.004929537884891033,
0.009642355144023895,
-0.0005842987447977066,
-0.013787095434963703,
-0.03343864157795906,
-0.015919670462608337,
-0.005697260610759258,
0.01014047209173441,
... | [
0.22884809970855713,
0.5091380476951599,
0.29358911514282227,
0.041320864111185074,
-0.17114005982875824,
0.451351523399353,
0.08993988484144211,
0.018016742542386055,
0.07299645245075226,
-0.693615198135376,
0.07285357266664505,
0.5979025959968567,
-0.22239921987056732,
-0.272787302732467... |
I am trying to run an executable from the android terminal with root permissions, but I am constantly receiving the following error: [ExecutableName] : permission denied I am confirmed to be loged in as root. I see the # sign before my prompt and I can run root commands such as chmod. I saw that the android shell guide says > "The built-in shell has very limited error handling. When you type a command > name >incorrectly it will say "permission denied", even though the real > problem is that it >couldn't find the command:" Does anyone know how to get more information on this "permission denied" error? | [
-0.008413055911660194,
-0.005681571085005999,
-0.011006306856870651,
0.0187804214656353,
-0.043991971760988235,
-0.005306398496031761,
0.008693641051650047,
0.014591794461011887,
-0.014269848354160786,
-0.005680548492819071,
-0.015670133754611015,
-0.005917875096201897,
-0.014978251419961452... | [
-0.046706829220056534,
0.3452344834804535,
0.023325681686401367,
-0.19353224337100983,
0.28457266092300415,
-0.10926083475351334,
0.7767369747161865,
0.42196425795555115,
-0.13888749480247498,
-0.583672285079956,
-0.08195661008358002,
0.4397675693035126,
0.017480207607150078,
0.51329201459... |
Perhaps I made a mistake with the syntax but I think I found a problem. \documentclass[11pt]{scrartcl} \usepackage{tikz} \begin{document} \begin{tikzpicture}[x = {(sin(-60) cm,-cos(-60) cm)}, y = {(0.866 cm,-0.5 cm)}, z = {(0cm,1cm)}, scale = 4] \draw[->] (0,0,0) -- (1,0,0); \draw[->] (0,0,0) -- (0,1,0); \draw[->] (0,0,0) -- (0,0,1); \draw circle (1); \end{tikzpicture} \end{document} I can use `cos(60)` for the second coordinate but I can't use `sin(60)` for the first one. The question is how to work around this problem. What is the better way ?. I can use something like `\xcoord` with `\pgfmathsetmacro\xcoord{sin(-60)}` but perhaps there is a better way. | [
0.00009537558071315289,
0.007197259459644556,
-0.003653273917734623,
0.01978422701358795,
0.0034853648394346237,
-0.008888527750968933,
0.006988410837948322,
-0.0018650824204087257,
-0.011633437126874924,
-0.011672193184494972,
-0.01211012713611126,
-0.003429986536502838,
-0.0211052298545837... | [
-0.21802321076393127,
0.09473612159490585,
0.7773977518081665,
-0.05815655738115311,
-0.011242814362049103,
0.20486792922019958,
0.3690010905265808,
-0.5482508540153503,
-0.23711220920085907,
-0.7047489881515503,
-0.08635100722312927,
0.2561243176460266,
0.10269404947757721,
0.054090686142... |
I have two accounts on my computer: james and john. james is the only administrative account and a few days ago I set it to expire out of curiosity. Now am stuck. I can not login using james because it has expired, I can not use john for anything because it is not a member of sudoers. I can not login as root probably because root and james shared a password. Kindly help. | [
0.001021667616441846,
-0.0026615809183567762,
-0.017429541796445847,
0.006234308239072561,
-0.008219518698751926,
-0.011485169641673565,
0.008088672533631325,
0.00724121043458581,
-0.010831213556230068,
-0.018867753446102142,
-0.015808572992682457,
0.004276972729712725,
-0.003792122239246964... | [
0.12593871355056763,
0.2727976143360138,
0.16994735598564148,
-0.0970577672123909,
0.4264890253543854,
0.31880953907966614,
0.688947319984436,
0.819998025894165,
-0.2272091656923294,
-0.8855953812599182,
0.11616635322570801,
0.11207211762666702,
-0.015208963304758072,
0.6471105217933655,
... |
I'm doing an experiment where I bring a probe very close to a well full of fluid and then very slowly lower it to obtain some force deformation values. The material behaves very much like a fluid and when I bring the probe close to the fluid, it sort of jumps up and grabs the probe and forms like a "column?" that actually pulls on the probe rather than pushing on it. Anyway, I'm trying to coat the probe with an oil or something that will prevent this, but I don't know how to look into it because I don't know what its called or how its described in the literature. Any ideas on what this phenomena is called? | [
-0.0003866185434162617,
0.0030377828516066074,
-0.008941194042563438,
0.01595722697675228,
-0.02350628562271595,
-0.014726072549819946,
0.006276251282542944,
-0.002355715725570917,
-0.014411013573408127,
0.018192632123827934,
0.006068485789000988,
0.014993786811828613,
-0.0015911571681499481... | [
0.6935124397277832,
0.12205584347248077,
0.3458174765110016,
0.22184664011001587,
0.09660475701093674,
0.2625468075275421,
-0.1588515192270279,
-0.24620479345321655,
-0.3205461800098419,
-0.31497374176979065,
0.5778265595436096,
0.21742497384548187,
-0.22859175503253937,
0.4041726291179657... |
I need to describe some measurements of an arrow shape. Are there names for the measurements described in the diagram pictured below? Blue lines indicate a measurement and are capped with red lines.  image source | [
-0.00843184906989336,
0.006804091390222311,
-0.005939436610788107,
0.026060383766889572,
-0.012658943422138691,
-0.008840604685246944,
0.008875010535120964,
-0.00040729378815740347,
-0.020205922424793243,
-0.0028778845444321632,
-0.0026783321518450975,
-0.0009738559601828456,
0.0105096334591... | [
0.3849944472312927,
0.06132097169756889,
0.4632014334201813,
0.1048954650759697,
-0.07774951308965683,
-0.057404279708862305,
0.3369956612586975,
-0.18859414756298065,
-0.3087880611419678,
-0.5156161785125732,
0.27872148156166077,
0.23772531747817993,
-0.072234146296978,
-0.048699602484703... |
When you go to decorate and you drag certain items little oval things appear. When you drag a Poke Puff there is a single oval in the middle which is the only place you seem to be able to place Poke Puffs. The picture below shows the two ovals that appear when dragging a cushion. What are these Ovals?  | [
-0.014538511633872986,
0.007651899941265583,
-0.006200079806149006,
0.018885543569922447,
-0.004516366869211197,
-0.0029239472933113575,
0.007897092960774899,
0.03039342537522316,
-0.019683994352817535,
0.026048483327031136,
-0.014180660247802734,
-0.0012337334919720888,
0.002924714237451553... | [
0.3000739812850952,
-0.4199853241443634,
0.3396376967430115,
0.2901601195335388,
-0.19835640490055084,
0.09047815948724747,
-0.20913848280906677,
0.20721229910850525,
-0.714430570602417,
-0.40146180987358093,
0.45969295501708984,
0.33306071162223816,
-0.07092653959989548,
0.324930429458618... |
I want to call a web service and use it in combox for search. Here is the function that i used to call my service web: var xmlhttp = new XMLHttpRequest(); var url = "http://176.31.230.211/mtmap/MapSrv.svc/getCities"; var params = JSON.stringify({ sessId:"1", cityName:"ra" }); xmlhttp.open("POST", url, true); xmlhttp.setRequestHeader("Content-type", "application/json"); xmlhttp. önreadystatechange = function() { if(xmlhttp.readyState == 4 && xmlhttp.status == 200) { console.log(xmlhttp.responseText); } } xmlhttp.send(params); I created the ComboBox using the GeoExt bibliography: var promosCombo = new Ext.form.ComboBox({ id : 'promosCombo', triggerAction : 'all', emptyText : "Ville, Avenue, Rue...", editable : false, store : promosStore, mode : 'local', valueField : 'value', displayField : 'display', }); here is my store: var promosStore = new Ext.data.JsonStore({ url : 'http://176.31.230.211/mtmap/MapSrv.svc/getCities', fields : ['display', 'value'], root : 'rows', autoLoad : true }); What i want exacty is when i start to tape in my ComboBox the list of the city appear so i can choose the city. It's really urgent. Sorry for my english and Thank you guys for your help and your advice. | [
-0.0006278017535805702,
-0.0002086936729028821,
0.003123846370726824,
-0.007713839411735535,
-0.0012751889880746603,
-0.018164366483688354,
0.007158754393458366,
0.02707092836499214,
-0.012846756726503372,
-0.021841716021299362,
-0.003298167372122407,
0.010875011794269085,
-0.000683562364429... | [
0.4562639892101288,
0.0607123002409935,
0.749932050704956,
-0.12029681354761124,
-0.1316210776567459,
0.13941256701946259,
0.3808008134365082,
-0.48444440960884094,
-0.2180246114730835,
-0.74916011095047,
-0.1359845995903015,
0.26673227548599243,
-0.42181697487831116,
0.04315746948122978,
... |
Is it possible to change the line spacing within a `colchunk` in a `parcolumns` environment? I tried the following without success: \documentclass{article} \usepackage{parcolumns} \begin{document} \renewcommand{\baselinestretch}{1.5}\normalsize \begin{parcolumns}[nofirstindent]{2} \colchunk[1]{bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla} \colchunk[2]{\renewcommand{\baselinestretch}{1.1}\footnotesize This works not. This works not. This works not. This works not. This works not. This works not. This works not. This works not. This works not. This works not. \par} \colplacechunks \end{parcolumns} {\renewcommand{\baselinestretch}{1.1}\footnotesize This works fine. This works fine. This works fine. This works fine. This works fine. This works fine. This works fine. This works fine. This works fine. This works fine. \par} \end{document} | [
0.02068471908569336,
0.006038053892552853,
-0.016595184803009033,
0.03253129869699478,
0.0010849982500076294,
-0.01637621968984604,
0.006445268169045448,
0.002466247882694006,
-0.017465312033891678,
-0.009409835562109947,
0.0040750931948423386,
0.00713467039167881,
0.012496789917349815,
0.... | [
-0.2699695825576782,
-0.12035389244556427,
0.427956223487854,
-0.16182510554790497,
0.15565578639507294,
0.3487064242362976,
0.19554635882377625,
-0.21108928322792053,
-0.030000140890479088,
-0.20655858516693115,
-0.259859561920166,
0.1259324848651886,
-0.11942470073699951,
-0.159257471561... |
Some of the advanced power control widgets or 2G/3G switching widgets allow the following options for the radio mode: * 2G * 3G only * 2G+3G What are the benefits of 2G+3G over running 3G only? Are there any drawbacks? | [
0.005339650437235832,
0.0231988076120615,
-0.026628490537405014,
0.02106364630162716,
-0.026573844254016876,
-0.014038882218301296,
0.01529869344085455,
0.005270632449537516,
-0.03416583687067032,
0.0006519060698337853,
-0.03664367273449898,
0.004354496020823717,
-0.01306439470499754,
0.04... | [
0.4089409410953522,
-0.09690211713314056,
0.5028659701347351,
0.14522339403629303,
-0.04461490362882614,
-0.5399378538131714,
0.4989688992500305,
-0.501761794090271,
0.024268580600619316,
-0.2521418631076813,
-0.17609275877475739,
1.027384638786316,
-0.42758509516716003,
-0.501428365707397... |
I'm using wti_like plugin and this is how i get the number(count) of post liked by the author // Get the author object $author = get_user_by( 'slug', get_query_var( 'author_name' ) ); // Get the post ids liked by the author $like_ids = $wpdb->get_var("SELECT SUM(value) FROM {$wpdb->prefix}wti_like_post WHERE user_id = {$author->ID} AND value > 0 GROUP BY post_id ORDER BY SUM(value) DESC"); ?> echo (int)$like_count; * * * How can i query the posts liked by the author and use my post format to display them in my author.php template? ie: get_header(); ?> <section id="primary" class="site-content"> <div id="content" role="main" < ? $args = array( //QUERY OPTIONS GOES HERE// ); $wp_query->query( $args ); ?> <?php if ( have_posts() ) : ? > | [
-0.0046052527613937855,
0.002274696948006749,
0.005363340489566326,
0.01420100312680006,
-0.00033967685885727406,
0.012305228039622307,
0.009798940271139145,
-0.004955514334142208,
-0.013370431959629059,
0.014537603594362736,
-0.010068869218230247,
0.009350699372589588,
-0.005847990047186613... | [
0.6808115243911743,
0.010146000422537327,
0.8199677467346191,
-0.1344352513551712,
-0.22063791751861572,
0.03265675529837608,
0.23234465718269348,
-0.2501954138278961,
-0.06268678605556488,
-0.6309103965759277,
0.4125593602657318,
0.3472706079483032,
-0.3291032910346985,
0.2604579627513885... |
I'm working through a problem in a special relativity textbook (Woodhouse) and I'm having some difficulty. I have to show that if I have a particle of rest mass $M$, total energy $E$ colliding with a stationery particle of rest mass $m$ then the total energy, $E'$ in the frame where their centre of mass is at rest is given by: $$E'^2 = (M^2 + m^2)c^4 + 2Emc^2$$. Now I understand that the 4 velocity of the centre of mass frame is $V$, and is given by $V = (c,0,0,0)$, I'll call the momenta $P$ and $Q$ (of M and m respectively). Now in the solutions it says that the centre of mass frame is defined so that it's 4 velocity is proportional to the sum of the momenta of the two particles (Say $V = k(P+Q)$) it then goes on to say that hence the total momentum in the centre of mass frame is $(E'/c,0)$ but how can this be, because the particles are still moving in the centre of mass frame? I can see that if this were the case then $g(V,P+Q) = E'$ and then if I could work out the form of $V$ I'm pretty sure I could calculate $E'$ okay. Any help is very much appreciated | [
0.015768390148878098,
0.01335691288113594,
-0.010367986746132374,
0.0063819498755037785,
-0.02771545946598053,
-0.012825042009353638,
0.008485246449708939,
-0.022069618105888367,
-0.011338567361235619,
-0.04071032255887985,
-0.00895359180867672,
0.016002386808395386,
-0.011705138720571995,
... | [
0.0744527205824852,
0.2854056656360626,
0.821295976638794,
-0.27919915318489075,
-0.2319544106721878,
0.3221133053302765,
0.10670061409473419,
-0.27985116839408875,
-0.4338426887989044,
-0.5718950033187866,
-0.22945964336395264,
0.33375564217567444,
-0.19555673003196716,
0.6477656960487366... |
Currently there are 3 ways to earn BP. You have Battle Test, Battle Maison, and Super Battle Maison. Which one will earn the most amount of Battle Points per hour (Assume that a well built team is being used for this)? | [
0.014034655876457691,
0.026087770238518715,
-0.011803306639194489,
0.016726095229387283,
0.002824790310114622,
0.021583106368780136,
0.010432041250169277,
-0.0217807125300169,
-0.019800320267677307,
0.022531434893608093,
-0.031863417476415634,
0.028409481048583984,
-0.022463683038949966,
0... | [
0.5924118757247925,
0.15155163407325745,
0.17752519249916077,
0.17061148583889008,
-0.12529295682907104,
0.3319341838359833,
0.3116273283958435,
-0.25806695222854614,
-0.21808242797851562,
-0.3410889804363251,
-0.013832873664796352,
0.2504284679889679,
0.3394107520580292,
0.122853092849254... |
I’m working on a financial problem about budget of households. Households in a state fill a form about their net budget in every year and our insurance company investigate their financial status and find the exact amount of their budget. The net budget can be positive or negative. I’m designing a system with neural network that we can find the households that Falsify their net budget, So my output is a binary [ 0 and 1] which 1 is false net budget and 0 is true net budget. Suppose that households’ net budget is P and our investigated outcome of net budget is R. As you know : R>=P Now we have this: If P=R then : Criterion = 0 (true net budget) If P>0 and R>0 : Criterion = R-P/R If P<0 and R<0 : Criterion = (abs(P)-abs(R)) / abs(P) If P<0 and R>0 : ???? (A lot of households have this situation and I dint find any criterion for it) If P<0 and R=0 : ???? (Some of households have this situation and I dint find any criteria for it) If P=0 and R>0 : ???? (Some of households have this situation and I dint find any criterion for it) After finding these criterion that must be between **0 and 1 [0 1]** , I set a threshold (like 0.5), If the criterion is higher than 0.5 household is falsifying the net budget (output = 1) and If it is lower than 0.5 we have a true budget and there isn’t any problem in budget declaring of households (output = 0). ** In range of [0 1], if falsification is higher (depends of above functions - P and R) the creation goes toward 1 and if the household is honest it goes toward 0. So every household (sample) has a criterion between 0 and 1. My main problem is finding a good criterion when **(P <0 , R>0)**, After that **(P <0 , R=0)** and finally **(P=0 , R>0)**. IF I have a problem in first, second and third criterion, feel free to say. I think the output of second situation is different from third because structures of criteria is different. I’m going to find a single criterion function If it is possible. **Example :** First conduction : P = 10 , R = 15 : Criteria : (15-10/15) = 33.3% ( falsification rate for this household ) Second conduction : P = -16, R = -10 : Criteria : (abs(-16)-abs(-10))/abs(-16) = 37.5% ( falsification rate for this household ) Now if for example P=-20 and R = 40, How we can calculate falsification rate? . This is main question. after that how we can calculate when (P<0 , R=0) and finally (P=0 , R>0)? **I check this criterion with this procedure:** for example in first criterion when P>0 and R>0 we have P = 5 and R = 10 so E = 50% . Now if P=fix = 5 and R=increase ( for example now R= 20) we have E = 75%. This is true conceptually in our problem. We must have more falsification when P=5 and R=20 Compared with P = 5 and R = 10 . + we must check it when R=fix and P=increase (or decrease). Thank you so much for your helps. PS. I Have 2000 samples with different values of P and R. | [
0.016664791852235794,
0.011184051632881165,
-0.008578836917877197,
0.018346022814512253,
-0.012452230788767338,
-0.01375525165349245,
0.007981406524777412,
0.0015652072615921497,
-0.012660819105803967,
-0.016838565468788147,
-0.02137124165892601,
0.0029741888865828514,
-0.005886502098292112,... | [
0.3364320397377014,
-0.17488884925842285,
0.25670161843299866,
0.3413488566875458,
0.09399469196796417,
0.6636966466903687,
0.07069478183984756,
-0.5817757248878479,
-0.4948524832725525,
-0.37625032663345337,
0.36710476875305176,
0.2864089906215668,
0.14924713969230652,
0.40100687742233276... |
My Nexus 4 runs Android 4.4 and is set to use the standard "clock" daydream while charging. It has no screen lock. This works fine so far. Expected: I would expect the screen to **wake up when I touch the daydreaming screen.** Problem: **Sometimes the screen turns off** when I touch it, rather than waking up. Symptoms: There might be a time element because this seems to happen when I have not touched the phone for many minutes, but it seems to work OK if it had only been daydreaming a few minutes. AC or USB charging does not seem to make any difference. -> Why does the screen turn off instead of waking up, and how can I "fix" that? | [
-0.025688806548714638,
-0.0018361464608460665,
-0.006745601072907448,
0.01146846916526556,
-0.031187744811177254,
-0.012750710360705853,
0.008602472022175789,
0.019266527146100998,
-0.0113378232344985,
0.017571445554494858,
-0.015660997480154037,
0.014527909457683563,
0.0004952126182615757,
... | [
0.055813055485486984,
-0.08603958785533905,
1.012582778930664,
0.0935637429356575,
-0.17925222218036652,
0.11564548313617706,
0.6866442561149597,
0.05169295147061348,
-0.42364850640296936,
-0.554096519947052,
0.3352358341217041,
0.6838863492012024,
-0.5416114330291748,
-0.2363065779209137,... |
Hi I'm writing a scientific paper and want to write something along the line of: "Static in time" objects are ... Is there a single word describing time independent? | [
0.003979895729571581,
0.01298600435256958,
-0.014762569218873978,
0.027093233540654182,
0.015676604583859444,
-0.017474627122282982,
0.014618011191487312,
0.04250241816043854,
-0.02306455932557583,
0.028865359723567963,
0.003789684735238552,
0.008300023153424263,
0.010915478691458702,
0.00... | [
0.2674747407436371,
-0.0033685890957713127,
0.3870235085487366,
0.1725948601961136,
-0.39622414112091064,
-0.11672892421483994,
0.14073607325553894,
0.41588905453681946,
-0.15136310458183289,
-0.10757818818092346,
0.2996194362640381,
-0.22350186109542847,
-0.15366071462631226,
0.4980109930... |
I'd like to change my default font style in all equations of one document, not just single equation. I guess I am using `\usepackage[utf8]{inputenc}` and `\usepackage{amsmath}`, which may be related to font setting. Which font I want to change into is like  but now is  I am using pdfLaTex in TeXworks. | [
0.018207743763923645,
0.007769542280584574,
-0.004382455721497536,
0.018523231148719788,
-0.0032665531616657972,
-0.01596098393201828,
0.006696781609207392,
-0.003763479646295309,
-0.012836983427405357,
-0.008610771968960762,
-0.0029396447353065014,
-0.0027889928314834833,
0.0047788755036890... | [
-0.20131385326385498,
-0.07072550058364868,
0.6344164609909058,
-0.16252334415912628,
0.0363537035882473,
0.3354080021381378,
0.2109076827764511,
-0.050657302141189575,
-0.12974947690963745,
-0.9201609492301941,
-0.17340178787708282,
0.65861976146698,
-0.17119574546813965,
-0.1710647493600... |
In a method, i have calls of single method of another object that returns field value, like `foo.value()`, which is defined like `Field value() {return this.value;}` Is it better to make a local variable, like `Field value = foo.value()` and use it. Or use many method calls of a single method? Why? How does it correlate with number of method calls, like for 3, 5, 10 what will be better and why it may be a concern? Edit: field doesn't change anyhow during the flow of a method, just the same value all the time. Edit2: does it depend on programming language? If it's important, it's java. | [
0.004743590019643307,
0.02672221139073372,
-0.013745850883424282,
0.007133263163268566,
-0.003920629620552063,
0.0038499373476952314,
0.007652387488633394,
0.0054638683795928955,
-0.015177585184574127,
-0.027235375717282295,
0.002620442770421505,
0.013739891350269318,
0.014210392720997334,
... | [
0.17216499149799347,
0.02324599027633667,
0.09238670021295547,
0.16599725186824799,
-0.0495755560696125,
-0.08672267943620682,
0.09818387776613235,
-0.3422296345233917,
0.03929854556918144,
-0.4125118553638458,
0.077152781188488,
0.45875996351242065,
-0.4761255979537964,
0.060821782797575,... |
I am trying to get a loop structure using `While` to repeatedly evaluate another cell referred to in its body (using a cell tag). "this is the while construct"; x = 2; y = 5; While[x < y, NotebookLocate["code"]; FrontEndTokenExecute["EvaluateCells"]; x y ] and this is the cell called "code" "this cell contains the code i want to run"; x = x + 0.1; y = y - 0.1; My code seems to enter an endless loop. What I expected was when the two numbers, x and y, became equal, the loop would stop. What am I doing wrong? | [
-0.01410697866231203,
0.006599438842386007,
-0.022923486307263374,
0.006989862769842148,
-0.013060936704277992,
-0.0006421320722438395,
0.006273133680224419,
0.014917396008968353,
-0.012466232292354107,
-0.008852326311171055,
-0.006443992257118225,
0.0012772907502949238,
-0.00998792797327041... | [
0.4037092626094818,
0.18188892304897308,
-0.03454439714550972,
-0.23752881586551666,
0.04287150502204895,
0.18655019998550415,
0.6715292930603027,
-0.06056635081768036,
0.09404256939888,
-0.2870059609413147,
0.14773721992969513,
0.07267837971448898,
-0.34354421496391296,
0.3227414786815643... |
I have a problem in arcgis c#. I am using Arcgis axMapControl component and adding image to it but I can not delete image when wanted to delete from axMapControl component... I have get a exception such as " The process cannot access the file C:\Users.. because it is being used by another process " Thanks for your help. public void Add_map() IRasterLayer my_raster = new RasterLayer(); my_raster.FromFile(path); AxMapControl1.AddLayer(my_raster); -------------------------------------------------- public void Delete_map() AxMapControl1.DeleteLayer(0); System.IO.File.delete(path); //There is a Exception.... This problem... | [
-0.023289859294891357,
0.009558120742440224,
-0.004280399065464735,
0.022364798933267593,
0.038766421377658844,
0.008477483876049519,
0.008628656156361103,
0.009899431839585304,
-0.017161430791020393,
-0.0032757692970335484,
-0.0003252890892326832,
0.025199834257364273,
-0.02228732593357563,... | [
0.1450369954109192,
-0.11046484112739563,
0.3387790620326996,
-0.2970525920391083,
-0.0519755482673645,
0.07463011890649796,
0.2801626920700073,
-0.3156125545501709,
-0.28715065121650696,
-0.908183753490448,
-0.07007425278425217,
1.0537408590316772,
-0.7642272710800171,
-0.1155500859022140... |
I have a Galaxy S3 International Version, without any modification whatsoever-- no rooting, no nothing. It is as good as a stock phone with a few Play Store apps. However, of late, I have begun experiencing problems I do not have background processes (of my own) running and even then all I have left free in the RAM is usually only 300MB of the 800MB that is there. Task killers cannot free more than that. I experience lag when opening settings. What I mean is this: Say I click on the `Battery` option under Settings. There is a visible lag between the time I press the option and when the battery information is actually displayed on the screen. Android Version: 4.1.2 Build Number: JZO54K.I9300XXEMF6 | [
-0.0022264262661337852,
-0.010584672912955284,
-0.005555107723921537,
0.008273206651210785,
0.0016840832540765405,
-0.0028572105802595615,
0.005014615599066019,
0.0064819552935659885,
-0.007938677445054054,
0.009222183376550674,
-0.009261262603104115,
0.011238704435527325,
0.0111375562846660... | [
0.07002799957990646,
0.23216870427131653,
0.6920800805091858,
-0.2729242444038391,
0.08713703602552414,
-0.06466291099786758,
0.40861842036247253,
0.06199384480714798,
-0.2829185128211975,
-0.34401756525039673,
0.022549256682395935,
0.8540986180305481,
-0.3678593635559082,
-0.1269498765468... |
I am doing a project in which I need to mount 100+ loop devices and merge it into AUFS mountpoint As an observation, for sequentially mounting 90 loop devices, it takes 25 seconds. I am looking for a solution which will minimize time by mounting loop devices in parallel | [
-0.022349782288074493,
0.027702415362000465,
-0.05871793255209923,
0.02041051723062992,
0.008312421850860119,
-0.014029386453330517,
0.01460067555308342,
0.00822411198168993,
-0.022702038288116455,
-0.0022570714354515076,
-0.0038394341245293617,
0.007871902547776699,
-0.02554383873939514,
... | [
0.28312748670578003,
-0.08152856677770615,
0.35365939140319824,
-0.05557995289564133,
-0.20348621904850006,
0.04432795196771622,
0.2235240787267685,
-0.4496364891529083,
-0.23849157989025116,
-0.8667365312576294,
0.2325143963098526,
0.008990921080112457,
-0.2909178137779236,
0.228168979287... |
I was interested in finding Firefox 'clones' in Linux when I heard about Icecat and Iceweasel. But while Icecat can be installed with > sudo add-apt-repository ppa:gnuzilla-team/ppa && sudo apt-get update && sudo > apt-get install icecat -y  Iceweasel was a different matter. At a certain point I was even directed towards Icecat - as if they were one and the same project. Their names might induce this impression. More here. | [
-0.0013010029215365648,
0.004585573449730873,
-0.0061216275207698345,
-0.00006674090400338173,
0.017276884987950325,
0.014485415071249008,
0.00840856321156025,
0.004297548905014992,
-0.018053023144602776,
0.0021828690078109503,
-0.004361046478152275,
0.00010658311657607555,
-0.00959227327257... | [
0.3889728784561157,
0.2256956398487091,
0.08627092838287354,
-0.12895885109901428,
-0.39104369282722473,
0.002124930266290903,
0.12387222051620483,
-0.11261651664972305,
-0.08890485018491745,
-0.4963485598564148,
-0.20094460248947144,
0.3326050043106079,
-0.6761765480041504,
0.020668592303... |
I'm asking about someone who's employed by a company and does different jobs (both a qualified and unqualified person). Who knows; maybe in English those two are two different words? What are they called in English? All I know is **a navvy** but that usually means physical work. Let me just try a few things here. These are just wild guesses, nothing more. * odd job man/worker * shiftman * (unskilled) labourer | [
0.0022247566375881433,
0.030890455469489098,
0.01761413738131523,
0.024445069953799248,
-0.02458832412958145,
0.00013563422544393688,
0.010203796438872814,
0.02382192388176918,
-0.01214325986802578,
0.015772724524140358,
-0.006781079340726137,
0.010299503803253174,
0.026445362716913223,
-0... | [
0.892638087272644,
-0.027888035401701927,
-0.03828875720500946,
-0.15138322114944458,
-0.026347720995545387,
0.48476049304008484,
0.06645239889621735,
0.08630147576332092,
-0.5524229407310486,
-0.3237588405609131,
0.08750753104686737,
0.1993991583585739,
-0.09984994679689407,
0.04712823405... |
I am trying to compose a command into a token list. \documentclass{article} \usepackage{expl3} \begin{document} \ExplSyntaxOn \tl_new:N \__a \tl_new:N \__b \tl_new:N \__c \tl_set:Nn \__a { test } \tl_set:Nn \__b { \{ } % works with { brace } but not with { \{ } \tl_put_right:Nx \__c { \exp_not:N \m { \__a } { \__b } } \tl_show:N \__c % expected result: \m{test}{\{} \ExplSyntaxOff \end{document} Everything worked fine, but when I have a `\{` token, the whole thing breaks. Any ideas how to solve this? | [
0.008570150472223759,
0.013391254469752312,
-0.0022049900144338608,
0.009994656778872013,
0.0059725274331867695,
0.01470598392188549,
0.0057546477764844894,
-0.013079904019832611,
-0.011693472042679787,
0.0009881726000458002,
-0.01685912348330021,
-0.003543283324688673,
-0.002062801737338304... | [
0.0439106710255146,
0.23948778212070465,
0.14450432360172272,
-0.1970687359571457,
-0.11113551259040833,
0.33549222350120544,
0.3982834219932556,
-0.43434348702430725,
0.003996944520622492,
-0.8310851454734802,
0.13657185435295105,
0.09890797734260559,
-0.1625235229730606,
-0.1746065914630... |
I have this code to display 4 posts of type "testimonial" on the Home page: <?php $custom_posts = get_posts([ 'numberposts' => 4, 'post_type' => 'testimonial' ]); ?> <?php foreach ($custom_posts as $post) : setup_postdata($post); ?> <article> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>">Continue reading</a> <p><?php echo get_post_meta($post->ID, 'pacient', TRUE); ?></p> </article> <?php endforeach; ?> This works as expected. Excerpts are shown. Sunshine rainbows. Unfortunately if I move exactly the same code to the sidebar on other side no excerpts are shown. There is content trimmed down for each post instead. In other words: This exact same code (copy/pasted) on home page produces excerpts. In the sidebar on other page it produces trimmed content with "[...]" at the end. I have no clue why. Can the problem be related to where the get_post function is called (after Query or something). Why this function behaves differently in both cases? How do I force it to show excerpt only and not the post content. Am I missing something? | [
0.01282479427754879,
0.006716070231050253,
0.004021544009447098,
0.016264252364635468,
0.0174219012260437,
0.0018046749755740166,
0.0073966351337730885,
0.0035431887954473495,
-0.0126454196870327,
-0.005926426034420729,
-0.0057363007217645645,
-0.0012844029115512967,
-0.006802095100283623,
... | [
0.3926590085029602,
0.06519356369972229,
0.9565461874008179,
0.013854725286364555,
-0.1311214715242386,
0.18345361948013306,
0.3360678553581238,
-0.27832403779029846,
-0.1102520227432251,
-0.5303099155426025,
0.03698727861046791,
0.04058194160461426,
-0.19203825294971466,
0.328105986118316... |
I currently have a dual-boot system between Linux Mint and Windows 8. I currently have it set up that both systems have about 500 GB for data storage. I prefer using Linux, but school requires me to use Windows. So I frequently switch back and forth. I find it annoying having to move data from one to the other when I need, requiring to restarts to finally move the data. So I want to make a single "Data" partition that is shared between the OSes (the Windows partition doesn't like to be accessed inside Linux, and obviously Windows doesn't even recognize Linux). So what format should I use? I want one that both Linux and Windows can use and has a largish max file limit (i.e. not Fat32). | [
0.0021943836472928524,
0.009770894423127174,
-0.028605511412024498,
-0.001361352507956326,
0.0046311914920806885,
-0.018374789506196976,
0.006557943299412727,
0.018669050186872482,
-0.01072005182504654,
-0.009387253783643246,
-0.002108099404722452,
0.004648255649954081,
0.010115202516317368,... | [
0.33451277017593384,
0.22367437183856964,
0.20841453969478607,
0.21903753280639648,
0.209168940782547,
0.11591028422117233,
0.07283669710159302,
0.3226533830165863,
-0.21166057884693146,
-0.7681841850280762,
0.08338454365730286,
0.4150841236114502,
0.20002876222133636,
0.3610931634902954,
... |
I'm a beginner with programming, and javascript. I went to the FOSS4G-NA conference and was very inspired to learn more. I'm trying to learn PostGIS, and have come across a very useful tutorial for using PostGIS with Openlayers and geoserver: http://workshops.opengeo.org/postgis-spatialdbtips/ I've followed through all of the examples, but one of many things I don't understand: The examples show how to retrieve data from the postgis database and display on the map, or show how to calculate something within a distance of the map click. What about retrieving the clicked taxlot, then using the id of that taxlot to perform other spatial queries? For example, I'm trying to build up an example based on the concepts for the tutorial. I want the user to click a watershed (a polygon layer), and have the map return the outline of the clicked watershed, as well as highlight/send to the map any withdrawal point data contained within that watershed, and produce some summary output (such as the total number and withdrawal amounts) and place that into the iframe on the page. My strategy would be: * Have one function retrieve the clicked watershed, output the selected watershed vector to the map, and return the ID of that watershed and store it as a variable. * That variable would then be passed to a second function where the spatial query using st_contains is performed to select all of the points within the taxlot, and then output those selected building vectors to the map. * A third function would perform a similar query to the second function, except output the result of a summary calculation to the iframe. Right now I'm stuck on whether this strategy is right, as **I'm a bit lost on the code to both retrieve clicked attribute data and store it as a variable, as well as display it using geojson**. Clicking in my map page gets me the error that my clicked_shed variable is null, in my getWatershed function. Right now I've only created a function to retrieve the ID of the clicked watershed, and a function to display those withdrawal points within that clicked watershed. I'm so inspired by all of this I think my first task after I understand this better will be to write some easy tutorials following on to this existing tutorial for others in my position. There can never be enough examples and tutorials in my opinion. Can anyone provide a lowly beginner with any thoughts? var x = -8684372; var y = 4765431; var zoom = 10; var map, json_layer; function init(){ initMap(); var wwms = new OpenLayers.Layer.WMS( "Opequon Sub-watersheds","/geoserver/wms?", { transparent:'true', layers: 'medford:subshed2', 'format':'image/png'}, {'reproject': true}); var swms = new OpenLayers.Layer.WMS( "Opequon Streams", "/geoserver/wms?", { transparent:'true', layers: 'medford:OpequonStreams', 'format':'image/png'}, {'reproject': true}); map.addLayer(wwms); map.addLayer(swms); map.events.register("click", map, getWatershed); map.events.register("click", map, getFeatures ); } function initMap() { // Initialize our map using Mercator as the internal units. // That means our bounds, center, resolution, all have to be in Mercator. var options = { projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), units: "m", numZoomLevels:20, maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34), controls:[new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.PanZoomBar()] }; map = new OpenLayers.Map( 'map' , options ); var gmap = new OpenLayers.Layer.Google( "Google Physical", // the default {type: G_PHYSICAL_MAP, 'sphericalMercator': true} ); var gsat = new OpenLayers.Layer.Google( "Google Satellite", {type: G_SATELLITE_MAP, 'sphericalMercator': true} ); map.addLayers([gmap, gsat]); map.setCenter(new OpenLayers.LonLat(x, y), zoom); } function getWatershed(e) { var geojson = new OpenLayers.Format.GeoJSON(); // Get the mercator coordinates from the viewport var xy = map.getLonLatFromViewPortPx(e.xy); // Find the watershed ID. var sql = "select st_asgeojson(the_geom), id "; sql += "from medford.subshed2 "; sql += "where st_contains(the_geom,st_transform(st_setsrid("; sql += "st_makepoint(" + xy.lon + "," + xy.lat + ")"; sql += ",900913),26918))"; var config = { "method":"GET", "url":"04-sql-to-json.jsp", "async":false, "params":{"sql":sql} }; var xmlhttp = OpenLayers.Request.issue(config); var clicked_shed = geojson.read(xmlhttp.responseText, "FeatureCollection"); var id = clicked_shed.attributes.id; getFeatures(id); } function getFeatures(id) { var json_url = "04-sql-to-json.jsp?sql="; var sql = "select st_asgeojson(st_transform(withdraw.the_geom,900913)), shed.id from medford.subshed2 shed, medford.withdrawals6_opequonUTM withdraw where st_contains(shed.the_geom,withdraw.the_geom) AND shed.id = '" + id + "'"; json_url += escape(sql); if (json_layer) { json_layer.destroy(); } jsonlayer = new OpenLayers.Layer.Vector("GeoJSON", { strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.HTTP({ url: json_url, format: new OpenLayers.Format.GeoJSON() }) }); map.addLayer(json_layer); } | [
-0.010115085169672966,
-0.0012750301975756884,
-0.003774994518607855,
0.012872053310275078,
0.0002590389922261238,
0.004908762406557798,
0.0069908322766423225,
0.005793451797217131,
-0.02069241739809513,
-0.020865947008132935,
0.0018544119084253907,
0.011809548363089561,
0.003072360530495643... | [
0.2421000450849533,
0.11505003273487091,
0.4477275311946869,
-0.016449468210339546,
-0.14596688747406006,
-0.18231680989265442,
0.05571173503994942,
0.1912442147731781,
-0.09788678586483002,
-0.9472144842147827,
0.09952513873577118,
0.10596983879804611,
0.20650584995746613,
0.0223877709358... |
As you already know, WordPress manipulates posts, even if you write everything in **Text** mode. (replacing line breaks with `\r\n` 's , converting single quotes into double quotes etc.) I know this is good for helping us not to mess things up, however, in my case, I want to put HTML codes inside my post -both `<code>` and `</code>` tags , and some HTML directly-. so I want to make sure what I see in Text mode (or install an HTML mode somehow) , so that _What I See is What I Get_ , in terms of HTML :) Maybe a better explanation for what I want is this : What I write in "add new post" window should be **exactly** equal to what is printed between `<div class='entry-content'>` and `</div>`. Any tips for this? Should I change my theme? Or a plugin for tinymce? ## p.s.: I know single quotes should be escaped for database, but I want to preserve line breaks, html tags etc. So please tell me there is a way other than writing directly into the database. | [
-0.005254834890365601,
0.008961288258433342,
-0.0004918922204524279,
0.018150925636291504,
-0.0045566982589662075,
0.005151936784386635,
0.0059709674678742886,
0.009426690638065338,
-0.009279957041144371,
-0.01733972318470478,
-0.013135730288922787,
-0.0007350716623477638,
-0.002078073099255... | [
0.46655353903770447,
-0.015151755884289742,
0.6396220922470093,
0.011427692137658596,
-0.2235385924577713,
-0.28041863441467285,
0.6436393857002258,
0.2039811909198761,
-0.11831377446651459,
-0.731030285358429,
-0.011918773874640465,
0.3003886342048645,
-0.4491071403026581,
-0.003191914176... |
Which one is better for increasing PageRank: 1. Hosting multiple websites of different languages and interlink them 2. Host single website and create multiple language pages and interlink them | [
-0.01923340931534767,
0.0657440721988678,
-0.018208853900432587,
0.019976606592535973,
-0.046214573085308075,
0.021419499069452286,
0.024950189515948296,
0.016737399622797966,
-0.021513864398002625,
-0.0026346752420067787,
-0.024919025599956512,
0.01720939390361309,
-0.030361076816916466,
... | [
-0.017417602241039276,
-0.11175739765167236,
0.3487526476383209,
0.2635785639286041,
-0.019155653193593025,
0.2541090250015259,
0.20059311389923096,
0.04264429956674576,
-0.3210948407649994,
-0.6198490262031555,
-0.05343842878937721,
0.29276037216186523,
-0.21395999193191528,
-0.2695420384... |
I have an application that uses a cached world basemap overlaid with more local and specific data coming from a dynamic map service. It works well for performance, but some users need to see some very detailed information in the dynamic map service. Is there a technique to allow users to zoom in past the closest scale range of the cached service? | [
-0.00935303047299385,
0.009657001122832298,
-0.002280425513163209,
0.004214633256196976,
0.011827372014522552,
0.007237298879772425,
0.011247627437114716,
0.01265327911823988,
-0.024765221402049065,
-0.026939379051327705,
-0.0026453800965100527,
0.02149246819317341,
-0.007202028296887875,
... | [
0.40203964710235596,
-0.1275300830602646,
0.1487540602684021,
0.33010685443878174,
0.11302647739648819,
-0.18314707279205322,
0.004208568949252367,
0.14739017188549042,
-0.16189271211624146,
-0.5776399970054626,
0.3688129782676697,
0.2679561972618103,
0.04293721541762352,
0.295884847640991... |
I am wanting to draw a tetrahedron with labeled points on each corner. I attempted to edit the example of a cone that I found here: A cone with tikzpicture I have made it look partially like a tetrahedron but have not been able to get it right (let alone labeled points). This is what I’ve got so far: \documentclass{article} \usepackage{tikz} \usepackage{tikz-3dplot} \begin{document} \begin{tikzpicture}[tdplot_main_coords] \def\RI{2} \def\RII{1.25} \draw[] (\RI,0) \foreach \x in {0,240} { -- (\x:\RI) node at (\x:\RI) (R1-\x) {} }; \draw[dashed,thick] (R1-0.center) \foreach \x in {120} { -- (\x:\RI) node at (\x:\RI) (R1-\x) {} }; \begin{scope}[yshift=2cm] \draw[thick,fill=gray!30,opacity=0.2] (\RII,0) \foreach \x in {0,120,240,360} { -- (\x:\RII) node at (\x:\RII) (R2-\x) {}}; \end{scope} \foreach \x in {0,240} { \draw (R1-\x.center)--(R2-\x.center); }; \foreach \x in {120} { \draw[dashed] (R1-\x.center)--(R2-\x.center); }; \end{tikzpicture} \end{document} and this is what it compiles to give:  | [
-0.002411147113889456,
0.0021480193827301264,
-0.01978888362646103,
0.03206309676170349,
-0.010753914713859558,
-0.004007935523986816,
0.007730036973953247,
0.003822703380137682,
-0.023786701261997223,
-0.013367680832743645,
-0.006330323871225119,
-0.0019378598080947995,
-0.02332882583141327... | [
0.3061464726924896,
0.19673863053321838,
0.2902449071407318,
-0.002716706832870841,
-0.11332771182060242,
0.18458089232444763,
-0.004072959069162607,
-0.008743510581552982,
0.0069185420870780945,
-0.7997108697891235,
0.2524643540382385,
0.2564069330692291,
-0.1386077105998993,
0.3505402505... |
Consider a U(1) Chern Simons theory on a torus $\mathbb{T}$: \begin{align} L &= \frac{k}{4\pi} \int_{\mathbb{T}} a \partial a \end{align} where a is some U(1) gauge field, $k\in\mathbb{Z}$ and we used the short hand notation $a \partial a \equiv \epsilon^{\mu \nu \lambda} a_\mu \partial_\nu a_\lambda$. Consider Wilson Loops of the form \begin{equation} W(C) = \mathcal{P} e^{i \oint_C a \cdot dl}. \end{equation} Here $\mathcal{P}$ denotes path ordering and $C$ denotes some closed loop on the torus $\mathbb{T}$. Consider the two non-contractible loops on $\mathbb{T}$ denoted by $\mathcal{a}$ and $\mathcal{b}$. (For a picture see: http://share.pdfonline.com/7e91df64f6e84f43bff166c6911972d6/torus_a_b.htm) THe ground state manifold of of the theory is $|k|$-fold degenerate. Consider a basis that consists of wrapping "quasiparticles" around the b loop of the torus: $\left| n \right\rangle$ with n=0...$|k|-1$. Then the Wilson loop operators act as \begin{align} W(b)|n \rangle &= |n + 1 \text{ mod } |k| \rangle, \nonumber \\\ W(a) |n \rangle &= e^{2\pi i n /k} |n \rangle. \end{align}. What is the reason for this? I assume it must somehow be related to the explicit construction of the ground state manifold? Since I am working myself into Chern Simons theory at the moment I would also be happy for some advice on readable literature with a focus on condensed matter problems. Best regards. | [
-0.01215899083763361,
0.009653124026954174,
0.00167546805460006,
0.010297125205397606,
0.019487006589770317,
-0.008440634235739708,
0.006478920578956604,
0.004065782763063908,
-0.008858250454068184,
0.008143579587340355,
-0.017769772559404373,
0.0032710153609514236,
-0.016319381073117256,
... | [
-0.12254001200199127,
-0.01649368181824684,
0.2810498774051666,
-0.06052018329501152,
-0.011227969080209732,
0.5527019500732422,
0.12982450425624847,
-0.3494211435317993,
-0.5345026850700378,
-0.21580109000205994,
-0.25319361686706543,
0.12306639552116394,
-0.5181865096092224,
0.6872274875... |
I want to enable some real-time notifications about friend's activities (social network). Technical context is: Webapp calling backend (REST API's). Scenario is: _Kevin follows Bob. When Bob posts a new comment, Kevin should be notified immediately (near real- time). Besides, when Kevin logs in, he should be able to see some past notifications, similar to what Facebook does. Meaning that notifications should be stored somewhere._ Here's the technical workflow: 1. Bob posting a new comment involves an insert in database of this new comment. 2. As following Domain-Driven-Design, the event `CommentedItemEvent` is triggered. 3. A distinct worker in the same bounded context (long-running process, polling the database each second) listening to this event captures it. At the end of 3, I see 2 possibilities: * Creating the corresponding notification, storing it in database and THEN sending it to Redis Pub/sub. This one would feed some specific subscribers acting on the WebSocket connection to send the notification to Kevin's client. * Creating the corresponding notification, then sending it to Redis THEN storing them in database. Regarding the first possibility, the advantage would be the transactional aspect. Indeed, no noticification could be sent if it wasn't saved before. => Integrity. However, the drawback is that the database insertion could slow down the process of "near real-time notification". Regarding the second possibility, notifications are immediately sent but if some failure happens regarding database insertion, Kevin might have wondered: "Humm... I received the Bob's notification, I'm sure I saw it. So why a simple page refresh doesn't show it anymore?" => Indeed, it wasn't persist successfully, so can't query it. What is a good practice regarding this use case? Of course, one faster way would be to not involve an event listener for this case, but it would violate some principles regarding Domain-Driven Design. IMHO, listener polling database in its own bounded context is necessary. (evoked by Vaughn Vernon in this book IDDD - "Building an event store") | [
0.0019970459397882223,
0.0011443241965025663,
0.0007761786691844463,
0.015384003520011902,
0.03405863046646118,
0.010290960781276226,
0.010117207653820515,
0.018033083528280258,
-0.010287289507687092,
-0.0014063199050724506,
-0.016398917883634567,
0.014688044786453247,
0.004212597850710154,
... | [
0.5763933658599854,
0.1598537415266037,
0.48038792610168457,
-0.16046102344989777,
-0.04223448783159256,
-0.1438518911600113,
0.45167917013168335,
-0.012672452256083488,
-0.3175491690635681,
-0.7046412229537964,
-0.01037667691707611,
0.5375251173973083,
-0.37547728419303894,
0.025312451645... |
I am trying to compare two strings and ignore punctuation during the comparison. I thought that catcode redefinition would be a good way to proceed. But, obviously, the use of `\catcode` has a great deal of nuance. I make my MWE below by comparing two strings, one "x" and the other "x,". In the MWE, you will see three separate places where I could invoke the catcode to ignore commas (catcode 9). Only the invocation before the definition of the comma'd string makes the comparisons equal. Obviously, that is not what I'm looking for. When I put the catcode change in my routine, the comma remains in the earlier defined string. So, I thought maybe if I re-edef the comma'd string within my routine, following the catcode change, the comma would be removed from the updated `\edef`. Not so. As you can see, I tried several different ways of redefining the comma'd string, employing various combinations of `\xdef`, `\edef` and `\expandafter`. I'm not tied to a catcode approach. If there is a way to redefine the comma temporarily to nothing with a `\def` command, I'd be more than happy to use that approach. The key is that that the two strings come to the check routine with their commas intact, and I have to develop a way to discard the comma on the fly. \documentclass{article} \usepackage{ifthen} \parindent 0in \begin{document} \edef\x{x} % \catcode`,=9 % ONLY THIS EXTERIOR INVOCATION GIVES EQUALITY \edef\xcomma{x,} % \catcode`,=9 % THIS EXTERIOR INVOCATION DOES NOT GIVE EQUALITY \def\testequalignorecomma#1#2{% \catcode`,=9 % THIS INTERIOR INVOCATION DOES NOT GIVE EQUALITY \ifthenelse{\equal{#1}{#2}}{#1~equals #2}{#1~does not equal #2}\\% \edef\xx{#1}\expandafter\edef\expandafter\xxc\expandafter{#2}% \ifthenelse{\equal{\xx}{\xxc}}{\xx~equals \xxc}{\xx~does not equal \xxc}\\% \xdef\xx{#1}\xdef\xxc{#2}% \ifthenelse{\equal{\xx}{\xxc}}{\xx~equals \xxc}{\xx~does not equal \xxc}% \catcode`,=12 % } \testequalignorecomma{\x}{\xcomma} \end{document} | [
-0.0007199971005320549,
0.028692621737718582,
-0.018530093133449554,
0.0011257166042923927,
-0.021311160176992416,
0.015969514846801758,
0.011079378426074982,
-0.024740424007177353,
-0.014464844949543476,
0.00011765374802052975,
-0.01347773615270853,
-0.007617197930812836,
0.0019169568549841... | [
0.16201001405715942,
0.22381354868412018,
0.3021033704280853,
-0.3942561745643616,
-0.14756155014038086,
0.43569549918174744,
0.35085687041282654,
-0.2501697242259979,
-0.05664661154150963,
-0.6905132532119751,
-0.03998177871108055,
0.5674442052841187,
-0.33686280250549316,
0.1561423242092... |
I am not refering to Legendre transform, but to something more simple. In analytical mechanics, the Lagrangian can be described as $L=T-V$, and the Hamiltonian is if the Lagrangian doesn't explicitly depend on time, then $H=T+V$. There a simple change of functions which I am contemplating here, basically if I write: $U=i \sqrt{V}$, the the Lagrangian becomes: $L=T+U^2$, and the Hamiltonian becomes $H=T-U^2$. I know it looks like meaningless, but also going from Minkowskian metric from Euclidean metric and vice versa doesn't seem like such a big deal to me, but physicist use it. So is this change of variables between Lagrangian and Hamiltonian being used in theoretical physics? Does it have any meaningful applications? | [
0.002543341601267457,
0.022097378969192505,
-0.009697488509118557,
-0.0006112807895988226,
-0.004512290935963392,
-0.021083243191242218,
0.009988605976104736,
0.0014850468141958117,
-0.010061920620501041,
0.003389390418305993,
-0.025129275396466255,
0.0027877911925315857,
-0.0355961248278617... | [
-0.12146057188510895,
-0.27197369933128357,
0.2646847665309906,
-0.25369882583618164,
0.11898798495531082,
0.3388003706932068,
-0.25062286853790283,
-0.41620975732803345,
-0.23599961400032043,
-0.5030608773231506,
-0.2416105568408966,
0.5798832774162292,
-0.40813103318214417,
0.46351358294... |
Senior programmer in my team in developing hotel management program and there is something about hotel rooms limit, how many room the hotel can provide to customer. He want to add option to indicate that hotel is sure to welcome any amount of customer and he was asking me that should we use "No Limit" or "Unlimited" | [
0.005620752926915884,
0.008306590840220451,
0.00011183655442437157,
0.0006063260370865464,
-0.020877426490187645,
0.004766215104609728,
0.012647372670471668,
0.009305357001721859,
-0.02579871006309986,
-0.04284060001373291,
-0.011874910444021225,
0.006136375945061445,
0.014796383678913116,
... | [
0.38388222455978394,
0.056413501501083374,
0.25651273131370544,
0.17938877642154694,
0.23377786576747894,
-0.38238853216171265,
0.01158599928021431,
-0.11271143704652786,
-0.475122332572937,
0.027782823890447617,
-0.06158864125609398,
0.49057602882385254,
0.016582680866122246,
0.1780576705... |
De Gruyter requires no comma between journal name and journal number. So rather than Bird, Steven, and Klein, Ewan 1994 Phonological analysis in typed feature systems. Computational Linguistics, 20 3: 455–491. they want: Bird, Steven, and Klein, Ewan 1994 Phonological analysis in typed feature systems. Computational Linguistics 20 3: 455–491. I looked at the `.bst` file I have and found that there is an `output.nonull` that probably is responsible for the comma, but I do not know how to influence it. \documentclass{article} \usepackage{filecontents} \usepackage{natbib} \begin{filecontents}{SM.bib} @article{a, author={Max Meier}, title={My first paper}, journal={Journal of Googelology}, volume=3123, number=1, pages={3--45}, year=2009} \end{filecontents} \begin{document} \nocite{*} \bibliographystyle{degruyter-hsk} \bibliography{SM} \end{document} De Gruyter `.bst` is here: degruyter-hsk.bst | [
-0.010798875242471695,
0.012908087112009525,
-0.009940020740032196,
0.017210863530635834,
-0.0005253446288406849,
-0.0018224401865154505,
0.010045276954770088,
-0.002060128841549158,
-0.009631713852286339,
-0.004070420749485493,
-0.008940687403082848,
0.011965883895754814,
-0.010543213225901... | [
-0.22830861806869507,
0.4105466604232788,
-0.17482808232307434,
-0.08029137551784515,
-0.031649064272642136,
0.4482307732105255,
0.06424570083618164,
-0.3482153117656708,
-0.4718184769153595,
-0.24449004232883453,
-0.11490414291620255,
0.4580400586128235,
-0.010018809698522091,
-0.22065806... |
I am using Mac 10.6.8 SSHFS version 2.4 fuse4x library version: FUSE 2.8.7 / fuse4x 0.9.2 I connect via sshfs to a remote cluster (via a bridge). I modify the remote files with emacs. The problem is that emacs very often tells me that a file that I modifying has changed on the disk. I have used sshfs successfully and without error on other client, but with the same cluster. I can't understand the origin of this behavior, could it be that the internet connection is not very stable? This problem is very serious because I have experienced data loss in more of one occasion. Is there something I can do, maybe changing come option of ssh? currently I have the following configuration: Host remote HostName localhost Port 2222 HostKeyAlias remote.address User username Host bridge HostName bridge.address HostKeyAlias bridge User username TCPKeepAlive no LocalForward localhost:2222 remote:22 | [
-0.01545102521777153,
0.0013755930121988058,
-0.014658469706773758,
0.02187221497297287,
0.013102359138429165,
-0.011623850092291832,
0.008468022570014,
-0.010601654648780823,
-0.016253415495157242,
-0.00524508859962225,
-0.008889777585864067,
0.011066131293773651,
-0.017181385308504105,
0... | [
0.26364246010780334,
0.3439241647720337,
0.629252552986145,
-0.0792095884680748,
0.20498071610927582,
-0.27599745988845825,
0.2993238568305969,
-0.2023603469133377,
-0.3126271367073059,
-1.3220386505126953,
-0.01107033807784319,
0.2736857533454895,
-0.5121108293533325,
0.154257133603096,
... |
How to reduce the size of the brace and to customize its color to red ? I'm just trying to reduce the render of the tikzpicture. \documentclass[]{scrartcl} \usepackage{tikz} \usetikzlibrary{fit,calc,positioning,decorations.pathreplacing,matrix} \begin{document} \begin{tikzpicture}[decoration={brace},scale=2] \node [rotate=90] (A) {A}; \node [fit=(A)] (fit) {}; \draw [decorate,line width=1pt] ([yshift=-5pt]fit.south west) -- ([yshift=5pt]fit.north west); \end{tikzpicture} \end{document} Thanks in advance! | [
0.025922037661075592,
-0.0009236360201612115,
0.0030117533169686794,
0.023483168333768845,
-0.0017110295593738556,
0.010157465934753418,
0.009590473026037216,
0.0043315584771335125,
-0.02410104125738144,
0.003490390721708536,
-0.007138540968298912,
0.0015288656577467918,
-0.00904246233403682... | [
0.09063727408647537,
-0.02751346305012703,
0.5217484831809998,
-0.37089309096336365,
-0.07623741775751114,
0.6203079223632812,
0.2967900335788727,
-0.4450540542602539,
-0.10998952388763428,
-0.8364924788475037,
0.17202724516391754,
0.618901789188385,
-0.44712334871292114,
-0.19507858157157... |
I am analysing a dataset composed by three groups of individuals: unemployed, unstable workers and regular workers. These three groups are numerically equal (400 individuals in each category). I am running a logit analysis to test the effect of occupational status (regular worker, unemployed and unstable worker) on a bivariate dependent variable (dummy 0 or 1). I use as regressors (independent variables) a categorical variables 1-3 to indicate occupational status and others regressors (educational level, gender etc.etc.). Is it correct to use occupational status as a regressor even if my dataset is not a random sample, but is built "artificially" to have three equal groups of individuals? I have terrible doubts on the procedure! If anybody have suggestions I would be glad. Thanks,Lara | [
0.022059252485632896,
0.021013353019952774,
-0.018351856619119644,
0.011562108993530273,
0.0016429309034720063,
0.002010461874306202,
0.01025062333792448,
0.001540277386084199,
-0.006371615454554558,
-0.012328311800956726,
-0.014830123633146286,
0.011732161045074463,
0.0020557441748678684,
... | [
0.2565217912197113,
0.23701544106006622,
-0.037938833236694336,
-0.0047725168988108635,
-0.1817082017660141,
0.6043209433555603,
0.43659499287605286,
-0.4569700360298157,
-0.24464023113250732,
-0.28341612219810486,
-0.05763215944170952,
0.18862029910087585,
-0.18678951263427734,
0.15587282... |
I have set up two user groups, students and faculty on Ubuntu 12.04 and created a number of students and faculty accounts. The problem is a student can currently see & read all of the files of a fellow student :-/ I would like to prevent students from seeing/reading each others directories/files, but permit someone in the faculty group freely access to the student groups. I'm not sure how to go about this, can anyone offer pointers on how to implement this policy? I know how to set/change groups, but not how to limit the policy to what they can do/see. (I've been a Linux user for a while, but administering more than my own account is new to me) Also, would I have to change the `umask` for all student accounts to make sure this policy doesn't get circumvented with new files/directories students create subsequently? Would I as root execute `chmod go-rx /home/*` on each student homedirectory to accomplish this goal, or am I going about this the wrong way? **UPDATE** : Just to clarify, my goal is to have this as a default setup, I don't expect I can prevent informed/curious students from changing their own permissions - and I'm willing to live with that. | [
-0.003705747192725539,
0.012662841938436031,
-0.00806018803268671,
0.027040056884288788,
0.022421937435865402,
-0.019615914672613144,
0.008342001587152481,
0.005062921904027462,
-0.016877543181180954,
0.020934127271175385,
-0.013048900291323662,
0.01344108022749424,
-0.003470946801826358,
... | [
0.3646051585674286,
0.25427767634391785,
0.28030237555503845,
-0.07320371270179749,
-0.062264252454042435,
-0.4240967035293579,
-0.04075926914811134,
-0.018867341801524162,
-0.1470937281847,
-0.649798572063446,
-0.18239513039588928,
0.5199705362319946,
-0.05291333049535751,
0.0892123803496... |
Definition clarification needed, please: I am hoping to get physical sense of an "inertial frame". Do inertial reference frames all have zero curvature for their spacetime? So is an inertial frame just a flat metric? (Sorry that the question is not too profound. I have read the Wiki article for inertial frame of reference, but I'm just not entirely sure.) | [
0.008470507338643074,
0.01299680769443512,
0.008629132062196732,
0.021870082244277,
-0.011878376826643944,
-0.012990000657737255,
0.008006657473742962,
0.009093495085835457,
-0.026235368102788925,
-0.026052158325910568,
0.009292449802160263,
0.01280268095433712,
0.005947072058916092,
-0.02... | [
0.07331513613462448,
-0.3891873359680176,
0.2717157304286957,
0.24063728749752045,
-0.30816274881362915,
-0.004596351645886898,
-0.3015814423561096,
0.1850692629814148,
-0.2790377140045166,
-0.7021874189376831,
0.06987187266349792,
0.2745547592639923,
-0.06267929077148438,
0.32453292608261... |
Can you have Java compiled straight into machine code? I want to do this so I have control over what platforms it's used on, and don't know C,C++ etc. | [
0.013222902081906796,
-0.0013460934860631824,
-0.003613717621192336,
-0.013952627778053284,
-0.04036609083414078,
0.037332043051719666,
0.009780936874449253,
0.043092768639326096,
-0.048166487365961075,
-0.008652378804981709,
0.007521217688918114,
0.024567468091845512,
-0.004661692306399345,... | [
0.34886544942855835,
0.10750573128461838,
-0.4406050443649292,
-0.15410152077674866,
-0.032171040773391724,
-0.3467269539833069,
0.10668768733739853,
0.028806176036596298,
-0.40622830390930176,
-0.5656720399856567,
0.15603958070278168,
0.42140814661979675,
-0.498450368642807,
-0.2187534421... |
I just installed application "shape collage" on my Archlinux, but I don't know how to start it via the terminal. Command `shape-collage` doesn't seem to work. | [
-0.021269239485263824,
-0.02122160792350769,
-0.03235095739364624,
0.03827473893761635,
-0.035980045795440674,
-0.02084321342408657,
0.011483827605843544,
-0.023636579513549805,
-0.025408178567886353,
-0.01678401045501232,
-0.020777512341737747,
-0.01678558439016342,
-0.03693851828575134,
... | [
0.22171004116535187,
0.15835422277450562,
0.6352054476737976,
-0.1312214732170105,
0.050301242619752884,
0.08682310581207275,
0.1610146462917328,
0.19772587716579437,
0.16088490188121796,
-0.9315431714057922,
0.28851181268692017,
0.29164740443229675,
-0.05378345400094986,
0.227053731679916... |
A new instructional strategy has been proposed to teach Freshman English. Students will be randomly assigned to two groups. One group will receive the treatment, or the new instructional strategy. The final test grade will serve as the student performance measure. What would you propose as the research design? Why? What would be a potential research question you might ask? What statistical analysis would you propose? Why? What would the role of the IRB be in the study? | [
0.007081159390509129,
0.021308744326233864,
-0.004447037819772959,
0.014317484572529793,
0.00024275369651149958,
-0.00035452170413918793,
0.010306322947144508,
0.00879946444183588,
-0.019958656281232834,
-0.006952014751732349,
-0.017775366082787514,
0.016532128676772118,
0.002528515877202153... | [
0.0014245077036321163,
-0.29804494976997375,
0.08016451448202133,
0.17905062437057495,
0.0495675727725029,
0.09240057319402695,
0.26239970326423645,
0.09211401641368866,
0.059991151094436646,
-0.5859438180923462,
0.06443624943494797,
0.3875572979450226,
0.16935290396213531,
-0.212408229708... |
I've successfully setup WP + W3TC + Amazon s3 and everything is working fine except a little thing. I've a custom post type with about 10 custom fields with images/audio/video there. All attachments, css, js are being loaded from CDN but not custom field values. In case of attachments, I didn't have to do anything. Can you please if I miss any step? How can I solve the issue? Thanks. | [
-0.0072618164122104645,
0.0030907585751265287,
0.002107213018462062,
0.03366682305932045,
0.0114800576120615,
0.00987397413700819,
0.007870679721236229,
0.0257248654961586,
-0.01725359447300434,
-0.016805363819003105,
-0.009106394834816456,
0.008948016911745071,
0.01174098439514637,
0.0219... | [
0.6318501830101013,
-0.10629411786794662,
0.16118298470973969,
0.2715137004852295,
-0.2220030128955841,
-0.02136297896504402,
0.19336558878421783,
0.306196391582489,
-0.23005537688732147,
-0.6216773986816406,
0.1411692053079605,
0.39665114879608154,
-0.0272232573479414,
0.19568932056427002... |
I just figured out that there is the `pgfplots` package with the `hist` feature, that allows to "draw" histograms based on an external data table. What I'm looking for is a possibility to transform a histogram into density plot, where instead of counts I have densities according to breaks. It is like the `hist` function in R (if anybody knows) with parameters `freq = FALSE`. Or, is there any other way (package) to plot density from the data set in LaTeX? | [
-0.0034899204038083553,
0.0038573374040424824,
-0.0056097861379384995,
0.02053297683596611,
0.009273800067603588,
-0.016798019409179688,
0.008633185178041458,
-0.0024157625157386065,
-0.018157456070184708,
-0.0036516552790999413,
-0.001073117251507938,
-0.0004693655064329505,
0.0013018064200... | [
0.5721377730369568,
-0.21623137593269348,
0.48153191804885864,
0.4247170388698578,
0.003672404680401087,
-0.09871549904346466,
-0.44761353731155396,
-0.20072661340236664,
-0.2763392925262451,
-0.5250974297523499,
0.15772870182991028,
0.3638494312763214,
-0.08668403327465057,
0.094474419951... |
My theme uses this function to load Javascript and CSS function aitEnqueueScriptsAndStyles() { // just shortcuts $s = THEME_CSS_URL; $j = THEME_JS_URL; aitAddStyles(array( 'ait-jquery-prettyPhoto' => array('file' => "$s/prettyPhoto.css"), 'ait-jquery-fancybox' => array('file' => "$s/fancybox/jquery.fancybox-1.3.4.css"), 'ait-jquery-hover-zoom' => array('file' => "$s/hoverZoom.css"), 'ait-jquery-fancycheckbox'=> array('file' => "$s/jquery.fancycheckbox.min.css"), 'jquery-ui-css' => array('file' => "$s/jquery-ui-1.10.1.custom.min.css"), )); aitAddScripts(array( 'jquery-ui-tabs' => true, 'jquery-ui-accordion' => true, 'jquery-ui-autocomplete' => true, 'jquery-ui-slider' => true, 'ait-jquery-fancycheckbox' => array('file' => "$j/libs/jquery.fancycheckbox.min.js", 'deps' => array('jquery')), 'ait-jquery-html5placeholder' => array('file' => "$j/libs/jquery.simpleplaceholder.js", 'deps' => array('jquery')), 'ait-googlemaps-api' => array('file' => 'http://maps.google.com/maps/api/js?sensor=false&language=en', 'deps' => array('jquery')), 'ait-jquery-gmap3-label' => array('file' => "$j/libs/gmap3.infobox.js", 'deps' => array('jquery')), 'ait-jquery-gmap3' => array('file' => "$j/libs/gmap3.min.js", 'deps' => array('jquery')), 'ait-jquery-infieldlabel' => array('file' => "$j/libs/jquery.infieldlabel.js", 'deps' => array('jquery')), 'ait-jquery-prettyPhoto' => array('file' => "$j/libs/jquery.prettyPhoto.js", 'deps' => array('jquery')), 'ait-jquery-fancybox' => array('file' => "$j/libs/jquery.fancybox-1.3.4.js", 'deps' => array('jquery')), 'ait-jquery-easing' => array('file' => "$j/libs/jquery.easing-1.3.min.js", 'deps' => array('jquery')), 'ait-jquery-nicescroll' => array('file' => "$j/libs/jquery.nicescroll.min.js", 'deps' => array('jquery')), 'ait-jquery-quicksand' => array('file' => "$j/libs/jquery.quicksand.js", 'deps' => array('jquery')), 'ait-jquery-hover-zoom' => array('file' => "$j/libs/hover.zoom.js", 'deps' => array('jquery')), 'ait-jquery-finished-typing' => array('file' => "$j/libs/jquery.finishedTyping.js", 'deps' => array('jquery')), 'ait-jquery-jcarousel' => array('file' => "$j/libs/jquery.jcarousel.min.js", 'deps' => array('jquery')), 'ait-spin-ajax-loader' => array('file' => "$j/libs/spin.min.js"), 'ait-modernizr-touch' => array('file' => "$j/libs/modernizr.touch.js"), 'ait-gridgallery' => array('file' => "$j/gridgallery.js", 'deps' => array('jquery')), 'ait-rating' => array('file' => "$j/rating.js", 'deps' => array('jquery')), 'ait-script' => array('file' => "$j/script.js", 'deps' => array('jquery')), )); wp_localize_script( 'ait-script', 'MyAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'ajaxnonce' => wp_create_nonce('ajax-nonce') ) ); } add_action('wp_enqueue_scripts', 'aitEnqueueScriptsAndStyles'); I am using a child theme and I was wondering how can I load additional Javascript in the functions.php inside the child theme. The reason for using this is that any changes i make to the code above will be overwritten in the next update. | [
0.008808287791907787,
0.010393266566097736,
0.011580963619053364,
0.006356481928378344,
0.014715591445565224,
-0.012132072821259499,
0.008526098914444447,
-0.007766471244394779,
-0.013872903771698475,
0.01687484234571457,
-0.019956642761826515,
0.0009281013626605272,
-0.0015266311820596457,
... | [
0.08596999943256378,
-0.14781628549098969,
0.8942802548408508,
0.04823886975646019,
0.035856693983078,
0.16942936182022095,
0.18036462366580963,
-0.2558140754699707,
-0.11247118562459946,
-0.4553532302379608,
0.008694903925061226,
0.42479729652404785,
-0.20622742176055908,
0.45696160197257... |
In a problem in order to calculate the sample size, it is mentioned that: > By use of 7-point Likert-scales, You have identified two segments in the > population that you wish to compare with respect to their mean scores on the > Likert-scale questions. Then it is mentioned some assumptions.i don't understand the meaning of this sentence: > A mean difference of at least 0.75 of a rating unit at the 5% level of > significance. or i can better say, i don't know the meaning of 'rating unit'... | [
-0.01647903025150299,
0.013717737048864365,
-0.0013236426748335361,
0.023728491738438606,
0.0055955019779503345,
0.01602715253829956,
0.009012673050165176,
-0.01924087107181549,
-0.009604200720787048,
0.00023570492339786142,
-0.010629724711179733,
0.012780668213963509,
-0.005824410822242498,... | [
0.04484662786126137,
0.05135828256607056,
0.135132297873497,
0.15538036823272705,
-0.27120840549468994,
0.4089304506778717,
0.5424010753631592,
-0.1436798870563507,
-0.25684982538223267,
-0.6397780179977417,
0.19416369497776031,
0.3799298107624054,
-0.15463583171367645,
0.42023614048957825... |
I'd like to run a screen if the XFCE session is locked and unlocked. Is there a way that I can intercept this and perform certain actions when the desktop is locked or unlocked? I see that it is possible in Ubuntu; but I'd like to achieve this in Xubuntu. I can't seem to find any events triggered by `xscreensaver` when it quits... | [
-0.0006372663774527609,
0.017193283885717392,
0.005964679177850485,
0.009320876561105251,
-0.017217407003045082,
-0.025449484586715698,
0.008165243081748486,
0.01261189766228199,
-0.02106510102748871,
0.023622235283255577,
-0.023552486672997475,
0.011678802780807018,
-0.01399097591638565,
... | [
0.49448105692863464,
-0.009974720887839794,
0.21582189202308655,
-0.11869149655103683,
-0.26097193360328674,
-0.27405500411987305,
0.14577552676200867,
0.4199049770832062,
-0.12804369628429413,
-0.7848884463310242,
-0.03108600527048111,
0.694273829460144,
-0.3532521724700928,
0.11815119534... |
As a little background, I've been programming for a long time now using various languages, systems, etc. I've come across the old problem of a recruiter wanting to know "how many years experience" I have of C++. I'm a little stumped as I've bounced around it many times over a number of years. I don't think I can just add up the months/years. I'd put myself somewhere around the 3 - 5 year mark. I know it's a bit of a wide range, but I'm not really sure, with newer standards and libraries, the older stuff probably becomes deprecated. So, I wanted to ask your opinion. What would you expect a C++ programmer with (i) 3 years, and (ii) 5 years experience (mainly on Unix/Linux systems) to be able to do? Perhaps, more importantly, what would be the difference you would expect to see between a programmer of 3 years compared to 5 years (and above)? I know this is all a bit vague and the correct answer is, "it depends". But if anyone has a good opinion, I'd love to know. | [
-0.0031624645926058292,
0.006308143027126789,
-0.02456830069422722,
-0.0012867918703705072,
0.011666589416563511,
0.0017962330020964146,
0.003451444674283266,
-0.005216939840465784,
-0.01110844500362873,
0.011977653950452805,
0.00816869456321001,
0.009781992062926292,
0.028416255488991737,
... | [
0.8001024723052979,
0.4456061124801636,
0.18505491316318512,
-0.038149427622556686,
0.24853776395320892,
0.018812285736203194,
0.26147598028182983,
0.3824898600578308,
-0.27956750988960266,
-0.29327392578125,
0.3285215198993683,
0.465138703584671,
0.38587793707847595,
0.22125157713890076,
... |
I have a couple of theorems, proofs of which are quite boring and longish. I would like to place theorem formulations in a usual place and stack up the proofs at the end of the chapter. How to do this? In particular I would like to: * keep the original theorem numbering - the same number should be visible in both places, where the theorem is formulated originally, and at the end of the chapter, * if possible, copy the original formulation of the theorem right before the proof is given without having to write the text twice | [
0.026250991970300674,
0.02192177250981331,
-0.01500497106462717,
0.031146220862865448,
0.0038485294207930565,
0.030580036342144012,
0.007840108126401901,
0.01047737430781126,
-0.022241299971938133,
0.007173396181315184,
-0.006814524997025728,
0.00809220876544714,
-0.02687297761440277,
-0.0... | [
0.2410183846950531,
0.5289484858512878,
0.09348588436841965,
0.1721159815788269,
-0.029223544523119926,
0.038113534450531006,
0.12436143308877945,
0.0016061203787103295,
-0.07827962934970856,
-0.6961506605148315,
0.08017536252737045,
0.40260517597198486,
0.12470649927854538,
0.000179227339... |
A colleague of mine found reference to the word _**"Exgest"**_ in a contract. In context, this appeared to mean the opposite of the word _**"Ingest"**_ which was used earlier in the contract. These words were intended to convey the consumption and processing of data in a system. Does this word, _**"Exgest"**_ , actually exist, and what does it mean? **Edit:** List of prior research: google: exgest google: word definition exgest google: site:dictionary.com exgest reverse lookup: opposite of ingest merriam webster search: exgest dictionary.com exgest english.stackexchange.com search | [
0.004386858083307743,
0.00918412022292614,
-0.011610823683440685,
0.012888284400105476,
-0.011503561399877071,
0.0024222317151725292,
0.00868276134133339,
-0.004373663105070591,
-0.011071796528995037,
-0.002296284306794405,
0.008777141571044922,
0.008598948828876019,
0.032071229070425034,
... | [
0.18247567117214203,
0.05360305309295654,
0.2782374322414398,
0.20336396992206573,
0.16348649561405182,
0.24532394111156464,
0.007798043079674244,
0.02215166762471199,
-0.10926196724176407,
-0.47008493542671204,
0.026517972350120544,
0.47969603538513184,
-0.14736339449882507,
0.11525622010... |
The Guessing Game achievement is for completing the following; > **Guessing Game** > On day 2 of the Firestarter job, complete the heist in stealth without > hacking the computer Since the PC version of Payday 2 gets all the fancy updates which changes the way that a large number of skills work, many of the guides explaining how to complete the Guessing Game achievement no longer correctly represent the state of the game and show one person walking around the FBI building dominating all of the guards, or following the guards around at close range without alerting them. The sort of information that I need to know is as follows; * What sort of skillset is going to be required to complete this achievement? (I'm assuming at least the **Smooth Talker** ability and maybe a couple of people with the **Dominator** ability?) * Where are the possible spawn points for the control boxes containing the wires that have to be cut? * Is the wire you need to cut actually completely random or is there a particular methodology to choosing the right one? How can you complete the guessing game achievement on PC? | [
-0.010837114416062832,
0.009544825181365013,
-0.0043045347556471825,
0.006427433341741562,
-0.025957386940717697,
-0.010123349726200104,
0.009096307680010796,
-0.025530759245157242,
-0.018984463065862656,
0.03213529288768768,
-0.008058091625571251,
0.012954236939549446,
0.0029931324534118176... | [
0.049519021064043045,
0.19394758343696594,
0.22697213292121887,
0.18692073225975037,
-0.13721972703933716,
-0.2402336299419403,
0.30835554003715515,
-0.05145174264907837,
0.024650825187563896,
-0.7703741192817688,
0.1964932531118393,
0.6614385843276978,
-0.03201598674058914,
-0.34009104967... |
In my terminal app when I type `ls /?` it gives me `ls /d`. Where can I find the other options? For example I want to list the file attributes and file length. I have tried also busybox to no avail. | [
0.005878256168216467,
-0.020310550928115845,
-0.015652723610401154,
0.008814195170998573,
0.002497568493708968,
-0.002176116220653057,
0.009873832575976849,
0.03599609062075615,
-0.029514197260141373,
0.010232607834041119,
-0.008354971185326576,
-0.017766229808330536,
-0.003370074788108468,
... | [
-0.0058640409260988235,
0.10524009168148041,
0.4655914008617401,
-0.36795011162757874,
-0.20662027597427368,
0.20080800354480743,
0.0185248963534832,
0.7361674904823303,
-0.13747289776802063,
-0.9609130024909973,
0.19755195081233978,
0.4039399027824402,
-0.07648052275180817,
0.217893689870... |
If, in a contract fr example, the text reads: "X has to finish the work by MM- DD-YYYY", does the "by" include the date or exclude it? In other words, will the work delivered on the specified date violate the contract? | [
0.006461913697421551,
0.021358588710427284,
-0.027787277474999428,
0.03133338317275047,
-0.0030006039887666702,
0.024219326674938202,
0.013263157568871975,
0.048469748347997665,
-0.023018939420580864,
-0.010391172021627426,
-0.03938843309879303,
0.014880700968205929,
0.0013949559070169926,
... | [
0.7019103765487671,
0.23698103427886963,
0.7638524174690247,
-0.25271207094192505,
0.27981919050216675,
0.03171071037650108,
0.23122116923332214,
0.0890604630112648,
-0.1955476850271225,
0.14525076746940613,
-0.735257089138031,
0.4044858515262604,
-0.0039005917496979237,
0.4612890481948852... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.