text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Hi hope someone can help, I have the following little problem: Ubuntu server 64bit current release running 2 virtual websites Folder structure **site1** (This site is available to the web) /var/www/site1 **site2** (intranet) /var/www/site2 /var/www/site2/pdf/order\_pdf/ (folders where .pdfs are stored) So from ...
[ 0.2847726047039032, -0.0006195601890794933, 0.4531165659427643, 0.009929047897458076, -0.2247329205274582, -0.11241258680820465, 0.3107198178768158, 0.10232815146446228, -0.17753057181835175, -0.5994738340377808, 0.2376328408718109, 0.15634195506572723, -0.2897621691226959, 0.4645275771617...
name, common name, lineage etc. See <ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump_readme.txt> or if you prefer an online solution, the Entrez Utilities (EUtils) are another option.
[ 0.8245846629142761, -0.13416874408721924, -0.06765963137149811, 0.4202101230621338, 0.28040188550949097, -0.31662970781326294, -0.38532203435897827, -0.08886377513408661, -0.3139924108982086, -0.06393972784280777, -0.3719155192375183, 0.3138255178928375, 0.03724777325987816, -0.00806852150...
i want to find the number of occurrences of some number in any tree.And here is my code but it gives an error which i can not find why it happens. ``` data Tree a = Empty | Node (a ,Tree a,Tree a) deriving (Show) occurst _ Empty = 0 -- this line occurs error occurst a ( Node (x,left,right) ) = if x==Empty then 0 ...
[ -0.3309226930141449, 0.1062353104352951, 0.21262767910957336, -0.09377072006464005, -0.05829561501741409, 0.08204279094934464, 0.49122700095176697, -0.14273302257061005, -0.23781049251556396, -0.4955688416957855, -0.11369074881076813, 0.20158471167087555, -0.42257967591285706, 0.3986984491...
else (occurst a left) + (occurst a right) j=let t = Node (3 , Node (2 , Node (1 , Empty , Empty ) , Node (1 , Empty , Empty )),Node (1 , Node (2 , Node (1 , Empty , Empty ) , Node (1 , Empty , Empty )),Node (1,Empty,Empty))) in occurst 1 t ``` Error message is that: ``` ERROR "treeExample.hs":95 - Cann...
[ -0.3794543445110321, 0.10787707567214966, 0.2206849455833435, -0.3526705205440521, 0.3432835638523102, 0.026595748960971832, 0.4824034571647644, -0.5020747780799866, -0.05106309801340103, -0.57600337266922, -0.41856417059898376, 0.3331608176231384, -0.27160918712615967, -0.0554168410599231...
t ->1 occurst 4 t ->0 ``` Here's a tail recursive version: ``` data Tree a = Empty | Node a (Tree a) (Tree a) deriving (Show) occurst x t = go 0 [t] where go n [] = n go n (t:ts) = case t of Empty -> go n ts Node a l r -> let n' = n + fromEnum (a==x)
[ -0.2111632227897644, -0.3488519787788391, 0.5046522617340088, -0.03211856633424759, -0.07057395577430725, -0.11044894903898239, 0.15714652836322784, -0.1992301493883133, -0.24943208694458008, -0.2426920384168625, -0.4015733003616333, 0.22245192527770996, -0.44289225339889526, 0.16910654306...
in n' `seq` go n' (l:r:ts) j = occurst 1 t where t = (Node 3 (Node 2 (Node 1 Empty Empty) (Node 1 Empty Empty )) (Node 1
[ -0.36162030696868896, -0.09016167372465134, 0.4051000475883484, -0.5601340532302856, 0.08215737342834473, 0.07956285029649734, 0.394975870847702, -0.05516212806105614, -0.1813509315252304, -0.3810737133026123, -0.5019397139549255, -0.04915839061141014, -0.34933245182037354, 0.2746646106243...
(Node 2 (Node 1 Empty Empty) (Node 1 Empty Empty)) (Node 1 Empty Empty))) ```
[ -0.33373939990997314, 0.39811259508132935, 0.35013461112976074, -0.2830906808376312, 0.13488297164440155, -0.24370618164539337, 0.46101507544517517, -0.024596979841589928, 0.02500748075544834, -0.49989092350006104, -0.5953273773193359, 0.295669823884964, -0.5849457383155823, 0.350900202989...
I noticed that [DateChooser](http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/widgets/DateChooser.html) has the method `setFirstDayOfWeek(int)`, but since DateChooser does not extend FormItem, I cannot use it in my DynamicForm instead of [DateItem](http://www.smartclient.com/smartgwt/javadoc/com/smartgwt...
[ 0.3949291706085205, -0.3317458927631378, 0.7182421088218689, -0.19963227212429047, -0.14779816567897797, -0.07320257276296616, 0.16136641800403595, 0.2593946158885956, -0.40964972972869873, -0.36602774262428284, -0.017619797959923744, 0.44175615906715393, -0.2314114272594452, -0.0439651571...
the default locale is "en" which was using a Monday-Sunday week (though it seems the opposite may be the case for you). ``` <extend-property name="locale" values="en_US"/> <set-property name="locale" value="en_US"/> ```
[ 0.11000803858041763, -0.4361417591571808, 0.7296860814094543, -0.22549498081207275, 0.15383873879909515, -0.14493094384670258, 0.34767213463783264, 0.43836379051208496, -0.1880391538143158, -0.4755588471889496, -0.6678854823112488, 0.27175918221473694, -0.1995236873626709, 0.10325339436531...
but cant find any information. Restricted on time. I have a Datagridview, 6 fields. I need to make a Datatable that only contains 2 of those fields. fields are part and pareto. so I need all the records but only want 2 of the fields in my Datatable. Using c sharp .net 4.0 and Microsoft visual studio 2010 You're ri...
[ 0.0771695002913475, 0.20626217126846313, 0.1356743574142456, 0.16276457905769348, -0.012416144832968712, -0.10531077533960342, 0.5799660086631775, -0.2981981337070465, -0.16293808817863464, -0.600292980670929, 0.20093882083892822, 0.5921116471290588, -0.1725749969482422, -0.085850469768047...
empty. It will always contain `MAX_LOGPATH_LEN` `TCHAR`s. But the following could do the trick: ``` if( m_sLogPath[0] == _T('\0') || _tcsicmp(m_sLogPath, trace_path)!=0) ```
[ 0.040864378213882446, -0.27385440468788147, 0.7131614089012146, -0.06434954702854156, 0.3090319335460663, -0.2993253767490387, 0.15973983705043793, 0.18276475369930267, -0.3717629015445709, -0.36255404353141785, -0.09809331595897675, 0.512846827507019, -0.4140531122684479, 0.02308719232678...
I try to extract the media description of a SDP package. I have a line like ``` a=rtpmap:113 H264/90000 ``` (after that there is always a carriage return) I want everything after a=rtpmap:[number][whitespace] till the carriage return, without the return itself and constructed the following Regex, which doesn't wo...
[ -0.10619564354419708, -0.03789103776216507, 0.6056821942329407, -0.015573794953525066, -0.18011188507080078, 0.03313279524445534, 0.4121135175228119, -0.3898349404335022, -0.06626830250024796, -0.6247052550315857, -0.09801832586526871, 0.6064900159835815, -0.3270312547683716, -0.1951044350...
the first capturing group.
[ -0.7529192566871643, -0.13662077486515045, -0.0586206279695034, -0.10094553977251053, -0.6389419436454773, -0.19389179348945618, -0.10517067462205887, -0.2673909664154053, -0.25278064608573914, -0.43150800466537476, -0.4701747000217438, 0.24454128742218018, -0.21653468906879425, -0.1890003...
I want to store a list of binary codes in a String[] array, such as in the following example... ``` String[] str={"10001", "100101","101010101"}; ``` How much memory is required to store the array? You will find [here](http://www.javamex.com/tutorials/memory/string_memory_usage.shtml) the following result: > Minimu...
[ 0.15933193266391754, 0.20394225418567657, 0.08275515586137772, -0.3480311334133148, 0.2699526250362396, 0.25770053267478943, 0.3275425434112549, -0.34188371896743774, -0.2220674604177475, -0.5667629241943359, 0.055916789919137955, 0.510778546333313, -0.25836706161499023, 0.0517413578927516...
I am trying to create a surround-with template with resharper that formats a selection like this ``` string foo = "A text with spaces"; ``` into this: ``` string foo = Translate("ATextWithSpaces"); ``` I want to select the "A text with spaces" myself, press the surround-with shortcut and just watch it happen! I ...
[ 0.5477212071418762, 0.15767699480056763, 0.31965377926826477, -0.0796356052160263, -0.08385996520519257, -0.21566621959209442, 0.23095379769802094, -0.017862118780612946, -0.08187060803174973, -0.7794622778892517, 0.03329071030020714, 0.625792920589447, -0.5073630213737488, 0.2964873611927...
I want to learn how to perform zooming in and zooming out. This is a simple example of a 2D triangle that rotates. Could you tell me how can I add zoom in and zoom out functionality to this simple example? Should I use `gl.glScalef`? How? ``` public class GLrenderer implements Renderer { public GLqueue tri; ...
[ 0.4776521921157837, -0.09113911539316177, 0.673577606678009, -0.07218197733163834, 0.037841059267520905, 0.2757388651371002, 0.1066814437508583, -0.3836481273174286, 0.1162562221288681, -0.6907292008399963, 0.2442730814218521, 1.0437129735946655, -0.39772459864616394, 0.25166046619415283, ...
// TODO Auto-generated method stub gl.glDisable(GL10.GL_DITHER); gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST); gl.glClearColor(.0f, .0f, .0f, 0f); gl.glClearDepthf(1f); } @Override public void onDrawFrame(GL10 gl) { // TODO Auto-generated method st...
[ -0.21869976818561554, -0.15721875429153442, 0.6259841322898865, -0.2872547209262848, -0.0679377093911171, 0.43959152698516846, 0.3989207148551941, -0.35032156109809875, 0.15216943621635437, -0.4664037525653839, -0.03992524743080139, 0.7690151333808899, -0.6740705966949463, 0.30002084374427...
gl.glLoadIdentity(); gl.glTranslatef(0, 0, -10); gl.glPushMatrix(); gl.glRotatef(angle, 0, 0, 1); tri.draw(gl); gl.glPopMatrix(); angle++; } @Override public void onSurfaceChanged(GL10 gl, int width, int height) { // TODO Auto-generated method stub ...
[ 0.0417228601872921, -0.2668835520744324, 0.8793372511863708, -0.4474756419658661, -0.06183762475848198, 0.43205156922340393, 0.2974295914173126, -0.4861219823360443, 0.10371129214763641, -0.44554027915000916, -0.00919012539088726, 0.6572607755661011, -0.29238343238830566, 0.168371289968490...
float ratio = (float) width / height; gl.glMatrixMode(GL10.GL_PROJECTION); gl.glLoadIdentity(); gl.glFrustumf(-ratio, ratio, -1, 1, 1, 25); } } ``` This is my activity class, and `onTouch` event is added to that. What should I add so that when I touch the screen the zoom works? ``` GLSurf...
[ 0.3577393591403961, -0.13792003691196442, 1.0386947393417358, -0.11467523127794266, 0.22413627803325653, 0.07596088200807571, 0.24481897056102753, -0.49804121255874634, 0.04955238476395607, -0.42566782236099243, -0.10068205744028091, 0.955005407333374, -0.27209582924842834, -0.122971303761...
setContentView(OurSurface); } @Override public boolean onTouchEvent(MotionEvent event) { int action = event.getAction(); switch (action) { case (MotionEvent.ACTION_DOWN): // Touch screen pressed break; case (MotionEvent.ACTION_UP): // Touch screen touch ended break; ...
[ 0.029751313850283623, -0.41967374086380005, 0.7002715468406677, -0.100318044424057, 0.3595006465911865, 0.018491093069314957, 0.3427545130252838, -0.41982847452163696, -0.22687289118766785, -0.3779729902744293, -0.4167049527168274, 0.6786243319511414, -0.335979163646698, -0.041260451078414...
case (MotionEvent.ACTION_CANCEL): // Touch event cancelled break; } return super.onTouchEvent(event); } @Override protected void onPause() { // TODO Auto-generated method stub super.onPause(); OurSurface.onPause(); } @Override protected void onResume() { // TODO Auto-generated meth...
[ 0.3651288151741028, -0.023491187021136284, 0.7831776142120361, -0.15732882916927338, 0.2376779168844223, 0.17578671872615814, 0.4008719027042389, -0.571652352809906, 0.11810069531202316, -0.10699369758367538, -0.30887869000434875, 0.9225517511367798, -0.5328603982925415, -0.000299404026009...
parameters to your perspective projection: ``` float zoom = 1.5; // .... gl.glFrustumf(-ratio/zoom, ratio/zoom, -1/zoom, 1/zoom, 1, 25); ``` or ``` gl.glFrustumf(-ratio, ratio, -1, 1, zoom, 25); ``` or ``` gl.glFrustumf(-ratio, ratio, -1, 1, zoom, 25*zoom); ``` depending on which works better for your applicat...
[ -0.0013979836367070675, -0.09474600106477737, 1.1862456798553467, -0.08348708599805832, -0.11096780002117157, 0.4527723789215088, -0.14973264932632446, -0.30029869079589844, 0.16603024303913116, -0.5929224491119385, 0.07578263431787491, 0.8417928814888, 0.0891423150897026, -0.2608419060707...
If my json is of the format as given below for a store with its addresses and lat/long ``` [{"StoreId":"50","StoreTitle":"Pocket Docket","StoreLogo":"","StoreTradingName":"Pocket Docket","StoreWebsite":"http:\/ \/pocketdocket.com.au","Address":{"Address1":"367 ","Address2":"George St.","City":"Sydney","State"...
[ 0.09355084598064423, -0.14615775644779205, 1.0736308097839355, -0.17608314752578735, 0.3643627166748047, 0.3385477364063263, 0.21476024389266968, -0.3177018165588379, -0.03228788822889328, -1.0560944080352783, -0.7922433614730835, 0.4097623825073242, 0.0491810142993927, 0.20748208463191986...
mylocmng=(LocationManager)getSystemService(Context.LOCATION_SERVICE); myloclist=new MyLocationListener(); mylocmng.requestLocationUpdates(LocationManager.GPS_PROVIDER,0,0,myloclist); Drawable marker=getResources().getDrawable(android.R.drawable.star_big_on); int markerWidth = marker.getIntrinsicWidth()...
[ -0.27674514055252075, -0.11987769603729248, 1.3096058368682861, -0.23776067793369293, 0.5963322520256042, 0.3649289309978485, 0.1454497128725052, 0.12686611711978912, -0.13202063739299774, -0.677017331123352, -0.5407905578613281, 0.3570094704627991, 0.045669782906770706, 0.3932404518127441...
GeoPoint initGeoPoint = new GeoPoint( (int)(mylocmng.getLastKnownLocation( LocationManager.GPS_PROVIDER) .getLatitude()*1000000), (int)(mylocmng.getLastKnownLocation( LocationManager.GPS_PROVIDER) .getLongitude()*1000000)); CenterLocation(initGeoPoint);*/ Ima...
[ -0.3026827275753021, -0.2082342952489853, 1.0796018838882446, -0.004194491542875767, 0.05879557505249977, 0.21071279048919678, 0.15338315069675446, -0.1405211091041565, -0.05898808687925339, -0.6264040470123291, -0.32836949825286865, 0.3913024365901947, -0.2210700660943985, 0.3508501648902...
void onClick(View v) { // TODO Auto-generated method stub Intent myint = new Intent(MapActivity.this,NearBy.class); startActivity(myint); } }); } private class MyLocationListener implements LocationListener{ @Override public void onLocat...
[ -0.08234991133213043, -0.17534466087818146, 0.9798223972320557, -0.24169397354125977, 0.4279955327510834, 0.1360483318567276, 0.12368136644363403, -0.023332664743065834, -0.09798408299684525, -0.6210572123527527, -0.06449473649263382, 0.6995847821235657, -0.383341521024704, 0.1863892674446...
{ // TODO Auto-generated method stub Drawable marker=getResources().getDrawable(android.R.drawable.star_big_on); int markerWidth = marker.getIntrinsicWidth(); int markerHeight = marker.getIntrinsicHeight(); marker.setBounds(0, markerHeight, markerWidth, 0); LocationOv...
[ -0.37930911779403687, -0.25331082940101624, 0.8838794827461243, -0.24489125609397888, 0.19962407648563385, 0.28412970900535583, 0.29941675066947937, -0.23429331183433533, -0.013803482055664062, -0.8321719169616699, -0.3563692569732666, 0.40784451365470886, -0.2649793326854706, 0.1262507885...
(int)(argLocation.getLatitude()*1000000), (int)(argLocation.getLongitude()*1000000)); myItemizedOverlay.addItem(myGeoPoint,"myPoint1", "myPoint2"); CenterLocation(myGeoPoint); } @Override public void onProviderDisabled(String provider) { // TODO Auto-ge...
[ 0.035902366042137146, 0.03127755969762802, 0.5836685299873352, -0.25981736183166504, 0.20472553372383118, 0.053573764860630035, 0.5202146768569946, -0.0019106020918115973, 0.04996560141444206, -0.6434168815612793, -0.60822594165802, 0.41268402338027954, -0.23220276832580566, 0.262916982173...
} @Override public void onProviderEnabled(String provider) { // TODO Auto-generated method stub Toast.makeText( getApplicationContext(), "Gps Enabled", Toast.LENGTH_SHORT ).show(); } @Override public void onStatusChanged(String provider, int status, Bundle extras) { // TOD...
[ 0.23373310267925262, -0.045351579785346985, 0.6616376638412476, 0.08297034353017807, 0.34974274039268494, -0.17690660059452057, 0.40948474407196045, -0.09837041050195694, 0.06266085803508759, -0.8602113127708435, -0.20319853723049164, 0.6777153611183167, -0.2742256820201874, 0.147768139839...
code for parsing ``` try{JSONArray myID=j2.getJSONArray("stores"); for(int i=0;i<myID.length();i++){ Log.v("state","json address being read"); JSONObject j3= myID.getJSONObject(i); String name = j3.getString("Address"); Log.v("Address",name); ``` You can learn ...
[ 0.02067478373646736, 0.0737815871834755, 0.5854085087776184, 0.17659863829612732, -0.04051036760210991, 0.28760573267936707, 0.4883742928504944, -0.182933509349823, -0.16216999292373657, -0.8139580488204956, -0.33188942074775696, 0.2654532492160797, -0.3673239052295685, -0.1819668710231781...
String str = "{\"error\":false,\"totalresults\":6,\"stores\":" + "[{" + "\"StoreId\":\"50\",\"StoreTitle\":\"Pocket Docket\",\"StoreLogo\":\"\",\"StoreTradingName\":\"Pocket Docket\"," + "\"StoreWebsite\":\"http:\\\\pocketdocket.com.au\"," + ...
[ -0.34007197618484497, -0.08468232303857803, 0.5502351522445679, -0.27300822734832764, 0.20661762356758118, 0.43118050694465637, 0.1056685522198677, 0.09884899109601974, -0.07779274135828018, -0.5830262899398804, -0.4196171760559082, 0.26763540506362915, -0.4661729633808136, 0.0463349856436...
"{\"Address1\":\"367 \",\"Address2\":\"George St.\"," + "\"City\":\"Sydney\",\"State\":\"NSW\",\"ZipCode\":\"2000\",\"Longitude\":\"151.2284339\",\"Latitude\":\"-33.5487607\"," + "\"AreaCode\":\"2000\",\"Phone\":\"0280839400\"}}]}"; try { jsonObject = new J...
[ 0.005329193081706762, -0.09135278314352036, 0.6129676699638367, 0.024744629859924316, 0.3214366137981415, 0.2246471494436264, 0.42632055282592773, -0.20812053978443146, -0.09163275361061096, -0.8274573683738708, -0.7797663807868958, 0.04624108597636223, -0.45499786734580994, 0.497811615467...
JSONObject obj_arr = arr_start.getJSONObject(0); JSONObject arr_address = obj_arr.getJSONObject("Address"); String lat = arr_address.getString("Latitude"); String Longi = arr_address.getString("Longitude"); } catch (JSONException e) { // TODO A...
[ -0.2947579026222229, -0.4522068500518799, 0.39003443717956543, -0.30977848172187805, 0.27744215726852417, 0.2843064069747925, 0.2889932692050934, -0.31461700797080994, -0.08333393931388855, -0.31874319911003113, -0.4687821567058563, 0.3353337049484253, -0.5188868045806885, -0.0809167847037...
catch block e.printStackTrace(); } ``` Hope this will help you and Don't forgot to accept it if it is helpful to you. Thanks...
[ 0.38516151905059814, 0.18961648643016815, 0.2776808440685272, 0.04548221081495285, 0.169831320643425, -0.2542605996131897, 0.23204268515110016, 0.11695080995559692, -0.025043494999408722, -0.6118598580360413, 0.14577585458755493, 0.29252108931541443, -0.26908278465270996, -0.16823518276214...
I currently have some security working in my application by using the roles and rules, but i wondered whether it was possible to hide web links depending on if a user belongs to a certain role. I currently have it so users belong to either the 'admin' role or 'user' role. Rules have been setup on folders in my applica...
[ 0.33548152446746826, 0.20467302203178406, 0.48348602652549744, -0.000223853814532049, 0.30401840806007385, -0.2891133725643158, 0.2854197919368744, -0.12051570415496826, -0.2918458580970764, -0.5268304347991943, 0.06290972232818604, 0.4047222435474396, -0.15579402446746826, -0.022606439888...
web link it redirects them to the homepage (see code below). This is great, but, i wondered is it possible to hide that web link if the user did not belong to a specific role preventing them click on it. Also if a user belonged to no role could they be redirected to a page to tell them they need a role assigned? ``` <...
[ 0.042858224362134933, -0.0027636317536234856, 0.7268775701522827, 0.08344584703445435, -0.13991647958755493, -0.3302408754825592, 0.3254404366016388, -0.04397435858845711, -0.38953784108161926, -0.7642788290977478, -0.05602172389626503, 0.2634880244731903, -0.310282826423645, 0.18328581750...
user.identity does not belong to 'user' or 'admin' role, then redirect them to page and display error? ``` If User.Identity.IsAuthenticated = True Then Dim myUser As MembershipUser Dim objUser As Object myUser = Membership.GetUser(User.Identity.Name) objUser = myUser.ProviderUserK...
[ 0.0333951935172081, 0.20498235523700714, 0.766333818435669, -0.2231634110212326, -0.03396529331803322, 0.00045088358456268907, 0.35974255204200745, -0.03737675026059151, -0.34825003147125244, -0.5861422419548035, -0.19091340899467468, 0.4461938440799713, -0.472825825214386, 0.2830490469932...
Response.Redirect("~/NoAccess.aspx") End If ``` If you need to set `this` to a different value, you can use [`jQuery.proxy`](http://api.jquery.com/jQuery.proxy) to do that. (Or in an ES5-enabled environment, you can use the new [`Function#bind`](http://es5.github.com/#x15.3.4.5) function.) `proxy` accepts a funct...
[ -0.09784574806690216, -0.010550196282565594, 0.6790606379508972, -0.17579159140586853, -0.0004957609344273806, 0.030140098184347153, 0.16043849289417267, -0.20574136078357697, -0.28822991251945496, -0.4891517758369446, -0.20762568712234497, 0.5914565324783325, -0.3253954350948334, 0.319117...
to the `r` object. (If you need to know which DOM element was clicked, have `myFunction` accept the `event` argument that jQuery passes it, and use `event.target`.) For completeness, the above using `Function#bind` (if the browser supports ES5 features, or you've included an ES5 shim [since `Function#bind` is shim-abl...
[ -0.06857269257307053, -0.16550511121749878, 0.5888776779174805, -0.18098600208759308, -0.003685477189719677, -0.27639099955558777, 0.3440092206001282, -0.19634023308753967, -0.34540706872940063, -0.2606194317340851, -0.3737642168998718, 0.6759716272354126, -0.12218998372554779, -0.03824526...
the element on: ``` var r = new RangeSelector(/* ...args...*/); $("some_selector")..datepicker({     onSelect: function(dateText, inst) {     return r.myFunction(dateText, inst, this);   } }); ``` ...where `myFunction` accepts `dateText`, `inst`, and `element` arguments. [Live example](http://jsbin.com/unaguh...
[ -0.24490447342395782, 0.02600933238863945, 0.5928993225097656, -0.2870934009552002, 0.2810228168964386, -0.03980249911546707, 0.11632465571165085, -0.27838200330734253, 0.0780775398015976, -0.2310090959072113, -0.4181237816810608, 0.848557710647583, -0.5335223078727722, 0.15007394552230835...
How do I access the access the contents of a variable passed as an argement to a bash-script? Example: `sh myscript.sh PATH`. Now I want to modify the string inside `PATH`, but keep failing at accessing it! Any ideas? Edit: I need to be able to access any variable, not just `PATH` ``` #!/bin/bash FOO=$(eval echo \$$...
[ 0.33509767055511475, 0.42354753613471985, 0.3029228448867798, -0.366767942905426, 0.023827631026506424, -0.07776849716901779, 0.5383479595184326, -0.5502535700798035, -0.21988371014595032, -0.4615629017353058, 0.024468930438160896, 0.5602720379829407, -0.28360405564308167, 0.05261109396815...
I am having fight with Zend Form decorators from long but I always forgive as I had no work with them.But now I have, and I want to win. Either I found documentation not so explanatory or I was unable to understand its usage. I always worked on pure HTML & CSS. Now zend form decorators are quite bit confusing FOR ME. ...
[ 0.7344798445701599, 0.45017555356025696, 0.13036103546619415, -0.030020514503121376, -0.2855219841003418, -0.09989584237337112, 0.09203771501779556, -0.06376267969608307, 0.09115342050790787, -0.8178992867469788, 0.6544326543807983, 0.3704077899456024, 0.26722902059555054, 0.13737450540065...
problem ever. Some of form design which I may use, or can be taken for example for explaination using zend are available @ <http://cssglobe.com/collections/forms/> one more thing : I was sending values to form from controllers. Populate function only populates values. But I want fields which are db specific to get pla...
[ 0.3013235330581665, -0.3805803060531616, 0.47466444969177246, 0.3087124228477478, 0.030903907492756844, -0.3525312542915344, 0.020543722435832024, 0.03807971999049187, -0.08724027127027512, -0.5862138271331787, 0.18739497661590576, 0.7508485913276672, -0.428200364112854, 0.0632130056619644...
: <http://jsfiddle.net/rGBk7/> e.g. ``` /* do animation */ $("div").animate({ 'marginLeft' : '300px' }, 1000); /* attach a promise to animated element/s */ $("div").promise().done(function() { alert("animation end"); }); ``` See <http://api.jquery.com/promise/>
[ 0.5592364072799683, -0.4350786805152893, 0.452189564704895, 0.03584105893969536, 0.23517636954784393, 0.1643318384885788, -0.02119789645075798, -0.3447525203227997, -0.04577622935175896, -0.4824608564376831, -0.6159828305244446, 0.5140677094459534, -0.22429269552230835, -0.3365541100502014...
I want to install Sphinx 1.1.3 for python 2.6. However, I don't have sudo rights. So instead of installing it in the default place, I want to set a different location, using --prefix. Doing the following: ``` -bash-3.2$ easy_install Sphinx-1.1.3-py2.6.egg --prefix=/homes/ndeklein/python2.6/site-packages/ ``` gives m...
[ 0.2001744657754898, 0.4759048521518707, -0.2237698882818222, -0.30186927318573, 0.019670763984322548, -0.0836954191327095, 0.7382517457008362, -0.3541158437728882, -0.3635898530483246, -0.5614708065986633, -0.14721819758415222, 0.4699503183364868, -0.6495926976203918, -0.11886787414550781,...
I can't find the setup.py script. I'm guessing that EGGs don't have a setup.py script, is that true? This website discusses non-root python installs. It might be useful to you... <http://www.astropython.org/tutorials/user-rootsudo-free-installation-of-python-modules7/> To quote a little bit of it: > A user configura...
[ 0.6525497436523438, 0.16508761048316956, 0.027971135452389717, 0.03358276188373566, 0.11231069266796112, -0.31956198811531067, 0.18906186521053314, 0.16977056860923767, -0.24672597646713257, -0.5369076132774353, -0.2244897037744522, 0.5633682608604431, -0.25853225588798523, -0.048900369554...
whatever directories you specify there should probably exist and you should put them at the front of your PYTHONPATH: ``` export PYTHONPATH=~/usr/lib/python2.4/site-packages:${PYTHONPATH} ``` --- It also looks like more modern python installations (compared to the things in the link) should be able to use the `~/.l...
[ 0.17014576494693756, 0.01776055060327053, 0.3377227485179901, -0.07965649664402008, 0.07977559417486191, -0.4373132288455963, 0.16519413888454437, 0.3417968451976776, -0.1862483024597168, -0.7445089221000671, -0.6823269724845886, 0.7112959623336792, -0.26152676343917847, -0.220962837338447...
When I want to connect to SQL Server 2008, I get this message: > Cannot connect to server. > > Additional Information: Cannot open user default database. Login failed. Login fail for user 'sa'. (Microsoft SQL Server. Error:4064) How do I resolve this error? This error (`Microsoft SQL Server.Error:4064`) occurs wh...
[ -0.3574831187725067, 0.4507546126842499, 0.3091215193271637, -0.1742362380027771, 0.016011133790016174, 0.06471842527389526, 0.8116561770439148, -0.031080452725291252, -0.1190519705414772, -0.640217661857605, -0.026348525658249855, 0.18033826351165771, -0.4131338596343994, 0.49782904982566...
[here](http://blog.sqlauthority.com/2008/11/04/sql-server-fix-error-4064-cannot-open-user-default-database-login-failed-login-failed-for-user/), summarized below. The solution to log on is: 1. From the **Connect to Server** dialog, click **Options** 2. Change value of **Connect to database:** to any valid database on...
[ -0.20537026226520538, 0.1725352555513382, 0.5572847127914429, 0.09427428245544434, 0.40626204013824463, 0.155574768781662, 0.17222683131694794, 0.0489501878619194, -0.47791823744773865, -0.39900487661361694, -0.35087788105010986, 0.6234224438667297, -0.6147347688674927, 0.1615203320980072,...
Is there a way that we can write automation scripts in bash syntax and run it on Windows host (We can call the executable file .exe of Windows). The Windows batch syntax looks quite complex :D Any suggestions are appreciated. You can use [cygwin](http://www.cygwin.com/) or mingw sys for this. They are both just BASH ...
[ 0.1544569879770279, 0.048406437039375305, -0.0008527884492650628, 0.09281671792268753, -0.16225841641426086, -0.19056889414787292, -0.08645724505186081, -0.03430474177002907, -0.1429002583026886, -0.6034494042396545, 0.13815759122371674, 0.6068782210350037, -0.21526409685611725, -0.0430334...
to Windows programs. * MinGW is more Windows friendly, file paths are like in Windows, less problems with Windows native programs. You should try yourself and choose what you need.
[ 0.4027059078216553, -0.19014374911785126, 0.20543645322322845, 0.233755424618721, -0.22691892087459564, -0.363893985748291, 0.15997214615345, 0.23964186012744904, -0.12453971803188324, -0.9493271112442017, 0.008344101719558239, 0.604564905166626, -0.01000221911817789, 0.024121273308992386,...
check out the following test: <http://binks.knobbits.org/webgl/texture3.html> It's a simple test of cube textures. It also has a 2D texture in there for good measure. I discovered that in some browsers (so far, chrome) The image is not displayed properly if I re-use the same texture unit for drawing the cube texture...
[ 0.2517632246017456, 0.2167472392320633, 0.22342447936534882, 0.18095992505550385, -0.23332752287387848, 0.02352696657180786, 0.2140253484249115, -0.21079778671264648, -0.1757165640592575, -0.8286542892456055, 0.46091994643211365, 0.5450253486633301, 0.18757276237010956, -0.0681361779570579...
and now are working. Square: ``` TexturedSquare.prototype.draw = function() { gl.bindBuffer(gl.ARRAY_BUFFER,this.v); gl.enableVertexAttribArray(gl.va_vertex); gl.enableVertexAttribArray(gl.va_normal); gl.enableVertexAttribArray(gl.va_tex1pos); gl.vertexAttribPointer(gl.va_vertex,4,gl.FLOAT,false,1...
[ -0.22754979133605957, -0.0920189768075943, 0.8312313556671143, -0.1724439412355423, -0.2016846239566803, 0.3943466246128082, 0.541190505027771, -0.46664169430732727, -0.21082498133182526, -0.9757590889930725, -0.5307445526123047, 0.27771416306495667, -0.417362242937088, -0.0382794477045536...
gl.vertexAttribPointer(gl.va_normal,4,gl.FLOAT,false,8*4,4*4); gl.vertexAttribPointer(this.va_cubetex0pos,4,gl.FLOAT,false,8*4,4*4); gl.activeTexture(gl.TEXTURE0); gl.bindTexture(gl.TEXTURE_2D,null); gl.bindTexture(gl.TEXTURE_CUBE_MAP,this.texture); gl.uniform1i(shader.textures,0); gl.uniform1...
[ -0.40213891863822937, -0.07126285135746002, 0.6567168235778809, -0.2230481207370758, -0.4247328042984009, 0.1643763780593872, 0.37392932176589966, -0.32089558243751526, -0.2994891405105591, -0.9559802412986755, -0.4615834057331085, 0.19510045647621155, -0.5327616333961487, 0.02495677769184...
I want to implement a small android application, that works as SSL Server. After lot of problems with the right format of the keystore, I solved this and run into the next one. My keystore file is properly loaded by the KeyStore class. But when I try to open the server socket (socket.accept()) the following error is r...
[ 0.21246978640556335, 0.09157448261976242, 0.40536659955978394, -0.28801512718200684, 0.005892138462513685, 0.13699646294116974, 0.5444460511207581, -0.4266127645969391, -0.14116573333740234, -0.8760733008384705, -0.0834755152463913, 0.5354959964752197, -0.4643113315105438, 0.21107155084609...
applied to my jre6. I got a list of supported ciphers suites by calling ``` socket.getSupportedCipherSuites() ``` that prints a [long list](http://nopaste.info/23b45dc075.html) with very different combinations. But I don't know how to get a supported key. I also tried the android debug keystore after converting it ...
[ 0.344620019197464, -0.024682210758328438, 0.4533688724040985, -0.07998750358819962, -0.09794199466705322, 0.011344737373292446, 0.5333196520805359, -0.4998098909854889, -0.10841338336467743, -0.6434693336486816, -0.18765397369861603, 0.4429158866405487, -0.47608640789985657, -0.13207268714...
implements Runnable { SSLServerSocket mServerSocket; ToggleButton tglBtn; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.tglBtn = (ToggleButton)findViewById(R.id.toggleBut...
[ 0.09260285645723343, -0.5323729515075684, 0.5354393720626831, -0.07561855018138885, 0.3352605402469635, -0.1913662850856781, 0.8389135599136353, -0.3414345383644104, -0.25946757197380066, -0.5511464476585388, -0.2106635421514511, 0.5960898399353027, -0.6265630125999451, 0.22921568155288696...
} else { try { if (mServerSocket != null) mServerSocket.close(); } catch (IOException e) {
[ -0.06099458783864975, -0.4200019836425781, 0.20135655999183655, -0.20890536904335022, 0.49610430002212524, 0.05225162208080292, 0.3632252812385559, -0.16553640365600586, 0.16833534836769104, -0.37739136815071106, -0.24900215864181519, 0.7176377773284912, -0.4758959114551544, -0.11696710437...
Log.e("SSLTestActivity", e.toString()); } } } }); } @Override public void run() { try { KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); keyStore.load(getAssets().open("test.keystore"), "ssltest".toCharArray()); ServerSocketFactor...
[ 0.1606718748807907, -0.1797749251127243, 0.5175302624702454, -0.07040546834468842, 0.3502846956253052, 0.07924290001392365, 0.8264636993408203, -0.41206637024879456, -0.08610048145055771, -0.6903983950614929, -0.41825929284095764, 0.6741975545883179, -0.5421428680419922, 0.4203246533870697...
while (!mServerSocket.isClosed()) { Socket client = mServerSocket.accept(); PrintWriter output = new PrintWriter(client.getOutputStream(), true); output.println("So long, and thanks for all the fish!"); client.close(); } } catch (Exception e) { Log.e("...
[ 0.1023746132850647, -0.2745678126811981, 0.5782976150512695, -0.3516108989715576, 0.30529841780662537, 0.26975017786026, 0.5479569435119629, -0.051444198936223984, -0.09855315089225769, -0.31509116291999817, -0.33132296800613403, 0.5866979360580444, -0.1803317666053772, 0.21505606174468994...
} } } ``` > *Keystore does not support enabled cipher suites* It's not really up to the keystore to support or not a cipher suite. It's the `SSLSocket` (or engine) that supports them. What it's looking for is a key, in the keystore, of a type suitable for one of its supported cipher suites. Typically, enabled cipher ...
[ 0.05639221891760826, 0.08552343398332596, 0.4500129520893097, -0.02737334370613098, 0.4469982087612152, -0.32538437843322754, 0.5893561840057373, -0.19668380916118622, -0.19233061373233795, -0.6500433683395386, -0.45736825466156006, 0.594821572303772, -0.4992051422595978, 0.054934512823820...
case (and you should always close the input stream you read from, by the way). Here, you're still using the default `SSLServerSocketFactory`, which you haven't specifically configured (and for which there is no default keystore): this is why you get "*Could not find any key store entries to support the enabled cipher ...
[ -0.08428947627544403, -0.03345032036304474, 0.08145073801279068, -0.12753178179264069, 0.20302186906337738, -0.16576220095157623, 0.221776083111763, -0.1468280851840973, -0.21399347484111786, -0.89559006690979, -0.3326978385448456, 0.595970869064331, -0.30275657773017883, 0.147009640932083...
I have a simple java project (adapted from the example [here](http://goblinbashing.blogspot.de/2010/05/setting-up-java3d-with-eclipse.html)), which is as follows: ``` import com.sun.j3d.utils.universe.SimpleUniverse; import com.sun.j3d.utils.geometry.ColorCube; import javax.media.j3d.BranchGroup; public class HelloWo...
[ 0.05622183158993721, -0.10767672955989838, 0.8921849727630615, -0.3445494472980499, 0.046429362148046494, 0.06959462910890579, 0.4606685936450958, -0.2561452090740204, -0.07783976197242737, -0.9053568840026855, -0.19162413477897644, 0.3078027367591858, -0.2898797392845154, 0.30222517251968...
World!"); System.out.println("PATH : " + System.getProperty("java.library.path")); new HelloWorld(); } } ``` My output is: ``` Hello World! PATH : /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/j...
[ -0.25203415751457214, 0.39905688166618347, 0.5949364304542542, -0.2700207531452179, 0.15369616448879242, 0.30654004216194153, 0.4617786109447479, -0.16475479304790497, -0.4500871002674103, -0.6520053744316101, -0.129646435379982, 0.6265901923179626, -0.37494757771492004, 0.2743221819400787...
the output above shows, `/usr/lib/jni` is inside `java.library.path`. What am I doing wrong? (I'm using Ubuntu 10.04 and Eclipse 3.7.2 - if that may be an issue?) Java is a bit of unknown territory for me. So please be as verbose as possible on your notes/suggestions/answers. **Update 1** Apparantly it's a 64-bit li...
[ -0.07717583328485489, 0.23980458080768585, 0.33756884932518005, -0.10982190817594528, -0.28221800923347473, -0.055411867797374725, 0.4250885546207428, -0.13504362106323242, -0.13091102242469788, -0.717968761920929, -0.07400549203157425, 0.38998907804489136, -0.31811806559562683, 0.11018754...
-classpath /usr/share/java/j3dcore.jar:/usr/share/java/j3dutils.jar:/usr/share/java/vecmath-1.5.2.jar:. HelloWorld ``` But I would really like to use eclipse to do this kind of things. ``` $ java -version java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1) OpenJDK 64-...
[ 0.04217758774757385, 0.17963889241218567, 0.332387238740921, -0.1162695437669754, -0.43361935019493103, -0.03165984898805618, 0.35492393374443054, -0.20262545347213745, 0.0003682691021822393, -0.6178624629974365, 0.19975528120994568, 0.5897423028945923, -0.25541698932647705, 0.100418224930...
I have a solution which contains six projects. Four of the projects are class libraries, and the other two are a WPF application, and a Windows Service. The later two projects have a project configuration called 'Test' - all of the class libraries do not have this configuration, only the standard 'Debug' and 'Release...
[ 0.41944411396980286, -0.025078371167182922, 0.1898479014635086, 0.09594958275556564, 0.16076241433620453, 0.22995078563690186, 0.18091334402561188, -0.4794025123119354, 0.071260966360569, -0.8595153093338013, -0.19349896907806396, 0.20396332442760468, -0.09582867473363876, 0.11512160301208...
build works fine in Visual Studio (2010), however, when I configure a Visual Studio (sln) runner in TeamCity 7, it ignores these settings, and attempts to build all projects using a 'Test' configuration, and of course it can't find this config for the class libraries. Is there any way to tell TeamCity to use these pro...
[ 0.19218051433563232, 0.01506014820188284, -0.07554470747709274, 0.028514515608549118, -0.1912413090467453, 0.04086444154381752, 0.5305439829826355, -0.12825791537761688, 0.14170609414577484, -0.7306944727897644, 0.2882842719554901, 0.8103337287902832, -0.1740155667066574, -0.43403777480125...
but to add in the extra configurations. We are actually using the other configurations for our web.config substitution, a nice feature of VS2010. It seems that it is not possible to have multiple configurations when running MSBuild. I get the following in TeamCity: > C:\Windows\Microsoft.NET\Framework\v4.0.30319\Micro...
[ 0.28610047698020935, -0.29483285546302795, 0.18596549332141876, 0.1344744712114334, -0.017347825691103935, -0.19961173832416534, 0.18138767778873444, 0.08354327082633972, -0.41760122776031494, -0.9570595622062683, -0.004864619579166174, 0.2642931342124939, -0.421999454498291, -0.0232999213...
a non-default Configuration or > Platform that doesn't exist for this project. Only our main website has the "SomeConfiguration" configuration, none of the constituent projects in the solution have this configuration. It would be great to get another perspective on this
[ 0.24388042092323303, -0.24033355712890625, 0.10332170873880386, 0.4230635166168213, -0.03703123703598976, -0.3075690269470215, 0.19203029572963715, 0.5419553518295288, -0.12074742466211319, -0.5495591163635254, -0.03715737164020538, 0.1138826236128807, -0.13111412525177002, 0.1829724758863...
I am trying to test the status of a checkbox upon its click. My problem is that it always reports as true as it reports the status after the change event has taken place and not before. Is there anyway I can test before the change. Current code using jQuery - the checkboxes all of class 'package': ``` $(".package")...
[ 0.37195560336112976, -0.06249343603849411, 0.35648125410079956, -0.14271312952041626, 0.02192923240363598, -0.29438719153404236, 0.4529963433742523, -0.0176194217056036, 0.01953795924782753, -0.668928861618042, -0.06597321480512619, 0.6319060921669006, -0.22159041464328766, -0.037710979580...
click function did indeed work. Thanks all. Using the `onchange` event on a checkbox is not [cross-browser](https://stackoverflow.com/a/1501861/851498) (hello IE! And yes, even with jQuery). The following works: ``` $('.package').click(function() { console.log(this.checked) // There is no need for jQuery here }) ...
[ 0.07404685765504837, -0.04854484647512436, 0.45853084325790405, 0.004001189023256302, 0.011596291325986385, -0.34757551550865173, 0.544861912727356, 0.014563310891389847, -0.010239386931061745, -0.6325289607048035, 0.15399663150310516, 0.863043487071991, -0.26772841811180115, -0.1331345885...
I have this dataframe ``` id <- c(1,1,1,2,2,3) name <- c("A","A","A","B","B","C") value <- c(7:12) df<- data.frame(id=id, name=name, value=value) df ``` This function selects a random row from it: ``` randomRows = function(df,n){ return(df[sample(nrow(df),n),]) } ``` i.e. ``` randomRows(df,1) ``` But I want...
[ 0.22490869462490082, 0.2272685021162033, 0.5568606853485107, -0.1681675910949707, 0.09007594734430313, -0.041047073900699615, 0.020883236080408096, -0.3837498426437378, 0.009579076431691647, -0.7562835216522217, 0.1179576963186264, 0.17492815852165222, -0.051412299275398254, 0.442950516939...
'true' when you check the checkbox, and 'false' when you uncheck it. And seriously, using `$(this).attr('checked')` or `$(this).is(':checked')` is just jQueryception for nothing.
[ 0.5120968222618103, 0.16751699149608612, 0.002558502135798335, 0.14835619926452637, 0.02095235511660576, -0.39269912242889404, 0.5126499533653259, 0.22764021158218384, 0.12014337629079819, -0.3002066910266876, -0.06204431131482124, 0.7575257420539856, 0.02818804793059826, -0.08677002787590...
I made a search system for my website. Let's say there are 5 datas in the database. 1. Apple macbook air review 2. Apple iMac review 3. Apple iPhone review 4. iPhone 4 unboxing review 5. iPhone jailbreak review A user types 'iphone review' on the search input. I would like to show the result like this 1. Apple **i...
[ 0.17906829714775085, 0.5041327476501465, 0.39403200149536133, 0.17309078574180603, -0.08033758401870728, -0.060481034219264984, 0.28336668014526367, -0.18553327023983002, -0.21720780432224274, -0.36129504442214966, 0.02916211076080799, 0.7251262664794922, -0.38584133982658386, -0.130736842...
me to figure this problem? You can try this query: ``` SELECT * FROM BOOKMARK WHERE MATCH title AGAINST ('"iphone review"' IN BOOLEAN MODE) ``` This one worked for me.
[ -0.07411365211009979, 0.1840660572052002, 0.2166341245174408, -0.03636649623513222, 0.22016370296478271, -0.16386066377162933, 0.22941890358924866, 0.13499490916728973, -0.00004902212094748393, -0.5022792220115662, 0.08509843796491623, 0.7886740565299988, -0.31384095549583435, -0.215924263...
I've to check if a jQuery Cycle slideshow is terminated. I need to check this becouse I have multiple slideshow, I run it in sequence, but, when the log " [cycle] terminating; too few slides: 1 " appears, becouse the slideshow has only one page, it blocks all the Cycle options 'after' and 'before' and so it do not work...
[ 0.4512009918689728, 0.033918347209692, 0.5158421397209167, -0.0013121257070451975, 0.021029220893979073, -0.05247332900762558, 0.1202024519443512, -0.1267002820968628, -0.3977902829647064, -0.6869422793388367, 0.06718124449253082, 0.659766435623169, -0.37988361716270447, 0.36021688580513, ...
I have a string like the following: ``` <br><b>224h / 15.45 verbuchte Stunden</b> ``` I want to extract the numbers and have created the following Regex: ``` ([0-9]\.?[0-9]{0,2})h\s\/\s([0-9]\.?[0-9]{0,2}) ``` But for the preceding string this gives me the numbers 224 and 15 instead of 15.45. What's wrong with th...
[ -0.1646854132413864, 0.045539628714323044, 0.5171588659286499, -0.08147653937339783, -0.11326849460601807, 0.39451712369918823, 0.2838757038116455, -0.46348837018013, -0.2597057819366455, -0.5241183638572693, -0.0621853768825531, 0.43141892552375793, -0.027694640681147575, -0.2385348826646...
and minimum one before.
[ 0.1276128888130188, 0.07757170498371124, 0.1405666172504425, -0.1781318187713623, 0.0022794550750404596, 0.05023500695824623, 0.14606420695781708, -0.21831637620925903, -0.15414482355117798, -0.3047196865081787, 0.23415301740169525, 0.5954696536064148, -0.08750216662883759, -0.242697715759...
``` int? _fileControlNo = null; public int? FileControlNo { get { return _fileControlNo; } set { _fileControlNo = value; } } ``` I'm getting a syntax error when I assign null values to the above properties. ``` objDPRUtils.FileControlNo =sArrElements.Value(3)==null ? null : Convert.ToIn...
[ -0.3541562557220459, 0.2079707682132721, 0.05879684165120125, -0.3003743290901184, -0.02484866976737976, 0.03780457004904747, 0.7523773908615112, -0.23481936752796173, -0.2095382958650589, -0.6286433339118958, -0.32718807458877563, 0.7146965861320496, -0.4116247892379761, 0.178434878587722...
can be implicitly convertible to each other. In your case you have a `null` and an `Int32` - these violate that requirement. If instead of an `Int32` you return a nullable `Int32`, the `null` can be implicitly converted to this type and your code will work (or alternatively, cast the `null` to an `int?`).
[ 0.11677800118923187, 0.020270856097340584, -0.3322959244251251, 0.01777486689388752, -0.05229225009679794, 0.08495460450649261, 0.34669798612594604, -0.018702983856201172, 0.3262104392051697, -0.6339854598045349, -0.11086247861385345, 0.7164608836174011, -0.3112090229988098, -0.11931105703...
In my upload form I have a few select boxes. These are arranged in divs called #age-groups, #subjects and #topics. I want to be able to use jquery to make sure the user clicks at least one checkbox from each of the 3 individual divs. Please could someone help me figure out how to do this. For when at least one check...
[ 0.48846179246902466, -0.09559104591608047, 0.0973074659705162, 0.007418557535856962, -0.2555784285068512, 0.07587890326976776, 0.04255132004618645, 0.029461676254868507, -0.2100013941526413, -0.6596375107765198, -0.12929721176624298, 0.13836026191711426, -0.20622983574867249, 0.04674799740...
.append('<div class="done rotatetwo wiggler"></div>') .addClass('grey') } ``` If possible can this function output the above code as soon as the final required select box is selected. The results of the conditional operators need to be of the same type or types that can be implicitly convertible to each o...
[ 0.13747429847717285, -0.1803615838289261, 0.4391319453716278, -0.17824380099773407, 0.014549056999385357, 0.025891682133078575, 0.18910886347293854, -0.33073726296424866, 0.18605785071849823, -0.5905472040176392, -0.34017422795295715, 0.6863610148429871, -0.5114330649375916, -0.07568087428...
an `int?`).
[ -0.1613306999206543, 0.18386293947696686, 0.3105472922325134, -0.1804920881986618, -0.18334844708442688, 0.32064104080200195, 0.34998586773872375, -0.1018073782324791, -0.21275721490383148, -0.2540309429168701, -0.35870233178138733, 0.37886956334114075, -0.1533864289522171, 0.2731369733810...
Looking at the Facebook iOS app, one can see that when in the feed (for example), clicking on comment will pop a native iOS dialog, as well as clicking on a photo, will also pop a native iOS screen just for that purpose. Or clicking on Comments will load a different iOS screen for that. I'm working on an hybrid iOS ap...
[ 0.5567177534103394, -0.05305100232362747, 0.26330459117889404, -0.008200554177165031, -0.26252293586730957, 0.1515074223279953, 0.11678805202245712, 0.16423815488815308, -0.36437690258026123, -0.8963998556137085, 0.19073161482810974, 0.5545549392700195, -0.4654889702796936, -0.204030245542...
something possible. Even if so, if it will require me to handle a major learning curve (it's syntax and writing a special plugin). What would you have done? Which FW is the most appropriate. I don't use ANY system functionality such as camera / file system / etc.. the phonegap offers except for that native bridge, so ...
[ 0.19352099299430847, -0.12447832524776459, 0.46346428990364075, 0.3618702292442322, 0.03966350108385086, -0.15480750799179077, 0.5637146830558777, -0.048095703125, 0.060880646109580994, -0.6027827858924866, 0.10009277611970901, 0.7695167660713196, -0.1744190752506256, -0.3142145574092865, ...
protocol. In your html, declare your JS calling function: ``` function callIt(paramText) { var iframe = document.createElement("IFRAME"); iframe.setAttribute("src", "my-protocol://" + paramText.replace(/ /gi,'%20')); document.documentElement.appendChild(iframe); iframe.parentNode.removeChild(iframe); ...
[ -0.012762879952788353, -0.06031905114650726, 0.7428209185600281, -0.17528294026851654, 0.06239994242787361, -0.0662059411406517, 0.5969367027282715, -0.4967852234840393, 0.04342212155461311, -0.8300909399986267, -0.4254287779331207, 0.4622131586074829, -0.33116933703422546, 0.0248068850487...
I searched a lot but I can't find an answer. In my contact.php I have this code: ``` <a class="mailform" href="submit.php">Click</a> ``` I have this script, but it doesn't work: ``` $('.mailform').click(function() { $.fancybox( { 'autoDimensions' : false, 'width' ...
[ 0.6201377511024475, 0.015446965582668781, 0.5145485401153564, -0.0943961888551712, 0.03964291885495186, 0.1557990312576294, 0.5181095004081726, -0.18492883443832397, -0.04560019448399544, -0.5498044490814209, 0.18847090005874634, 0.23328523337841034, -0.11703602224588394, 0.035813122987747...
: 'auto', 'transitionIn' : 'none', 'transitionOut' : 'none', 'ajax' : { cache : false,
[ -0.3396155536174774, -0.03239481523633003, -0.21873489022254944, 0.08243884891271591, 0.4757479429244995, 0.24249029159545898, 0.43598780035972595, 0.1931929588317871, -0.04666408896446228, -0.5524747371673584, -0.4230533242225647, 0.6253117918968201, -0.3600943088531494, 0.128943100571632...
url : this.href } } ); }); ``` Can you help me please? You should check your dropdown value also on page onload event. Something like this ``` <script type="text/javascript"> /** * This function will be called twice - once on onChage event, and once on onLoad event */ function On...
[ -0.017668573185801506, -0.3718748986721039, 0.8445649147033691, 0.08262087404727936, 0.04289624094963074, -0.03463784232735634, 0.35936594009399414, -0.0791892558336258, -0.3209885358810425, -0.619484007358551, -0.31013238430023193, 0.37014687061309814, -0.32570508122444153, 0.299774646759...
document.form.filter[1].disabled = false; if (myindex == 8) { document.form.filter[0].disabled = true; document.form.filter[1].disabled = true; document.form.count.disabled = false; document.form.submit.disabled = false; } else if (myindex == 9) {
[ -0.0619160458445549, -0.2830839157104492, 0.4415442943572998, -0.2123182862997055, 0.17261706292629242, 0.04508167505264282, 0.4393775463104248, -0.5179824233055115, -0.253142386674881, -0.47511574625968933, -0.39702290296554565, 0.4402155578136444, -0.5047260522842407, 0.02244068682193756...
document.form.filter[0].disabled = true; document.form.filter[1].disabled = true; document.form.count.disabled = true; document.form.submit.disabled = false; } else{ document.form.filter[0].disabled = false; document.form.filter[1].disabled = ...
[ 0.02084973454475403, -0.3001687228679657, 0.17716936767101288, -0.2647678256034851, 0.10901596397161484, -0.10866759717464447, 0.41871893405914307, -0.6184972524642944, -0.10452517122030258, -0.637843132019043, -0.5911570191383362, 0.410855770111084, -0.6280625462532043, -0.030434843152761...
document.form.count.disabled = true; document.form.submit.disabled = false; } } function gotopage(actionname) { document.form.action=actionname+".action"; document.form.submit(); } </script> <body onload="OnChange()"> <s:form action="crInquiry" na...
[ 0.12191183120012283, -0.3324076533317566, 0.5975868701934814, -0.10764654725790024, 0.010672819800674915, 0.28894391655921936, 0.43868371844291687, -0.6430820822715759, -0.36292505264282227, -0.2847173511981964, -0.3951314091682434, 0.46995267271995544, -0.13193239271640778, -0.19244335591...
<s:select name="filterValue" list="headerList" id="myDropDown" onchange="OnChange();" /> <s:radio name="filter" list="#{'STATUS_FILTER_START':'START','STATUS_FILTER_END':'STOP'}" label="Stage"></s:radio> <s:textfield disabled="true" value="0" name="count" theme="css_xhtml"></s:textfield> ...
[ -0.15649528801441193, -0.34002619981765747, 0.6974620819091797, 0.03176160156726837, -0.2576097548007965, -0.321711003780365, 0.20417430996894836, -0.5958623886108398, -0.20440058410167694, -0.6925996541976929, -0.44582486152648926, 0.6517487168312073, -0.1561194807291031, 0.06351267546415...
I have the following DB relations: `Building hasMany Shape` `Appartment hasOne Shape` `Building hasMany Appartment` `Shape belongsTo Building & Appartment` Now, in the Shape model I would like to retrieve all shapes belonging to a certain building. This includes the shapes belonging to the appartments belonging to...
[ 0.37229785323143005, 0.530925452709198, 0.6058674454689026, -0.16115330159664154, -0.1219281405210495, 0.34741315245628357, 0.10155478119850159, -0.21768011152744293, -0.040126826614141464, -1.0315372943878174, -0.2820771038532257, 0.15597224235534668, 0.05645690858364105, 0.51813179254531...
to get my head around this, help is much appreciated. Use [CakePHP's Containable Behavior](http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html).
[ 0.21558085083961487, -0.06241726502776146, -0.12171977013349533, 0.1792043298482895, -0.103115513920784, -0.33987700939178467, 0.5652726292610168, -0.066165030002594, -0.35176143050193787, -0.5295834541320801, -0.19087184965610504, 0.2361176460981369, -0.25467419624328613, -0.2956600785255...
I have created 2 classes as follows... ``` public class A extends JFrame { public String x = "abcdefg"; } public class B extends JFrame { public String y; } ``` Both of these classes extend `JFrame`. I am wondering whether there is a way that the `String y` in `Class B` can inherit the value of `String x` i...
[ 0.3046894967556, 0.10306553542613983, 0.3516838550567627, -0.16371601819992065, 0.11853152513504028, 0.04143841192126274, 0.21090662479400635, -0.36997660994529724, 0.0365082286298275, -0.8602575659751892, -0.1772276610136032, 0.4238940477371216, -0.3727160394191742, 0.4517771899700165, ...
{ } public class B extends A { } ``` But TBH, we all think it's a terrible idea to have public fields!
[ 0.22028888761997223, 0.24414406716823578, -0.0370178297162056, -0.08465108275413513, -0.005966969765722752, -0.32716864347457886, 0.4410495460033417, 0.10143934935331345, -0.1900162547826767, -0.25682491064071655, -0.2524324059486389, 0.40964749455451965, -0.6673693656921387, 0.47764843702...
I want to send data within a WLAN as fast as possible to another device within this WLAN? And I am completely confused at the moment. If I want to send something from one device in this WLAN to another device in this WLAN. Do I necessarily need an IP Address then? So I could write a program that produces IP Packets a...
[ 0.37833958864212036, -0.2132846713066101, 0.24241672456264496, 0.21932604908943176, 0.16829077899456024, -0.31963852047920227, 0.17509251832962036, -0.02430289424955845, -0.1738031655550003, -0.7573639750480652, -0.07599585503339767, 0.2878872752189636, -0.30217671394348145, 0.380395799875...
Would it be faster than programming at Network layer? You could indeed sent to the MAC address. Bit I doubt if it's worth the effort. Using IP is the standard way of doing things. Speed would only improve minimally.
[ 0.15877734124660492, -0.06472592055797577, 0.2837856709957123, 0.37114205956459045, -0.08820773661136627, -0.07155918329954147, 0.34212151169776917, 0.11789371818304062, -0.05469800531864166, -0.6309149265289307, 0.16991026699543, 0.41061723232269287, 0.14025487005710602, -0.04566374793648...