Posts

sass - Issue with CSS3 transition flow -

i have setup background transition on this page . the first area of page "il blog - leggi tutti gli articoli" , "gli eventi - leggi tutti gli eventi" shows list of different post types in tiles. when hovering on 1 of them, transition start. when moving out mouse, other transition start. until there everything's fine. the problem shows when move mouse out of tile before transition completed. i trying figure out what's missing in css can't find it. i know solve problem moving transition jquery script, prefer using css approach. here scss excerpt of involved elements: article { @include box-shadow(0 0 2px $primary-color); @include transition(all 1s ease-in-out); @include border-radius(2px); background-image: url('../images/concrete_wall.png'); &:hover { @include box-shadow(0 0 4px $primary-color); background-image: url('../images/concrete_wall_2.png'); } } here's produced cs...

excel - Libre Office Calc row limit increase -

i need view 1 lakh (100,000) rows in libre office cal, row size limited. how can increase row size? or tool view 1 lakh lines. want data mining these records. file contain 1 lakh customer records. single file in csv format. 1 lakh rows , 40 columns need view. i'm using libre office version 3. the row limit of libre office depends on version using: pre 3.3.3: limit 65 536 rows 3.3.3 , later: 1 048 576 rows (1m)

sql server - Changing the Column data type that exists in more than one table -

i'm using sql server , have column asset_serial exists in more 1 table. the problem when wanted change type got this: msg 5074, level 16, state 1, line 1 object 'pk_assets' dependent on column 'asset_serial'. msg 5074, level 16, state 1, line 1 object 'fk_assigned_assets_assets' dependent on column 'asset_serial'. msg 4922, level 16, state 9, line 1 alter table alter column asset_serial failed because 1 or more objects access column. any suggestions...? asset_serial primary key of current table , foreign key table first should drop 2 constraint , alter field in both tables , @ last create constraints again if (object_id('fk_constraintname', 'f') not null) begin //drop constraint alter table [tablename] drop constraint [fk_constraintname] alter table [tablename] drop constraint [pk_constraintname] //alter table change column alter table alter column asset_serial //create cont...

ios - Draw the frame on the button edge -

i have buttons. need mark of them. make frames. can realize it? can draw frame on buttons edge? add quartzcore framework project. modify buttons follows: #import <quartzcore/quartzcore.h> ......... button.layer.borderwidth = 5.0f; button.layer.bordercolor = [[uicolor blackcolor] cgcolor]; button.layer.cornerradius = 5.0; //optional, if need rounded corners

I want To take registration Fee in Opencart -

i developing e-commerce website using opencart framework , want take registration fee $25 while registering user , how can implement or 1 have extension that. please me . in advance. the simplest solution: make registered customers inapproved - administrator has approve them. display each customer's id on "after-register" confirm page information registration fee has payed , while using id payment variable symbol (you format id code 000000001 , 000012456 , 0124578963 , etc.). after customer pays approve him within administration... automated solution: let registering user decide how pay registration fee (paypal, transfer, other services). after registration, while new customer still not approved , redirect pay service (if applicable). after successful payment (still using customer's id variable symbol) automatically approve user within payment callback. if bank transfer available you'd still have approve them manualy in case of unsucce...

c - Dealing with buf between user space and kernel -

i'm making simple device driver capable of receiving , sending characters using uart. my read , write functions follows: unsigned char uart_read(void){ unsigned int buf; while( ( ( inb(uart_lsr + uart) ) & uart_lsr_dr ) == 0 ){ schedule(); } buf = inb(uart); return (char)buf; } ssize_t serp_read(struct file *filep, char __user *buf, size_t count, loff_t *offp){ ssize_t cnt, ret; char *buffer; unsigned char data; int i; buffer = kmalloc(count * sizeof(char), gfp_kernel); printk("\nthis kernel, read called , count %zd\n", count); while(1){ buffer[i] = uart_read(); if(buffer[i] == '\n') break; i++; } buffer[strlen(buffer) - 1] = '\0'; if( (cnt = (copy_to_user(buf, buffer, strlen(buffer)))) != 0 ) printk("error in copy_to_user() cnt %d\n", cnt); ret = s...

