Posts

Showing posts from March, 2013

c# - Debug Target Is Missing? -

when try build solution, following error: visual studio cannot start debugging because debug target 'c:\target' missing. please >build project , retry, or set outputpath , assemblyname properties appropriately >to point @ correct location target assembly. my output path set correctly bin\debug , exe never created in folder. instead, exe.config , vshost.exe , , vshost.exe.config files. any idea what's going on? you open project file text editor , replace 'c:\target' 'bin\debug' edit there other more helpful answers can't delete mine since it's accepted one. @czfox answer @yehuda shapira answer

html - PHP Session variable is not saving -

i've looked through problems session variable not saving , don't see problem i'm going ask it. i have form once submitted searches database name. initial form on page 1. on page 2 take the variable page 1 , save this $searchterm = $_post['find']; which used search database , works perfectly. under have sql statement have placed this //initialize session if (!isset($_session)) { session_start(); } $_session['searchterm'] = $searchterm; i have tested $_session['searchterm'] on page 2 make sure saving properly, , does. issue comes in when try go 3rd page confirm page form page 2. have session start clause @ top of 3rd page , inserted ini_set('display_errors',1); error_reporting(e_all); to check errors, no errors displayed. next step test session see if refreshing session id. found script on site www.webassist.com/forums/posts.php?id=5735 test whether server possibly causing issue. script works fine n...

qt - QTableView: dataChanged event clears cell being edited -

