Posts

Showing posts from August, 2014

python - Detect header delimiters importing a csv file using pandas read_csv -

here go again. hi, i'm trying detect error in csv file. the file should follows goodfile.csv "col_a","col_b","col_c","col_d" "row1cola","row1colb","row1colc","row1cold" "row2cola","row2colb","row2colc","row2cold" "row3cola","row3colb","row3colc","row3cold" "row4cola","row4colb","row4colc","row4cold" "row5cola","row5colb","row5colc","row5cold" "row6cola","row6colb","row6colc","row6cold" "row7cola","row7colb","row7colc","row7cold" but file have actually brokenfile.csv "col_a","col_b",col c,"col_d" "row1cola","row1colb","row1colc","row1cold&quo

android - Custom listview selector / drawable dimensions? -

Image
is there way can set listview selector custom drawable occupies portion of item view? have made drawable rectangle , set selector, i'm having difficult time getting size properly. picture shows have (1) , desired effect (2). got - decided set selector drawable shows border on 1 side, , messed around insets no avail (for reason top , bottom not working properly). made layer list , offset top layer right few dp. <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:top="0dp" android:left="0dp" android:bottom="0dp" android:right="0dp"> <shape android:shape="rectangle"> <solid android:color="@color/coloraccent"/> </shape> </item> <item android:top="0dp" android:left="5dp" android:bottom="0dp" android

python 3.x - Python3 utf-8 decoding/encoding problems with data hiding -

i'm trying take text file (the text russian), hide in image, , later able retrieve image. however, keep getting binascii.error: odd-length string when try retrieve data image hid in. i feel problem may lie within use hide text. when somestring = file.read() on file, , print somestring comes out fine. when run: file = open(<text file path>, 'r', encoding='utf-8') entiretext = file.read() print(codecs.encode(entiretext,'utf-8')) i following: b'\xd0\x9f\xd1\x80\xd0\xb8\xd0\xbf\xd0\xb5\xd0\xb2:\n\xd0\x9e\xd1\x87\xd0\xb8 \xd1\x87\xd1\x91\xd1\x80\xd0\xbd\xd1\x8b\xd0\xb5, \xd0\xbe\xd1\x87\xd0\xb8 \xd0 that piece of it, theme shown; has colons, spaces, commas, , \n throughout 'bytes' type codecs.encode returns. if use codecs decode it, original text in perfect format. if helps, here functions use make happen: def stringtobinary(msg): return bin(int(binascii.hexlify(msg.encode('utf-8')), 16))[2:] def binarytostring

regex - PHP: Undefined offset: 3 - preg_match_all -

i have url structure example: http://www.example.com/directory/some-text-a1-vs-sec-text-b2-vs-third-text-vs-last-text-c1/ my regex is: preg_match_all("/([^\/.]+?)(?:-vs-|\.\w+$)/", $html, $matches); expected result: some-text-a1 sec-text-b2 third-text last-text-c1 result got: some-text-a1 sec-text-b2 third-text notice: undefined offset: 3 in f:\xampp\htdocs\url.php on line 41 full code: $html = "http://www.example.com/directory/some-text-a1-vs-sec-text-b2-vs-third-text-vs-last-text-c1/"; preg_match_all("/([^\/.]+?)(?:-vs-|\.\w+$)/", $html, $matches); $prvi = "some-text-a1"; $drugi = "sec-text-b2"; $treci = "third-text"; $cetvrti = "last-text-c1"; echo "url: ".$html."<br>"; if($prvi == $matches[1][0]){echo "1st o.k. - ".$prvi." = ".$matches[1][0]."<br>";} if($drugi == $matches[1][1]){echo "2nd o.k. - ".$drugi." = &quo

css - How to create a shiny effect on an image (logo) -

i found solutions expecting, on div elements. tried apply images no success. there idea how add shiny effect on png image? example: http://jsfiddle.net/nqqc7/289/ because img tag doesn't pseudo elements, you'll need use wrapper element , absolute ly position img within it. this demo shows, shown below: .wrap { display: inline-block; height: 200px; width: 200px; position: relative; overflow: hidden; } .wrap img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; } .wrap:before { content: ""; z-index: 10; position: absolute; height: 200%; width: 200%; top: -120%; left: -120%; background: linear-gradient(transparent 0%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.1) 55%, transparent 100%); transition: 2s; transform: rotate(-45deg); animation: shine 6s infinite forwards; } @keyframes shine { 0% { top: -120%; left: -120

