Posts

Showing posts from July, 2015

java - Not serializable exception File Chooser -

i have problem saving object output stream. reading there , tried make filechosser transient, ide says, not allowed here. classes implements serializable , don't know, problem. here error output: java.io.notserializableexception: javax.swing.plaf.metal.metalfilechooserui @ java.io.objectoutputstream.writeobject0(objectoutputstream.java:1184) @ java.io.objectoutputstream.defaultwritefields(objectoutputstream.java:1548) @ java.io.objectoutputstream.writeserialdata(objectoutputstream.java:1509) @ java.io.objectoutputstream.writeordinaryobject(objectoutputstream.java:1432) @ java.io.objectoutputstream.writeobject0(objectoutputstream.java:1178) @ java.io.objectoutputstream.writeobject(objectoutputstream.java:348) @ javax.swing.event.eventlistenerlist.writeobject(eventlistenerlist.java:259) @ sun.reflect.generatedmethodaccessor8.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method....

mongodb - Mongoose CastError String -

i've been having problem code. i'm using mongoose connect mongodb , store documents. i'm trying store calendar events object array. when send data server shows error: { [casterror: cast string failed value "[object object]" @ path "agenda"] message: 'cast string failed value "[object object]" @ path "agenda"', name: 'casterror', kind: 'string', value: { type: 'sessão plenária', vereadores: [object], local: [object], desc: 'ss', nome: 'novo evento', data_horafim: '2016-04-20t07:00:00.000z', data_horainicio: '2016-04-19t19:00:00.000z' }, path: 'agenda', reason: undefined } } if turn string works, in model not array of strings. var camaraschema = new mongoose.schema({ obj_id_usuario: { type: string, default: '' }, cidade: string, estado: string, endereco: { lbl_logradouro: { type: string, ...

python - Function annotations -

i function annotations, because make code lot clearer. have question: how annotate function takes function argument? or returns one? def x(f: 'function') -> 'function': def wrapper(*args, **kwargs): print("{}({}) has been called".format(f.__name__, ", ".join([repr(i) in args] + ["{}={}".format(key, value) key, value in kwargs]))) return f(*args, **kwargs) return wrapper and don't want function = type(lambda: none) use in annotations. use new typing type hinting support added python 3.5; functions callables , don't need function type, want can called: from typing import callable, def x(f: callable[..., any]) -> callable[..., any]: def wrapper(*args, **kwargs): print("{}({}) has been called".format(f.__name__, ", ".join([repr(i) in args] + ["{}={}".format(key, value) key, value in kwargs]))) return f(*args, **kwargs) return wrapp...

angularjs - server side filtering with UI grid -