working qtableview , qabstracttablemodel - when model emits datachanged event cell being edited, string user has typed in cell (but not pressed enter 'commit' edit) erased. example : click cell, type '123', cell still in edit mode waiting more text, datachanged emitted , '123' erased, leaving empty cell in edit mode. does know how stop behaviour, or how model can detect when cell being edited prevent datachanged events being raised cell? check model class, should override setdata method in model. if every thing correct update model after editing data... please let me know if have implementation bool mymodel::setdata(const qmodelindex &index, const qvariant &value, int role) { if (index.isvalid() && role == qt::editrole) { int row = index.row(); int col = index.column(); //// change data emit(datachanged(index, index)); return true; } return false; }

JIRA pluggin Development - Show alert/notification -

Image
i developing jira plugin of type workflow post function. this means dont have use vm file (velocity template). i have java class extends abstractjirafunctionprovider. calls web service (asynchronously) using soap update remote system on status of jira issue. i have got working , configured triggered when jira status transitions done. trying show message notify user if web service has been called or not. how show popup message text. tried joptionpane.showmessagedialog(null,"text","text 2") plugin class doesn't seem plugin java class extends abstractjirafunctionprovider. thoughts or ideas me try? i had a similar question didn't satisfactory answer far. further research lead me different direction (to log log file , let jira admin deal it). but, can try workflow plugin module can use purpose: a validator module . code triggered right after user submits transition dialog, prior transition accepted (it's used validate if input paramet...

Multiple SVN Sync processes running on Eclipse -

Image
while working on svn project, encountering multiple sync processes running time. causes other process e.g. running tomcat server etc cause delays. starts automatically whenever eclipse started. this how looks: is there way can stop these apart clicking on red "stop" icon individually of them, each time? thanks! do have many other open projects on workspace? maybe closing others solve issue. also subclipse plugin, can manage sync svn.

javascript - Replace the reference to the DOM object -

i want write javascript function replace 1 dom element one. need reference old element pointing new element after replacement. i wrote following function purpose: var replacedomelement = function (el1, el2) { var parent = el1.parentnode; if (!parent) return false; parent.replacechild(el2, el1); el1 = el2; return true; } but doesn't work in way want. dom element replaced. but statement el1 = el2 doesn't work. after execution of function el1 still pointing old element, has no parent now. what correct way of changing references dom object inside function? the following code works want: var replacedomelement = function (el1, el2) { var parent = el1.parentnode; if (!parent) return false; parent.replacechild(el2, el1); return el2; } var element1 = document.getelementbyid("el1"); var element2 = document.getelementbyid("el2"); element1 = replacedomelement(element1, element2); alert(element1 === eleme...

node.js - Why isn't npm installing dependencies when I have an item inside devDependencies? -

when remove devdependencies array, trimarguments installs fine. if give dev-dependency, seems ignore trimarguments. no warning, silent failure. package.json following: {"name":"asyncfuture", "version":"0.1.0", "main": "asyncfuture.js", "dependencies":[ "git+https://git@github.com/fresheneesz/trimarguments.git#578afe0fa6ce96797c36e018bf5bae31b508a02f" ], "devdependencies": [ "git+https://git@github.com/fresheneesz/deadunit.git#8395e438492267b94ef51ee4f94a6d6c8f1c15da" ], "repository": { "type": "git", "url": "git://github.com/fresheneesz/asyncfuture" } } is npm bug or misunderstanding how use this? npm version 1.3.8 on windows 7 32-bit update it's looking npm ignoring package except last one, if put dependencies under "dependencies" array (and rid of devdependencies). has bug. i'm gonna f...

Automatic job creation on jenkins using json -

i want new jenkins created when execute particular job on jenkins. using json string so following used json="{\"parameter\": [{\"name\": \"task\", \"value\": \"$task\"}], \"\": \"\"}" url=http://xx.xx.xx.xx:8080/job/$task/build curl -x post $url -d token=zorn --data-urlencode json="$json" but when execute following error: + json='{"parameter": [{"name": "task", "value": "test123"}], "": ""}' + url=http://xx.xx.xx.xx:8080/job/test123/build + curl -x post http://xx.xx.xx.xx:8080/job/soma/build -d token=zorn --data-urlencode 'json={"parameter": [{"name": "task", "value": "test123"}], "": ""}' % total % received % xferd average speed time time time current dload upload total spent le...

asp.net mvc - DropDown change show partial -

i have used dropdownlist in page. i want, when change selected id info, load bottom of page. first time page load true,but dropdown change load info in new page, not part of current page. fill dropdown list public actionresult selvahedlist(int idtype, int idchoose) { viewbag.chooseitem = idchoose; ienumerable<lcity> lcitys = dbcon.lcitys; var model = new cityviewmode { lcitys = lcitys.select(x => new selectlistitem { value = x.citycode.tostring(), text = x.cityname }) }; return view(model); }); partial view shows after dropdown changed public actionresult selvahedlistajax(cityviewmode model) { int idcity=convert.toint32(model.selectedcitycode); // int idcity = 1; viewbag.reshteh = 1; //string idcity = base.request["selvalue"].tostring(); var res = dbcon.taavoniinfos.where(m => m.idreshteh == 1 && m.citycode ==idcity); ...

How to suspend/restart Linux Ubuntu from PHP script? -

i have problem. want restart ubuntu php code can not. have tried of codes internet <?php shell_exec("/usr/sbin/reboot"); exec("/usr/sbin/reboot"); system("/usr/sbin/reboot"); ?> and <?php shell_exec("shutdown -r"); exec("shutdown -r"); system("shutdown -r"); ?> but of them nothing. please me. need code. i don't recommend giving root access php user check here: https://stackoverflow.com/a/5226760/2708670

java - Why are there many languages using JVM? -

i see large list of programming languages here . reason of using jvm , other options new programming language? byte code can run on system jvm. if creating new language, or porting old one, need generate byte code (much simpler optimal code real machine) , done. note: many of jvm ports faster if use jvm more work has gone optimising native code.

javascript - regex for functions containing underscore in their name -

Image
i using sublime text 2 , have project contains java script files. want search in of java script files if there functions contain underscore in names/definition. e.g. function search_user( arg1 , arg2 ) or function search_another_user ( arg1 , arg2 , arg_3 ) it doesn't matter if there underscore in param name so in words regex can be function <spaces , tabs> <function name containing underscore> < spaces , tabs > ( <any number of args> ) i'm hoping you're asking because want convert of these camelcase function names :) search_user => searchuser search_another_user => searchanotheruser right? :) use in search field regexp turned on function\s+\w*_\w*

jquery - Set marquee scrolling to default starting position -

i have continuous image scroll (marquee) in html. want create marquee should stop when mouse on event activated , images should set starting position. on mouse out marquee should have start scrolling again. how create ? there methode in jquery? you haven't given information work in question, fundamentally you'll want hook mouseenter , mouseleave events on marquee. (jquery provides them browsers don't support them natively.) $("selector marquee") .mouseenter(function() { // stop marquee, set element positions want them }) .mouseleave(function() { // restart });

ios - How I can change my company name showing in my itunes connect? -

Image
greeting, hope doing there. i want change in itunes connect. want change company name shows whenever see apps. please check attached image more detail. thanks, cp you can choose company name first time publish app in itunes connect. quote itunes connect developer guide : if have enrolled in apple developer program company, first time add new app in itunes connect, presented company name page. on page set company’s name applies each app add developer account distribution on app store. if have enrolled individual, company name developer or seller name. important: cannot edit company’s name after submitting on page. settings specified apply apps added account, sure correct before continuing. not include apple trademarks. your chance contact apple developer support , ask them change name. may require additional documentation on why need change it. in quite long process i've had go through once...

actionview - Rails 3.2/4: Is there a way to easily render a template (partial, whatever...) from the console? -

i've been looking easy way render views (or templates). i've seen complicated solutions on internet involve getting rendering engine, passing context, action view instance initialized original view paths, fetched actioncontroller::base, , can pass local variables, of course, if not using instance variables inside templates or i'm not using helper methods, have insert/include hand, , still have problems regarding relative location of partials, not infered outside rails context.. uhf... isn't there main object can call simple #render method from? if you're working rails console, call: > app.get '/' > response = app.response > body = response.body

R how to not display the number into brackets of the row count in output -

i'm trying (dynamic) r output in website. instance, simple count of values in dataframe. > data(infert) > length(infert$age) [1] 248 this "[1]" interferes reading : we have [1] 248 entries in our database is somehow possible remove "[1]" line count in front of shown result, when output unique value? thanks ananda's comment below! cat(length(infert$age)) does trick !

intellij idea - Code completion to in Android Studio -

Image
a question editor, not sure how briefly phrase question not find answer i have moved eclipse android studio on mac. if in layout file, start typing android:au, assuming want choose autotext see screenshot how can completion go upto "to" of "auto". have type t , enter choose autotext. since there no options without "to" should allowed select it. please let me know if explanation not clear enough intellij (studio) parses whole text search input characters default. if type "text" , should show "autotext" in options default. don't have configure behavior. it give preference exact matches though, if type in "text" capital t , you're more correct result typing "text" small t . you can change these preferences in: settings(or preferences in mac)->editor->code completion

python - Error message when importing astropy in Windows 8 -

i have windows 8 (sadly lucky enough laptop support badly linux, tried several distributions..). have python 2.7 installed, , can import scipy , numpy. i've installed astropy executable file site, when try import error message down bellow. can me setting properly? enthought canopy python 2.7.3 | 64-bit | (default, jun 14 2013, 18:19:25) [msc v .1500 64 bit (amd64)] on win32 type "help", "copyright", "credits" or "license" more information. import astropy error in sys.excepthook: traceback (most recent call last): file "c:\users\omer\appdata\local\enthought\canopy\user\lib\site-packages\astr opy\logger.py", line 222, in _excepthook self.error(message) file "c:\users\omer\appdata\local\enthought\canopy\app\appdata\canopy-1.0.3.12 62.win-x86_64\lib\logging__init__.py", line 1166, in error self._log(error, msg, args, **kwargs) file ...

asp.net mvc - Breezejs inline count -

in breezecontroller: public iqueryable<entities> index() { return this.context.entities.where(e => e.value > 100); } breeze query query.inlinecount(true) returns count after where, how can return count of entities before statement or manually set count response? know filters, in task need statement right in action. works me [breeze.webapi.breezecontroller] public class mybreezecontroller : system.web.http.apicontroller { private readonly breeze.webapi.efcontextprovider<mydbcontext> context = new breeze.webapi.efcontextprovider<mydbcontext>(); [setinlinecountfilter] [breeze.webapi.breezequeryable] public system.linq.iqueryable<myentity> index() { return this.context.context.myentities.where(e => e.value > 100); } } public class setinlinecountfilterattribute : system.web.http.filters.actionfilterattribute { public override void onactionexecuted(system.web.http.filters.httpactionexec...

vbscript - I am not able to wait in testcomplete for page element to load -

i working on web application, using tool testcomplete vbscript. pagetab = sys.process("iexplore").ieframe(0).commandbar.tabband.tabbutton("tieto client manager").enabled while(pagetab <> true) sys.process("explorer").refresh pagetab = sys.process("iexplore").ieframe(0).commandbar.tabband.tabbutton("tieto client manager").enabled sys.process("iexplore").ieframe(0).commandbar.tabband.tabbutton("tieto client manager").refresh loop pagebusystate = sys.process("iexplore" , 2).page("*").busy while(pagebusystate <> false) pagebusystate = sys.process("iexplore" , 2).page("*").busy loop with code can wait new page not able wait control loading page. the best approach wait until dynamic page ready wait specific object on page. example, can first object need work on page. approach described along couple of other approach...

How to make custom annotations for validations in spring -

i have put different validations different stages. example: have student class these attributes public class student{ integer id, integer rollnumber; string name; integer age, string fathersname, string mothersname } i have validate object before saving in database on different conditions: 1. if save draft stage id , rollnumber should mandatory, 2. if save submit stage fields should mandatory. is there way write annotations can define these validations using @draft , @submit per annotations. example @valid(type=draft) here go.. not tough.. share code validate string valid ip address: you need write annotation validator , need write concrete validator implementation: below annotation class validator can use on specific field want validate: @target({ field}) @retention(runtime) @constraint(validatedby = inetaddressvalidator.class) @documented public @interface validip { string message() default "{validip.message}"; class<?>[] groups() def...

How to set values using jquery in the form below json -

i have form generator json data { "10" : { "custom" : null, "custom2" : null, "label" : "sublimacja", "max" : "", "min" : "", "required" : "0", "tooltip" : "field7", "type" : "dropdown", "validation" : "", "value" : "sublimacja 205g" }, "11" : { "custom" : null, "custom2" : null, "label" : "druk+uv", "max" : "", "min" : "", "required" : "0", "tooltip" : "field8", "type" : "dropdown", "validation" : "", "value" : "kalka" }, "12" : { "custom" : null, "custom...

objective c - Cocoa frameworks that don't need to be #imported -

i noticed after adding frameworks project in xcode, don't have import of header files in order access classes. how come classes "magically" available without import? look yourprojectname-prefix.pch file. there you'll find: #ifdef __objc__ #import <uikit/uikit.h> #import <foundation/foundation.h> #endif inside #ifdef statement can add files automatically imported throughout whole project.

php.ini conflict in linux, error reporting doesnt work -

this first question here. i'm new programming. i want turn on error reporting in php. when call phpinfo(); see it's using /etc/php5/apache2/php.ini and in terminal when run: php -i|grep php.ini returns: configuration file (php.ini) path => /etc/php5/cli loaded configuration file => /etc/php5/cli/php.ini this strange. appears php using different php.ini configuration files. so, in both php.ini files mentioned above, modified: display_errors = on error_reporting = e_all html_errors = on i tried put ini_set('display_errors', 'on'); error_reporting(e_all); in local file. and errors not shown. in phpinfo() display_errors off. how can display errors? did search problem , other people seem have fixed modifying php.ini files. me doesn't work... i hope can me. thank you!

json - Google Maps Refresh Markers -

i want refresh markers. used setinterval function. how delete markers? @ time markers added old markers ... thats not intended. so code: <!doctype html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map_canvas { height: 100% } </style> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=xyz&sensor=true"> </script> <script type="text/javascript"> var map; function initialize() { var mapoptions = { center: new google.maps.latlng(48.137, 11.577), zoom: 14, maptypeid: google.maps.maptypeid.roadmap }; map = new google.maps.map(document.getelementbyid("map_canvas"), mapoptions)...

android - Getting Exception: FATAL EXCEPTION: GLThread No configs match configSpec -

i using below code multisampling make smooth edge. below code working on mobile , other mobile getting exception ' no configs match configspec . please me solve issue. thanks in advance. package com.amplimesh.renderer; import javax.microedition.khronos.egl.egl10; import javax.microedition.khronos.egl.eglconfig; import javax.microedition.khronos.egl.egldisplay; import android.opengl.glsurfaceview; import android.util.log; // class shows how use multisampling. use this, call // myglsurfaceview.seteglconfigchooser(new multisampleconfigchooser()); // before calling setrenderer(). multisampling slow down // app -- measure performance , decide if vastly // improved visual quality worth cost. public class multisampleconfigchooser implements glsurfaceview.eglconfigchooser { static private final string ktag = "gdc11"; @override public eglconfig chooseconfig(egl10 egl, egldisplay display) { mvalue = new int[1]; // try find normal multisam...

android - (How Should I) embed map 2.0 inside a ribbon that user can expand? -

i want display google map api 2.0 inside ribbon above data ui fragment , give user possibility expand map interact it. illustration: ribbon , expanded doing so, user has map illustrate position when in ribbon mode while when user ewpands map (covering 4/5 of screen) can use map features. how should ? though on it? i thinking about a sliding drawer top contains map an overlaying "card ui" interface display data on map, trying mess heigh , focus (but that's way done screenshots , user interaction cries improvement) any advice? thank ideas , looking @ ! disclaimer: know ios-like transforming toward native design, application uses actionbarcompat needed show wanted result ( , not current state). this how did if need it: i define linearlayout intercept user action , control map extension/shrinking. i put mapfragment v2.0 inside relative layout. i define scroll view dimensions when expanding shrinking map. layout fragment: <?xm...

qt - Mouse events blocked because of QGL View -

i created simple project show problem have in bigger application. so, create mainwindow 2 buttons. create class inherit qwidget 2 buttons , qgl view. problem that, apparently , reason don't find, creation of qgl view blocks events of views, particularly mouse events. in code below, mouse hover events on buttons , main widget of class 1 not detected (the cursor has change arrow hand , wait respectively) whereas mouse cursor changes on mainwindow buttons (but in real application, it's more serious simple hover event). precise problem appears on mac 10.6 , superior, , not on windows. use qt 5.1. here code : mainwindow.h : #ifndef mainwindow_h #define mainwindow_h #include <qmainwindow> class class1; class panoramaglview; namespace ui { class mainwindow; } class mainwindow : public qmainwindow { q_object public: explicit mainwindow(qwidget *parent = 0); ~mainwindow(); private: ui::mainwindow *ui; class1 *c1; panoramaglview *gl; }; #...

exception - Android crashes on keyboard plugging -

i'm developing android application in need support usb keyboard. haven't developed explicitly support usb keyboard because thought every application can use usb keyboard. the problem when i'm trying connect or disconnect usb keyboard, application crashes without error trace application. my device lenovo android 4.1 installed. can resolve problem? an activity configuration change occurs when external keyboard attached. to resolve crash, add following element androidmanifest.xml activities: android:configchanges="orientation|keyboard|keyboardhidden" per documentation , android:configchanges : lists configuration changes activity handle itself. when configuration change occurs @ runtime, activity shut down , restarted default, declaring configuration attribute prevent activity being restarted. instead, activity remains running , onconfigurationchanged() method called.

classpath - java.lang.NoClassDefFoundError: Could not initialize class sun.nio.ch.FileChannelImpl -

i working on application executes jython 2.5.3 script java 1.6.027 . script open file using codecs library , looks this: try: codecs import open codecs_open except importerror: print 'error', 'could not import.' codecs_list = ['latin-1', 'utf-8', 'utf-16', '1250', '1252'] def open_file(filename, mode): ''' doc ''' encoding in codecs_list: try: f = codecs_open(filename, mode, encoding) f.read() f.close() print 'info', "file %s supports encoding %s." % (filename.split("\\")[-1], encoding) ... except: ... when execute script debugging in eclipse , works ok, when execute part of java application invokes script, error: exception in thread "main" java.lang.noclassdeffounderror: not initialize class sun.nio.ch.filechannelimpl @ java.io.randomaccessfi...

int vs Integer comparison Java -

this question has answer here: why java not see integers equal? 6 answers class datatype1 { public static void main(string args[]) { int i1 = 1; integer i2 = 1; integer i3 = new integer(1); system.out.println("i1 == i2"+(i1==i2)); system.out.println("i1 == i3"+(i1==i3)); system.out.println("i2 == i3"+(i2==i3)); } } output i1 == i2true i1 == i3true i2 == i3false can explain why false when comparing i2 , i3 ? i1 == i2 results in un-boxing , regular int comparison done. (see first point in jls 5.6.2 ) i2 == i3 results in reference comparsion . remember, i2 , i3 2 different objects. (see jls 15.21.3 )

php - Session array only echoes last element -

i have session variable store array: $outputs = array(); while($row = mysql_fetch_array($query)) { $_session['row_id'] = $row['id']; $outputs = $row['sport_ime'].' '.$row['sezona'].'<a href=../view/modifikacije.php> edit</a><br>'; $_session['output'] = $outputs; } and on page call variable: $outputs = $_session['output']; echo ($outputs); it echoes 1 row. last entry in database. why doesn't echo everything? try this $_session['row_id'][] = $row['id']; $_session['output'][] = $outputs; please read php arrays , , consult manual when you're stuck.

c# - Mvc - Form with viewmodel -

im working in mvc , have form in view receive viewmodel selectlist insert values dropdownlist. but on submit form nothing work , can´t figured out going on. on submit form null database. someone can me out pls? here code: view: model myproject.models.viewmodel @using(html.beginform()) { @html.dropdownlistfor(o => o.cp.companylist,model.cp.companylist) @html.editorfor(o => o.md.title) @html.editorfor(o => o.md.edition) @html.editorfor(o => o.md.number) <input type="submit" name="submit" value="add new"> } controller: public actionresult create() { viewmodel vm = new viewmodel (); return view(vm); } // // post: create [httppost] public actionresult create(mydata model) { if (modelstate.isvalid) { db.res.add(model); db.savechanges(); return redirecttoaction(...

iOS >> UINavigation Item Back Button Title Doesn't Change -

i'm trying set button pushed vc set within uinavigationcontroller stack. use following code, , it's not working - still previous vc name appearing button title. -(void)viewwillappear:(bool)animated { [super viewwillappear:animated]; self.title = @"vc title"; uibarbuttonitem* mybackbutton = [[uibarbuttonitem alloc] initwithtitle:@"back" style:uibarbuttonitemstylebordered target:nil action:nil]; self.navigationitem.backbarbuttonitem = mybackbutton; } anyone? try setting title in parent view controller's viewdidload uibarbuttonitem *custombaritem = [[uibarbuttonitem alloc] initwithtitle:@"back" style:uibarbuttonitemstylebordered target:self action:@selector(popview)]; self.navigationitem.leftbarbuttonitem = custombaritem;

Mixing Javascript inside HTML -

there isa d3.js drawing function accepting element , d data params , inside function there html lines draw stuff: '<p><strong>' + d.name_detail[0].detail_value + '</strong> ' + d.name_detail[1].detail_value + '<strong class="pharmacy-icon">' + d.generic_tooltip.length + '<img src="/assets/pill.png">' + '</img></strong></p>' + notice line '<img src="/assets/pill.png">' + need put logic in there example if d.showpill === true show pill icon otherwise don't show it. showing. if inline: ((d.showpill == true) ? '<img src="/assets/pill.png"> : '')

javascript - validation for multiple forms generated by loop? -

i have loop generates 5 forms.there lot of animation involved , 1 form displayed @ time. my link i have done validation id based on other page(working fine). here situation different,i cannot generate id because of loop.so entire form validation class based. myquestion: how manage single function validates 5 forms. if interested in id based code-> thefiddle (not working),just basic code my code:for simplicity for(i=0;i<=5;i++){ //html of form in fiddle. } new jquery.i understand $(this) concept in jquery. hope clear.no plugin plz. first things first, if element not unique not use id it. let's have 2 forms here: <form id="formone" class="validform" method="post"> <input class="email" type="text"/> <input class="newsletter" type="checkbox"/> <input type="submit" value="send"/> <p class="error"></p...

php - Why does my git repo throw errors when pushing to deployment server? -

i set a repo on beanstalk app deploy app. i have repo , submodule in following settings. in .git/config have: [submodule "vendor/php-instagram-api/php-instagram-api"] path = vendor/php-instagram-api/php-instagram-api url = git@made-by-mark.beanstalkapp.com:/made-by-mark/everydayfolk.git in .git/.gitmodules have: [submodule "phpinstagram"] path = vendor/php-instagram-api/php-instagram-api url = git@made-by-mark.beanstalkapp.com:/made-by-mark/everydayfolk.git is there conflict here? when commit no errors when git push beanstalk master in beanstalk deployment area error saying: warning: permanently added 'made-by-mark.beanstalkapp.com,50.31.156.71' (rsa) list of known hosts. fatal: reference not tree: fc4d8cf4f05c51e71ddbc7d7b80f639c68b39405 unable checkout 'fc4d8cf4f05c51e71ddbc7d7b80f639c68b39405' in submodule path 'vendor/php-instagram-api/php-instagram-api' i have tried many fixes things are...

exception - Java Arraylist got java.lang.IndexOutOfBoundsException? -

i'm general 3d artist, switched career , started learn programming. i've got problem c106a handout #5. the code works, i've still got error log here. exception in thread "main" java.lang.indexoutofboundsexception: index: 4, size: 4 @ java.util.arraylist.rangecheck(arraylist.java:547) @ java.util.arraylist.get(arraylist.java:322) @ uniquenames.showunique(uniquenames.java:23) @ uniquenames.main(uniquenames.java:39) why arraylist , can stretch capacity on own, still outofboundsexception ? here's full code: import acm.io.*; import acm.program.consoleprogram; import acm.util.*; import java.io.*; import java.util.arraylist; import java.lang.*; public class uniquenames extends consoleprogram{ static arraylist<string> mestring = new arraylist<string>(); static string input ; public static void storeunique(string input){ if (!mestring.contains(input)) { mestring.add(input); } } pub...