text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
My .ascx is into folder /cms/context/ , and it is called Test.ascx (on .NET 4.0, WebForms). When I try to add : ``` <%@ Register TagPrefix="iz" Namespace="IZ.WebFileManager" Assembly="IZ.WebFileManager" %> <div> <iz:FileManager ID="FileManager1" runat="server" Height="400" Width="600"> <RootDirectories> ...
[ 0.2202938348054886, 0.12799163162708282, 0.3617636263370514, -0.04876693710684776, 0.08423890918493271, -0.16287772357463837, 0.4068351089954376, -0.20100946724414825, -0.16668294370174408, -0.8830909729003906, -0.01763146184384823, 0.07750549912452698, -0.2385135143995285, 0.2155646234750...
be identified using the exception stack trace below. Why? And how can I fix it? Thanks P.S. if I put the same code on Master Page it works as well... Stack Trace : > [NullReferenceException: Object reference not set to an instance of an object.] > IZ.WebFileManager.FileView.OnPreRender(EventArgs e) +167 > System....
[ -0.11592719703912735, -0.05442364141345024, 0.4763167202472687, 0.26432862877845764, 0.2753041982650757, 0.10505683720111847, 0.27862420678138733, -0.2530311644077301, -0.3957746922969818, -0.8171162009239197, -0.09087260812520981, 0.3027416467666626, -0.22766521573066711, 0.19408132135868...
WUC I have that trouble... If you only specify namespace and assembly you will only get the ascx.cs part of the control and not the code-front file (.ascx) Since your code-behind file (.ascx.cs) is dependent on your code-front file (.ascx) to actually instantiate all the stuff you have declared, you need to include the...
[ 0.3029828667640686, 0.1575976014137268, 0.164465993642807, -0.1155158132314682, -0.1235460638999939, -0.11097966879606247, -0.046017345041036606, -0.15466617047786713, -0.08671777695417404, -0.5475703477859497, -0.14480005204677582, 0.5001071095466614, -0.20790591835975647, 0.0031990148127...
("user control") you need to specify the source. All the built-in controls within the asp.net framework are created as Custom Controls which means that it was harder for Microsoft to write them (they couldn't use ascx files) but it's easier for us to consume them (single register line in web.config enables for all pag...
[ 0.1947638839483261, -0.014791063964366913, 0.2954609990119934, 0.34682130813598633, 0.010299480520188808, -0.06939946115016937, 0.178744375705719, 0.06724358350038528, -0.002430486958473921, -0.6878014206886292, -0.31114283204078674, 0.16380846500396729, -0.2679097354412079, 0.039602406322...
I need to write a stored procedure for which the input is a string. The input string contains variable names and their values separated by pipeline delimiter like this: ``` Name =Praveen | City=Hyderabad | Mobile=48629387429| Role=User| etc ``` In the stored procedure I have declared variables like `@x, @y, @z, @t`...
[ 0.17491425573825836, 0.26042526960372925, 0.6446591019630432, -0.08869878202676773, 0.17971010506153107, 0.511064887046814, 0.09735383093357086, -0.2117515653371811, -0.1386307328939438, -0.47503212094306946, -0.2304149866104126, 0.3946155905723572, -0.22349227964878082, 0.6500089168548584...
I can parse the input string to obtain the values of `Name, City, Mobile, Role` into `@x, @y, @z` and `@t` respectively. One possible solution is use XML ``` DECLARE @text VARCHAR(1000) ,@xml xml SELECT @text = 'City=Hyderabad | Mobile=48629387429 | Role=User | Name =Praveen' SELECT @text = REPLACE(@text,'|...
[ -0.060933250933885574, -0.08601154386997223, 0.9297694563865662, -0.01413175743073225, 0.04104885458946228, 0.4508604109287262, -0.05226396024227142, -0.4894060790538788, 0.028002791106700897, -0.7958032488822937, -0.22304204106330872, 0.29751142859458923, -0.16069532930850983, 0.348117798...
,line.col.value('@Role[1]', 'varchar(100)') AS Role FROM @xml.nodes('/row') AS line(col) ```
[ -0.3549800217151642, -0.4981456995010376, 0.7326360940933228, -0.12729458510875702, -0.0339241549372673, 0.6706379055976868, 0.02873881906270981, -0.11610202491283417, 0.12369449436664581, -0.5524521470069885, -0.33723485469818115, 0.21478630602359772, -0.2535066306591034, 0.10497269034385...
I'm working on documentation for my Python module (using Sphinx and reST), and I'm finding that when cross-referencing other Python objects (modules, classes, functions, etc) the full object name ends up being incredibly long. Often it is longer than 80 characters, which I would like to avoid at all costs. Here is an ...
[ 0.281171053647995, 0.051487430930137634, 0.2960619330406189, -0.10582128167152405, 0.11320250481367111, -0.06395578384399414, 0.4883904755115509, 0.11677384376525879, -0.3564387261867523, -0.35338151454925537, 0.010038846172392368, 0.3555355668067932, -0.1419830024242401, 0.130920618772506...
this? I have tried the following methods, with no success: 1) Adding a line break in the middle of the module name. Example: ``` :class:`module1.module2.module3.module4. module5.ReallyLongExampleClassName` ``` 2) Referencing the class name in a different (but still Python importable) way. Example: ``` :class:`modu...
[ 0.1744082123041153, 0.03038066066801548, 0.477885901927948, -0.04870554804801941, 0.0010194854112342, -0.3218647241592407, 0.5534854531288147, -0.021651191636919975, -0.5836002826690674, -0.37561750411987305, -0.10703666508197784, 0.5450533032417297, -0.27921584248542786, 0.113788075745105...
using this in a docstring). Thus to make my original example work it would look like: ``` def exampleFunction(): '''Here is an example docstring referencing another :class:`module1.module2.module3.module4.module5.\ ReallyLongExampleClassName` ''' ``` Nice, and ugly. If you were to put spaces before `Rea...
[ 0.023789074271917343, 0.20712320506572723, 0.1390242874622345, -0.10019177198410034, 0.01912533864378929, -0.04047834128141403, 0.34485650062561035, -0.04270215705037117, -0.30942875146865845, -0.6846804618835449, -0.1857665628194809, 0.4262915849685669, -0.5122861266136169, 0.258653759956...
'\' :class:`module1.module2.module3.module4.module5. \ ReallyLongExampleClassName` # Note: Trying to leave out the '\' :class:`module1.module2.module3.module4.module5. ReallyLongExampleClassName` ``` I was looking for a solution that didn't involve destroying the formatting of the docstring, but I suppos...
[ 0.26018527150154114, -0.1218755841255188, 0.5434005260467529, 0.0005523706204257905, -0.033397845923900604, 0.07060530036687851, 0.553997814655304, 0.03389359638094902, -0.34054526686668396, -0.7357012629508972, -0.21762023866176605, 0.15695720911026, -0.6102818250656128, -0.02878387272357...
taken as a suffix and all object names with that suffix are searched. For example, :py:meth:`.TarFile.close` references the tarfile.TarFile.close() function, even if the current module is not tarfile. Since this can get ambiguous, if there is more than one possible match, you will get a warning from Sphinx.
[ -0.035142358392477036, 0.22348129749298096, 0.21629782021045685, -0.12031645327806473, -0.042564667761325836, -0.24724476039409637, 0.3785141408443451, 0.031192462891340256, -0.19792427122592926, -0.1363557130098343, -0.7628450393676758, 0.35818618535995483, -0.4547523558139801, 0.34065195...
when i export a video asset via AVAssetExportSession the result file is in landspace mode. (file grabbed via itune->apps->file sharing->my app). how can i export the video asset in portrait mode (rotate it)? The video coming from the iPhone capture device are always landscape orientated whatever the device orientation ...
[ 0.22124499082565308, -0.07708069682121277, 0.5570024847984314, -0.07316559553146362, -0.10523678362369537, 0.13590887188911438, 0.24241243302822113, -0.5818454027175903, -0.2933836877346039, -0.6609815955162048, -0.15816275775432587, 0.7521975636482239, -0.26694485545158386, 0.085084922611...
BOOL videoResult = [videoTrack insertTimeRange:sourceCMTime ofTrack:[tracks objectAtIndex:0] atTime:currentTime
[ 0.019254742190241814, -0.14382894337177277, 0.8352547883987427, -0.06678007543087006, 0.23655293881893158, -0.1403653472661972, 0.24223950505256653, -0.15020442008972168, -0.30236390233039856, -0.4487419128417969, -0.3272631764411926, 0.5831507444381714, -0.3337131142616272, 0.230982273817...
error:&error]; BOOL audioResult = [audioTrack insertTimeRange:sourceCMTime ofTrack:[tracks objectAtIndex:0]
[ -0.19812588393688202, 0.1448875516653061, 0.28145334124565125, -0.07508769631385803, 0.23330475389957428, -0.061967626214027405, 0.26970866322517395, -0.3495461940765381, 0.002380932914093137, -0.28000640869140625, -0.08846703916788101, 0.9725011587142944, -0.3410783112049103, 0.2888204753...
atTime:currentTime error:&error]; ... ``` After you added all your tracks, apply your transform to the video track of your composition : ``` CGAffineTransform rotationTransform = CGAffineTransformMakeRotation(M_PI_2); // CGAffineTransform rotateTranslate = CGAffineTra...
[ 0.3382323086261749, -0.19320467114448547, 0.9052238464355469, 0.031165653839707375, 0.3007252514362335, 0.06270865350961685, 0.11861725151538849, -0.4967242479324341, -0.0855061262845993, -0.3467460870742798, -0.06417051702737808, 0.8553474545478821, -0.14294730126857758, 0.078174859285354...
transform had the upper left corner as origin, so the translation was needed after rotation, but tested on iPhone 4S, iOS 5.1, it seems that the rotation is now made around the center.)
[ -0.20576968789100647, -0.38326534628868103, 0.7128205895423889, -0.20590052008628845, -0.03701462596654892, 0.20995648205280304, 0.2080715298652649, -0.10805101692676544, 0.1754082292318344, -0.6308988332748413, -0.21442262828350067, 0.26171159744262695, -0.13921573758125305, 0.00453368667...
Somebody ask me this question today . What is the need of reference in C++, why did `Bjarne Stroustrup` thought about `reference` in C++. Here is Stroustrup explanation : <http://www2.research.att.com/~bs/bs_faq2.html#pointers-and-references> > C++ inherited pointers from C, so I couldn't remove them without causing s...
[ 0.16296792030334473, 0.6015849113464355, 0.3277529180049896, -0.017237164080142975, -0.2933022975921631, 0.028702447190880775, 0.2985477149486542, -0.6061071157455444, -0.2924228608608246, -0.25054699182510376, 0.13441012799739838, 0.45398300886154175, -0.6345574855804443, 0.23448982834815...
references { complex z = x+y; // better // ... } ```
[ 0.3852238953113556, 0.40011441707611084, 0.30728891491889954, 0.0447259396314621, 0.16479414701461792, -0.02114054001867771, 0.2316351979970932, -0.16381075978279114, 0.02804630622267723, -0.5103410482406616, -0.10452398657798767, 0.7545492053031921, -0.6090741157531738, 0.3293470740318298...
I'm developing an Android app that uses Osmdroid to display the maps in offline mode. I have an issue when I want to zoom in or out by pinching on the map or using the build-in zoomcontrols. When I zoom in the map tiles are not always correctly rendered and when I zoom out the sometimes there are some gray tiles in the...
[ 0.17262296378612518, -0.20226337015628815, 0.48146846890449524, 0.06637564301490784, 0.01219389121979475, -0.08412417769432068, 0.14752665162086487, 0.24090300500392914, -0.24333882331848145, -1.1247020959854126, 0.06469414383172989, 0.550614058971405, -0.22169019281864166, 0.0491242408752...
help is welcome. See my code below (my includes aren't included here in the code): ``` public class MapActivity extends OSMapActivity { private ArrayList<String[]> mapPointData; private ArrayList<String[]> multiData; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super...
[ -0.052850738167762756, -0.43291303515434265, 1.1646006107330322, 0.061564575880765915, 0.28497806191444397, -0.08911105990409851, 0.5817492008209229, -0.2873167395591736, -0.07845500111579895, -0.661074697971344, -0.5700554251670837, 0.8170871734619141, -0.3714185655117035, -0.208963781595...
(ImageView) findViewById(R.id.mapNightlifeBN); sleepBN = (ImageView) findViewById(R.id.mapSleepBN); // The LinearLayout with the ScrollView for the Subcategories in "Do & See" doseeLL = (LinearLayout) findViewById(R.id.doseeSubCatLL); top10BN = (Button) findViewById(R.id.mapDoseeTop10BN); monuments...
[ 0.14286571741104126, -0.3252139985561371, 0.9917519688606262, -0.10840368270874023, -0.3509003818035126, 0.07215595990419388, 0.11705988645553589, -0.36587512493133545, -0.29160401225090027, -0.565381646156311, -0.5497550368309021, 0.6463910937309265, -0.17305119335651398, 0.40569877624511...
mapView.setTileSource(TileSourceFactory.MAPNIK); mapController = mapView.getController(); mapController.setZoom(16); mapView.setUseDataConnection(false); mapView.setBuiltInZoomControls(true); mapView.setMultiTouchControls(true); // mapView.setDrawingCacheEnabled(true); mapData = new ArrayLi...
[ -0.25988030433654785, -0.3150002658367157, 1.035914659500122, -0.15007832646369934, 0.14121465384960175, 0.22872889041900635, 0.39665669202804565, -0.48177027702331543, -0.16205503046512604, -0.6992478966712952, -0.6722978353500366, 0.39198037981987, -0.30898261070251465, 0.082704596221446...
Double.parseDouble(getIntent().getExtras().getStringArray("geoLoc")[2]))) { mapController.setCenter(centerPt); Drawable marker = getResources().getDrawable(R.drawable.ic_pin_marker); ArrayList<OverlayItem> items = new ArrayList<OverlayItem>(); items.add(new OverlayItem("Here I am!", "H...
[ -0.16202329099178314, -0.21336781978607178, 0.7956439256668091, -0.2073199450969696, 0.11873645335435867, 0.37344175577163696, 0.277179479598999, -0.4764239490032196, -0.37470683455467224, -0.6522760987281799, -0.41411927342414856, 0.31714117527008057, -0.4357791841030121, 0.36368504166603...
mapView.getOverlays().add(itemOverlay); mapView.invalidate(); } else { mapController.setCenter(new GeoPoint(50.89489, 4.34140)); mapController.setZoom(11); Action.alert(this, getResources().getString(R.string.alert_title_notinregion), getResources().getString(R.strin...
[ -0.12224046140909195, -0.591037392616272, 0.9040371179580688, -0.11222026497125626, 0.04852019622921944, -0.07993395626544952, 0.38285601139068604, -0.4351193308830261, -0.2823528051376343, -0.7739336490631104, -0.5872264504432678, 0.6711841821670532, -0.4247961640357971, -0.01618006266653...
doseeBN, "btn_map_dosee", "btn_map_dosee_pressed"); break; case R.id.mapEatdrinkBN: setPrefsCategory("EATDRINK", eatdrinkBN, "btn_map_eatdrink", "btn_map_eatdrink_pressed"); break; case R.id.mapNightlifeBN: setPrefsCategory("NIGHTLIFE", nightlifeBN, "btn_map_nightlife", "btn_map_...
[ 0.08893827348947525, -0.41630852222442627, 0.582754909992218, -0.23268038034439087, 0.22998186945915222, -0.11548294126987457, 0.19296470284461975, -0.23146682977676392, -0.25762829184532166, -0.8290387392044067, -0.7347456812858582, 0.8224048614501953, -0.347831666469574, 0.04523444175720...
{ case R.id.mapDoseeTop10BN: setDosseSubCat(Definitions.doseeList[0], top10BN); break; case R.id.mapDoseeMuseumsBN: setDosseSubCat(Definitions.doseeList[2], museumBN); break; case R.id.mapDoseeCultureBN: setDosseSubCat(Definitions.doseeList[3], cultureBN); bre...
[ -0.03776796534657478, -0.4866989552974701, 0.6894174218177795, 0.19379082322120667, -0.15237556397914886, 0.1290733963251114, 0.1772526353597641, -0.28686317801475525, -0.4085697829723358, -0.8207798004150391, -0.5270565748214722, 0.30897727608680725, -0.35699358582496643, 0.13822931051254...
setDosseSubCat(Definitions.doseeList[5], shoppingBN); break; case R.id.mapDoseeMarketBN: setDosseSubCat(Definitions.doseeList[6], marketBN); break; default: setDosseSubCat(Definitions.doseeList[1], monumentsBN); break; } setPOIs(); } private void setPrefsCategor...
[ 0.26145797967910767, -0.4073368310928345, 0.4910033643245697, -0.29489848017692566, 0.06814632564783096, 0.19064947962760925, 0.44675180315971375, -0.40723320841789246, 0.06882735341787338, -0.7719435095787048, -0.8463982939720154, 0.4722959101200104, -0.5137619972229004, -0.09428830444812...
if (cat.equalsIgnoreCase("DOSEE")) { if (sel) { doseeLL.setVisibility(View.GONE); } else { doseeLL.setVisibility(View.VISIBLE); for (String s : Definitions.doseeList) { if (s.equals(Definitions.doseeList[1])) {
[ 0.40860581398010254, -0.7957969903945923, 0.6660433411598206, -0.22048026323318481, 0.06105908006429672, 0.05240859463810921, 0.20546305179595947, -0.6089928150177002, 0.320846825838089, -1.0120863914489746, -0.1535479724407196, 0.49758225679397583, -0.33617424964904785, 0.0111205307766795...
Prefs.setBoolean(this, "mapDS_" + s, true); } else { Prefs.setBoolean(this, "mapDS_" + s, false); } } } setSubcategoryColor(sel); } } private void setCategoryImage(ImageView btn,
[ 0.3167957067489624, -0.5653828978538513, 0.4403448700904846, -0.035526640713214874, 0.1445281207561493, 0.03405383229255676, 0.24129575490951538, -0.11237124353647232, 0.11865022778511047, -1.034937858581543, -0.3739235997200012, 0.45442336797714233, -0.5052857398986816, 0.0265018492937088...
String image, String imageSelected, boolean selected) { String devLang = Prefs.getString(this, "devLanguage", "en"); if (!devLang.equalsIgnoreCase("en")) { image += "_" + devLang; imageSelected += "_" + devLang; } if (selected) { btn.setImageResource(this.getResources().getIden...
[ 0.1535341888666153, -0.5114243030548096, 0.7553839683532715, -0.17706333100795746, 0.012233933433890343, 0.03686347231268883, 0.4155678153038025, -0.5182929039001465, -0.17474345862865448, -0.652886688709259, -0.3205283284187317, 0.6905178427696228, -0.520017683506012, -0.2515407204627991,...
setDoseeSubCatTextColor(true, museumBN); setDoseeSubCatTextColor(true, cultureBN); setDoseeSubCatTextColor(true, attractionsBN); setDoseeSubCatTextColor(true, shoppingBN); setDoseeSubCatTextColor(true, marketBN); } private void setPOIs() { mapView.getOverlays().clear(); mapView.invalidate(); ...
[ -0.06837213784456253, -0.5934771299362183, 0.6163375973701477, -0.047016702592372894, 0.18778681755065918, 0.14895488321781158, 0.17255446314811707, -0.2626471519470215, -0.3122454583644867, -0.37258318066596985, -0.8028351664543152, 0.49343767762184143, -0.46990135312080383, 0.33019232749...
if (category.equalsIgnoreCase("DOSEE")) { boolean subSelected; for (String subcategory : Definitions.doseeList) { subSelected = Prefs.getBoolean(this, "mapDS_" + subcategory, false); if (subSelected) {
[ -0.0823032557964325, -0.6408170461654663, 0.4098992645740509, -0.23993241786956787, 0.08249563723802567, -0.14393433928489685, 0.4241173565387726, -0.45335373282432556, 0.2698647975921631, -0.5457509160041809, -0.4614589512348175, 0.5701426267623901, -0.45308545231819153, 0.027323910966515...
getSqlData(category, subcategory); } } } else { getSqlData(category, null);
[ -0.5959551930427551, -0.4264688193798065, 0.20587822794914246, -0.07965286076068878, -0.2855670750141144, -0.37132900953292847, 0.29382389783859253, 0.019424399361014366, -0.2160559892654419, -0.11052826792001724, -0.8640064597129822, 0.3999677300453186, -0.6232147216796875, 0.131493866443...
} } } removeMapDataItems(); //mapPointData = mapData; //multiDataLocationSelector(); setMapDataPoints(); //setMultiMapPoints(); } private void getSqlData(String category, String subCategory) { ArrayList<String[]> sqlData = SqlDB.db.getCategoryItems(Adjust.rewriteCategoryName(catego...
[ -0.17521950602531433, -0.3012160658836365, 0.5828978419303894, -0.18317601084709167, -0.15780526399612427, 0.056220464408397675, 0.39671915769577026, -0.5378813147544861, -0.18943198025226593, -0.3496418297290802, -0.2270558923482895, 0.42429617047309875, -0.50968998670578, 0.2366318702697...
{ mapData.remove(i); i--; } } } private void setDosseSubCat(String subCat, Button btn) { boolean selected = Prefs.getBoolean(this, "mapDS_" + subCat, false); Prefs.setBoolean(this, "mapDS_" + subCat, !selected); setDoseeSubCatTextColor(selected, btn); } private void s...
[ -0.14844590425491333, -0.622123122215271, 0.3467920422554016, -0.19557218253612518, 0.215589702129364, 0.19743716716766357, 0.16517049074172974, -0.4461173415184021, -0.09041471779346466, -0.7973553538322449, -0.6691520810127258, 0.256192684173584, -0.4912255108356476, 0.12842774391174316,...
btn.setTextColor(Definitions.colorDoseeSubcatSelected); } } private void setMapDataPoints() { if (mapData != null) { ArrayList<OverlayItem> mapOverlays = new ArrayList<OverlayItem>(); OverlayItem overlayItem; for (String[] item : mapData) { multiData.add(item); ...
[ -0.034247249364852905, -0.35643061995506287, 0.7547149658203125, -0.18558239936828613, 0.14819571375846863, 0.2669616639614105, 0.333738774061203, -0.5944352149963379, -0.4655182361602783, -0.661956250667572, -0.5101209282875061, 0.407031387090683, -0.46007227897644043, 0.26072636246681213...
overlayItem.setMarker(getResources().getDrawable(R.drawable.ic_pin_multiple)); } else { overlayItem = new OverlayItem(item[0], "", new GeoPoint(Float.parseFloat(item[13]), Float.parseFloat(item[14]))); overlayItem.setMarker(getResources().getDrawable(getResources().getIdentif...
[ -0.2853378653526306, -0.10274190455675125, 0.9067012667655945, -0.1250140219926834, 0.21783114969730377, 0.2899349331855774, 0.09770861268043518, -0.6266317963600159, -0.2383384257555008, -0.7959558367729187, -0.3928157091140747, 0.2823410928249359, -0.3920379877090454, 0.18335264921188354...
} setMapOverlays(mapOverlays); } } private boolean existsInOverlayItems(String[] item, ArrayList<OverlayItem> overlayItemList) { for (int i = 0; i < overlayItemList.size(); i++) { if ((new GeoPoint(Double.parseDouble(item[13]), Double.parseDouble(item[14]))).equals(overlayItemList.get(i).mGeoP...
[ -0.3812604248523712, -0.21498213708400726, 0.8632956743240356, -0.17767742276191711, 0.168373242020607, 0.4148132801055908, 0.3711364269256592, -0.6658618450164795, -0.10175960510969162, -0.6866440773010254, -0.22860847413539886, 0.3813397288322449, -0.5413743853569031, 0.2833196520805359,...
new ItemizedIconOverlay<OverlayItem>( overlays, getResources().getDrawable(R.drawable.ic_pin_marker), new ItemizedIconOverlay.OnItemGestureListener<OverlayItem>() { public boolean onItemLongPress(int arg0, OverlayItem item) { mapOverlayItemPressed(Integer.parseInt(item.mTitle), item); ...
[ -0.4341017007827759, -0.25595685839653015, 0.8734288215637207, -0.09265495836734772, 0.05098935216665268, 0.4665064513683319, 0.2916908264160156, -0.5568103790283203, -0.24619969725608826, -0.7082059979438782, -0.394149512052536, 0.5753659605979919, -0.38998672366142273, 0.2948197424411773...
return false; } }, new DefaultResourceProxyImpl(this)); mapView.getOverlays().add(itemOverlays); mapView.invalidate(); } private void mapOverlayItemPressed(int itemId, OverlayItem overlayItem) { if (itemId == -1) { Collect.multiPOIList.clear(); for (String[] item : multiData)...
[ -0.21984264254570007, -0.44426974654197693, 0.8770963549613953, -0.13120798766613007, 0.05664009973406792, 0.31646862626075745, 0.3106340765953064, -0.5524725317955017, -0.3741661310195923, -0.4355664849281311, -0.36318445205688477, 0.5714660286903381, -0.5388440489768982, 0.14323787391185...
} } Action.alertWithListView(this, getResources().getString(R.string.alert_title_multiplepoi), false); } else { SqlDB.db.getItemsById(itemId); Bundle b = new Bundle(); b.putInt("listSelection", 0); Action.newIntent(c, DetailActivity.class, b); } } private boo...
[ 0.31127357482910156, -0.7369378805160522, 0.5506176352500916, 0.004976061638444662, 0.05615009739995003, -0.005695820786058903, 0.1925639808177948, -0.5989632606506348, -0.398678719997406, -0.45758533477783203, -0.44251155853271484, 0.5839435458183289, -0.49227726459503174, -0.140534877777...
4.240723; double mapLongMax = 4.490662; if ((lat > mapLatMin) && (lat < mapLatMax)) { if ((lng > mapLongMin) && (lng < mapLongMax)) { return true; } } return false; } ``` } And here the code of the OSMapActivity: ``` public class OSMapActivity extends ActionbarActivity {...
[ 0.08392447233200073, -0.4332626461982727, 0.7445198893547058, -0.30856451392173767, 0.11835397034883499, 0.1179802194237709, 0.3990119695663452, -0.6009668111801147, -0.10986601561307907, -0.4037850797176361, -0.6117295622825623, 0.8161334991455078, -0.4951375126838684, 0.08230655640363693...
museumBN; protected Button cultureBN; protected Button attractionsBN; protected Button shoppingBN; protected Button marketBN; protected double homeLat; protected double homeLong; public void onClickABActionButton(View v) { boolean actionButton = Prefs.getBoolean(this, "abActionButtonRoute", false); if (actio...
[ -0.038956042379140854, -0.4458746910095215, 0.8396060466766357, -0.19429808855056763, 0.2421780675649643, 0.4294789731502533, 0.5277076959609985, -0.3825002610683441, -0.5209689736366272, -0.33459538221359253, -0.628221869468689, 0.5561307072639465, -0.5020400881767273, 0.1094479113817215,...
GPS.longitude + "&daddr=Heiveld+21+1745+Opwijk")); GPS.stop();*/ Action.loadMapsWithMyLocation(this, homeLat, homeLong); } else { Collect.dbList.clear();
[ -0.1822701394557953, -0.12342708557844162, 0.8591436147689819, -0.29781022667884827, 0.40348535776138306, -0.06684859097003937, 0.40398234128952026, -0.4204060733318329, 0.20872478187084198, -0.42515307664871216, -0.3710363507270813, 0.6107701659202576, -0.22048261761665344, 0.098781481385...
for (String[] data : mapData) { Collect.dbList.add(data); } // TODO Load new intent with list Action.newIntent(this, MapListActivity.class, null); } } ``` } Thanks for your help. Kr I raised an [issue](http://code.google.com/p/osmdroid/issues/detail?id=289&can=1&sort=-id) o...
[ 0.05975237488746643, -0.09802951663732529, 1.2537015676498413, -0.301479697227478, 0.016826780512928963, -0.19688867032527924, 0.4697924554347992, -0.2505321204662323, -0.29555925726890564, -0.6977750062942505, 0.15558423101902008, 0.6597562432289124, -0.2156156599521637, 0.033894233405590...
although the cycle maps don't work in it and the tile loading can be a bit flickery. If your maps are offline though, they should load pretty fast and flicker might not be an issue.
[ 0.6692419648170471, -0.12825138866901398, 0.5110575556755066, 0.24808214604854584, 0.07467947900295258, -0.2950513958930969, 0.2674679458141327, 0.16813455522060394, -0.32242053747177124, -0.8367959260940552, 0.43847915530204773, 0.22011464834213257, -0.0444231815636158, -0.139866724610328...
We recently started making use of the new Google Expansion APK mechanism. Overall it works well, but it seems somewhat flakey for us. Some questions: 1. Some users get the expansion app downloaded along with the app while others don't and our app has to download it itself. Does anyone know what governs when it works a...
[ 0.4295583665370941, 0.008142521604895592, 0.32162341475486755, 0.3213370442390442, 0.23877876996994019, -0.21162764728069305, 0.01420123316347599, -0.24043287336826324, -0.39055460691452026, -0.5528312921524048, -0.21535424888134003, 0.5129313468933105, -0.24968810379505157, 0.123444415628...
return a valid size and URL. Does anyone else see this flakiness? Here are the basics of the code: This is how we set up the call to verify licensing via a callback ``` policy = new APKExpansionPolicy( context, new AESObfuscator( SALT, context.getPackageName(), deviceId ) ); mChecker = new LicenseChecker( co...
[ 0.18516014516353607, 0.1010248139500618, 0.8925204873085022, 0.05657010152935982, 0.3930961489677429, -0.20994412899017334, 0.3386930227279663, -0.6608752608299255, 0.1233062893152237, -0.4536263346672058, -0.19916604459285736, 0.743201494216919, -0.44726207852363586, 0.2932598292827606, ...
String expansionFileName = policy.getExpansionFileName( APKExpansionPolicy.MAIN_FILE_URL_INDEX ); String expansionURL = policy.getExpansionURL( APKExpansionPolicy.MAIN_FILE_URL_INDEX ); long expansionFileSize = policy.getExpansionFileSize( APKExpansionPolicy.MAIN_FILE_URL_INDEX ); } ``` We just re...
[ 0.33891043066978455, -0.23761002719402313, 0.8292055726051331, -0.3116283714771271, 0.3263338804244995, 0.17546875774860382, 0.2576545178890228, -0.364065557718277, -0.4554556608200073, -0.5755512118339539, -0.31704092025756836, 0.6786019206047058, -0.30083778500556946, 0.04870489612221718...
be going on? You are getting -1 because the APKExpansionPolicy responds with a local cached result if you try to contact the licensing server again - but the URL, filesize and filename are not cached and are lost after the first real response. APKExpansionPolicy does not cache these results, here is a comment from the ...
[ 0.869277834892273, -0.3132460117340088, 0.42560648918151855, 0.030725494027137756, 0.25667861104011536, -0.17587518692016602, 0.2307436168193817, -0.1340303272008896, -0.3680369257926941, -0.08889419585466385, -0.4757845997810364, 0.3733912408351898, -0.5212454199790955, 0.2210679799318313...
(in *allow* callback method);
[ -0.07953371107578278, 0.0037827917840331793, 0.08137538284063339, -0.44441619515419006, 0.21553771197795868, -0.21836310625076294, 0.3797227442264557, -0.2022998034954071, 0.1698468029499054, -0.05906050279736519, -0.7596157193183899, 0.6154506206512451, -0.3835880756378174, -0.04369075223...
I have this html5 drawing app that draws just fine on the canvas element. My problem is, I have an img of an eraser and I want the user to be able to click it and it will erase the canvas. Extra karma points if you can tell me also how to change the stroke color to white. This is my html: ``` <div id="draw_area"> <c...
[ 0.20581544935703278, -0.03326444327831268, 0.538718581199646, -0.44465577602386475, -0.2828770875930786, 0.2952169179916382, 0.3550305664539337, -0.29080793261528015, -0.12622563540935516, -0.8401446342468262, 0.18794392049312592, 0.5809667110443115, -0.2984750270843506, -0.084930457174777...
() { var canvas, context, tool; function init() { // Find the canvas element. canvas = document.getElementById('imageView'); if (!canvas) { alert('Error: I cannot find the canvas element!');
[ -0.07478412985801697, -0.27869710326194763, 0.3194766342639923, -0.33548057079315186, 0.2121780514717102, 0.11993535608053207, 0.6058880686759949, -0.3334183096885681, -0.05398381128907204, -0.5650562047958374, -0.4989347755908966, 0.8432601690292358, -0.2759886682033539, -0.04525854066014...
return; } if (!canvas.getContext) { alert('Error: no canvas.getContext!'); return; } // Size the canvas:
[ -0.2219768464565277, -0.43856674432754517, 0.3159222900867462, -0.28957390785217285, 0.07742156833410263, 0.09282363951206207, 0.06148902699351311, -0.3906979560852051, -0.5053809881210327, -0.6196702122688293, -0.4019286334514618, 0.8143967986106873, -0.1739930659532547, -0.23029118776321...
canvas.width = 367; canvas.height= 249; // Get the 2D canvas context. context = canvas.getContext('2d'); if (!context) { alert('Error: failed to getContext!'); return;
[ 0.0066345748491585255, -0.30861809849739075, 0.5263735055923462, -0.4221293330192566, -0.024108249694108963, 0.426444947719574, 0.14663510024547577, -0.6612457633018494, -0.32849761843681335, -0.5831356048583984, -0.357357382774353, 0.7877256870269775, -0.10066422075033188, -0.298549145460...
} // Pencil tool instance. tool = new tool_pencil(); // Attach the mousedown, mousemove and mouseup event listeners. canvas.addEventListener('mousedown', ev_canvas, false); canvas.addEventListener('mousemove', ev_canvas, false);
[ -0.013336109928786755, -0.27357661724090576, 0.27222925424575806, -0.31470897793769836, 0.16164295375347137, 0.24759569764137268, 0.3210195004940033, -0.3785191774368286, 0.08406367897987366, -0.5618242025375366, -0.18136179447174072, 1.0686676502227783, -0.4239235520362854, -0.35229679942...
canvas.addEventListener('mouseup', ev_canvas, false); } // This painting tool works like a drawing pencil which tracks the mouse // movements. function tool_pencil() { var tool = this; this.started = false; // This is called when you start holding do...
[ 0.21180924773216248, -0.5095759630203247, 0.5961741209030151, -0.20842428505420685, 0.0674331784248352, 0.27461278438568115, -0.12383607774972916, -0.3796099126338959, -0.4135872721672058, -0.5314330458641052, 0.22655713558197021, 0.7079620361328125, -0.22590100765228271, -0.29712885618209...
mouse button. // This starts the pencil drawing. this.mousedown = function (ev) { context.beginPath(); context.moveTo(ev._x, ev._y); tool.started = true; };
[ -0.15712949633598328, -0.2948594391345978, 0.6667548418045044, -0.42044517397880554, 0.40192756056785583, 0.37080034613609314, 0.24633589386940002, -0.09654656052589417, -0.05818897858262062, -0.685261607170105, -0.2511586844921112, 0.7479464411735535, -0.19057586789131165, -0.368946284055...
// This function is called every time you move the mouse. Obviously, it only // draws if the tool.started state is set to true (when you are holding down // the mouse button). this.mousemove = function (ev) { if (tool.started) {
[ 0.0785091370344162, -0.36077946424484253, 0.7255117893218994, -0.3583303987979889, 0.2003874033689499, 0.04535133019089699, 0.2638455331325531, -0.18732638657093048, -0.17018336057662964, -0.5566728115081787, 0.020601456984877586, 0.8443973064422607, -0.11175606399774551, -0.15984994173049...
context.lineTo(ev._x, ev._y); context.stroke(); } }; // This is called when you release the mouse button. this.mouseup
[ -0.3088279068470001, -0.5699851512908936, 0.8106347918510437, -0.4153786599636078, 0.3547476530075073, 0.30072450637817383, 0.15605568885803223, -0.0900496244430542, -0.03443986549973488, -0.5634168982505798, -0.2558514475822449, 0.6476479172706604, -0.3233817219734192, -0.1296876668930053...
= function (ev) { if (tool.started) { tool.mousemove(ev); tool.started = false; } }; }
[ 0.03495149314403534, -0.24357828497886658, 0.34474605321884155, -0.4223542809486389, 0.04668263718485832, 0.4383394718170166, 0.3816555142402649, -0.2234506756067276, -0.12924449145793915, -0.47571179270744324, -0.042938269674777985, 0.7611665725708008, -0.307596355676651, -0.0614950507879...
// The general-purpose event handler. This function just determines the mouse // position relative to the canvas element. function ev_canvas(ev) { if (navigator.appName == 'Microsoft Internet Explorer' || navigator.vendor == 'Google Inc.' || navigator.vendor == 'Apple Computer, Inc.') { // I...
[ 0.20856255292892456, -0.16887816786766052, 0.4383239448070526, -0.12291588634252548, -0.1256287544965744, 0.20261694490909576, -0.0038379456382244825, -0.09339988231658936, -0.19172553718090057, -0.8648418188095093, -0.047368720173835754, 0.8605234622955322, -0.37847885489463806, -0.375977...
ev._y = ev.offsetY; } else if (ev.layerX || ev.layerX == 0) { // Firefox ev._x = ev.layerX - this.offsetLeft; ev._y = ev.layerY - this.offsetTop; } else if (ev.offsetX || ev.offsetX == 0) { // Opera
[ 0.16220007836818695, -0.3346703350543976, 0.4731486141681671, -0.1140073761343956, 0.211513951420784, -0.09187180548906326, 0.4158819317817688, -0.5763390064239502, -0.11079525947570801, -0.4428125321865082, -0.3360348343849182, 0.8494752049446106, -0.4423123598098755, -0.31079578399658203...
ev._x = ev.offsetX; ev._y = ev.offsetY; } // Call the event handler of the tool. var func = tool[ev.type]; if (func) {
[ 0.23227380216121674, -0.4742608368396759, -0.00803578831255436, -0.15437756478786469, -0.022112524136900902, 0.06628697365522385, 0.1686898022890091, -0.36213913559913635, 0.036974165588617325, -0.28017568588256836, -0.20931559801101685, 0.9500519037246704, -0.402277410030365, -0.282243937...
func(ev); } points.push(ev); } init(); }, false); } ``` I think I need a redraw function, but I don't really know what I'm talking about in regards to this issue. Any insight is much appreciated! I would convert `a` to a boolean using `!!a`, to get 0 or 1. `x = !!a`. ...
[ -0.06168036162853241, -0.04318292438983917, 0.15348127484321594, -0.36067602038383484, -0.2675369381904602, -0.06996431946754456, 0.10871961712837219, -0.26086145639419556, -0.15137551724910736, -0.09732332825660706, -0.21121563017368317, 0.5453004837036133, -0.3860785663127899, 0.08798199...
that in two's complement. Since you don't have unary minus available, you use the definition of 2's complement negation: invert the bits, then add one: `y = ~x + 1`. That will give either all bits clear, or all bits set. Then I'd `and` that directly with one variable `y & b`, its inverse with the other: `~y & c`. That...
[ 0.043489936739206314, -0.08000130206346512, 0.2292681485414505, -0.4020516574382782, -0.3907104730606079, 0.0242087971419096, 0.11852085590362549, -0.200177863240242, 0.22829797863960266, -0.4934288263320923, -0.4531777501106262, 0.5959393978118896, -0.4666844606399536, -0.0774848759174346...
This is a pretty basic question. I'm learning from a textbook about JSF web apps, and using a @SessionScoped Bean to manage the session. The book mentioned that if you close the browser, the session ends, and this was easy to verify with testing. But I am not sure how the web app is informed that the browser has been c...
[ 0.5218222737312317, 0.27159997820854187, 0.3491396903991699, 0.16865026950836182, -0.2584623694419861, -0.44192835688591003, 0.6052076816558838, 0.10206709802150726, -0.39262017607688904, -0.45863819122314453, -0.06448961794376373, 0.4490385353565216, 0.13301822543144226, 0.227937534451484...
Example: ``` select count(*) from my table where column1 is not null and (column1 = 4 OR column1 = 5) ``` Example 2: ``` select count(*) from my table where column1 is not null and column1 = 4 OR column1 = 5 ``` In my database with the real column names, I get two different results. The one with the parentheses i...
[ -0.07004375755786896, 0.14780476689338684, -0.008257859386503696, -0.11071072518825531, -0.10361205786466599, 0.20002831518650055, 0.021062707528471947, -0.6040337085723877, -0.22069288790225983, -0.6550886631011963, 0.10222513973712921, 0.43487218022346497, -0.35718539357185364, -0.116027...
not Oracle or SQL. It's basic boolean logic. The AND condition is "stronger" (has precedence) than OR, meaning it will be evaluated first: ``` column1 is not null and column1 = 4 OR column1 = 5 ``` Means ``` column1 is not null and column1 = 4 ``` is evaluated first, then OR is applied between this and `column1 =...
[ 0.07299623638391495, 0.10231870412826538, 0.10815439373254776, 0.0222373828291893, -0.08039744198322296, -0.28796038031578064, 0.2435264140367508, -0.296884149312973, 0.07695283740758896, -0.14906445145606995, -0.28107452392578125, 0.5286868810653687, -0.130447119474411, -0.302229523658752...
I know I can use `placeholder="some text here..."` but how to make it so that the text will removed on key press instead of focus? Is it possible using CSS or how to achieve it using jQuery? If you would like a general solution that allows you to consider any default text value easily, consider this solution: <http://...
[ 0.1580667495727539, 0.06175963953137398, 0.40931612253189087, -0.13919146358966827, 0.005892772693186998, -0.09744101762771606, 0.37191957235336304, -0.10495717823505402, -0.1154499500989914, -0.6901246905326843, -0.2158508598804474, 0.5552729368209839, -0.29215577244758606, 0.114669777452...
(e) { var input = $(e.target); if (input && !input.data('data-entered')) { input.data('data-entered', true); input.val(""); } } // Restore the default text if empty on blur function blur(e) { var input = $(e.target);
[ -0.11452417075634003, -0.1816546469926834, 0.8571702837944031, -0.2315455824136734, 0.1749812513589859, 0.30635157227516174, 0.4274163246154785, -0.14700530469417572, 0.24055014550685883, -0.6170985698699951, -0.6750895380973816, 1.057146430015564, -0.43582314252853394, 0.10029499977827072...
if (input && input.val() === "") { input.data('data-entered', false); input.val(input.data('blank-value')); } } $('.populated-text').each(function () { var input = $(this); input.data('blank-value', input.val()); input.data('data-entered', false);
[ -0.12968769669532776, -0.26278766989707947, 0.5091442465782166, -0.14063400030136108, 0.2870301902294159, 0.38643983006477356, 0.06440795212984085, -0.38289523124694824, 0.1629851758480072, -0.5771692991256714, -0.722570538520813, 0.6749505400657654, -0.3608371615409851, 0.0720095038414001...
input.keydown(keyDown); input.blur(blur); }); });​ ``` **Example inputs:** ``` <input type="text" value="Some text here..." class="populated-text"> <input type="text" value="Any default text you like" class="populated-text"> <input type="text" value="Will be used as empty" class="populated-text">​ ```
[ -0.18554247915744781, -0.17773769795894623, 0.9331240057945251, -0.16523107886314392, 0.05517123267054558, 0.12113343924283981, 0.04347411170601845, -0.11799118667840958, -0.1301524043083191, -0.8270624279975891, -0.3969222605228424, 0.7144782543182373, -0.5067780613899231, -0.278046190738...
Ok, someone has just shown me a piece of PHP code and at the end of the file I've seen a stray `<?php } ?>` . I thought that should give a compilation error, but it doesn't. Why is: ``` <?php if(1==1){ ?> X <?php } ?> ``` valid? Is it safe to split a statement into multiple php blocks? PS: I was expecting for s...
[ 0.47043120861053467, 0.22873981297016144, -0.05598516762256622, -0.041501786559820175, -0.3770274519920349, -0.20592641830444336, 0.4203190803527832, -0.3185355067253113, -0.3646627962589264, -0.3640132248401642, -0.005450515076518059, 0.15972110629081726, -0.5054880380630493, -0.053353566...
documents, for example to create > templates. Welcome to the mysterious world of PHP.
[ 0.30534666776657104, 0.15492133796215057, -0.018506452441215515, 0.6157448291778564, -0.013215795159339905, -0.6451012492179871, 0.3845870792865753, 0.5109021663665771, -0.2944122850894928, -0.5956544876098633, -0.09297891706228256, 0.21801795065402985, 0.027531694620847702, 0.211103841662...
The line-break marker on Windows should be `CR+LF` whereas on Unix, it's just `LF`. So when I use something like `Console.Write("line1\nline2");`, why would it work "properly" and give me two lines? I expect this `\n` not to work, and only a combo of `\r\n` would work. `'\n'` is the Line Feed character. Traditionally,...
[ -0.12153734266757965, -0.1984216868877411, 0.7863045930862427, -0.20972734689712524, -0.08169899135828018, 0.3108631670475006, -0.2863747775554657, 0.0909997969865799, -0.19583240151405334, -0.4052896499633789, -0.293546199798584, 0.3153460621833801, -0.39230456948280334, 0.188091769814491...
line2 ``` Many consoles (and editors) will interpret '\n' to mean that you want to start a new line *and* position the cursor at the beginning of that new line. That is what you see here. You should use [Environment.NewLine](http://msdn.microsoft.com/en-us/library/system.environment.newline.aspx) rather than hard-co...
[ -0.05421380698680878, -0.31557631492614746, 0.5436378121376038, -0.22559703886508942, 0.10382608324289322, -0.026883820071816444, 0.06121160835027695, 0.16456609964370728, -0.18136833608150482, -0.6302627325057983, -0.4648815393447876, 0.22404225170612335, -0.4944968521595001, 0.0637771934...
I need to integrate a .net2.0 app with nservicebus. Actually, I just need that this .net2.0 sends a message to a nservicebus queue. Should I just create it by myself? Theres any trick I should watch out, so when I upgrade to, lets say, nservicebus4 it wont break ? This bugged me, too. I still don't exactly know why yo...
[ 0.08327694982290268, -0.10185254365205765, 0.2375301569700241, 0.047761283814907074, -0.35724347829818726, 0.28156578540802, 0.42494475841522217, -0.6365081071853638, -0.2888539731502533, -0.8249182105064392, -0.24323366582393646, 0.17823265492916107, -0.46228456497192383, -0.0456044450402...
are > the first para children of their parents." Thanks to your question, I finally understood why this works this way :). So, depending on your structure and needs, this should work.
[ 0.28671950101852417, 0.0575593039393425, 0.03875107690691948, 0.18446573615074158, 0.03106248751282692, 0.24892042577266693, 0.3777547776699066, -0.23097696900367737, 0.03374716266989708, -0.8317477703094482, 0.09516004472970963, 0.4163755774497986, 0.15555590391159058, 0.10067872703075409...
i have `latitude` and `longitude` columns in `location` table in PostgreSQL database, and I am trying to execute distance query with a PostgreSQL function. I read this chapter of the manual: <https://www.postgresql.org/docs/current/static/earthdistance.html> but I think I'm missing something there. How should I do ...
[ 0.15460805594921112, 0.34368857741355896, 0.6914953589439392, 0.1476377695798874, 0.253071665763855, 0.09598620980978012, 0.1470610797405243, -0.13959303498268127, 0.0644337460398674, -0.5867560505867004, 0.19071432948112488, 0.31840741634368896, 0.023957524448633194, 0.2847272455692291, ...
x float = 69.1 * (lat2 - lat1); y float = 69.1 * (lon2 - lon1) * cos(lat1 / 57.3);
[ -0.06996052712202072, 0.08083241432905197, 0.4075007140636444, -0.2996055483818054, 0.10243970900774002, 0.23713712394237518, 0.11063553392887115, -0.30464404821395874, 0.20267336070537567, 0.08596238493919373, -0.40476828813552856, 0.16504937410354614, -0.3212062120437622, -0.078716911375...
BEGIN RETURN sqrt(x * x + y * y);
[ -0.4614725112915039, 0.08828369528055191, 0.31932270526885986, -0.32957741618156433, -0.1325335055589676, 0.09115899354219437, 0.24666859209537506, 0.05287003517150879, 0.3501802384853363, -0.5637573599815369, -0.6809253096580505, 0.534076452255249, -0.42221951484680176, -0.102119788527488...
END $$ LANGUAGE plpgsql; ```
[ -0.05414845049381256, 0.4156288504600525, 0.4408533275127411, -0.3133101165294647, 0.041009966284036636, -0.206533744931221, 0.4367575943470001, 0.40653783082962036, 0.2559531033039093, -0.4314405024051666, -0.4234016537666321, 0.6356727480888367, -0.3196852505207062, 0.21578733623027802, ...
Quick question about include/requre\_once . I have some code that is common to a few pages that I feel would be better to be in a file to call from each page rather than code repetition. I call the include\_once in a while loop and what I noticed is that I have to use include('file.php') or it will literally load it (...
[ 0.6238481402397156, 0.10914518684148788, -0.13347910344600677, -0.04251106455922127, -0.20844951272010803, -0.16274294257164001, 0.48376816511154175, 0.019234629347920418, -0.4733106791973114, -0.3605027496814728, 0.08310197293758392, 0.4764235019683838, -0.2642209231853485, 0.090943619608...
the loop. I looked around for a "load\_once\_and\_cache" type of command but did not find anything. Does anyone have any suggestions for this or is putting the code in each page the only option. Thanks again! This is a pretty inefficient method of getting content into a loop. PHP would need to read the file from d...
[ 0.7414387464523315, -0.027443714439868927, -0.07620267570018768, 0.2889617085456848, -0.27659156918525696, -0.2340375781059265, 0.543172299861908, 0.05111854523420334, -0.31816500425338745, -0.3203725218772888, 0.19911743700504303, 0.5521063208580017, -0.4874686896800995, 0.124359913170337...
file, except perhaps when coding a view (even then I'd think twice before doing it). Requiring a file to be included inside a loop creates a strange mix of flow control and file inclusion that can be difficult to debug and maintain.
[ 0.4408927857875824, -0.08772457391023636, 0.10985895246267319, 0.40063315629959106, 0.2005065381526947, -0.3959548771381378, 0.19033010303974152, 0.0005914103239774704, -0.25388315320014954, -0.3445584774017334, -0.3045092821121216, 0.0791061520576477, -0.38519489765167236, 0.1581633090972...
I am trying to refresh the datagrid to reflect the updated data after the user updates the database. Is that possible? I have the following code: script ``` protected function updataHandler(event:MouseEvent):void { updateJobsResult.token = Service.updateJobs(updateJobData); //The database will be updated after ...
[ 0.03856883570551872, 0.22685404121875763, 0.6462188959121704, -0.31216123700141907, 0.0009748399024829268, -0.0006059004808776081, 0.5154274106025696, -0.16119399666786194, -0.18731680512428284, -0.7788955569267273, -0.028776798397302628, 0.47636672854423523, -0.4305114150047302, 0.1153787...
PHP would need to read the file from disk on each `include()` call. You're much better off creating a function (which may be in the included file). Include the file once, which defines the function, then call the function in your loop. It isn't always good practice to rely on the output of an included file, except per...
[ 0.20631848275661469, 0.01973152346909046, -0.18856729567050934, 0.06118326261639595, -0.2131836712360382, -0.19523945450782776, 0.2567606270313263, -0.32427674531936646, -0.15814554691314697, -0.22986814379692078, 0.018574010580778122, 0.36553075909614563, -0.44073235988616943, -0.09620774...
How do I determine if a HTTP request came from a browser or something else like a web service? I am aware that there is a User Agent, but this seems mainly for web browsers. For instance I do I know the request came from a google maps or youtube. The request are coming off a tethered device. If they have a different ...
[ 0.6258224844932556, -0.043542057275772095, 0.5510427355766296, 0.30355650186538696, 0.06597129255533218, -0.10236039012670517, 0.05283212661743164, -0.1492062658071518, -0.20621275901794434, -0.5761499404907227, 0.2433011382818222, 0.40475672483444214, 0.0403296984732151, 0.004419342149049...
Agent arbitrarily. One can attempt to determine if the thing on the other end is a browser e.g. by executing JavaScript and measuring the outcome. However, some bots can execute JavaScript, and not all browsers execute JavaScript so that type of test can never be perfect. Well-behaved "bots" (like common search engin...
[ -0.06960129737854004, -0.15149185061454773, 0.18355543911457062, 0.1422661393880844, -0.04968280717730522, -0.16339246928691864, 0.8177316784858704, -0.2154085785150528, -0.2146848887205124, -0.7339106798171997, 0.07524631172418594, 0.3534235656261444, -0.40692272782325745, 0.0092112664133...
I am retrieving video embed urls from my database. In my database, my videos are 600x450. What I want to do is make them smaller and place them within a `<td>`. In order to accomplish this, I wrote the following CSS with template lite tags: ``` <style type="text/css"> {literal} div.embed { width: 200px; ...
[ 0.6351636648178101, 0.09353809803724289, 0.6255055069923401, -0.11306655406951904, -0.1907641589641571, 0.19567754864692688, 0.09967508167028427, -0.5908190608024597, -0.08977348357439041, -0.6352074146270752, -0.0031725475564599037, 0.4938587248325348, -0.06154346838593483, 0.153358355164...
</div> </td> </tr> ``` The problem is that my video sizes are not being affected, and it runs over the edges of my `<td>`. image: ![enter image description here](https://i.stack.imgur.com/H6tQY.png) You cannot target the container of the videos themselves, you would need to target the actual video...
[ 0.4444698989391327, -0.05430614948272705, 0.7138952016830444, -0.018039027228951454, -0.23087304830551147, -0.03292112052440643, 0.23949140310287476, -0.4701995253562927, -0.25089555978775024, -0.5976988077163696, -0.25785136222839355, 0.6692458391189575, -0.20886309444904327, 0.2228174805...
`object`, depending on how you display your videos. For example, you may have something like the following: ``` <object width="560" height="315"> <param name="movie" value="http://www.youtube.com/v/NWHfY_lvKIQ?version=3&amp;hl=en_US"></param> <param name="allowFullScreen" value="true"></param> <param name="allo...
[ 0.2508942186832428, -0.014397098682820797, 0.7649946212768555, 0.06098712980747223, -0.2884514629840851, 0.23418162763118744, 0.2522841989994049, -0.8680521845817566, -0.36575189232826233, -0.27882134914398193, -0.1838826984167099, 0.48344528675079346, -0.0650775209069252, 0.17809776961803...
I am having an issue with Yii relations. I am using CGridView to display a table in a view. I have the following relations in my model: `'relationName' => array(self::BELONGS_TO, OtherModelName, link_id),` When I call the value in my CGridView like the example below it works fine: `'relationName.field_name',` When...
[ 0.14324477314949036, 0.1455712914466858, 0.2945781648159027, -0.16957473754882812, -0.4467480778694153, 0.052237797528505325, 0.17009827494621277, -0.0324237085878849, -0.1576923429965973, -0.7662569880485535, 0.10667724907398224, 0.565729022026062, -0.3009955883026123, 0.23920142650604248...
$data->relationName->field_name : null', ) ``` What happens is that Yii freaks out if the relation isn't always there. So if you have any gaps in your data / relationships, then you run into problems.
[ 0.34098246693611145, 0.18409714102745056, -0.14672955870628357, 0.1848420649766922, -0.3036070168018341, -0.2688169479370117, 0.3370397090911865, 0.0314503014087677, -0.1500893235206604, -0.49998360872268677, -0.11271011084318161, 0.45011815428733826, -0.17408420145511627, 0.39165762066841...
I have a table on an IBMi/System-i/iSeries/AS400 that has no foreign keys, primary keys or constraints of any kind. I am attempting to add a primary key using SQL: `ALTER TABLE MYLIB.TBLGB ADD CONSTRAINT MYLIB.R_MYLIB_PK_GB PRIMARY KEY (GBAPP, GBTSK, GBSET, GBSTP)` Which results in: `Error: [SQL0538] The FOREIGN key...
[ -0.3225623071193695, 0.407245010137558, 0.5994510650634766, -0.06912185251712799, -0.07520978897809982, 0.30955326557159424, 0.03190668299794197, -0.12410980463027954, -0.3453042805194855, -0.5990710258483887, 0.04412369057536125, 0.47179776430130005, -0.5271820425987244, 0.442868024110794...
the data type and attributes of the FOREIGN key must be identical to the data type and attributes of the corresponding column of the parent key. Recovery . . . : Correct the statement so that the description of the FOREIGN key conforms to that of the parent key of the specified table.` I'm totally baffled by this beca...
[ 0.0019502489594742656, 0.4792150855064392, 0.2269456684589386, 0.1175006851553917, -0.06353598833084106, -0.27754563093185425, 0.33595001697540283, -0.10045274347066879, -0.20179468393325806, -0.3819722533226013, -0.48013344407081604, 0.582897424697876, -0.30876317620277405, 0.381660133600...
fine on other, essentially identical libraries... The `PropertyOverrideConfigurer` uses the key in your properties file as the bean name.bean property. When `@Component` autoscans your configuration, Spring will name the bean as the unqualified class name starting with a lower case. In your case, the `OrderService` bea...
[ 0.4410274028778076, -0.14018088579177856, 0.5591581463813782, -0.0842556282877922, -0.030329808592796326, -0.3426991403102875, 0.2870681881904602, -0.3533143997192383, -0.4181744158267975, -0.6517319679260254, -0.0734647884964943, 0.6266177892684937, -0.5220284461975098, 0.3399261832237243...
I currently have a problem within PHP where I want to sort these posts by their creation date so that they can then be shown in descending order. I have been looking for a PHP function to do this but have had no luck. Is there an easy solution to this? Any idea will be greatly appreciated :) ``` array 0 => ...
[ 0.4153190851211548, 0.1463734656572342, 0.23832862079143524, -0.08857662230730057, -0.1370723843574524, -0.10377995669841766, 0.3394075930118561, 0.14382793009281158, -0.07080812007188797, -0.723560094833374, 0.180387943983078, -0.10008208453655243, -0.11974640935659409, 0.4077013731002807...