text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
++ cnt1stLineTiles; } if ( cnt2ndLineTiles >= wTiles && preMode == Scan_VerDown ){ preMode = curMode;
[ -0.0020560286939144135, -0.060039058327674866, 0.5593239068984985, -0.24967508018016815, 0.3283750116825104, 0.20077265799045563, 0.23750442266464233, -0.37714308500289917, -0.14746257662773132, -0.33668261766433716, -0.12322437018156052, 0.3453652858734131, -0.25906890630722046, 0.4014423...
// scan mode change need upate preMode curMode = Scan_VerUp; mbPosition = firstMbIdxUnit - mbOffsetTileVer;
[ -0.025894979014992714, -0.4981406033039093, 0.5001116394996643, -0.1465391218662262, 0.13727343082427979, -0.02601439692080021, 0.2695644497871399, -0.3085583746433258, -0.2746903598308563, -0.45214366912841797, -0.1612822413444519, 0.6693508625030518, -0.6066405773162842, 0.05398193746805...
}else if ( cnt1stLineTiles >= wTiles && preMode == Scan_VerUp ){ preMode = curMode; // scan mode change need upate preMode curMode = Scan_VerDown;
[ 0.1097639873623848, -0.1203860267996788, 0.8017816543579102, -0.16484753787517548, 0.45677706599235535, 0.04085512459278107, 0.3043507933616638, -0.511544942855835, -0.3016033470630646, -0.2700888216495514, -0.1333133429288864, 0.5675977468490601, -0.3904644548892975, 0.28581610321998596, ...
mbPosition = firstMbIdxUnit + mbOffsetTileVer; }else{
[ -0.2903498709201813, -0.38103798031806946, 0.17248085141181946, -0.3046974241733551, -0.04237641394138336, 0.22119763493537903, 0.3057340681552887, -0.07395680248737335, -0.31739652156829834, -0.7085599899291992, -0.14158496260643005, 0.45351698994636536, -0.6932910084724426, 0.14709098637...
mbPosition += mbOffsetTileHor; } } }else if ( curMode == Scan_VerUp ){ if ( cnt1stLineTiles+1 >= wTiles ){
[ -0.0915772095322609, -0.18445880711078644, 0.6427878737449646, -0.18098056316375732, 0.14571058750152588, 0.23329396545886993, 0.17570628225803375, -0.25892430543899536, -0.35650792717933655, -0.4596858024597168, -0.06837888807058334, 0.4472449719905853, -0.45762982964515686, 0.20263496041...
noEnoughMbInTile = (ALIGN_B(width, 16) < srcStrideY); // uvTileToMb[tileIndex].lastTileInHor = true; } uvTileToMb[tileIndex].startMbIndex = mbPosition;
[ -0.4516263008117676, -0.14182107150554657, 0.5900501012802124, -0.3839879035949707, 0.04213862493634224, 0.21637140214443207, 0.36781221628189087, -0.10271196067333221, -0.11934095621109009, -0.5393463969230652, -0.3707672655582428, 0.19696351885795593, -0.2925302982330322, 0.1540534198284...
uvTileToMb[tileIndex].numMBs = noEnoughMbInTile ? ((4-((srcStrideY-ALIGN_B(width,16))>>4))<<2) : numMbInTile; ++ tileIndex; mbPosition += mbOffsetTileHor; ++ cntScanTimesInPeriod;
[ -0.37488558888435364, -0.09629686921834946, 0.8788845539093018, -0.38912123441696167, -0.0934697687625885, 0.39715537428855896, 0.029780516400933266, -0.2286013960838318, -0.20939257740974426, -0.699694812297821, -0.29066693782806396, 0.47333472967147827, -0.33687055110931396, 0.0367135815...
++ cnt1stLineTiles; preMode = curMode; // scan mode change need upate preMode curMode = Scan_Hor; }else if ( curMode == Scan_VerDown ){
[ -0.04073835536837578, -0.06393682956695557, 0.9619524478912354, -0.21064762771129608, 0.23303361237049103, -0.09103335440158844, 0.19373755156993866, -0.4710172712802887, -0.30432409048080444, -0.1939074993133545, -0.15284296870231628, 0.5285535454750061, -0.40103745460510254, 0.1878460645...
if ( cnt2ndLineTiles+1 >= wTiles ){ noEnoughMbInTile = (ALIGN_B(width, 16) < srcStrideY); // uvTileToMb[tileIndex].lastTileInHor = true; }
[ -0.22718235850334167, -0.2990722060203552, 0.7054640054702759, -0.40406399965286255, 0.09261766821146011, 0.22984279692173004, 0.09088383615016937, -0.39004695415496826, 0.01809263974428177, -0.6769132018089294, -0.08748246729373932, 0.32981419563293457, -0.024792548269033432, 0.0753212124...
uvTileToMb[tileIndex].startMbIndex = mbPosition; uvTileToMb[tileIndex].numMBs = noEnoughMbInTile ? ((4-((srcStrideY-ALIGN_B(width,16))>>4))<<2) : numMbInTile; ++ tileIndex; mbPosition += mbOffsetTileHor;
[ -0.4726501405239105, -0.11261533200740814, 0.6718599200248718, -0.4903069734573364, -0.1855373978614807, 0.4588793218135834, 0.23989389836788177, -0.38807588815689087, -0.18923752009868622, -0.6354100704193115, -0.4161430299282074, 0.3194003105163574, -0.37027356028556824, 0.00212664669379...
++ cntScanTimesInPeriod; ++ cnt2ndLineTiles; preMode = curMode; // scan mode change need upate preMode curMode = Scan_Hor; }
[ -0.21946823596954346, -0.20344491302967072, 0.8916664123535156, -0.13455210626125336, 0.3620416224002838, -0.0061460696160793304, 0.033798716962337494, -0.3486749231815338, -0.3023131191730499, -0.31411871314048767, -0.0725875124335289, 0.5435003638267517, -0.431366503238678, 0.10517474263...
cntScanTimesInPeriod &= 0x03; ++ scanedTiles; } mbPosition = lastMbIdx + (mbOffsetTileVer<<1); availableTilesUV -= numTilesYPerScanUnit; }else{ scanedTiles = 0;
[ -0.266745388507843, -0.4097753167152405, 0.8267026543617249, -0.061363715678453445, 0.30416685342788696, 0.2714158892631531, -0.0364508293569088, 0.006067091133445501, -0.3387865126132965, -0.6465919613838196, -0.11983312666416168, 0.557528018951416, -0.34621661901474, 0.10675045847892761,...
hMbMultiple = hMacroblocks - (tileIndex/wTiles)*4; noEnoughMbInTile = false; while ( scanedTiles < wTiles ){ uvTileToMb[tileIndex].startMbIndex = mbPosition; uvTileToMb[tileIndex].lastTileInVer = true; if ( scanedTiles+1 == wTiles ){
[ -0.23218216001987457, -0.3538239598274231, 0.8596794009208679, -0.26427239179611206, 0.18461312353610992, 0.3120502829551697, 0.34359076619148254, -0.5105662941932678, -0.17545175552368164, -0.4365912675857544, -0.324043869972229, 0.3682108521461487, -0.29191792011260986, 0.070492029190063...
noEnoughMbInTile = (ALIGN_B(width, 16) < srcStrideY); // uvTileToMb[tileIndex].lastTileInHor = true; } uvTileToMb[tileIndex].numMBs = noEnoughMbInTile ? ((4-((srcStrideY-ALIGN_B(width,16))>>4))*hMbMultiple) : (4*hMbMultiple); ++
[ -0.5431671142578125, -0.07644493132829666, 0.6625557541847229, -0.23068150877952576, 0.029533859342336655, 0.41969388723373413, 0.40505895018577576, -0.3604918420314789, -0.2647125720977783, -0.36998581886291504, -0.39841386675834656, 0.3231724500656128, -0.05685349926352501, 0.21022783219...
tileIndex; mbPosition += mbOffsetTileHor; ++ scanedTiles; } availableTilesUV -= wTiles; } } uint8_t* py = src_y; tileIndex = 0; // converting
[ -0.22405657172203064, -0.3209597170352936, 0.48550742864608765, -0.11195746809244156, -0.06158716231584549, 0.29128891229629517, 0.1627034693956375, -0.21344482898712158, -0.16950899362564087, -0.7670419216156006, -0.1383034586906433, 0.29784077405929565, -0.348218709230423, 0.228057518601...
luma componet with yTileToMb while ( tileIndex < numTilesY ){ uint16_t startMbIndex = yTileToMb[tileIndex].startMbIndex; const int32_t startMbX = (startMbIndex % wMacroblocks); const int32_t startMbY = (startMbIndex / wMacroblocks); int32_t mb_x = startMbX; int32_t mb_y = st...
[ -0.07825874537229538, -0.4876125752925873, 0.7151913046836853, -0.4450273811817169, 0.17788764834403992, 0.5137335062026978, -0.12998683750629425, -0.2182096242904663, -0.2939019799232483, -0.6330549120903015, -0.3435051441192627, 0.6752430200576782, -0.5979833006858826, 0.3571148812770843...
const int32_t numMbPerLine = yTileToMb[tileIndex].numMBs / cntMbLines; const int32_t sizePixelLine = (numMbPerLine << 4); int32_t mbLine = 0; while ( mbLine < cntMbLines ){ assert( mb_y < hMacroblocks && mb_x < wMacroblocks ); const int32_t dstOffsetY = (mb_y * stride_y +...
[ -0.1878960281610489, -0.4726676344871521, 0.2514529228210449, -0.1610250622034073, -0.0244258064776659, 0.32714366912841797, 0.38815149664878845, -0.4161694645881653, -0.3151920437812805, -0.4141009449958801, -0.5942174196243286, 0.7464343309402466, -0.43736064434051514, 0.0012855523964390...
int32_t _l = 0; // luma while( _l < 16 ){ memcpy( dst_y + dstOffsetY + _l * stride_y, py, sizePixelLine ); py += 64; // eliminate padding (64-sizePixelLine) ++ _l;
[ -0.07317374646663666, -0.5328490138053894, 0.4674887955188751, -0.5205238461494446, 0.08816201239824295, 0.30110812187194824, 0.05492085963487625, -0.27246347069740295, -0.24950994551181793, -0.5422956943511963, -0.1260584145784378, 0.6285411715507507, -0.6081190705299377, -0.1590418368577...
} mb_x = startMbX; ++ mb_y; ++ mbLine; } ++ tileIndex; } uint8_t* puv = src_uv; tileIndex = 0; // convering
[ -0.5153517127037048, -0.30661362409591675, 0.6279563903808594, -0.4232948124408722, 0.003262071870267391, 0.2407791167497635, 0.2292790710926056, 0.05120697617530823, -0.18104737997055054, -0.6172205209732056, -0.3850390315055847, 0.46666303277015686, -0.4211401641368866, 0.091341026127338...
cb/cr componets with uvTileToMb while ( tileIndex < numTilesUV ){ uint16_t startMbIndex = uvTileToMb[tileIndex].startMbIndex; const int32_t startMbX = (startMbIndex % wMacroblocks); const int32_t startMbY = (startMbIndex / wMacroblocks); int32_t mb_x = startMbX; int32_t mb_y...
[ -0.038696058094501495, 0.37891504168510437, 0.6401835680007935, -0.37238946557044983, 0.10873059183359146, 0.4642620384693146, -0.0019558388739824295, -0.6758604049682617, -0.4640308916568756, -0.5155587792396545, -0.12550625205039978, 0.5553399920463562, -0.5406901240348816, 0.53141528367...
int32_t numMbPerLine = uvTileToMb[tileIndex].numMBs / cntMbLines; int32_t mbLine = 0; while ( mbLine < cntMbLines ){ assert( mb_y < hMacroblocks && mb_x < wMacroblocks ); // cb/cr int32_t mbIndex = 0;
[ -0.28884372115135193, 0.17660751938819885, 0.31995388865470886, -0.3701927959918976, 0.039681628346443176, 0.3114141821861267, 0.07934436202049255, -0.4484994113445282, -0.2191871553659439, -0.3706789016723633, -0.34983816742897034, 0.7245964407920837, -0.35183191299438477, 0.1837464421987...
while ( mbIndex < numMbPerLine ){ assert( mb_y < hMacroblocks && mb_x < wMacroblocks ); const int32_t dstOffsetUV = (mb_y * stride_u + mb_x)<<3; int32_t _l = 0;
[ -0.19283775985240936, -0.3600391745567322, 0.4819086194038391, -0.3869389295578003, -0.04622293636202812, 0.14505982398986816, 0.5071999430656433, -0.23377907276153564, -0.14483293890953064, -0.291079044342041, -0.41011807322502136, 0.7450665831565857, -0.3279431164264679, 0.06563822925090...
while( _l < 8 ){ const int32_t _offset = dstOffsetUV + _l * stride_u; uint8_t* _u = dst_u + _offset; uint8_t* _v = dst_v + _offset;
[ -0.1720842868089676, -0.5404495000839233, 0.5873774290084839, -0.37303686141967773, -0.041010696440935135, 0.30495938658714294, 0.25349849462509155, -0.16456300020217896, -0.2688077688217163, -0.412429541349411, -0.12995502352714539, 0.5327536463737488, -0.5381177067756653, -0.234809115529...
uint8_t* _src_vu = puv+(mbIndex<<4)+(_l<<6); int32_t _interlace = 0; for ( int32_t ichroma = 0; ichroma < 8; ++ichroma ){ _u[ichroma] = _src_vu[_interlace++];
[ -0.23416398465633392, -0.41073092818260193, 0.8201374411582947, -0.46234071254730225, 0.059094276279211044, 0.32830727100372314, 0.3135090470314026, -0.09857574105262756, 0.17548559606075287, -0.48190838098526, -0.32969221472740173, 0.6029772758483887, -0.5345990657806396, 0.37344956398010...
_v[ichroma] = _src_vu[_interlace++]; } ++ _l; } ++ mb_x;
[ -0.11671773344278336, 0.004410091321915388, 0.7009539008140564, -0.5624919533729553, 0.07113976031541824, 0.22231709957122803, 0.2599751651287079, -0.012101180851459503, 0.10793687403202057, -0.5153570771217346, -0.15268278121948242, 0.6464787125587463, -0.6829167008399963, 0.5922359824180...
++ mbIndex; } puv += 64*8; mb_x = startMbX; ++ mb_y; ++ mbLine; } if ( cntMbLines < 4 ){
[ -0.3179929852485657, 0.08964288234710693, 0.7356641292572021, -0.390321284532547, 0.15510369837284088, 0.33888036012649536, 0.31848183274269104, 0.12684811651706696, -0.24912770092487335, -0.3261492848396301, -0.45795872807502747, 0.3967171013355255, -0.27801063656806946, 0.241975471377372...
puv += 64*(4-cntMbLines)*8; } ++ tileIndex; } return 0; } /////////////////////////////////////////////////////////////////////// ```
[ -0.11199075728654861, -0.053303949534893036, 0.7492006421089172, -0.23339280486106873, -0.21731631457805634, 0.14754368364810944, -0.06863361597061157, -0.2473410815000534, 0.05056620016694069, -0.6139616370201111, -0.2410539835691452, 0.43610548973083496, -0.35903891921043396, 0.081989198...
Im developing an Android app, and I need to periodically (a few times per second) execute some code from the UI thread, the Activity class. I have seen similar problems like here [Android repetitive task](https://stackoverflow.com/questions/2517468/android-repetitive-task) but what I need is to set my Activity as a li...
[ 0.35196810960769653, 0.13049620389938354, 0.46784839034080505, -0.20959916710853577, 0.06250707805156708, 0.05127839744091034, 0.3974020183086395, -0.2067830115556717, -0.2751554846763611, -0.6673450469970703, -0.009648123756051064, 0.5266849398612976, -0.40166357159614563, -0.150174513459...
//more things } ``` Is there some recomended way to do this? Your answer is there: <http://developer.android.com/resources/articles/timed-ui-updates.html>
[ 0.5211273431777954, 0.01811189018189907, 0.46252262592315674, 0.14672298729419708, 0.19893373548984528, 0.03913471847772598, 0.18932382762432098, 0.0315653495490551, -0.13404253125190735, -0.7417263388633728, -0.1362004429101944, 0.47209808230400085, -0.08606880903244019, -0.33956551551818...
I have a very complicated xml and I need the single value from ``` selectSingleNode(@"/TimeInTransitResponse/TransitResponse/ServiceSummary/EstimatedArrival/BusinessTransitDays").InnerText) ``` but there are about 7 entries with this location so it only returns the first one i need the last. Use `SelectNodes` ins...
[ -0.2676677703857422, -0.21146149933338165, 0.9922851324081421, -0.12112094461917877, -0.16419099271297455, 0.17362570762634277, 0.0035109855234622955, -0.3819581866264343, -0.037470243871212006, -0.6232332587242126, -0.1667170226573944, 0.2586232125759125, 0.06532957404851913, 0.1949782371...
Is there a way to change colors of an image much like in Flash/ActionScript with using only HTML5/CSS/JavaScript? Here's an example in Flash: <http://www.kirupa.com/developer/actionscript/color.htm> My guess would be that it's only possible with Canvas, as far I know; but I'd like to know if there's another solution ...
[ 0.15309464931488037, 0.04320584982633591, 0.013194224797189236, -0.16119429469108582, -0.26364389061927795, 0.20610487461090088, 0.12397504597902298, -0.10353519767522812, -0.21970880031585693, -0.9081423282623291, -0.1780703067779541, 0.4291563332080841, -0.2499421238899231, -0.3622570335...
to manage some low-level details yourself. There's no automatically expanding string type in the base language/library although no doubt there are some good third-party ones around (["better strings"](http://bstring.sourceforge.net/), for example, since it doesn't drag in a lot of other stuff you don't want, particular...
[ 0.23622462153434753, 0.018308551982045174, -0.04588283970952034, 0.022099100053310394, 0.15820147097110748, -0.1643114984035492, 0.37785544991493225, 0.24666385352611542, -0.29722312092781067, -0.683951199054718, -0.3021591007709503, 0.76558518409729, -0.11021853983402252, -0.4075979888439...
Just trying to make a simple WebView Mac app. I've imported WebKit.h, declared a WebView @property, and @synthesized it in the .m, but when I go into IB and the connections tab, my outlet, say MyWebView, is not listed. .h ``` #import <Cocoa/Cocoa.h> #import <WebKit/WebKit.h> @interface MyAppDelegate : NSObject <NSA...
[ 0.4734004735946655, 0.26601412892341614, 0.3639538586139679, -0.11094381660223007, 0.0462515726685524, 0.19858737289905548, 0.35403525829315186, -0.18547824025154114, -0.17314617335796356, -0.8373124003410339, -0.14176517724990845, 0.5582287311553955, -0.3329329192638397, -0.02481077238917...
Management API, which is a read-only API for account and configuration data.
[ -0.08869840949773788, 0.08015157282352448, -0.11574598401784897, 0.3071853220462799, 0.27330222725868225, -0.10325279831886292, -0.02796497568488121, -0.12739036977291107, -0.07233327627182007, -0.4811774790287018, -0.365944504737854, 0.8970168232917786, -0.10639461874961853, -0.0014928157...
I have a JFrame application working nicely. However now I'd like to run it on the web as an Applet. This is what I've done: ``` import MyPackage.*; import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; public class MyName extends JApplet { public void init() { se...
[ 0.5381407737731934, -0.04493541270494461, 0.5515008568763733, -0.2937069237232208, 0.013201008550822735, 0.08795011788606644, 0.5220736861228943, -0.5866149067878723, 0.0214240662753582, -0.9606337547302246, 0.03233983367681503, 0.44988206028938293, -0.31745511293411255, 0.1036269888281822...
html file to run this applet? Also, I have an external jar file that the applet will need. Does the applet not need a main method? Check out [Getting Started With Applets](http://docs.oracle.com/javase/tutorial/deployment/applet/getStarted.html). It covers relevant [methods](http://docs.oracle.com/javase/tutorial/deplo...
[ 0.007041354663670063, 0.473368763923645, 0.19943347573280334, -0.4701194763183594, -0.07002262026071548, 0.17739520967006683, 0.39172545075416565, -0.1909828782081604, -0.38985106348991394, -0.5698657035827637, -0.1496991068124771, 0.5079865455627441, -0.3256909251213074, -0.22278787195682...
I'm trying to program my application to upload images and then store them in a folder. It prints out the details of the file but doesn't store it into the folder. I am following the User Guide and answers on here and I still don't know what I am doing wrong? ``` import java.io.File; import java.util.List; import java...
[ 0.4023585617542267, 0.2982753813266754, 0.33474403619766235, -0.08645391464233398, -0.07843416929244995, 0.2856411635875702, 0.5655126571655273, -0.5674600601196289, -0.19655542075634003, -0.5871290564537048, -0.18646381795406342, 0.6632163524627686, -0.6919796466827393, 0.0894073247909545...
new DiskFileItemFactory(); String contextRoot = request.getServletContext().getRealPath("/"); factory.setRepository(new File(contextRoot + "WEB-INF/tmp")); ServletFileUpload upload = new ServletFileUpload(factory); try { List<FileItem> items = upload.parseRequest(request); ...
[ -0.16526751220226288, -0.38406914472579956, 0.8086998462677002, -0.2244756817817688, 0.1048264354467392, 0.491685688495636, 0.19357244670391083, -0.6367276906967163, -0.520917534828186, -0.6847547888755798, -0.5376086831092834, 0.6960799694061279, -0.4766775071620941, 0.28226354718208313, ...
// Process form file field (input type="file"). System.out.println("Field name: " + item.getFieldName()); System.out.println("File name: " + item.getName()); System.out.println("File size: " + item.getSize());
[ -0.126589834690094, -0.23718686401844025, 0.5968384742736816, -0.39555761218070984, 0.04350726306438446, 0.2398894876241684, 0.08019927889108658, -0.4006597399711609, -0.2935451865196228, -0.6278290748596191, -0.5299811959266663, 0.19274061918258667, -0.18434308469295502, 0.450668841600418...
System.out.println("File type: " + item.getContentType()); String fileName = item.getName(); try { File saveFile = new File(fileName);
[ -0.15760907530784607, -0.5347551107406616, 0.47468653321266174, -0.14847643673419952, 0.4235783517360687, 0.35547202825546265, 0.24083444476127625, -0.14024056494235992, -0.4253969192504883, -0.7017695903778076, -0.5265505313873291, 0.46989262104034424, -0.3945747911930084, 0.5003729462623...
saveFile.createNewFile(); item.write(saveFile); } catch (Exception e) { // TODO Auto-generated catch block
[ -0.0113059151917696, -0.38314089179039, -0.05616215616464615, -0.2840058207511902, 0.3542330861091614, 0.051086410880088806, 0.4171502888202667, -0.308213472366333, -0.08955440670251846, -0.2578396201133728, -0.21654272079467773, 0.5356066823005676, -0.4580775201320648, -0.0190095659345388...
e.printStackTrace(); } } } } catch (FileUploadException e) { try {
[ 0.01384960301220417, -0.5467008948326111, 0.19504810869693756, -0.1519245058298111, 0.3748776316642761, -0.10221761465072632, 0.2783542573451996, -0.38300183415412903, 0.011659315787255764, -0.4432617127895355, -0.24538247287273407, 0.49961620569229126, -0.4989035427570343, -0.130670577287...
throw new ServletException("Cannot parse multipart request.", e); } catch (ServletException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } return "profile"; } } ``` If you don't have any error then this
[ 0.13485898077487946, -0.27547386288642883, 0.17164559662342072, -0.19919422268867493, -0.10556355863809586, -0.10412559658288956, 0.45506787300109863, -0.5612316727638245, -0.08317138254642487, -0.6316767334938049, -0.12890180945396423, 0.4906032979488373, -0.38432326912879944, -0.07577352...
piece of code: ``` File saveFile = new File(fileName); saveFile.createNewFile(); item.write(saveFile); ``` creates a new file with the name `fileName` (that is only a simple name like "file.txt") in the current folder. If you want to know which is your current workfolder try to print this: ``` System.out.println("...
[ 0.34432923793792725, -0.04362564533948898, 0.4007158577442169, 0.00735415518283844, 0.28030115365982056, -0.02873966470360756, 0.1936587244272232, -0.17102715373039246, -0.29054924845695496, -0.9470177888870239, -0.34387466311454773, 0.38338541984558105, -0.21614864468574524, 0.22504276037...
I'm interested in writing games in Java and wondered if Minecraft is written purely using the standard JDK or whether it uses open source (or commercial for that matter) libraries. Yes. Minecraft uses the [LWJGL](http://lwjgl.org/) library for graphics and sound.
[ 0.3680441081523895, 0.46132615208625793, -0.11036580801010132, 0.07962775230407715, -0.07152486592531204, -0.1479160487651825, -0.3368769586086273, 0.3531077802181244, 0.06543182581663132, -0.5821017026901245, 0.1474839597940445, 0.6375211477279663, 0.0061790612526237965, -0.14062845706939...
I want to merge 2 arrays into 1. For example: * A1= 1,1 * A2= 2,2 * then A3 = 1,2,1,2 For example: * A1= 1 * A2= 2,2,2,2 * then A3 = 1,2,2,2,2 For example: * A1= 1,1,1,1 * A2= 2,2 * then A3 = 1,2,1,2,1,1 In last example, when I ran my code, I got 1,2,1,2,1,20. In the second last, I got 1,2,32767,2,2. So I guess...
[ 0.22067804634571075, -0.014199542813003063, 0.0978165939450264, -0.49080315232276917, -0.19335544109344482, 0.45565107464790344, 0.34417232871055603, -0.508182942867279, -0.6921938061714172, -0.3778854012489319, -0.025495512410998344, 0.02028391696512699, -0.3804476261138916, -0.1451429426...
A3 for example, arr1 = A1..etc, all sizes are defined int index; int index1=0; int index2=0; for(index = 0; index< sizeofArr3 ; index++) { if(index%2==0) { if(index1<=sizeofArr1) *(p3++) = arr1[index1++]; else *(p3++) = arr2[index2++]; } else { if(in...
[ -0.48860716819763184, -0.05926449969410896, 0.3530019521713257, -0.6252805590629578, -0.6215506792068481, 0.46786004304885864, 0.5380412340164185, -0.6357409954071045, -0.6342130303382874, -0.036595772951841354, -0.121982641518116, 0.14546795189380646, -0.6115046143531799, -0.1771887838840...
*(p3++) = arr2[index2++]; else *(p3++) = arr1[index1++]; } } ``` It's this line: ``` if (index1 <= sizeofArr1) ``` and the equivalent one for `index2` and `sizeofArr2`. You should be using `<` rather than `<=`. The reason has to do with C's zero-based arrays. For an array of size `N`, the e...
[ -0.09564154595136642, 0.10722938179969788, 0.3116312325000763, -0.3647010922431946, -0.050660911947488785, -0.025548094883561134, 0.09671972692012787, -0.4093054234981537, -0.227395698428154, -0.2949911057949066, -0.2117513120174408, 0.6435355544090271, -0.3963479995727539, -0.093093901872...
and including destruction of the universe. I guess you're lucky that it just decided to give you results that were slightly awry :-)
[ 0.5118239521980286, 0.41043999791145325, -0.21661169826984406, 0.36201366782188416, 0.048043303191661835, -0.271090030670166, 0.028134986758232117, 0.5625041723251343, -0.38721737265586853, -0.10741006582975388, -0.11855891346931458, 0.31519216299057007, -0.3300755023956299, 0.684804022312...
What I'd like to do is a strict search of the months jan feb mar apr ...etc inputted into a text field formatted as mmmyyyy (ex:jan1993). I'd like to validate this so that the user can input either all lowercase or all uppercase (jan/JAN). what I did doesn't seem to work. ``` var firstM =month.charAt(0,2); ...
[ 0.0822286307811737, 0.5064233541488647, 0.6900995373725891, -0.3982405364513397, 0.034522056579589844, 0.2831759750843048, 0.3331759572029114, 0.20272941887378693, -0.4437699019908905, -0.2175510823726654, 0.09216568619012833, 0.23573273420333862, 0.034368861466646194, 0.35806533694267273,...
"mar" : "MAR", "apr" : "APR", "may" : "MAY", "jun" : "JUN", "jul" : "JUL", "aug" : "AUG", "sep" : "SEP",
[ -0.3044035732746124, 0.19803254306316376, 0.620612382888794, -0.5489653944969177, -0.38213208317756653, 0.5756447911262512, 0.2793270945549011, 0.7978935241699219, -0.603066623210907, -0.11619717627763748, -0.6353293061256409, 0.2396189123392105, 0.1330542266368866, 0.08064548671245575, ...
"oct" : "OCT", "nov" : "NOV", "dec" : "DEC" }; else if (firstM !== months[firstM]) { errMessages += "<li class='b1'> Date of Birth must start with 3 letter month</li>\n"; errMessages += "<li class='b2'> ex: mmmyyy / JAN1993</li>\n"; } ``` I'm still ...
[ 0.03537793084979057, -0.07723260670900345, 0.7082298994064331, -0.2688845098018646, 0.15532000362873077, 0.34677213430404663, 0.12526153028011322, 0.14876991510391235, -0.5266547203063965, -0.1643180102109909, -0.3372083902359009, 0.103573739528656, 0.3555249571800232, 0.6340669393539429, ...
use to figuring out how to utilize .charAt with the "jan" : "JAN" i figured if i did it like this, the user could input either all lowercase or all uppercase and it would validate, but the error keeps coming up no matter what i do. Any help would be appreciated. Without regular expressions, the function might look lik...
[ 0.047823138535022736, 0.09873887896537781, 0.43439313769340515, -0.43163660168647766, -0.09811621159315109, 0.38834348320961, 0.2645663619041443, -0.04059968888759613, -0.12318366765975952, -0.40026652812957764, -0.007811184506863356, 0.35298892855644226, -0.0514790304005146, 0.04952207207...
if (months.indexOf(monthPartOfInput) == -1){ // TODO: Show validation error } } ```
[ 0.06662864983081818, 0.10217905044555664, 0.687690258026123, -0.12946656346321106, 0.5070363879203796, -0.09316600114107132, 0.1811227798461914, -0.07274267822504044, -0.2829826772212982, -0.2671074867248535, -0.2916969358921051, 0.35247039794921875, 0.03223590552806854, 0.3070051372051239...
A friend and I are working on a project on Github and we want it to be on both of our profiles for resumes and stuff. Is this possible? For this project to be considered as one project, one of you must create it, and other one should fork it (not really necessary). Both of you should have full rights on the original re...
[ 0.7064940333366394, -0.12411389499902725, 0.1367698460817337, 0.32537370920181274, 0.2831077575683594, -0.3941156566143036, -0.258036345243454, 0.3367963135242462, -0.028150413185358047, -0.39106348156929016, 0.3334985077381134, 0.40914782881736755, 0.2265230119228363, 0.14293724298477173,...
to have same project on two profiles, and still have them considered as one. Although you can create them individually, but managing both of them may be a bit more of a headache than its worth.
[ 0.6876702308654785, -0.045388609170913696, -0.14364659786224365, 0.32157886028289795, 0.022293556481599808, -0.08912979811429977, 0.10024625062942505, -0.2595035135746002, -0.17753562331199646, -0.8967940807342529, 0.2887808382511139, 0.41785910725593567, 0.12477831542491913, 0.06273559480...
I have a file with a double-linked-list that contains a set of process identifiers and some state information. ``` struct pr7_process { pid_t pid; /* process ID, supplied from fork() */ /* if 0, this entry is currently not in use */ int state; /* process state, your own definition...
[ 0.3958849608898163, 0.25296667218208313, 0.5130377411842346, -0.17654643952846527, 0.2310938835144043, 0.25501397252082825, 0.05839807540178299, -0.19356735050678253, -0.17261731624603271, -0.6584988236427307, -0.018833084031939507, 0.11432097852230072, -0.02511754259467125, 0.672574460506...
*/ struct pr7_process *next; // a pointer to the next process struct pr7_process *prev; }; /* the process list */ struct process_list { struct pr7_process *head; struct pr7_process *tail; }; ``` I have a method to remove an element of my list: ``` { struct pr7_process *cur; for(cur = list->head; cur ...
[ -0.43476372957229614, 0.035797685384750366, 0.7814933061599731, -0.4784908592700958, 0.17404183745384216, 0.33932918310165405, 0.22280360758304596, -0.2748469114303589, -0.2372313141822815, -0.5522556900978088, -0.46688222885131836, 0.4431971609592438, -0.30674099922180176, 0.4689037203788...
STATE_NONE; if(list->head == list->tail) { free(cur); } else { cur->prev->next = cur->next; cur->next->prev = cur->prev;
[ -0.13062983751296997, -0.14627186954021454, 0.45025476813316345, -0.23077748715877533, 0.23718179762363434, -0.07392039149999619, 0.3750447630882263, -0.32361090183258057, -0.0007873824215494096, -0.5278187394142151, -0.41172611713409424, 0.3799068331718445, -0.25989076495170593, 0.4308727...
free(cur); } break; } } } ``` What is wrong with my remove function? I seem to get an infinite loop when I try to print my list. Previously I thought it was the way I used free() but apparently not from the replies :) Thanks! When you add a node set `next` to `NULL`. Then when y...
[ 0.31545519828796387, 0.1558009386062622, 0.4084535241127014, -0.12755800783634186, -0.17993777990341187, -0.39886438846588135, 0.5267203450202942, -0.23121003806591034, -0.36784273386001587, -0.3881838917732239, -0.296913743019104, 0.4751174747943878, -0.8104561567306519, 0.409736186265945...
free node. Also; free on NULL is an noop. Valgrind is a invaluable tool when working on such things. --- Believe you have to do some more checks; I.e.: ``` struct pr7_process { int pid; ... } const new_proc = { 0, 44, 0, NULL, NULL }; void del(struct process_list *list, int pid) { struct pr7_proce...
[ -0.17891500890254974, -0.36970967054367065, 0.4889220893383026, 0.019652515649795532, 0.22736497223377228, -0.18103882670402527, 0.18996168673038483, -0.25198349356651306, -0.3006049394607544, -0.6297162771224976, -0.48678699135780334, 0.5325088500976562, -0.41025692224502563, 0.2289630919...
if(list->head == list->tail) { free(cur); list->head = NULL; list->tail = NULL; } else if (cur == list->head) {
[ -0.274710088968277, -0.1082414984703064, 0.3105691075325012, -0.036500610411167145, -0.143360897898674, -0.27923208475112915, 0.20407217741012573, -0.32106488943099976, 0.17858463525772095, -0.19153985381126404, -0.4521990716457367, 0.5817058086395264, -0.5100079774856567, 0.16274924576282...
list->head = list->head->next; free(cur); list->head->prev = NULL; } else if (cur == list->tail) { list->tail = cur->prev; free(cur);
[ -0.3032207787036896, -0.2702837586402893, 0.49283742904663086, -0.2856941521167755, 0.005034839268773794, -0.1393539160490036, 0.22847913205623627, -0.38059210777282715, 0.11303713917732239, -0.3441995084285736, -0.5566007494926453, 0.4434525668621063, -0.2915079891681671, 0.27111449837684...
list->tail->next = NULL; } else { cur->prev->next = cur->next; cur->next->prev = cur->prev; free(cur); } break;
[ -0.021868837997317314, -0.2882067859172821, 0.23075644671916962, -0.19444391131401062, 0.10594205558300018, -0.14929768443107605, 0.4039953947067261, -0.3239591717720032, -0.13299861550331116, -0.12385774403810501, -0.5123730897903442, 0.40212979912757874, -0.264956533908844, 0.32675862312...
} } } ``` --- Given that you build the list *something* like i.e.: ``` int push(struct process_list *list, int pid, int state) { if (list->head == NULL) { /* or move this to where ever you see fit */ if ((list->head = malloc(sizeof(struct pr7_process))) == NULL) return -1; list-...
[ 0.04166960343718529, -0.31398361921310425, 0.7466794848442078, -0.367904931306839, 0.2627740204334259, 0.030352160334587097, 0.1289747953414917, -0.5428552031517029, -0.31109702587127686, -0.8568881750106812, -0.3490690290927887, 0.5340126752853394, -0.37903085350990295, 0.0995029285550117...
if ((list->tail->next = malloc(sizeof(struct pr7_process))) == NULL) return -1; *list->tail->next = new_proc; list->tail->next->prev = list->tail; list->tail = list->tail->next; } list->tail->pid = pid; list->tail->state = state; return 0; } void wipe(struct proces...
[ -0.08448883146047592, -0.37315863370895386, 0.5721306204795837, -0.3023661673069, 0.28902724385261536, -0.016688263043761253, 0.4169914424419403, -0.17775878310203552, 0.0776117742061615, -0.9280827045440674, -0.5245835781097412, 0.4473942816257477, -0.1295708268880844, -0.0092950463294982...
node = list->tail->prev; free(list->tail); list->tail = node; } free(list->head); list->head = NULL; list->tail = NULL; } void prnt(struct process_list list, int dir) { if (dir == 1) { while (list.head != NULL) { printf("%4d: %d\n", list.head->pid, list.head->sta...
[ -0.31287193298339844, -0.4792805016040802, 0.44573450088500977, -0.3370388448238373, 0.19578108191490173, 0.17873887717723846, 0.4067143499851227, -0.3872668147087097, -0.010451405309140682, -0.5645538568496704, -0.528224766254425, 0.25845861434936523, -0.3863338828086853, 0.30981153249740...
} } else { while (list.tail != NULL) { printf("%4d: %d\n", list.tail->pid, list.tail->state); list.tail = list.tail->prev; } } } int main(void) { struct process_list list = {NULL, NULL}; push(&list, 331, 2); /* if(push() != -1) ... */ push(&list, 332, 66); ...
[ -0.04354481026530266, -0.543065071105957, 0.5823376774787903, -0.6310965418815613, 0.24625563621520996, 0.5128042697906494, 0.3582690358161926, -0.3162533640861511, -0.16656412184238434, -0.3312332332134247, -0.25807642936706543, 0.4689861238002777, -0.469534695148468, 0.16784878075122833,...
prnt(list, 1); del(&list, 332); prnt(list, 1); wipe(&list); prnt(list, 1); return 0; } ```
[ 0.139226034283638, -0.20382162928581238, 0.5145254135131836, -0.3215882480144501, 0.1638641506433487, 0.1559319794178009, 0.09081326425075531, -0.262978732585907, -0.2960207462310791, -0.3832062780857086, -0.3375391364097595, 0.7470027208328247, -0.390744149684906, 0.0625246912240982, 0....
I am writing a C function that will be invoked from assembly code. (Specifically, I want to do some checking job in the path of system call handling in linux kernel, so I will call the c function before a system call is dispatched in entry\_32.S) I am confused with the "asmlinkage" modifier when defining my c functio...
[ 0.19575759768486023, 0.16164201498031616, 0.49346819519996643, -0.13240088522434235, -0.0555599220097065, -0.2426387369632721, 0.12583594024181366, -0.22825008630752563, -0.24361038208007812, -0.418618381023407, -0.19581320881843567, 0.6669566631317139, -0.44534677267074585, 0.108045451343...
"asmlinkage" when defining a c function, does it imply \_cdecl or fastcall? (3) if the default calling convention is cdecl, why is asmlinkage needed, considering cdecl is equal to asmlinkage modifier? (am I correct here?) (4) why are those system call functions all declared with asmlinkage. Can we copy the parameters...
[ 0.051069580018520355, -0.09367956966161728, 0.4338083565235138, 0.04911680519580841, -0.16504967212677002, -0.31557443737983704, -0.0339188426733017, -0.15389110147953033, -0.3105390965938568, -0.36068809032440186, -0.2203962206840515, 0.6990470290184021, -0.4046812951564789, 0.02558591961...
can refer to for such mix assembly/c programming? After several hours' research, I got the following empirical points: **(1) Is asmlinkage required when defning such a function that will be invoked from assembly code?** No. Actually the fastcall is frequently used. For example, in entry\_32.S, if you search "call",...
[ 0.6163707375526428, -0.0648108497262001, 0.3939964473247528, -0.29573386907577515, 0.13933192193508148, -0.01708625629544258, 0.2296627163887024, -0.24674256145954132, -0.049249473959207535, -0.5861838459968567, -0.295776903629303, 0.9529504179954529, -0.6840217113494873, -0.20107582211494...
traps_32.c*/ fastcall unsigned long patch_espfix_desc(unsigned long uesp, unsigned long kesp) ``` **(2) what is the default calling convention in gcc. If I omit "asmlinkage" when defining a c function, does it imply \_cdecl or fastcall?** **(3) if the default calling convention is cdecl, why is...
[ 0.2895268499851227, -0.012385358102619648, 0.15033777058124542, -0.09231152385473251, 0.04870409891009331, -0.20564338564872742, 0.08530881255865097, -0.2566269636154175, -0.3609839379787445, -0.33109036087989807, -0.21451781690120697, 0.6808058023452759, -0.6384829878807068, -0.3982233405...
will take care of the caller and callee for parameter passing. The default calling convention can be specified when compiling). However, for C functions invoked from assembly code, we should explicitly declare the function's calling convention, because the parameter passing code in assembly side has been fixed. For exa...
[ 0.11324508488178253, -0.11033101379871368, 0.40842869877815247, -0.2257739156484604, -0.02080640383064747, -0.13716845214366913, 0.15843835473060608, -0.0189066119492054, -0.22394312918186188, -0.560463011264801, -0.30555975437164307, 0.8610561490058899, -0.5866223573684692, -0.14761015772...
to refer to.*
[ 0.5003595948219299, 0.30581754446029663, 0.018704844638705254, -0.10863251239061356, -0.5097993016242981, 0.23723283410072327, 0.32906755805015564, 0.2573537230491638, -0.3902464509010315, -0.19390492141246796, -0.2090008705854416, 0.006671853829175234, -0.16646870970726013, 0.459270119667...
I'm having some difficulty with backbone js. Currently, I have a rails app that is giving information to backbone via json. It appears that this is all function correctly because when I navigate to the URL, the json data is displayed. I'm having difficulty when I am using the fetch method. Below is my code: ``` jQuery...
[ 0.10096291452646255, -0.18459452688694, 0.40495291352272034, -0.02916683256626129, -0.2764979600906372, -0.3831614851951599, 0.41712602972984314, 0.15753619372844696, -0.5092533230781555, -0.8047779202461243, -0.012797964736819267, 0.2765442132949829, 0.21078938245773315, 0.350477725267410...
url: '/events/get_events' model: Event class EventView extends Backbone.View el: $ 'body' model: Event initialize: (options) -> _.bindAll @ @event = new Event @event.fetch() @render() render: -> $(@el).append "<span>#{@event.get 'name'}" class EventRouter extends...
[ -0.14368225634098053, -0.31687483191490173, 0.5527088046073914, -0.16133154928684235, -0.19371767342090607, 0.06827429682016373, 0.01407534908503294, -0.22141490876674652, -0.19023174047470093, -0.7672211527824402, -0.33873042464256287, 0.29625609517097473, -0.07311499118804932, 0.18792249...
'dashboard' : 'render_data_view' 'default' : 'default_view' home: -> console.log "home" render_data_view: -> event_view = new EventView default_view: -> console.log 'the default view was hit' initialize: -> Backbone.history.start(pushState: true) event_router = new...
[ -0.35001662373542786, -0.2613767683506012, 0.5773909091949463, -0.14189249277114868, -0.038502927869558334, 0.22218945622444153, 0.01050629559904337, -0.048484787344932556, -0.27886417508125305, -0.7461718320846558, -0.08102262765169144, 0.538506031036377, -0.0452488511800766, 0.1598738729...
np.int32) n = len(in_array) mymodule.c_func(<int *> in_array.data, n, <int *> out_array.data) return out_array ```
[ -0.492714524269104, -0.04383810982108116, -0.018738236278295517, -0.016495605930685997, -0.007222048006951809, 0.16195392608642578, 0.15919581055641174, -0.1829485148191452, -0.28486132621765137, -0.2865909934043884, -0.09491308033466339, 0.37844955921173096, -0.3327212333679199, 0.2081773...
It's been a while since I've been this stumped. The crazy thing is, I've done this several times in other areas of my code, so it's almost complete copy and paste, but except this code isn't working properly. so I am somehow missing something extremely obvious. ``` public class RoomCache { private ConcurrentDicti...
[ 0.005611718166619539, 0.27011504769325256, 0.7031872868537903, -0.03200937807559967, 0.24521900713443756, -0.10777956992387772, 0.5175735354423523, 0.031192515045404434, -0.5900483131408691, -0.4422808587551117, -0.21567372977733612, 0.5698404312133789, -0.3257327973842621, 0.4774894118309...
{ _dicOnlineTraders.AddOrUpdate(sRoom, new List<string>() { sTrader }, (x, y) => UpdateRoomOnlineTraderList(sTrader, y)); } private List<string> UpdateRoomOnlineTraderList(string sTrader, List<string> aryTraderList) { try { if (!aryTraderList.Contains(sTrader)) ...
[ -0.2534242868423462, -0.12613312900066376, 0.7716281414031982, -0.1750473529100418, 0.13672813773155212, 0.36576682329177856, 0.6278846859931946, -0.9084945321083069, 0.12872754037380219, -0.5079908967018127, -0.38145726919174194, 0.20398880541324615, -0.2960083782672882, 0.112872503697872...
catch (Exception ex) { _logService.LogError(ex); return aryTraderList; } } } ``` The above class is instantiated in the Application\_Start() global.asax.cs like this: ``` public static RoomCache RoomCache; RoomCache = new RoomCache(); ``` So now between page loads my dic...
[ -0.07440177351236343, 0.05497271195054054, 0.7723233699798584, -0.30087313055992126, 0.19422155618667603, -0.04411110281944275, 0.3680157959461212, -0.1524847149848938, -0.2998129725456238, -0.49541985988616943, -0.26434409618377686, 0.227837473154068, -0.3478332459926605, 0.39036226272583...
time i load the page it's gone and I am 100% there is nothing else removing this value from the dictionary. How is my dictionary not retaining the value between page loads? the key is still retained but the value just vanishes. i'm baffled. You need to specify in the header that this is an html email so it will be in...
[ 0.26136985421180725, 0.28683918714523315, 0.7712916135787964, -0.14168120920658112, 0.04092345014214516, -0.19904173910617828, 0.6179578900337219, 0.1529834270477295, -0.14078019559383392, -0.7825018763542175, -0.17939898371696472, 0.5058150887489319, -0.07493587583303452, 0.23645192384719...
confirm your email address ."; $content.="<br /><br />Please note - you must complete this last step. You will only need to visit this URL once to confirm your email address.<br /><br />To complete your registration,"; $content.=" please visit this URL:<br /><a href='$link1' target='_blank'> $link1 </a><br /><br /><br ...
[ 0.4235580861568451, 0.378658264875412, 0.9714125990867615, -0.0220195185393095, 0.30548617243766785, -0.531182587146759, 0.4374506175518036, -0.18934938311576843, -0.04713686183094978, -0.7136608958244324, -0.28122228384017944, 0.41636350750923157, 0.08238926529884338, -0.13542534410953522...
I have two embedded systems running Angstrom Linux that are connected via a Ethernet cross-over cable. I'm developing a C program that will allow the two systems to communicate with each other. When the two computers talk to each other they first need to verify the identity of the other and encrypt the connection. I'm...
[ 0.4421430230140686, 0.2602020800113678, 0.20605583488941193, 0.05062964931130409, 0.23487348854541779, -0.1930704265832901, -0.01883704587817192, 0.29100877046585083, 0.08577960729598999, -0.6451120972633362, -0.18259087204933167, 0.5769803524017334, -0.20907597243785858, 0.173259004950523...
to get my embedded systems working, but haven’t been successful. The in the SSL\_CTX \*initialize\_ctx which is in common.c and also load\_dh\_params(ctx,file) in server.c seem to be the problem areas. Here is my code for common.c with some of my modifications. ``` SSL_CTX *initialize_ctx(keyfile,password) char *keyf...
[ -0.11441022157669067, 0.11770588904619217, 0.8373775482177734, -0.0834936648607254, 0.09387319535017014, 0.030948063358664513, 0.28825563192367554, -0.3990498185157776, -0.26549166440963745, -0.7781694531440735, -0.28945276141166687, 0.5590941905975342, -0.2916279733181, 0.2333427220582962...
berr_exit("Can't read certificate file"); debuglocation(__LINE__,__FILE__); pass=password; /* TODO need to put a password on the key*/ //SSL_CTX_set_default_passwd_cb(ctx,password_cb); //if (!(SSL_CTX_use_PrivateKey_file(ctx,keyfile,SSL_FILETYPE_PEM))) //http://www.openssl.org/docs/ssl/SSL_CTX_use_certificate.html#N...
[ -0.17306484282016754, 0.2679786682128906, 0.7530728578567505, -0.10723613947629929, 0.1674155592918396, 0.10659344494342804, 0.27959221601486206, -0.3973032534122467, -0.035876307636499405, -0.47145020961761475, -0.42299985885620117, 0.7288459539413452, -0.16327282786369324, 0.212134569883...
is the server.c ``` void load_dh_params(ctx,file) SSL_CTX *ctx; char *file; { DH *ret=0; BIO *bio; //http://www.openssl.org/docs/crypto/BIO_s_file.html // opens a file just like fopen with the second parameter as the type of open. Here it is read 'r'. if ((bio=BIO_new_file(file,"r")) == NULL) berr_exit("Couldn't op...
[ -0.1775878667831421, 0.11350081861019135, 0.6921922564506531, -0.27533942461013794, -0.2476789355278015, 0.08918767422437668, 0.4573597013950348, -0.3651151657104492, -0.37121275067329407, -0.5215652585029602, -0.40997567772865295, 0.33826807141304016, -0.44208914041519165, 0.3174625635147...
make the needed certificates. It seemed like RSA would work well if both the embedded devices had one public and one priviate key, so I tried following <http://www.devco.net/archives/2006/02/13/public_-_private_key_encryption_using_openssl.php> and made a script to make them for me. ``` openssl genrsa -out private.pem...
[ 0.22914040088653564, 0.44384244084358215, 0.4121836721897125, 0.011704537086188793, -0.21953819692134857, 0.03373407572507858, 0.24517196416854858, -0.33138149976730347, -0.24654436111450195, -0.37632957100868225, 0.0034967868123203516, 0.5101203918457031, -0.15511976182460785, -0.13222581...
will be interpreted as html rather than plain text. <http://php.net/manual/en/function.mail.php> ``` $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $content="Dear $name, <br /><br />Thank you for registering at NAME. Before we can activate your account o...
[ 0.3874760866165161, 0.3555322289466858, 0.8610036969184875, -0.1693456918001175, 0.23856177926063538, -0.5115675926208496, 0.5019412636756897, -0.037829477339982986, -0.24670715630054474, -0.6554676294326782, -0.31351736187934875, 0.25708097219467163, -0.0746728852391243, 0.067833289504051...
of our support staff at&nbsp;<a href='mailto:email@gmail.com'>email</a> or contact our <a href='$link2'>customer care</a>. <br /><br />"; $content.="All the best,<br />NAME<br />"; mail($custArray['email'],"Please Confirm Your Email",$content, $headers); ```
[ 0.22081488370895386, 0.417720228433609, 1.0354925394058228, -0.14697298407554626, 0.49405327439308167, 0.029907351359725, 0.4506347179412842, -0.05343003198504448, 0.017675941810011864, -0.37344804406166077, -0.6205535531044006, 0.6961472034454346, 0.03351108357310295, -0.2670738101005554,...
I'm using Visual Studio 11 in Windows8. And setting the data trigger in a Grid Application (Metro) shows me this error in XAML: > the attachable property triggers was not found in style ``` <Image Stretch="UniformToFill"> <Image.Style> <Style TargetType="Image"> <Setter Property="Source" Va...
[ 0.11260733008384705, -0.27335187792778015, 0.5319675803184509, -0.03610575199127197, -0.08744743466377258, -0.15776465833187103, 0.15442761778831482, -0.40980735421180725, -0.24517853558063507, -0.9776069521903992, -0.000027178395612281747, 0.6722902059555054, -0.2560991048812866, -0.23987...
<Setter Property="Source" Value="Images/Default.png"/> </DataTrigger> </Style.Triggers> </Style> </Image.Style> </Image> ``` Why show me this? Triggers [aren't supported](http://social.msdn.microsoft.com/Forums/en-GB/winappswithcsharp/thread/77604041-b991-4f1e-9adb-78c701ac4...
[ 0.043792176991701126, -0.17115145921707153, 0.23774535953998566, 0.17065079510211945, -0.038098935037851334, -0.2378963977098465, 0.1009807139635086, -0.28339502215385437, -0.357617050409317, -0.5377618670463562, -0.03390002250671387, 0.51006680727005, -0.46460893750190735, -0.033446151763...
I have a question regarding google maps and event handling/listening. Using jQuery and google maps v3, I am able to place a map marker and an event listener that opens an infobubble when the user clicks on the marker. What I'd like to do (but so far haven't been able to figure out) is add another event handler to the ...
[ 0.14829832315444946, -0.019592532888054848, 0.11473207175731659, 0.1251666247844696, -0.06932715326547623, -0.12003003805875778, -0.11812307685613632, 0.0026545014698058367, -0.06828012317419052, -0.6010962128639221, 0.20995868742465973, 0.6084802150726318, -0.00328499055467546, -0.0792634...
thanks in advance for any help ``` function addMarker(data) { var myLatlng = new google.maps.LatLng(data.Latitude, data.Longitude); var title = data.title? data.title: ""; var icon = $('#siteUrl').val() + 'img/locate.png'; var bubbleContentString = "<span class=\"bubble-details-button\">Get Details about ...
[ -0.02029554918408394, -0.045753154903650284, 1.0966044664382935, 0.4061150550842285, 0.24593113362789154, -0.12790833413600922, 0.3509274125099182, -0.020404638722538948, 0.06896839290857315, -0.6743612885475159, -0.3505094647407532, 0.4576891362667084, 0.04569421708583832, 0.0233013052493...
title: title, icon: icon }); addListenerToMarker(myMarker, myInfoBubble); markerSet.push(myMarker, myInfoBubble); } function addListenerToMarker(marker, bubble){ console.log($(bubble.getContent()).find('.bubble-details-button')[0]); google.maps.event.addListener(marker, 'click', function() {...
[ -0.5294485688209534, -0.29796838760375977, 0.986911416053772, 0.09102829545736313, 0.424104243516922, -0.05145803838968277, 0.05927706137299538, 0.006843863986432552, 0.1693885624408722, -0.619137167930603, -0.7040501832962036, 0.6907313466072083, -0.15673547983169556, 0.4625328481197357, ...
google.maps.event.addDomListener($(bubble.getContent()).find('.bubble-details-button')[0], 'click', function(){ alert("hi"); }); }); bubble.open(map, marker); } }); } ``` You are trying to add `"click"` event on element ,which is
[ -0.27123865485191345, -0.2403171807527542, 0.5758792757987976, -0.20214331150054932, 0.42285093665122986, -0.22118966281414032, 0.011958606541156769, -0.08538059145212173, -0.03577209636569023, -0.7084107398986816, -0.45191526412963867, 0.645416259765625, -0.5697651505470276, -0.1784221976...
not `DOM Element`. `$('.bubble-details-button')` is not `DOM Element` (it is a wrapper of `DOM Element`), but `$('.bubble-details-button')[0]` is. On the other hand, when you are trying to add `"click"` event, the content is not created yet. You can work(e.g. add events) with content's elements ,only when they are al...
[ -0.1775836944580078, -0.3019043803215027, 0.8564215302467346, -0.21818630397319794, 0.2823353111743927, -0.40413132309913635, 0.2513720393180847, -0.32974356412887573, 0.06307929754257202, -0.5755595564842224, -0.6108676791191101, 0.784603476524353, -0.44291988015174866, 0.1713359504938125...
}); }); bubble.open(map, mymarker); } ```
[ -0.15541501343250275, -0.20719191431999207, 0.6145652532577515, -0.4111191928386688, 0.5066934823989868, -0.44210994243621826, 0.3016889989376068, 0.13080339133739471, 0.04318772256374359, -0.7797865271568298, -0.45225897431373596, 0.7294177412986755, -0.5433840751647949, 0.303888142108917...
I'm having a major issue with making selectables scroll. The ticket was submitted to Jquery UI a long time ago, and I don't think it's been resolved. I have a number of selectable items on a scrolling selectable div. If I begin selecting, and then scroll up twenty pixels, then the actual selection area of the selectio...
[ 0.07764609903097153, -0.3330743908882141, 0.7437969446182251, 0.14232365787029266, -0.3614361584186554, 0.16376493871212006, -0.45160236954689026, -0.22371500730514526, -0.29783669114112854, -0.9015240669250488, 0.3002263605594635, 0.18821433186531067, -0.008214621804654598, 0.212819367647...