wso2 - How to byepass a older version jar with new? -

i have written class mediator , used in wso2 esb uses ehcache-core-2.6.6 jar have put jar in \esb_home\repository\components\lib folder here twist, have jar ehcache_1.5.0.wso2v3 jar in esb_home\repository\components\plugins. jar comes wso2 esb. when run proxy containing class mediator, takes refrence of ehcache_1.5.0.wso2v3 jar instead of ehcache-core-2.6.6 jar due getting error as: [2013-05-14 17:10:59,898] error - nativeworkerpool uncaught exception java.lang.nosuchmethoderror: net.sf.ehcache.cachemanager.newinstance(ljava/lang/string;)lnet/sf/ehcache/cachemanager; @ tempuri.data.cachable.cachedata.cachedata(cachedata.java:32) @ tempuri.data.cachable.cachedata.mediate(cachedata.java:26) @ org.apache.synapse.mediators.ext.classmediator.mediate(classmediator.java:78) @ org.apache.synapse.mediators.abstractlistmediator.mediate(abstractlistmediator.java:71) @ org.apache.synapse.mediators.base.sequencemediator.mediate(sequencemediator.java:11...

windows runtime - Unable to add service reference to Portable library -

i not able add service reference portable library. target frameworks are .net 4.5, windows store , windows phone 8. thanks this issue fixed in vs 2012 update 2 . install , try again.

mongodb - shell script - check mongod server is running -

i have shell script mongo db actions: e.g. mongo testdb --eval "db.dropdatabase()" but, if mongod server not running, get: mongodb shell version: 2.0.4 connecting to: testdb tue may 14 04:33:58 error: couldn't connect server 127.0.0.1 shell/mongo.js:84 is there way in mongo can check connection status? want like: if(mongod running): mongo testdb --eval "db.dropdatabase()" else: echo "pls make sure mongod running" exit 1 you should able create bash script this: mongo --eval "db.stats()" # simple harmless command of sort result=$? # returns 0 if mongo eval succeeds if [ $result -ne 0 ]; echo "mongodb not running" exit 1 else echo "mongodb running!" fi

php - update database entry and/or preserve exisisting entries -

i building php application checks birthdays of users in database. these users granted variety of gifts @ birthday, may pick one. keep track of picked, can see has claimed gift , still has gift waiting. the target group of application companies, pay fee per employee part of application. application made make easier companies remember employees birthdays , show care. as companies grow/shrink, hiring, firing employees, update employee list every month system able exclude no longer work there , add new employees. now question is: how do smartest way? if remove every employee associated given company, when given current employee roster, , insert new list scratch, loose association between employee , un/claimed gift in database. on other hand, make sure preserve association in database, if add new employees , remove no longer on roster, how go smartest way? the fields got on employees id , firstname , surname , email , birthday , company_id . neither of these way identify wh...

renaming a file while creating zip file through Maven-assembly plugin -

i using maven-assembly plugin create zip , how can rename files while zipping using same plugin?? update: this profile in pom <profile> <id>d1</id> <activation> <property> <name>d1</name> <value>true</value> </property> </activation> <build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-assembly-plugin</artifactid> <version>2.2.2</version> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> ...

ado.net - how to have indexer object containing data of a database row without DataRow/DataReader in C# -

i'm having 2 wrapper classes contain datareader , datarow, respectively. wrapper classes implement same interface iindexer. used because have lots of methods indexes columns values: here example: how can read datarow or datareader using same code? now need have 3rd option insert-statements. there's no datatables datarow , no need read db. this mayber done having indexerwrapper (or dictionarywrapper): public class indexerwrapper : iindexer { private readonly dictionary<string, object> _indexer; public datareaderwrapper(dictionary<string, object> indexer) { _indexer = indexer; } public object this[string index] { { return _indexer[index]; } } } i have column information of database table loop columns , add column names keys. is there better way it? not handy because have initialize it. performance? in future used large masses , column names stored each item. there overhead compared collection of datarows? ...

Send multiple outputs to the same HTML file in Powershell -

trying figure out how convert html multiple service checks: i have script: get-service -computername server1 -name *service1* | convertto-html -body "<h2>service 1 check</h2> " -property name,status get-service -computername server2 -name *service2* | convertto-html -body "<br><h2>service 2 check</h2> " -property name,status | out-file c:\servicecheck.htm is possible? may can - $event = get-eventlog -logname security -newest 100 | convertto-html -fragment $process = get-process | convertto-html -fragment convertto-html -body "$event $process" -title "status report" | out-file c:\statusreport.html nb: replace $event , $process service cmdlets. -fragment [<switchparameter>] generates html table. html, head, title, , body tags omitted. reference - http://technet.microsoft.com/en-us/magazine/hh127059.aspx

products - Is there a limit for the number of targets you can have in an Xcode project? -

i'm planning have different targets in single xcode project. there limitation on number of targets can have? tested creating 10 targets manually , didn't see problem i'd know if had problem before. targets alone don't have weight. the file references of targets (e.g. source files build) , dependencies tend set logical limits. have project on 100 targets. it's better build things out dependencies, possible.

Android emulator not connecting to internet in xamarin -

i trying create webview , load simple page in in android xamarin. manifest has setting still not able connect internet. when trying connect internet default web browser in emulator, says webpage cannot loaded. how should make connect internet? my problem had set proxy settings in emulator

url - IIS7 HTTP to HTTPS Redirection -

i having difficulty redirecting users https using iis7. i've tried following steps outlined on variety of sites include editing web.config, url rewrite module, , custom error pages. i've found best technique use url rewrite doesn't seem working expected. here information regarding environment. new please bear me. currently, have sql reports can viewed navigating to: reports.domain.us . redirects user http://reports.domain.us/reports/pages/folder.aspx . currently, there rule in iis under http redirect redirects requests "/reports". here web.conf looks before url rewrite rules applied: <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webserver> <httpredirect enabled="true" destination="/reports" /> </system.webserver> </configuration> after applying rule, web.conf <?xml version="1.0" encoding="utf-8"?> <configurat...

php - Creating new Exception classes, new arguments -

i writing new code in want use self defined exceptions. instance tablecreationfailedexception . since i'm using php base class deriving exception class. in case of particular exception needs hold table not created. i'm wondering how best have table field in exception set. required argument in constructor seems way go. put new argument @ front of argument list? shall drop message , arguments if not expect them needed? conventions here, if any? there no hard , fast rules; work fine: class tablecreationfailedexception extends \exception { public function __construct($table, \exception $previous = null) { parent::__construct("table $table not created", 0, $previous); } } in case put specialized argument $table in front of ones parent exception constructor accept. it's advisable make sure can chain exceptions adding $previous constructor arguments. i've left out $code , hardcoded 0 ; add this: public function __...

php - compare multi value with foreach -

regex a=1 b=2 c=4 d=17 g=9 ... is function check if charecter , number same .... funnction compare($val1,$val2) { $val1=explode("|",$val1) $val2=explode("|",$val2) foreach(?) { ???? } } how can compare foreach want copare pair $val1[1] $val2[1] , if right return true this example of call function compare ("g|d|a","7|11|12") compare g 7 d 11 .... what mean in copare pair $val1[1] $val2[1] , if right return true? why not use $val1===$val2 ? you can use $result=true; for($i=0; $i<count($val1);$i++){ $result = $result && ($val1[$i]==$val2[$i]); }

winapi - Launching a Metro-style app from a Desktop application -

is there way launch windows 8 app desktop app? e.g : in desktop app push button, , win8 app start(win8 app in suspend mode). yes, there is, using packagemanager , iapplicationactivationmanager api. see our metro-driver project sample code.

svn - A PHP Github class to do updates only -

i have php application want extend self updating capabilities. me best solution use sort of svn protocol update php application. currently application hosted on github, i'm looking class able update local application latest version on github. is there such class available? i'd have class that. don't need functionality commit code, list files in repository or things that. needs update. so i'm looking pure php class can this, doesn't need github application installed on machine in order work. so simple like: $repo = new github ( 'path/to/local/repo', 'url/to/remote/repo', 'master' ); $repo->update ( );