ios - swift- get exc_bad_instruction (code=exc_i386_invop, subcode=0x0) with array value replacement in while loop -

i making note writing app. in app turning lines bezier curve. @ moment getting error when try put new values matrix defined outside of while loop. have tried expression when put dummy variable , works in loop. when use format replacing value of 2 dimensions variable works outside loop, however, when both actions in loop not work. //: playground - noun: place people can play import uikit var x2 = 6.0 var y2 = 5.0 var x1 = 1.0 var y1 = 1.0 var p1x = 2.0 var p1y = 3.0 var b = 6.5 var ba = 2.2 var percentall = ba/b var yall = 5.0 var xall = 1.0 var = 4.0 var c = 5.0 var ct = 0.0 var @ = 0.0 var aall = int(a) * 10 var call = int(c) * 10 var thelistx = [[double]](count: call, repeatedvalue: [double](count: call, repeatedvalue: 0.0 )) var thelisty = array(count: aall, repeatedvalue: array(count: call, repeatedvalue: 0.0 )) var theat = 0 var thect = 0 while @ <= { var apercent = percentall * @ var aend = y1 + @ var yslope = (a - at) * percentall + aend var

splitting a B+ tree root -

when splitting root node of b+ tree know take n/2 +1 , make new root , split accordingly. my question lies when n equal odd number. in case, n = 5 . so lets use simple example: 10 20 30 40 / | | | \ where of children null. lets want add 50 this. would like 30 / \ (10,20) (40,50) or 40 / \ (10,20,30) (50) or different? if split node contains n keys - including incoming key caused split - (n - 1) / 2 keys go 1 new child, n - 1 - (n - 1) / 2 go other, , 1 key goes parent level (as separator key). key goes not same 1 caused split. if there separator go have new root , separator key single lone occupant (the minimum occupancy requirement not apply root nodes). of course, formulae friendlier if @ rest remains after taking out new separator: r = n - 1 gives r / 2 1 side , r - r / 2 other. in other words, under normal circumstances both 'halves' differ @ one, occur if total key count , he

Changing color of single UITableView Cell in iOS Swift -

i want able change color of single uitableview cell. in tableview(editactionsforrowatindexpath) can swipe cell , select button change background color when scroll cell off screen changes back. how retain color? thanks assuming have 1 section in tableview many rows, need in tableview:cellforrowatindexpath: method: if (indexpath.row == coloredcellindex) { cell.backgroundcolor = uicolor.redcolor() } else { cell.backgroundcolor = uicolor.whitecolor() } you need set variable coloredcellindex anywhere outside of function, example in viewdidload

Poor recognition accuracy of Pocketsphinx using phoneme recognition on Android, French language -

