Posts

Showing posts from July, 2013

python - Activating/deactivating a virtualenv -

i started working on first python api hello world example on friday on vps running ubuntu 14.04. used python3, created folder, virtualenv, activated , electricity went out , connection broke. i've left there, , tried continue stopped. now, can't find way "get active" mode (to command-line view saying (myprojectenv)user@host:~/myproject$ i've searched "deactivate" somewhere in order re-activate again, can't find such. any understanding proper way of handling virtualenv's appreciated. you have activate virtualenv again. in bash have source activate file: source myprojectenv/bin/activate

javascript - How can I have different type of events in Fullcalendar? -

i'm trying have 2 sort of events in full calendar. one of them clickable , open popup when click on them. the others 1 don't take care if click on them. i'm using fullcalendar symfony : https://github.com/adesigns/calendar-bundle anybody know how that? edit: in calendar-settings.js: $('#calendar-holder').fullcalendar({ select: function (start, end, jsevent, view) { alert("test"); }), eventsources: [ { url: routing.generate('fullcalendar_loader'), type: 'post', data: {}, error: function () {}, }, ] then in calendareventlistener have: class calendareventlistener { private $entitymanager; public function __construct(entitymanager $entitymanager) { $this->entitymanager = $entitymanager; } public function loadevents(calendarevent $calendarevent) { $evententity = new evententity('firstevent', new datetime(), new...

html - Set equal height for group of divs -

within section, have 4 divs. first div, floated left has both width , height in pixels. want height dynamically generated based on other div's height. quite stuck. here jsfiddle : https://jsfiddle.net/ksaluja/62o7ydan/ thanks! <section> <div class="attempt"> </div> <div> <ul id="menu"> <li><a style="background:#3f4e64" href="/html/default.asp">button1</a></li> <li><a style="background:#788291">button2</a></li> </ul> </div> <div> <h2>title</h2> <p> badkada </p> <p> fusce luctus ipsum in dui accumsan, posuere scelerisque lacus ultrices. quisque quis ultricies nunc. nam augue magna, eleifend id mi vel, pretium </p> <p> fusce luctus ipsum in dui accumsan, posuere scelerisque lacus ultrices. quisque quis ultricies nunc. n...

How to read Unicode file as Unicode string in Python -

i have file encoded in unicode or utf-8 (i don't know which). when read file in python 3.4, resulting string interpreted ascii string. how convert unicode string u"text" ? the term "unicode" refers standard, not particular encoding. since files in computers binary, there exist different ways of encoding unicode data in binary files. 1 of them "utf-8". you can consult https://docs.python.org/3/howto/unicode.html an example taken document (in section "reading , writing unicode data") with open('unicode.txt', encoding='utf-8') f: line in f: print(repr(line)) in python 3, unlike python2, unicode string constants not written "u".

Cannot pass asterisk character to external command via powershell -

Image
i cannot pass asterisk character external command using powershell i use following line like & .\args.bat @("-arg1", "-arg2", "*.test.com") where args.bat dumps passed arguments @echo off echo %~nx0 script args are... %%i in (%*) echo %%i and instead of passing "*.test.com" lookups current directory files matching pattern "*.test.com" , sends list of them args.bat that can seen if use "*" instead of "*.test.com" i've tried tick character escape asterisk, didn't help in case using asterisk required i'm passing makecert.exe create wildcard domain certificate please help i'm not seeing that. test created args.bat so: 'pause' > args.bat then executed it: & .\args.bat @("-arg1", "-arg2", "*.ps1") when in task manager @ command line cmd.exe, see: it must batch file doing because powershell doing nothing * . btw use...

java - I want message or notification show when start or boot android mobile. -

i want message or notification show when start or boot android mobile. notification show when destroyed application not showing message or notification. please me. public class beaconservice extends service { handler mhandler = new handler(); @override public ibinder onbind(intent arg0) { return null; } @override public int onstartcommand(intent intent, int flags, int startid) { new thread(new runnable() { @override public void run() { while (true) { try { thread.sleep(10000); mhandler.post(new runnable() { @override public void run() { shownotification(); } }); }catch (exception e){ } } } }).start(); return star...

c - TCP Server Crash -

i wondering why crashes when client connects?? supposed simple tcp server when client connects , sends string, server responds number of a's in string. server crashes client types letter in. #include<io.h> #include<stdio.h> #include<winsock2.h> #pragma comment(lib,"ws2_32.lib") //winsock library int main(int argc , char *argv[]) { wsadata wsa; socket s , new_socket, master; struct sockaddr_in server , address; int c, valread; char *message = "welcome marshall's tcp server!!"; int maxrecv = 1024; char *buffer; char ammta = 'a'; char ammtb = 'a'; int count = 0, x; fd_set readfds; buffer = (char*) malloc((maxrecv + 1) * sizeof(char)); printf("\ninitialising winsock..."); if (wsastartup(makeword(2,2),&wsa) != 0) { printf("failed. error code : %d",wsagetlasterror()); return 1; } printf("initialised.\n"); //create socket if((s = socket(af_inet , sock_stream , 0 )) == invalid_so...

javascript - Nodejs Numtel Mysql over a SSH connection -

i'm having problem using numtel meteor package send , receive mysql information on network (the database being located on server). currently, able push information db screen using package, problem occurs after first load. on first load, able retrieve information database, , display screen, after that, seems triggers broken, somewhat. able send information server, seems fail on dynamic retrieval. information gets sent server fine, information not retrieved , displayed onto screen. breaks once add tunneling code. previous worked , got updates when using database on same machine. messages = new mysqlsubscription('getmessages'); messages.addeventlistener('update', function(diff, data) { console.log("event listener"); }); if (meteor.isclient) { template.messagehistory.helpers({ messages: function () { return messages.reactive(); } }); } if (meteor.isserver) { var tunnel = meteor.npmrequire('tunnel-ssh'); var config...

fortran - fftw_mpi_plan_dft_3d fails with Segmentation fault -

the following 3d complex fft fortran mpi program runs when number of processes p = 1, 2, 4, 8, , 16. but, fails when p = 12 following error @ place function fftw_mpi_plan_dft_3d called. "program received signal sigsegv: segmentation fault - invalid memory reference." why program fail p = 12? program test use, intrinsic :: iso_c_binding implicit none include 'mpif.h' include 'fftw3-mpi.f03' integer :: ier integer(c_intptr_t), parameter :: l = 256 integer(c_intptr_t), parameter :: n = 256 integer(c_intptr_t), parameter :: m = 48 type(c_ptr) :: plan, cdata complex(c_double_complex), pointer :: data(:,:,:) integer(c_intptr_t) :: i, j, alloc_local, local_m, local_j_offset call mpi_init(ier) call fftw_mpi_init alloc_local = fftw_mpi_local_size_3d(m, n, l, mpi_comm_world, local_m, local_j_offset) cdata = fftw_alloc_complex(alloc_local) call c_f_pointer(cdata, data, [l, n, local_m]) plan = fftw_mpi_plan_dft_3d(m, n, l,...

javascript - Is there a way to limit the number of children in firebase? -

i have firebase i'm pushing quite regularly, chat, , i'm concerned number of children gathering in firebase. removed when connections gone there way limit number of them in there? cheers! you implement using ring buffer . if wanted have no more 50 nodes, have children of node referenced /0, /1, /2, ... /49, , write data being generated. using transaction() have location in firebase keep track if current 'start' , 'end'. priorities used in conjunction approach keep ordered (for example, timestamp.) approach have benefit of not having prune data grew. we don't have mechanism enforce using server-side security rules, i've made note of in our internal tracker.

python - Cache Proxy Server Returning 404 with www.google.com -

Image
i have homework assignment involves implementing proxy cache server in python web pages. here implementation of it from socket import * import sys def main(): #create server socket, bind port , start listening tcpsersock = socket(af_inet, sock_stream) #initializing socket tcpsersock.bind(("", 8030)) #binding socket port tcpsersock.listen(5) #listening page requests while true: #start receiving data client print 'ready serve...' tcpclisock, addr = tcpsersock.accept() print 'received connection from:', addr message = tcpclisock.recv(1024) print message #extract filename given message filename = "" try: filename = message.split()[1].partition("/")[2].replace("/", "") except: continue fileexist = false try: #check whether file exists in cache f = open(filename, ...

c++ - How Does WinAPI ensure compilation fail when WinMain is not implemented -

when create win32 project in visual studio , dont define winmain function compilation error: error 1 error lnk2019: unresolved external symbol _winmain@16 referenced in function ___tmaincrtstartup how api setup designed/implemented ensure user can never create win32 application without implementing winmain ? creating api , want put in compilation errors when user hasn't used api or hasn't implemented essential features. an example of want use similar is: user must implement app class (base or inherited). if can somehow detect @ compilation time app class has not been implemented can throw compilation error. is winapi's implementation simple forward declaration function hasn't been implemented (which ensures compilation failure)? ie, // forward declaration with, intentionally, no function implementation int apientry _twinmain(_in_ hinstance hinstance, _in_opt_ hinstance hprevinstance, _in_ lptstr lpcmdline, _in_ int ncmdshow); when sta...

How work this insert and update with if statement query in mysql -

select ifnull(post.id ,insert post(pdate,body) values (1,'a') ,update post set body='update',pdate=2 ) post body='a' , pdate=1 you can try create stored procedure this: create procedure `myproc` begin if exists (select post.id post body='a' , pdate=1) update post set body='update',pdate=2; else insert post(pdate,body) values (1,'a'); end if; end //

How to enable the gradle daemon in Netbeans? -

while it's possible run gradle cli: thufir@mordor:~/netbeansprojects/gradle$ thufir@mordor:~/netbeansprojects/gradle$ clear;gradle clean build;java -jar build/libs/gradle.jar :clean :compilejava :processresources up-to-date :classes :jar :assemble :compiletestjava up-to-date :processtestresources up-to-date :testclasses up-to-date :test up-to-date :check up-to-date :build build successful total time: 3.674 secs build faster, please consider using gradle daemon: http://gradle.org/docs/2.5/userguide/gradle_daemon.html hello world thufir@mordor:~/netbeansprojects/gradle$ how specify use daemon? build file: apply plugin: 'java' sourcecompatibility = '1.8' [compilejava, compiletestjava]*.options*.encoding = 'utf-8' // netbeans automatically add "run" , "debug" tasks relying on // "mainclass" property. may define property prior executing // tasks passing "-pmainclass=<qualified_class_name>" argu...

struts2 - Java Thread Safety Issue in Struts ScopeInterceptor class? -

i'm trying understand if there thread-safety issue inside of struts2 scopeinterceptor class (/org/apache/struts2/interceptor/scopeinterceptor.java), here's code in question: private static map locks = new identityhashmap(); static final void lock(object o, actioninvocation invocation) throws exception { synchronized (o) { int count = 3; object previous = null; while ((previous = locks.get(o)) != null) { if (previous == invocation) { return; } if (count-- <= 0) { locks.remove(o); o.notify(); throw new strutsexception("deadlock in session lock"); } o.wait(10000); } ; locks.put(o, invocation); } } static final void unlock(object o) { synchronized (o) { locks.remove(o); o.notify(); } } i have websphere application showing 45 stalled threads, high cpu usa...

oracle - Database design: status of one table based on another -

i have odd business requirement has me stumped. background: basically, have 2 tables tracking program enhancements: enhancement , bug. relationship enhancement->bug 1:m, , bug table has foreign key column enhancementid. both tables have "status" column, gets tricky. requirement status of enhancement dependent on related bugs. example, if have 3 bugs enhancementid's of 100 , statuses of "in testing", enhancement 100's status should automatically set "in testing." there several status rules this. this database shared few applications, first thought use "on update" trigger on bug table. because trigger had select statement in triggering table, received "mutating table" error (i have query statuses of bugs specified enhancementid when trigger fires). now, trying implement 3 trigger solution outlined here: http://asktom.oracle.com/pls/asktom/asktom.download_file?p_file=6551198119097816936 becoming wary of putting logic wi...

Get URL location pathname -

let's have dummy website url: http://company.com/something . i need grab path: /something , use switch case redirect new url using javascript. can please guide me? var url; var url_param = location.pathname; switch(url_param) { case "/how-to-do-this": url = '/your-new-destination/'; default: url: '/thankyou/'; console.log("your new url is: " + url); thanks. i assume you're using javascript var url; switch(window.location.pathname) { case "/how-to-do-this": url = '/your-new-destination/'; default: url= '/thankyou/'; } console.log("your new url is: " + url);

Array variables are showing as "Array" in PHP email -

This summary is not available. Please click here to view the post.

C#: Splitting an array into n parts -

i have list of bytes , want split list smaller parts. var array = new list<byte> {10, 20, 30, 40, 50, 60}; this list has 6 cells. example, want split 3 parts containing each 2 bytes. i have tried write loops , used 2d arrays achieve purpose don't know correct approach. byte[,] array2d = new byte[window, lst.count / window]; var current = 0; (int = 0; < rows; i++) { (int j = 0; j < cols; j++) { array2d[i, j] = lst[current++]; } } a nice way create generic/extension method split array. mine: /// <summary> /// splits array several smaller arrays. /// </summary> /// <typeparam name="t">the type of array.</typeparam> /// <param name="array">the array split.</param> /// <param name="size">the size of smaller arrays.</param> /// <returns>an array...

php and nested json: how can i access this element? -

here's json text: { "data": { "current_condition": [{ "cloudcover": "75", "humidity": "63", "observation_time": "03:41 pm", "precipmm": "0.0", "pressure": "1020", "temp_c": "15", "temp_f": "59", "visibility": "16", "weathercode": "116", "weatherdesc": [{ "value": "partly cloudy" }], "weathericonurl": [{ "value": "http:\/\/cdn.worldweatheronline.net\/images\/wsymbols01_png_64\/wsymbol_0002_sunny_intervals.png" }], "winddir16point": "sse", "winddirdegree": "160", "windspeedkmph": "7", "windspeedmil...

Center/middle text in php image -

Image
i want create image php. have backgroundimage. on it, want write text. text should center , in middle (vertical align). text should break, if comes out of border. how can that? if have string: $text = "this sample text. second sample text."; this should result: hope understand need. edit: this made: in center , middle. text makes no break. how can this? <?php header("content-type: image/png"); //settings $text = 'this sample text. second sample text.'; $width = 200; $height = 200; //create image $im = imagecreate($width, $height); //colors $colorwhite = imagecolorallocate($im, 255, 255, 255); $colorblack = imagecolorallocate($im, 0, 0, 0); $colorgrey = imagecolorallocate($im, 207, 199, 199); //border imagerectangle($im, 0, 0, $width - 1, $height - 1, $colorgrey); //fontsize $fontsize = 3; $font_width = imagefontwidth($fontsize); $font_height = imagefontheight($fontsize); //text size $text_width = $font_width * strlen($text);...

jquery - Cors, Web Api, IE8, Post Complex Data -

as part of work environment need support ie8, move forward technology, cors. i'm having trouble posting complex objects cors service in ie8. object null. below steps reproduce. if needed can upload project github. i've created new mvc4 project. added api controller. , made following changes. to support preflight complex cors calls (global.asax): protected void application_beginrequest() { //this needed preflight message //https://stackoverflow.com/questions/13624386/handling-cors-preflight-requests-to-asp-net-mvc-actions if (request.headers.allkeys.contains("origin") && request.httpmethod == "options") { response.flush(); } } source: handling cors preflight requests asp.net mvc actions to support text/plain (ie8 sends text/plain cors)(global.asax): protected void application_start() { //this needed support text/plain httpconfiguration config = globalconfiguration.configur...

Jquery ajax search debounce -

i building live search website return results based on user types. want request sent when user has finished typing. i have tried few implementations using timers , debounce method underscore.js seem getting similar result. while typing, request delayed until have finished typing. seems fire inputs if queued. example, if type in "bikes" results come like: b bi bik bikes as such, stream of results search. this current implementation using underscore js $('#search_term').on('keyup', _.debounce(function (e) { $.ajax({ type: "get", url: "quicksearch.php", data: { search_term:$('#search_term').val()}, success: function(msg){ $('#quick_search_results').html(msg).slidedown(); } }); }, 100)); anyone have ideas? maybe users cannot type fast enough. set wait parameter of _.debounce function longer 100ms in example: (s...

hibernate - Spring and null pointer exception -

i'm trying this: @controller public class homecontroller { @autowired private templatesservice templatesservice; public final string test = templatesservice.geturi(); the geturi : @suppresswarnings("unchecked") public string geturi() { return (string) sessionfactory.getcurrentsession() .createquery("select uri templates state=1") .uniqueresult(); } it work correctly, if i'll declare test in method. i'm having this: org.springframework.beans.factory.beancreationexception: error creating bean name 'homecontroller' defined in file [c:\users\anton\springsource\vfabric-tc-server-developer-2.8.2.release\base-instance\wtpwebapps\blog\web-inf\classes\net\babobka\blog\controller\homecontroller.class]: instantiation of bean failed; nested exception org.springframework.beans.beaninstantiationexception: not instantiate bean class [net.babobka.blog.controller.hom...

jquery - Magnific Popup - popup within a popup. How to make "close" go to previous popup? -

i've got basic setup: $('.ajax-popup-link').magnificpopup({ type: 'ajax', callbacks: { ajaxcontentadded: function () { $('.image-link').magnificpopup(); }; } }); what i'd have close event of "image-link" popup go original popup. first thought grab original element , maybe pass 2nd popup, bind close event element... when closes, automatically popsup original one. has else done this? there better way possibly this? probably, way achieve want take original element , reopen it. passing 2nd popup's close callback won't give anything, since never called. magnificpopup not fire open event if popup opened, because there 1 instance of magnific popup object . can check if curritem equal 1st popup's item. var childopened, parentitem, $parent = $('.ajax-popup-link'); $parent.magnificpopup({ type: 'ajax', callbacks: { ...

javascript - How to iterate over an object's prototype's properties -

i have code: var obj = function() { }; // functional object obj.foo = 'foo'; obj.prototype.bar = 'bar'; (var prop in obj) { console.log(prop); } what surprised me logged foo . expected loop iterate on properties of obj 's prototype (namely bar ), because did not check hasownproperty . missing here? , there idiomatic way iterate on properties in prototype well? i tested in chrome , ie10. thanks in advance. you're iterating on constructor's properties, have create instance. instance inherits constructor's prototype property: var ctor = function() { }; // constructor function ctor.prototype.bar = 'bar'; var obj = new ctor(); // instantiation // adds own property instance obj.foo = 'foo'; // logs foo , bar (var prop in obj) { console.log(prop); }

c++ - Closest Palindrome Number -

i came across 1 of common interview question find closest palindrome number. if input 127 output 131 , if 125 should give 121 output. i can come logic logic fails on cases 91, 911. in these inputs give 99 , 919 correct output 88 , 909. algorithm steps are: convert number string. copy first half second half in reverse order convert number , measure abs. difference original number diff1 add 1 half string , copy first half second half in reverse order convert number , measure abs. difference original number diff2 if diff1 less diff2 return first number else return second number this interesting problem. want make more brute force use significant digits , put them in least significant digit locations form palindrome. (i'm going refer difference between palindrome , original "distance") from i'm going can ignore least significant half of numbers because doesn't matter (it matters when determining distance, that's all). i'm going ta...

delphi - How do I extract `$Platform` and `$config` from the dproj file -

i want extend gpprofile works xe2. the problem why not not know how translate file path in xe2's .dproj file. the following error occurs: exception class eoserror message tgphugefile.accessfile(c:\users\johan\documents\rad studio\projects\project8\ $(platform)\$(config) \project8.gpd) failed. win32 error. code: 3. system cannot find given path.' the program extracts path, not know how translate $platform , $config variables. whilst it's easy enough hardcode these vars win32/win64 , release/debug respectively, i'd properly. mean want extract values ide saves .dproj file selected values of variables when files saved. how extract these values .dproj file? you can work out little reverse engineering. take default project , add win64 platform. save .dproj file. change values of both platform , config, , save .dproj file. run these files through difference program. output looks this: 8,9c8,9 < <config con...

backbone.js - How do I check which template is being used in Marionette ItemView -

i have multiple templates declared in marionette itemview , when render itemview template want use. templates: { 'images': imageresulttmpl, 'music': mediaresulttmpl, 'videos': mediaresulttmpl }, inside method in itemview can name of active template? if(music){ this; } else{ that; } my first thought should have different itemviews each template , render correct itemview depending on situation. if you're trying dry code, maybe create base itemview holds common code , have specialized itemviews extend base class.

android - Align ImageView to bottom Right of LinearLayout -

i'm triying put imageview in bottom right of linearlayout .... wrote code bellow : style.xml: <?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <linearlayout android:layout_width="fill_parent" android:layout_height="90dp" android:background="@drawable/my_background" android:orientation="horizontal" > <imageview android:id="@+id/imageview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:src="@drawable/my_small_image" /> </linearlayout> ...

using sizeof () to find function type length in ANSI C -

this question has answer here: why size of function in c 1 byte? 4 answers when need find function type length, used sizeof () it. the expected result 4 bytes , 8 bytes, now, result 1 byte through gcc. why output 1 byte, not 4 bytes , 8 bytes? #include <stdio.h> int foo (); double bar (); int main (void) { printf ("int foo () %lu\n", sizeof (foo)); printf ("double bar () %lu\n", sizeof (bar)); } double bar (void) { return 1.1; } int foo (void) { return 0; } although standard says "the sizeof operator shall not applied expression has function type" (§6.5.3.4/1), in gnu c, result of doing defined: " sizeof allowed on void , on function types, , returns 1" ~ gcc, 6.23 arithmetic on void- , function-pointers also have at: why size of function in c 1 byte? ...

DataGridView for loop error -

considering following code: public class crewdatabaseform public shared crewlist list(of string) private sub crewdatabaseform_formclosed(sender object, e formclosedeventargs) handles me.formclosed dim cl new list(of string) if datagridview1.rows.count = 2 cl.add(datagridview1.rows(0).cells(0).value) if datagridview1.rows.count > 2 integer = 0 (datagridview1.rows.count - 2) cl.add(datagridview1.rows(i).cells(0).value.tostring) next end if messagebox.show(datagridview1.rows.count.tostring) end sub private sub crewdatabaseform_load(sender object, e eventargs) handles mybase.load end sub end class --this form datagridview. whenever exit form, , if , statements commence, if have entered value in first column , not pressed enter error occurs: "an exception of type 'system.nullreferenceexception' occurred in stage tally.exe not handled in user code additional information: object reference not set instance o...

Which way of including content multiple times into one layout in Docpad is most appropriate? -

i've started digging docpad current project , far i've discovered 3 ways include content. we use content template data variable include child layout/document layout. we have include(relativepath) method include content of file @ given path. finally have partials plugin provides way insert documents other documents, , passed docpad rendering engine. we can use content variable once per document. have multiple places within static template need include content. why ever need use content variable if can use, say, include , or partials (when installed) not have limit of single usage per document? guess there own pros, cons , use cases each way of including content. i'm wondering way appropriate , in case, assuming want include content multiple times in 1 layout? ok - think know trying do. there may various places on page might want have content. standard way use partials in each of places want content. also, remember can call partials within partial. ...

javascript - js functions in jquery plugin -

i looking improving js skills js , of how works little confused on how jquery plugins work. i have started plugin. when standalone functions being called work's fine want plugin. (function ( $ ) { $.fn.countdown = function( options ) { // easiest way have default options. var settings = $.extend({ // these defaults. dayselector : "", hourselector : "", minuteselector : "", secondselector : "", launchdate : new date("december 25, 2013 12:01:00"), procentagedone : 1, headercolor : 'yellow', progressfillcolor : 'green', description : {header:"header",text:"sample text."} }, options ); var secondsremaining = math.floor(settings.launchdate.gettime() / 1000) - math.floor(new date().gettime() / 1000); /* functions calls countdown*/ count(secondsremaining); updateprogress(settin...

entity framework - How to make Appstats show both small and read operations? -

Image
i'm profiling application locally (using dev server) more information how gae works. tests comparing common full entity query , projection query. in tests both queries same query, projection specified 2 properties. test kind has 100 properties, same value each entity, total of 10 entities. image datastore viewer , appstats generated data shown bellow. in appstats image, request 4 memcache flush, request 3 test database creation (it created, no costs here), request 2 full entity query , request 1 projection query. i'm surprised both queries resulted in same amount of reads. guess small , read operations , being reported same appstats. if case, want separate them in reports. that's queries related functions: // full entity query public returncodes doquery() { datastoreservice datastore = datastoreservicefactory.getdatastoreservice(); for(int = 0; < numiters; ++i) { filter filter = new filterpredicate(dbcreation.property_name_prefix + i, ...