Posts

osx - Installed jenkins 2.19.2 pkg and it says to enter InitialAdminPassword from the secrets folder.Unable to find password -

i installed jenkins 2.19.2 pkg on mac , says enter initialadminpassword secrets folder. dont find named initialadminpassword. there file called secret-key. unable open well. says cannot open reason. note:- have given myself authorization open file clicking on info on mac. can 1 pls help..

When sharing a Jdbc connection pool between spring-data-jpa and spring-security-oauth's JdbcTokenStore, how to handle transactions? -

we using jdbctokenstore spring-security persist oauth2 access tokens. same application heavily rely on spring-data-jpa. both share connection pool mysql database. jdbc defaults auto-commit mode , jdbctokenstore appears written assumption auto-commit on. never explicitly commits change. spring-data , jpa on other hand require transaction write operations. application uses @transactional annotation. we observing following issue: request (1): client obtains access token. jdbctokenstore inserts database. request (2): then, client uses access token in subsequent request. request rejected since token cannot found in database. this behaviour explained if transaction request (1) not yet committed. i'm not familiar internals of spring. possible following happens? some jpa operation acquires jdbc connection #1 pool, sets auto-commit=off, executes number of sql statements, and, then, commits. request (1): jdbctokenstore acquires same jdbc connection #1, executes insert ...

c# - Ajax post return error -

when post asmx web service, error returned: could not create type 'myprojectname.autocompletewebservice'. i tried answers in stackoverflow , many other sites, none 1 working in case. jquery $("#txtsearchkeyword").autocomplete({ source: function (request, response) { $.ajax({ url: "autocompletewebservice.asmx/indentifysearch", data: "{ 'keyword': '" + request.term + "','lang': 'en' }", datatype: "json", type: "post", contenttype: "application/json; charset=utf-8", datafilter: function (data) { return data; }, success: function (data) { $(currentelement).css({ "background": "rgb(255, 255, 255) none repeat scroll 0% 0% / auto padding-box border-box" }); response($.map(data.d, function (item) { return { ...

Password only authentication in PHP/mySQL -

is possible authenticate user in php/mysql without requiring them input username password? i created login authentication in dreamweaver checks users names against passwords in mysql works great! however, boss doesn't want user have type in name. wants them have put in unique code have name displayed on success page. i thought perhaps hide username input box , have populate itself... done recordset maybe? if possible show me how appreciate it, thank :) the best practice of authentication have minimum of 2 things need remember when want login. when server shows login challenge username , password, possible hacker need figure out 2 strings of data. when use password make easy hack application. can use token-based authentication. ask boss likes most. user can create own token via phone or other device logged in. have login once create token login on intranet / website. when want use password, sure can find in database. because encryption algoritmes can't rever...

c - Adding a new field to the bottom of the task descriptor -

when add new field task descriptor (task_struct), why should add bottom of task_struct ? if entries expected in places, entries those? i not find on internet or in linux kernel development book. this may due tailing of thread structures struct thread_struct, please confirm how threads structures maintained within task struct [may link list] or may tailing of these structures

javascript - Node.js AWS S3 Upload Never Calls End Function -

i'm using this aws s3 npm package handle s3 uploads express server. i'm having issue uploader never calls end function. var key = utils.createid(date.now()); var s3 = require('s3'); var client = s3.createclient({ maxasyncs3: 20, // default s3retrycount: 3, // default s3retrydelay: 1000, // default multipartuploadthreshold: 20971520, // default (20 mb) multipartuploadsize: 15728640, // default (15 mb) s3options: { accesskeyid: "actualkeyhere", secretaccesskey: "actualsecrethere", // other options passed new aws.s3() // see: http://docs.aws.amazon.com/awsjavascriptsdk/latest/aws/config.html#constructor-property }, }); var params = { localfile: req.file.path, s3params: { bucket: "actualbuckethere", key: key, // other options supported putobject, except body , contentlength. // see: http://docs.aws.amazon.com/awsjavascriptsdk/latest/aws/s3.html#putobject-property }, }; ...

python - sqlalchemy: migrate data from mysql to sqlite failes, Index "ClassName" already exists -

i try create local sqlite "working" copy of live mysql database better performance. i got type conversion mysql->sqlite types working, migration fails during index creation following exception: sqlalchemy.exc.operationalerror: (sqlite3.operationalerror) index classname exists [sql: u'create index "classname" on "member" ("classname")'] where "classname" column name. full output of engine can found here: http://pastebin.com/zpuqikvs i think problem same index name reused, don't know how change this. i use following script: # -*- coding: utf-8 -*- import os, sys import sqlalchemy sa sqlalchemy.ext.compiler import compiles sqlalchemy.dialects.mysql import enum, mediumtext, tinyint # define mysql -> sqlite mappings @compiles(enum, 'sqlite') def compile_enum(element, compiler, **kw): """ handles mysql enum type string in sqlite""" return compiler.visit_stri...