i working on project have integrate speech functionalities of pocketsphinx android application. in fact, have integrate phoneme recognition functionality provided pocketpshinx should able recongize phonemes in french language, e.g. speech recongnizer should able recognize syllabes( "de", "re", "se", etc), consonants (like "m", "f", "g", etc), double-consonants(like "kl", "ks", "gr",etc) , vowels(like "a", "o","e",etc). right now, have integrated pocketsphinx recognizing phonemes mentioned above, have bad results. example, when pronounce "o", recognized result is: "sil ff ei au" (even did not pronounce letter "f" , "e" @ all), or else appeared @ beginning not pronounced. letters appeared @ beginning not same (sometimes "ll", "uu", etc). sometimes, letter pronounce appears @ beginning (e.g. "a", &

Lifespan of Getstream feed cursors -

with getstream, what's lifespan of feed cursor (activity id)? i'm writing ios app activities persisted core data offline viewing. thinking of using persisted activity ids in conjunction stream id_lt pagination param sync core data db updates server (which forwards requests stream). how long can activity id used pagination cursor? it appears activity id can used pagination after activity of said id has been removed. behavior guaranteed, , if so, how long? not sure if it's working me because activity id remains available until nightly cleanup. the activity id not invalidate @ point. can use them long activity isn't deleted. pagination activity id can used if activity deleted.

javascript - Cross-Browser Communication -

i designing website requires host , client websites. host set (a session), , clients connect host using id specific session. i have considered how facilitate communication, , going have both clients , host periodically query , update database holds current states of clients , host communicate new options , changes - wondered if possible, using javascript [or something], them connect , communicate directly? the communication simple messages - single strings communicate current state , stuff that. im pretty proficient in javascript/html/css, happy learn if there better job of setting up. thanks! alex you try httprelay.io , requires no additional libraries , can used simple http client client communication.

infinite loop - Printing multiple triangles on MASM x86 (16 bit) -

so trying write program in masm x86 (8086) printout series of right triangles built of asterisks “ ”. using loops print out triangles. trying make each of triangles 3 9 asterisks high , same number across, in different configurations. got print 1 triangle though. after 1st triangle printed, keeps looping asterisks " " indefinitely. here of code: mov ah, 09h ;prints string mov dx, offset input int 21h mov ah, 01h ;reads in character int 21h sub al, '0' ;is gunna read lower half default mov ah, 0 ;blanking higher half of register way doesnt throw off program mov size, ax mov cx, ax mov bx, cx push bx mov ah, 02h mov dl, 13 int 21h mov dl, 10 int 21h lines: push cx stars: mov ah, 02h mov dl, '*' int 21h loop stars mov ah, 02h mov dl, 13 int 21h mov dl, 10 int 21h pop cx loop lines mov bx, size mov ax, 4c00h int 21h im guessing have create register hold variable ,

html - move words into a specific area -

problem- how move line example below "hi i'm developer loves clean & elegant code" from position http://i.stack.imgur.com/ugrc9.png into position http://i.stack.imgur.com/6yemo.png html of section (the order of isn't aloud changed ex.cant move "hi, i'm developer..." right above "a little bit me" line) <body> <header> <div class="full-width"> <div class="half-width"> <h1>jubilee austin</h1> </div> <div class="half-width"> <h2><span>hi,</span> i'm developer loves clean &amp; elegant code. </h2> <nav> <ul> <li><a href="#about">about</a></li> <li><a href="#work">work</a></li> <li><a href="#contact">contact

php - Is it possible the MD5 of two different strings be identical? -

i'm trying create dynamic avatar website's users. stackoverflow. have php script generates image based on string: path/to/avatar.php?hash=string i want use md5 of users' emails name of avatars: (and string php script generates image based on) $email = $_get['email']; $hash = md5($email); copy("path/to/avatar.php?hash=$hash","path/img/$hash.jpg"); now want sure, can use md5 of emails avatar's name? mean isn't there 2 different strings have identical md5's output? in other word want know whether output of 2 different strings unique? i don't know question clear or not .. want know, there possibility of being duplicate md5 of 2 different emails? as goal here use hash it's uniqueness rather it's cryptographic strength md5 acceptable. although still wouldn't recommend it. if settle on using md5, use globally unique id control rather user-supplied email address, along salt. i.e. $salt = 'rand

Django datetime field fractional support -

i have django 1.9.5 installed mariadb 10.1.13 (also tested mysql 5.6.30) (which updated mysql 5.5) , trying fractional seconds support in date time field. i have created test model try , working, here definition class history(models.model): date = models.datetimefield(null=true) then in shell have run following history(date=datetime.now()).save() and when query it type(history.objects.get(id=1).date) i <type 'nonetype'> even though entry appears in database. i can use field in query history.objects.all().order_by('date') i know works because inspecting data shows order has changed but need able return date can compare another. i using mysql 5.5 without fractional support there records in database have same datetime field , order_by didnt work, using order_by id , worked whilst records entered chronologically, isnt case need fractional support. any ideas? for sort of situation might better store date , time unix timest

c - Segmentation fault (core dumped) error while trying to flush cache -

i trying out ways of measuring tlb size on machine. somehow needed ensure cpu not cache elements of array using measure average access time per page. tried code inside loop have, using answer on here : file *fp; fp = fopen("/proc/sys/vm/drop_caches", "w"); fprintf(fp, "3"); fclose(fp); however, getting segmentation fault (core dumped) error. have no idea why happening. not c , appreciated. thanks. be sure check whether open of file successful, since writing system file, requires run in privileged mode. file *fp; fp = fopen("/proc/sys/vm/drop_caches", "w"); if (fp == null) { printf("error %d: %s\n", errno, strerror(errno)); // error handling, exit or return } fprintf(fp, "3"); fclose(fp);

How to create a SQL table using php IF date is equal to X -

i'm trying create mysql table using php if statement. able create table using if statement; although problem running table gets created when date >= x, opposed how specify statement; if date == x. how can automatically create sql table if date == x, and, there way create table without having go page table data displayed , refresh page? here code: $timezone = date_default_timezone_set('america/chicago'); $thedate = time("f j, g:i a"); $servername = "server"; $username = "user"; $password = "pass"; $dbname = "db"; $conn = mysqli_connect('server', 'user', 'pass'); (!$conn->set_charset("utf-8")); if (!$conn) { die("connection failed: " . mysqli_error()); } mysqli_select_db($conn, $dbname); if ($thedate == strtotime("april 24, 9:53 pm")) { $createtable = "create table issue11 ( id int(5) unsigned auto_increment primary key, first varch

c# - Calling class from code behind -

i still new asp.net , i'm learning how call classes. i've looked around tutorials, not specific asp.net 4.0 i'm not sure if should apply them. right now, trying connect sql database. webconfig file has been set connectionstring "dbconnectionstring" , working when i've tested gridviews. i'd access database code behind. i've seen ways accomplish this, i'd efficient, resuable way. i've tried adopt answer listed here: how create sql connection c# code behind, access sql server conditionally redirect? however, i'm getting error. i doing c# website, not web application. here code behind login.aspx.cs: using system; using system.collections.generic; using system.linq; using system.web; using system.web.ui; using system.web.ui.webcontrols; using sqlcomm; // how connect class page???? public partial class login : system.web.ui.page { protected void page_load(object sender, eventargs e) { } protected void btnsubm

java.lang.UnsatisfiedLinkError when run javacpp -

i using javacpp access cpp java. i have tried example provided in documentation cpp code: completablefuture<integer> futureinc(){ @stdfuture f = @cppdemo.futureinc(); completablefuture<integer> future = new completablefuture<>(); f.then(int value -> future.complete(value)); return future; } java code: import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; @platform(include="legacylibrary.h") @namespace("legacylibrary") public class legacylibrary { public static class legacyclass extends pointer { static { loader.load(); } public legacyclass() { allocate(); } private native void allocate(); // call getter , setter functions public native @stdstring string get_property(); public native void set_property(string property); // access member variable directly public native @stdstring string property(); public native void property(str

docker - Rancher getting 404 responses form private registry URL's -

i have rancher set up. have private registry using self signed certificate setup. followed guide @ http://docs.rancher.com/rancher/configuration/registries/ set registry in rancher. have created ami self signed certificate installed. i'm using ami create new hosts. have working docker compose file. have built , pushed image out private registry. when run rancher compose rancher unable image private registry. instead rancher hitting url on registry sending 404. why rancher hitting wrong url?

Trouble understanding the data field in MALLET instance object -

currently i'm working on project , using csviterator mallet api create instancelist. however, i'm not sure quite how data field in mallet instance object supposed formatted. i'm attempting write data parsed line of text file. i understand data field typically featurevector object in instancelist i'm not sure csviterator looking for. thanks. for classification or topic modeling, "data" field in input file should original document spaces substituted newline characters. how mallet understands "data" field determined pipes use. these classes define rules convert string input featurevector. the default behavior implemented in csv2vectors class, example, divides string tokens based on regular expression, , converts each token string feature data alphabet. there pipe objects many common transformations such lower-casing , stopword removal.

c# - combobox fill from another combobox selection? -

protected sub rcmbdatabaselist_selectedindexchanged(sender object, e telerik.web.ui.radcomboboxselectedindexchangedeventargs) handles rcmbdatabaselist.selectedindexchanged try dim strdestinationconnstring string = "data source=.;initial catalog=" & rcmbdatabaselist.selectedvalue & ";persist security info=true;user id=sa;password=ssmits" viewstate("strsyncdestinationconnstring") = strdestinationconnstring call getdestinationtablelist() catch ex exception end try end sub protected sub rcmbtablelist_selectedindexchanged(sender object, e telerik.web.ui.radcomboboxselectedindexchangedeventargs) handles rcmbtablelist.selectedindexchanged try call getdestinationclmlist(rcmbtablelist.selectedvalue) catch ex exception end try end sub abov

sql - hive error, getting an EOF error in subtract query -

i getting an, missing eof @ '-' near hab, query part looks correct. not sure how implement minus in hive. select a.playerid id, a.yearid yearid, (b.hab - a.eg) hab-eg (select playerid, yearid, (e/g) eg fielding ( yearid > 2005 , yearid < 2009 , g > 20 ) ) join (select id, year, (hits/ab) hab batting where( year > 2005 , year < 2009 , ab > 40 ) ) b on a.playerid = b.id , a.yearid = b.year; alias names should quoted backtick character (``) characters, when include additional character such space or dash. use following: select a.playerid id, a.yearid yearid, (b.hab - a.eg) `hab-eg`

c# - Getting InvalidCastException when trying to implement sorting in Entity Framework Code First using Linq -

i have method below filterquery sorts data based on sortpropertyname property. private iqueryable<tentity> filterquery(expression<func<tentity, bool>> predicate, string sortpropertyname, orderby orderby = orderby.ascending) { iqueryable<tentity> entities = _dbentityset; entities = (predicate != null) ? entities.where(predicate) : entities; if (string.isnullorempty(sortpropertyname)) { sortpropertyname = "id"; } var keyselector = createselectorexpression<tentity>(sortpropertyname); entities = (orderby == orderby.ascending) ? entities.orderby(keyselector) : entities.orderbydescending(keyselector); return entities; } aforementioned method in turn calls method createselectorexpression . private static expression<func<tentity, string>> createselectorexpression<tentity>(string propertyname) { try { var par

php - Showing comma separated dropdown values from column in database -

i have saved multiple choices dropdown select menu database field , separate them comma. how can load them in dropdown menu again? saved as: choice1 , choice2 , choice55 ...etc. query joining 2 tables , it's look's this: $pdo = database::connect(); $sql="select t1.*, t2.* form_fields t1, user_choices t2 t1.field_name = t2.field_name , group_id=1 , user_id=".$_session['user_id']." echo '<select class="form-control" name="program">'; foreach ($pdo->query($sql) $row_program){ echo '<option value='.$row_program['field_name'].'>'.$row_program['field_name'].'</option>'; } echo '</select>'; so need display values user_choices t2 column program . query showing result if there 1 value in column. when there multiple value saved comma showing error php warning: invalid argument supplied foreach()... use ex

Node.js module won't reinstall using puppet / vagrant -

previously had similar configuration working added hiera puppet build started having problems. error have after running vagrant provision follows: ==> default: [vagrant-hostsupdater] checking host entries ==> default: [vagrant-hostsupdater] found entry for: 192.168.33.10 local.mysite ==> default: configuring cache buckets... ==> default: running provisioner: puppet... ==> default: running puppet app.pp... ==> default: stdin: not tty ==> default: error: not find class nodejs local.mysite on node local.mysite ==> default: error: not find class nodejs local.mysite on node local.mysite ssh command responded non-zero exit status. vagrant assumes means command failed. output command should in log above. please read output determine went wrong. my vagrant config is: # -*- mode: ruby -*- # vi: set ft=ruby : require "yaml" # load yaml configuration config_file = "#{file.dirname(__file__)}/config/vm_config.yml" default_config_file = "

c# - unable to update WCF service in the project -

im using wcf serivce project. updated service , published server. when try update service in project gives error. error: there error downloading ' http://sample.sample.com/sample/sample.asmx '. the underlying connection closed: unexpected error occurred on receive. unable read data transport connection: existing connection forcibly closed remote host. an existing connection forcibly closed remote host metadata contains reference cannot resolved: ' http://sample.sample.com/sample/sample.asmx '. an error occurred while receiving http response http://sample.sample.com/sample/sample.asmx . due service endpoint binding not using http protocol. due http request context being aborted server (possibly due service shutting down). see server logs more details. the underlying connection closed: unexpected error occurred on receive. unable read data transport connection: existing connection forcibly closed remote host. an existing connection forcibly closed

r - Extract summary effect from object of class "summary.coxph" -

i have object of class "summary.coxph" fixed-effects meta-analysis call: meta.summaries(d = a[[i]]$hr, se = a[[i]]$se, method = c("fixed"), names = a[[i]]$metabolite, conf.level = 0.95) summary effect=1.09 95% ci (1.05, 1.13) estimated heterogeneity variance: 0 p= 0.398 i need extract summary effect , 95%ci , p . attempts failed. please me. my data looks this: $ :list of 14 ..$ effects : num [1:3] 1.07 1.07 1.14 ..$ stderrs : num [1:3] 0.0298 0.0421 0.0436 ..$ summary : num 1.09 ..$ se.summary : num 0.0213 ..$ test : num [1:2] 51.2 0 ..$ het : num [1:3] 1.841 2 0.398 ..$ call : language meta.summaries(d = a[[i]]$hr, se = a[[i]]$se, method = c("fixed"), names = a[[i]]$metabolite, conf.level = 0.95) ..$ names : chr [1:3] "xxl.vldl.tg" "xxl.vldl.tg" "xxl.vldl.tg" ..$ tau2 : num 0 ..$ variance.method: ch

angularjs - Passing values between html files -

i making shopping application in ionic/ angular js. want pass value (name of subcategory) subcategory page detail page. here code: subcategory.html <div> <ion-view view-title="subcategories"> <ion-list> <ion-item class="ionitems" ng-repeat="sublist in subcategories" href="#/app/playlists/{{sublist.id}}/details"> {{sublist.name}} <!--<a ng-click="godetails();">{{sublist.name}}<a/>--> </ion-item> </ion-list> </div> detail page: <ion-content> <h4>product details</h4> <ion-view view-title="playlists"> <ion-content ng-controller="playlistctrl"> <input type="button" ng-click="addtocart();" value="add cart" /> </ion-content> add cart controller: .controller('detailsctrl', function($scope){ var arr = []; $scope.addtocart = f

java - MappingException: Invalid path reference club.name! Associations can only be pointed to directly or via their id property -

i'm using spring data mongodb library , don't know find @query element in 2 collections joined @dbref, this: user: @document public class user { @id @jsonserialize(using=objectidserializer.class) private objectid id; @createddate private date datecreated = new date(); @lastmodifieddate private date datemodified = new date(); @notempty @indexed private string name; @language private string lang; @notempty @dbref private club club; ... club: @document public class club { @id @jsonserialize(using=objectidserializer.class) private objectid id; @indexed(unique = true) private string name; private address address; ... userrepository: @query("{\"$or\":" + "[" + "{\"name\" : {\"$regex\" : ?0, \"$options\": \"i\"}}, " + "{\"club.name\" : {\"$regex\" : ?0, \"$options\": \"i\"}} "

java - Add icon in Navigatior drawer.. (Follow from android hive) -

im using http://www.androidhive.info/2015/04/android-getting-started-with-material-design/ create navigation drawer, how add icon in every title have? please thanks btw im using fragment fragmentdrawer.java public static list<navdraweritem> getdata() { list<navdraweritem> data = new arraylist<>(); // preparing navigation drawer items (int = 0; < titles.length; i++) { navdraweritem navitem = new navdraweritem(); navitem.settitle(titles[i]); data.add(navitem); } return data; } @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); // drawer labels titles = getactivity().getresources().getstringarray(r.array.nav_drawer_labels); icons = getactivity().getresources().getintarray(r.array.nav_drawer_icons); } string.xml <string name="nav_item_home">home</string> <string name="nav_item_friends">friends</string>

Were is the CKEDITOR Text Shadow Plugin? -

i have absolutely no idea else post , i'm isn't place want know when there free , reliable text-shadow plugin ckeditor? i think browser compatibility enough 'text-shadow' style , official plugin adds , removes text shadows. hoping can finds , thinks it... you can find plugin ckeditor. http://ckeditor.com/download

xcode7 - Xcode 7 try to archive an ios app with library -

when try archive project include library generic archive type instead of ios type. manage scheme library in main project container, changed skip install in library "yes".(in main project set no tried yes). why keep happening? maybe work? go xcode preferences , make sure download provisional profiles. quit xcode & restart computer try deleting (backup if want) library - developer - xcode - archives folder , deriveddata folder. archive try if above doesn't work: xcode 7 gm created generic archive instead of ios app archive

html - Getting issue using accordion in navbar -

Image
i have created accordion plus , minus shown below image. but clicking first accordion other accordion div jumbling , getting unwanted space shown below image. reference link(check below link sample code of problem): bootsnipp.com/nageswar/snippets/e3rbd my code: body { font-family: 'open sans'; } #accordion-first .accordion-group { margin-bottom: 10px; } #accordion-first .accordion-heading, #accordion-first .accordion-toggle:hover, #accordion-first .accordion-heading .accordion-toggle.active { background: none repeat scroll 0% 0% transparent; } #accordion-first .accordion-heading { border-bottom: 0px none; font-size: 16px; } #accordion-first .accordion-heading .accordion-toggle { display: block; cursor: pointer; padding: 5px 0px !important; color: #222; outline: medium none !important; text-decoration: none; } #accordion-first .accordion-heading .accordion-toggle.active em { background-color: #f7c221; } #accordion-first .accordion-heading