there default filtering provided ui grid whcih enabled using enablefiltering: false in gridoptions. instead of using default filtering use text entered in filter box multiple columns, send filters serevr , data back. have tried using filteroptions $scope.$watch('filteroptions', function (newval, oldval) { if (newval !== oldval) { $scope.getpageddataasync($scope.gridoptions.$gridscope.filtertext); } }, true); never gets invoked. appreciated. there couple of different ways can this. in onregisterapi in grid options can this: onregisterapi: function(gridapi) { gridapi.core.on.filterchanged($scope, function(rowentity, coldef, newvalue, oldvalue) { // check filter value changed , // value filter in column x can gridapi.grid.columns[x].filters[0] } ); } you may set filter object on each cell. perhaps collect various columns wish filt...

ios - How can each iCloud user save a user specific subscription in CloudKit? -

i’m having issue creating subscriptions in public cloudkit database. code works fine when saving subscription first icloud user fails trying save different subscription against same record type second icloud user. here code saves subscription (answers in swift fine too): cknotificationinfo *info = [[cknotificationinfo alloc] init]; info.shouldsendcontentavailable = yes; ckreference *ref = [[ckreference alloc] initwithrecordid:_ckuserid action:ckreferenceactionnone]; nspredicate *pred = [nspredicate predicatewithformat:@"user == %@", ref]; nsstring *subid = [nsstring stringwithformat:@"access-%@", _ckuserid.recordname]; cksubscription *sub = [[cksubscription alloc] initwithrecordtype:@"access" predicate:pred subscriptionid:subid options:cksubscriptionoptionsfiresonrecordcreation | cksubscriptionoptionsfiresonrecordupdate | cksubscriptionoptionsfiresonrecorddeletion]; sub.zoneid = [ckrecordzone defaultrecordzone].zoneid; sub.notificationinfo = info...

PHP Split array values based on time -

i want human readable words php code: take values column "ratings" time >= 24 hours split them 1 hour each take average rating values each hour , put them 24 variables whati'm doing bad long code :/ i'm taking them hour after another, each 1 in separate function specify hour via mysql select statement! i'm new in programming, , couldn't figure out values @ once, , split them 1 hour each thanks edit : changed fiddle, uses time int, represents seconds since january 1st, 1970. take @ fiddle: http://sqlfiddle.com/#!2/6e6b6/5/0 returning rating average on hourly basis. need? think might tune query other needs. you can read more @ http://dev.mysql.com/doc/refman/5.6/en/date-and-time-functions.html

javascript - jQuery read title with $.get page -

i title witch included in other page (on same domain). on moment, following code isn't working: $.get("/example.html", function(html){ alert($(html).attr('title')); }); content of example.html page is: <html> <head> <title>foo</title> </head> ... </html> you can use filter() @ context filter out title tag, alert($(html).filter("title").text()); and use .text() extract text content.

ios - PubNub not receiving push notifications after registering with channel? -

i register push notifications device device token apns. i've registered on channel a, never receive notifications. there easy way troubleshoot this? this question lot. due fact device push registration token invalid. there many reasons why token become invalid. due user deleting app device. if reinstall, need new push token. the best practice make sure token valid asking token every time app cold starts - meaning 1didfinishlaunching` invoked. caching token on device , comparing each fetch let know if registered token has been invalidated. more details on best practices, please read pubnub kb article, can prevent ios end users having invalid registration token? . to troubleshoot push notification issues pubnub (even if not pubnub root cause), please review how can troubleshoot push notification issues . layout step step process getting root cause of issue. works pubnub gcm push notification issues.

Java Bubble sorting not working -

i want write program sorts 3 integers. integers entered input dialog. code simple. need data , put them in array called num . , create method sort data using bubble-sort logic. method called sort . have added command display sorted result system.out.println("sorted result : "+arrays.tostring(num)) that's not working. output let me input data , nothing happen. can please tell me miss or did wrong? thank you. package numthree; import java.util.scanner; import java.util.arrays; public class sort { public static void main(string[] args) { scanner sc = new scanner(system.in); int[] num = new int[3]; //input data system.out.println("enter integers : "); for(int i=0;i<=num.length;i++){ num[i]=sc.nextint(); } sort(num); } //sorting public static void sort (int[] num){ for(int i=0;i<=num.length-1;i++){ for(i...

python - python3 xpath can't reach a child node (AttributeError: 'NoneType' object has no attribute 'text') -

need issue didn't manage find have xml this: <forecast xmlns="http://weather.yandex.ru/forecast" country_id="8996ba26eb0edf7ea5a055dc16c2ccbd" part="Лен Стокгольм" link="http://pogoda.yandex.ru/stockholm/" part_id="53f767b78d8f180c28d55ebda1d07e0c" lat="59.381981" slug="stockholm" city="Стокгольм" climate="1" country="Швеция" region="10519" lon="17.956846" zoom="12" id="2464" source="station" exactname="Стокгольм" geoid="10519"> <fact>...</fact> <yesterday id="435077826">...</yesterday> <informer>...</informer> <day date="2016-04-18"> <sunrise>05:22</sunrise> <sunset>20:12</sunset> <moon_phase code="growing-moon">14</moon_phase> <moonrise>15:53</moonrise> <moons...

c++ - Organizing files TO folders (Module programming) -

i creating visual c++ project now, , make way arrange files. tried create folders seems pretty hard make them visual studio, because these folders empty , after including solution going work on them (like java packages. first add them , code in it, in same ide, same project). it seems way not working because can not add include files. tried create filters. not physical divide of files if way c++ community code have no problem. otherwise probvlem because university project. so in case best "filters", how can call 1 filter another? @ below example filterfolder1 people.h people.cpp filterfolder2 vehicles.h vehicles.cpp now, have problem in arranging stuff in way well. bceuase right click on filterfolder1 , select add -> c++ class still class created in it's default location, header file in header files filter , cpp file in source files filter. had manually drag , drop files make above architecture. now, how can call people class (people.h , ...

amazon web services - fix when auto upload file to s3 using php -

i'm trying create php script auto upload file bucket in aws s3, , when runing script give error message : warning: s3::putobject(): [requesttimetooskewed] difference between request time , current time large. in f:\xampp\htdocs\tst\s3.php on line 377 upload-file.php $bucket = '--** bucket name **--'; //include s3 class if (!class_exists('s3'))require_once('s3.php'); //aws access info if (define('awsaccesskey', 'myaccesskeyfromaws')); if (define('awssecretkey', 'mysecretkeyfromaws')); //instantiate class $s3 = new s3(awsaccesskey, awssecretkey); //here if isset $_files if(isset($_files['userfile']) && $_files['userfile'] != null) { $s3->putobjectfile($_files['userfile']['tmp_name'], $bucket , $_files['userfile']['name'], s3::acl_public_read_write) } <br><br> <form action="" method="post" enctype="multipa...

javascript - HTML Img's failing to load -

Image
just fun, i'm trying implement "15 puzzle", 16 images (from 1 music photo) instead. the thing split 2 scripts / sides. 1 python cgi script perform last.fm query + splitting image in y x z chunks. when python script finishes outputs json string contains location (on server), extension etc. {"succes": true, "content": {"nrofpieces": 16, "size": {"width": 1096, "height": 961}, "directoryname": "mako", "extension": "jpeg"}} on other side html, js, (css) combo query cgi script images. $(document).ready(function () { var artiest = $("#artiest") var rijen = $("#rijen") var kolommen = $("#kolommen") var speelveld = $("#speelveld") var search = $("#search") $("#buttonclick").click(function () { var artiestz = artiest.val() var rijenz = rijen.val() var kolommenz = kolommen.val() $.getjson(...

java - run the startUp method at the deploy a web service -

i try execute startup method when deploy web services, doesn`t work. i'm using: windows 7 tomcat 8.0.30 axis2 1.7.0 i've tryed deploy service pojo service try generating *.aar , placing in: apache-tomcat-8.0.30\webapps\axis2\web-inf\services when run tomcat, , deploy , other services, startup method dont launch. code: import java.io.*; import java.util.*; import org.apache.axis2.context.configurationcontext; import org.apache.axis2.description.axisservice; import org.apache.axis2.engine.servicelifecycle; public class login implements servicelifecycle{ static string ipprop = ""; static string rutadb = "c:/resources/users_db.txt"; static string rutauddixml = "c:/resources/uddi.xml"; static string rutaip = "c:/resources/ip.txt"; static boolean registrado=false; static string comp =""; public static void main(string[] args) { ip(); string nombrese...

java - In Selenium WebDriver, how do I find an element with a DOM ID and no className? -

the element trying manipulate drop down autocomplete text box. rather normal text box this: <input class="rad-input acinput float_left edschedulelist ui-autocomplete-input" style="width: 234px; font-size: 12px; font-family: segoe ui, arial, times new roman; padding-left: 4px; line-height: 12px;" placeholder="select schedule..." data-bind="click: _editoroverlay.overlay.customrecvm.scheduledata.ac.dropdownarrowclick, enable: _editoroverlay.overlay.customrecvm.scheduleenabled, jqauto: { autofocus: true }, jqautosource: editoroverlay.overlay.customrecvm.scheduledata.list, jqautoquery: editoroverlay.overlay.customrecvm.scheduledata.getlist, jqautovalue: _editoroverlay.overlay.customrecvm.scheduledata.selectedid, jqautosourcelabel: 'text', jqautosourceinputvalue: 'text', jqautosourcevalue: 'value', jqchange: _editoroverlay.overlay.customrecvm.scheduleindexchanged" id=...

webserver - Fingerprint comparison with php -

Image
i have small device scans fingerprints. there have image of fingerprint. hope can "bio-id" of fingerprint image , send id server. server side can execute php. there compare "bio-id". in best case no php libraries required , "bio-id" can compared string. authenticate user, means have compare fingerprints. it work on picture described: is important on server side possible use php (no special configuration), great if fingerprint sent string , string can compared other strings without effort. thank much so assuming question "what next steps need in order system work". well since have scanner (futronic fs88h), gives bitmap, have pass bitmap through algorithm changes string. mentioned in best case scenario wish not use library, more complicated if didn't. library collection of code has developed specific purpose. if don't want use function else created fingerprint string bitmap, have create yourself, million times more ...

How to join collection in in mongodb? -

i have 3 collections: collection1 like: { "_id" : objectid("5716617f4af77ca97a9614bd"), "count" : 1, "author" : "tony" } { "_id" : objectid("5716617f4af77ca97a9614be"), "count" : 2, "author" : "joe"} { "_id" : objectid("5716617f4af77ca97a9614bf"), "count" : 3, "author" : "mary" } { "_id" : objectid("5716617f4af77ca97a9314bf"), "count" : 2, "author" : "lee" } means author tony writes 1 book, author joe writes 2 books , author mary writes write 3 books. collection2 like: { "_id" : objectid("5716617f4af77ca97a9614bd"), "count" : 2, "author" : "tony" } { "_id" : objectid("5716617f4af77ca97a9614be"), "count" : 2, "author" : "joe"} means author tony writes 2 papers, author joe wri...

Cygwin "using: command not found" for C++ program -

hoping free myself eclipse , not wanting keep using online cpp.sh, wrote small program in cygwin in nano , tried run it. code included clarity. #include <iostream> #include <string> using namespace std; int main() { int i; string mystr; cout << "enter number: "; cin >> i; cout << "you entered: " << i; cout << " , double: << i*2 << ".\n"; cin.ignore(); cout << "name: "; getline(cin, mystr); cout << "hello " << mystr << ".\n"; cout << "team? "; getline(cin, mystr); cout << "go " << mystr << "! \n"; return 0; } trying run returns series of errors, seen in picture . right now, i'm trying understand why "using" not recognized. checking google found many similar complaints, never command "using," because "using" common enough ...

ios - swift change tab bar title font -

i wonder how can change font , size of title in tabs when use tab bar. i have looked in docs , cant find title font , size - source you can change via appearance proxy: let font: uifont = ... uitabbaritem.appearance().settitletextattributes([nsfontattributename: font], forstate: .normal) you should put in app delegate in func application(application: uiapplication, didfinishlaunchingwithoptions launchoptions: [nsobject: anyobject]?) -> bool

datatables + how to combine server side processing code with File export code -

this datatables example of adding buttons export data csv, pdf, excel.... fiddle here https://datatables.net/extensions/buttons/examples/initialisation/export.html $(document).ready(function() { $('#example').datatable( { dom: 'bfrtip', buttons: [ 'copy', 'csv', 'excel', 'pdf', 'print' ] } ); } ); this datatables example of server-side processing https://datatables.net/examples/server_side/simple.html $(document).ready(function() { $('#example').datatable( { "processing": true, "serverside": true, "ajax": "scripts/server_processing.php" } ); } ); now how combine above code one, have data tables server side processing , attempt, not sure wrong, or if indeed close. $(document).ready(function() { $('#example').datatable( { "processing": true, "servers...

AngularJS : Model update detection and change event -

i wonder best way handle change event of input angular. in fact can listen model updates corresponding listeners triggered @ each character entered not when input updates ended. thanks help. thierry you can use example inspired of it. it's directive enter : app.directive('ngenter', function() { return function(scope, element, attrs) { element.bind("keydown keypress", function(event) { if(event.which === 13) { scope.$apply(function(){ scope.$eval(attrs.onenter); }); event.preventdefault(); } }); }; }); html : <div ng-app="" ng-controller="mainctrl"> <input type="text" ng-enter="dosomething()"> </div>

sql - LPAD and RPAD on a CASE statement -

i'm trying pad left , right of case statement 3 asterisks. runs values don't show null values. ideas? select p.patientfirstname || ' ' || p.patientlastname "patient" ,case when i.insuranceid null rpad(lpad('no insurance', 3, '*'), 3, '*') else i.insurancename end "insurance name" patient p full outer join insurance on (p.insuranceid = i.insuranceid); as wrote in comment, if want constant string, use 1 , away padding: select p.patientfirstname || ' ' || p.patientlastname "patient" ,case when i.insuranceid null '***no insurance***' else i.insurancename end "insurance name" patient p full outer join insurance on (p.insuranceid = i.insuranceid); padding used ensure fixed-size string when working transforming strings of variable shorter sizes. see example: select lpad('hola',7, '*'), lpad('namaste',7, '*'), lpad('hello',...

Use controls from another form/controller in JavaFX 8 -

i have javafx 8 application... mainapp.java parent root; root = fxmlloader.load(getclass().getresource("/fxml/mainform.fxml")); scene scene = new scene(root); stage.setscene(scene); stage.show(); the mainform.fxml defines controller fx:controller="maincontroller" , controller contains text field textfieldusername . @fxml protected textfield textfieldusername; then, there second form auxform.fxml controller fx:controller="auxcontroller" . second form included in mainform.fxml this: <content> <fx:include source="auxform.fxml" /> </content> now need value of textfieldusername . value needed in second controller have no idea how this. first idea public class auxcontroller extends maincontroller have controls available doesn't work. add fx:id fx:include : <content> <fx:include fx:id="auxform" source="auxform.fxml" /> </content...

unity3d - Unity: login into facebook with Soomla and Facebook SDK is always opens at browser -

soomla core version: 1.3.1 facebook sdk version: 7.2.2 unity: 5.3.3 trying login facebook unity game (by using soomlaprofile.login(provider.facebook);) the problem is: opens login screen safari, not in facebook app. setting sharedialogmode = sharedialogmode.native; inside mobilefacebook.cs doesn't help. automatic by-default opens browser, not app. facebook app installed. how fix it? need open facebook app if installed , run login inside it. as understand facebook developers site, according bug report https://developers.facebook.com/bugs/786729821439894/ , facebook ios sdk 4.6 by design . using facebook sdk version: 7.2.2, has underlying ios 4.7 sdk. (according https://developers.facebook.com/docs/unity/change-log , v7.2.0 - october 13, 2015 updated ios sdk 4.7) seems ios9 , facebook sdk > 7.2.0 intended behavior due changes in ios9 (read more here: https://developers.facebook.com/blog/post/2015/10/29/facebook-login-ios9 ). hope helped, , did not misinterp...

javascript - Knex.JS Auto Update Trigger -

i using knex.js migration tools. however, when creating table, i'd have column named updated_at automatically updated when record updated in database. for example, here table: knex.schema.createtable('table_name', function(table) { table.increments(); table.string('name'); table.timestamp("created_at").defaultto(knex.fn.now()); table.timestamp("updated_at").defaultto(knex.fn.now()); table.timestamp("deleted_at"); }) the created_at , updated_at column defaults time record created, fine. but, when record updated, i'd updated_at column show new time updated @ automatically. i'd prefer not write in raw postgres. thanks! you can create knex migration using timestamps : exports.up = (knex, promise) => { return promise.all([ knex.schema.createtable('table_name', (table) => { table.increments(); table.string('name'); table.timestamps(false, t...

haskell, how to unwrap IO monad -

this question has answer here: how normal value io action in haskell 2 answers i can do: runidentity , runerrort , more unwrap inner monad. however, should in case of io (either string int) ? how unwrap ? you not unwrap io a actions. instead, include them in main action (which has io type, hence can use such actions) , compiler ensures main executed. you may teach functions not understand io how handle io ; example, have: fmap :: (a -> b) -> io -> io b (=<<) :: (a -> io b) -> io -> io b thus if have function consumes either string int , may use 1 of above functions teach how consume io (either string int) instead. for further reading, may enjoy the io monad people don't care . (i monad tutorials you have invented monads! (and maybe have.) , all monads , though less directly relevant question.)

java - How to send a mail when a mail id itself contains spaces? -

how can send mail mail id contains spaces in it. eg. group mail id have mail id dl-blr f1 a2@company.com i tried in java using javax jars says illegal whitespace error. if have e-mail address contains spaces have pass false strict parameter in internetaddress constructor, this: new internetaddress("dl-blr f1 a2@company.com", false); this skip strict checks rfc822 (including white spaces).

swing - Is java frame completely disposed after being closed? -

i have jframe has it's setdefaultcloseoperation jframe.dispose_on_close.but problem of it's threads not closed after being disposed. if put on jframe.exit_on_close whole system exits not want. there way dispose , release it's threads , resources after closure , not have system exited? as shown here , memory allocated host platform heavyweight peer of top-level container may not reclaimed until jvm exits. expedient solution use single top-level container. jvm may use multiple host threads in normal course of execution; profile application identify leaks. may compare live thread display thread dump , example .

How to intercept music control keyboard shortcuts in Java? -

if keyboard has buttons play/pause/etc (music control shortcuts), , press them, itunes open (at least on mac). if opened music player, spotify, intercept shortcut keys, , itunes won't anything. well, want make music player java, , want have same behavior. want application intercept such shortcuts, , other programs shouldn't able interfere. i using javafx, although don't think matters. how can achieve this? i able detect keys user presses using jnativehook , not know how intercept keys other applications won't things them. once detect keys, send pause key song being played itunes paused, use boolean variable detect between shortcuts being typed on keyboard or being send program(in case if need) or you use c code(start c program along java program) take @ @dave delongs answer on here modify nsevent send different key 1 pressed have different keyboard shortcut , modify c program send shortcut keys while itunes shortcut keys pressed, if need ke...

php - Smarty 3 Exit Tag -

in smarty 3 using 1 - {break} break; continue; keyword 2- {continue} used continue; keyword have written custom plugin exit tag same break <?php /* * modified exit tag */ function smarty_compiler_exit( $contents, &$smarty ) { return 'exit;'; } ?> but when use {exit} gives output :- exit; not working php exit keyword why not use return ? compiler.return.php <?php function smarty_compiler_return($tag_arg, &$smarty) { return "<?php return;?>"; } ?> so when call {return} within tpl, returns flow php.

paypal - Payment and billing plan in one transaction -

this first time using paypal api go easy on me. the case trying handle follows: customers can purchase software licenses can either 1 time payments, or yearly payments. can multiple products cart, , each product can have either 1 of pricing plans mentioned above. if understand correctly, "payments" in api handle 1 time transactions, , "billing plans" used recurring payments. is possible processes both in 1 call api? if not, there different way achieve this? any suggestions appreciated! tia! not 1 api call, can in 1 checkout flow multiple api calls. for paypal wallet payments (logging in paypal , paying) recommend using express checkout w/ recurring payments . with using setexpresscheckout, getexpresscheckoutdetails, , either doexpresscheckoutpayment, createrecurringpaymentsprofile, or combination of both of depending on products in card , whether need one-time payment or recurring. the crpp call allow setup recurring profile , include ...

linux - Executing omxplayer, on a C program, via execve/l won't output video on non-X console on child process after fork() -

hy. i'm trying execute omxplayer ( http://elinux.org/omxplayer ) on raspberry pi after c fork() via execve or execl functions can save pid video playing process (so system not work). if execute program on x console/terminal works if via standard terminal (without starting x) run not output video screen if execve called on child process. way, executing player via "omxplayer ..." commnad in console play video , output screen. i'm bit new kind of things situation haven't been able solve or find answer to. here has ideia on how solve or direction give me find possible solution? note: code execve call wich know right because in x works perfectly. the execve() call supplies new environment executed program. program able access x display, need retain environment variables -- display @ minimum. have inadvertently omitted display new environment? for omxplayer work without x, has have access video device ( /dev/video , in case; see omxplayer builds p...

asp.net - Why do I get empty strings when reading GridViewRow text values? -

well since no 1 able determine why my datatable not updated gridview data , i'm trying directly values gridview. problem text values reading gridviewrows empty strings. here code: aspx markup code gridview: <asp:gridview id="esbandtsrvaluesinputgridview" runat="server" showfooter="true" autogeneratecolumns="false"> <columns> <asp:boundfield datafield="awardid" headertext="award id" visible="false" /> <asp:boundfield datafield="awardname" headertext="award name" /> <asp:templatefield headertext="esbvalue"> <itemtemplate> <asp:textbox id="esbvalue" text='<%# eval("esbvalue") %>' runat="server"></asp:textbox> </itemtemplate> </asp:templatefield> <asp:templatefield headertext="tsrvalue"> <itemtemp...

winapi - Information about Container Resource -

i'm writing code enumerate devices in network using wnetopenenum function , wnetenumresource , msdn documentation in link http://msdn.microsoft.com/en-us/library/windows/desktop/aa385478(v=vs.85).aspx mentions terminology container resource .i have googled , didn't information on same , please let me know container resource means . like said on manual page linked: the wnetopenenum function used begin enumeration of resources in single container. following examples show hierarchical structure of microsoft lan manager network , novell netware network , identify containers. lanman (container, in case provider) accounting (container, in case domain) \\acctspay (container, in case server) payfiles (disk) laserjet (print) here containers lanman , accounting , \\acctspay . netware (container, in case provider) marketing (container, in case server) sys (disk, first 1 on netware server) anothervolume (disk) laserj...

php - Add Directory EasyPHP Devserver 16 -

i upgraded easyphp 14 16. i liked new feature "working directories", try use special directory in computer, folders of dropbox , google drive, work. ps: use "normal" folder work perfectly. error: 403 forbidden forbidden don't have permission access /edsa-testing/test.php on server. just edit file: apache/httpd.conf . search < directory > , edit: # deny access entirety of server's filesystem. must # explicitly permit access web content directories in other # <directory> blocks below. <directory /> options followsymlinks allowoverride none order deny,allow allow </directory> works in devservers! tested in easyphp , wamp.

javascript - Safari WebDriver setTimeout using protractor exiting -

Image
i have done lot of unit tests using karma, office have integration tests, testing cross browser capabilities. this, seemed protractor best option, , have started get basic dashboard tests going, stuck safari. my config: exports.config = { seleniumaddress: 'http://localhost:4444/wd/hub', specs: ['scenarios/*scenario.js'], framework: 'jasmine', baseurl: 'https://www-dev.remeeting.com/', multicapabilities: [{ browsername: 'firefox' }, { browsername: 'chrome' }, { browsername: 'safari' }], onprepare: function() { browser.driver.get('https://www-dev.remeeting.com/'); browser.driver.findelement(by.id('email')).sendkeys('adam+test@mod9.com'); browser.driver.findelement(by.id('password')).sendkeys('abc123'); browser.driver.findelement(by.id('submit_btn')).click(); // login takes t...

Auto Convert Json String to C# Object -

i have string below '\t', '\r' , '\n' need convert valid json format loop can deserializeto object without listing object properties. "title\tfirstname\tlastname\tage\r\nmr\tbla bla\tbla bla\t25\r\nmiss\tbla bla\tbla bla\t35\r\n" you can use string.split method solve problem. first of need split \r\n - give individual rows data you can loop through these rows , split each of them \t symbol - give array of properties after have "ingredients" - can build objects: using dynamic objects new { firstname = arraydata[0], lastname = arraydata[1], ..} , or can create new class required properties last step serialize collection of objects json - recommend json.net library purpose: http://www.newtonsoft.com/json

html - <a href> coming before span in css -

Image
i creating jobs page , making when ran across think styling problem. if @ image below can see apply button comes before time , city want apply button farthest left not position way led me believe styling error on part. know why be? code posted below. html <div class="job-case"> <h4>ios engineer</h4> <span>chicago</span> <a href="#">apply</a> </div> css .job-case { height: 0 auto; width: 0 auto; background-color: white; margin: 10px; padding: 0 auto; border-radius: 5px; border: 1px solid none;; } .job-case:hover { background-color: #f3eff5; border-color: #212121; } .job-case h4 { color: #212121; font-weight: bold; font-size: 20px; display: inline-block; padding-left: 30px; } .job-case { float: right; height: 0 auto; margin-top: 17px; padding: 10px; color: #72b01d; background-color: none; border: 2px solid #72b...