Posts

html - Web Proyect, need some jquery and paths -

i got problem, im trying add background-image maindiv, code doesnt work. $("#exd2").click(function(){ $(".maindiv").css({"background":"url('../../img/backs/steel.png')"}); }); folders -js: home: jsfile -img: backs -css: cssfile html files i think path of url, can me?

layout - Bootstrap-like col-row-grid functionality on React Native? -

Image
it better if demonstrate images. this trying achieve. assume landscape mode tablet size. let's have x amount of elements in array. want map across row until has 3 items in row, goes down. bootstrap, can col-md-4 3 times. currently using native-base . has interesting grid systems , not wanted. this have right now: <grid> <row> { recipestore.categories.map((category, index) => { return ( <col key={index} style={{height: 300}}> <card> <carditem> <body> <text>{ category.name }</text> </body> </carditem> </card> </col> ) })} </row> </grid> how can array iteration fill out 3 columns goes next row? you can use flexwrap: 'wrap' on parent contain , use flexbasis on children. import react, { component } 'react'; import { view, styles...

javascript - Why doesn't this basic anime.js work? -

i starting learn anime.js. see how worked, copied basic sample code documentation website . weirdly, square not animating right 250px should be... html: <!doctype html> <html lang="en-us"> <head> <link rel="stylesheet" type="text/css" href="style.css"> <script src="anime.min.js"></script> <script src="script.js"></script> </head> <body> <div id="cssselector"> <div class="line"> <div class="square el"></div> </div> </div> </body> </html> css: body{ background-color: #232323; } .square{ width: 100px; height: 100px; background-color: red; } and javascript var cssselector = anime({ targets: '#cssselector .el', translatex: 250 }); i see square there no animation. program does read anime.min.js because there ...

FAQ react-virtualized questions -

i attempting make grid polished. instead of asking these questions separately, thought gather them altogether in 1 place. for react-virtualized grid , how i: render decimals precision 2 , trailing zeroes 48.5 shows 48.50. put lines in between rows , lines in between columns. add column names header @ top of grid. change font of text in cell change alignment per cell cellrenderer looks this: cellrenderer ({ columnindex, key, rowindex, style }) { const { quotelist } = this.state; const rowclass = this.getrowclassname(rowindex) // first try @ making use of .css customize look. doesn't seen anything. const classnames = cn(rowclass, styles.cell, { [styles.centeredcell]: columnindex > 1 }) return ( <div //classname={classnames} key={key} style={style} > {quotelist[rowindex][columnindex]} </div> ) } i instantiating grid this: render() { return ( ...

Getting .Net Core 2.0 Self-contained to publish framework DLLs -

Image
the setup: .net core 2.0 plain mvc template: publishing folder: i added runtimeidentifiers: but can not vs copy .net core dlls output folder, site files. i've read this: ms core manual , seems should include them. "dotnet restore" seems nothing. what missing?!?! thanks. not sure issue was, appears latest vs update days after v15.3 new v15.3.1 fixes problem.

android - Error receiving broadcast Intent at org.jivesoftware.smack.SmackAndroid$1.onReceive -

my asmack library has bug, please tell me correct asmack library version , download address, or tell me other solutions. thank much! an occasional flash occurred in app. see code , picture descriptions details. (lookup.refreshdefault) related operation of network, main thread cannot carry out network operation, onreceive method should start new thread, cannot find asmack library source code, code can not modified, class files. please have experienced developers tell me how solve problem. android.os.networkonmainthreadexception @ android.os.strictmode$androidblockguardpolicy.onnetwork(strictmode.java:1273) @ java.net.inetaddress.lookuphostbyname(inetaddress.java:431) @ java.net.inetaddress.getallbynameimpl(inetaddress.java:252) @ java.net.inetaddress.getbyname(inetaddress.java:305) @ org.xbill.dns.simpleresolver.<init>(simpleresolver.java:56) @ org.xbill.dns.simpleresolver.<init>(simpleresolver.java:68) @ org.xbill.dns.extendedresolver....

php - Laravel: How can i generate two unique seeds in my laravel faker -

i want create 2 unique users in faker. wanna know right way of doing it. $factory->define(app\user::class, function (faker\generator $faker) { static $password; return [ { 'name' => "person 1", 'email' => "person1@gmail.com", 'password' => $password ?: $password = bcrypt('secret'), 'remember_token' => str_random(10), 'role' => 'super', }, { 'name' => "person 2", 'email' => "person2@gmail.com", 'password' => $password ?: $password = bcrypt('secret'), 'remember_token' => str_random(10), 'role' => 'admin', }, ]; }); this code solved problem $factory->define(app\user::class, function (faker\generator $faker) { static $password; return [ 'name' => $faker-...