Posts

What happens in memory when a C++ class is instantiated -

i'm interested in nuts , boltw of c++ , wondered changes when object instantiated. i'm particularly interested if functions added memory, if there runtime or if never stored in memory @ all. if direct me site on of core bolts of c , c++, i'd love too. thanks, jo a common case is: memory allocated calling operator new . function in memory, it's needed lot. the constructor of class called. code in memory. if not, call function page-faults. os notes, , loads appropriate page executable ram. tells os retry. ( 2a. ctor arranges virtual functions callable - writing vtable pointer ) chances page constructor contains other members of class. can called too. if on page, calling them may cause page fault , load. if compiler put vtable on different page, use of vtable may cause page fault. the advantage of such load-on-demand mechanism os can avoid loading code class cprinter if user never intends print document.

Visual studio 2005 crashes attempting to add new project setting in Project Settings pane. How to fix? -

while trying add new user or application setting project properties pane of project, visual studio 2005 hangs , prompts after minute debug or restart. have tried deleting app.config , user.config files no avail. have tried resetting ide's application settings. have tried hitting sychronize under pane. there corrupt file causing mess? solution? more info: visual basic development, vista, vs 2005. i've had problems before. approach like: install latest service pack if you've got time, reinstall worst-case, manually edit project file add settings

javascript - Appending an extra request to JSON callback -

my problem i trying load json encoded data remote site using jquery, when jquery tries call url appends correct function callback=? it's callback=jsonp1256856769 adds _=1256856769 url. url ends being http://www.example.com/link/to/file.php?format=json&lang=en&callback=jsonp1256856769&_=1256856769 now problem that file using calls can't interpret _=1234234 , can't change have fix jquery problems my question how can jquery not appened _= url calls what have done try figure out problem removed other javascript libraries page tried several different versions of jquery my code function getdata(){ url = "http://www.example.com/link/to/file.php"; url += "?format=json&lang=en"; $.getjson(url+"&callback=?",function(data){formatdata(data);}); } *above snippet of javascript using *note domain using not example.com update: added code the _= part there, because jsonp request cache: fals...

saas - Building a webportal which will be rented to customers. Need an Architecture Suggestion -

iam building web portal rented customers on hosted model (saas), using entire portal features on own domains own branding. now don't want them files of web-portal, still able use custom branded portal. one solution suggested here host branded version on server , via iframe on customer's domain. didn't idea much. one second approach researched , found host portal on fresh ip in server , ask customer point domain ip. the webportal sold lot of customers , have separate user interfaces , brandings, needed. please suggest me feel approach or if guys have better idea in mind please pour in suggestions. we're running saas application supports branding, , dynamically serving css. if of customers have unique domain name pointed @ server, select css files domain name: if customer logs in @ "http://portal.customer.com/login", can have html link file "/stylesheets/portal.customer.com.css", , forth. alternatively, can create subdomain e...

uploading zip files in codeigniter won't work -

i have created helper requires parameters , should upload file, function works images not zip files. searched on google , added my_upload.php -> http://codeigniter.com/bug_tracker/bug/6780/ however still have problem used print_r display array of uploaded files, image fine zip array empty: array ( [file_name] => [file_type] => [file_path] => [full_path] => [raw_name] => [orig_name] => [file_ext] => [file_size] => [is_image] => [image_width] => [image_height] => [image_type] => [image_size_str] => ) array ( [file_name] => 2385b959279b5e3cd451fee54273512c.png [file_type] => image/png [file_path] => i:/wamp/www/e-commerce/sources/images/ [full_path] => i:/wamp/www/e-commerce/sources/images/2385b959279b5e3cd451fee54273512c.png [raw_name] => 2385b959279b5e3cd451fee54273512c [orig_name] => 1269770869_art_artdesigner.lv_.png [file_ex...

.net - Boyer-Moore Practical in C#? -

boyer-moore fastest non-indexed text-search algorithm known. i'm implementing in c# black belt coder website. i had working , showed expected performance improvements compared string.indexof() . however, when added stringcomparison.ordinal argument indexof , started outperforming boyer-moore implementation. sometimes, considerable amount. i wonder if can me figure out why. understand why stringcomparision.ordinal might speed things up, how faster boyer-moore? because of the overhead of .net platform itself, perhaps because array indexes must validated ensure they're in range, or else altogether. algorithms not practical in c#.net? below key code. // base search classes abstract class searchbase { public const int invalidindex = -1; protected string _pattern; public searchbase(string pattern) { _pattern = pattern; } public abstract int search(string text, int startindex); public int search(string text) { return search(text, 0); } } /// <su...

java - Tomcat in Eclipse: It runs but time out during startup anyway -

i'm running java web app in eclipse (helios) using tomcat 7. server startups (duration indicated) eclipse's progress bar still spins saying tomcat starting up. timeout reached , error thrown. i believe tomcat fine i've taken command uses , ran manually in shell. tomcat runs fine , i'm able hit web app @ expected url. can hit after it's started , before timeout occurs. i've reinstalled eclipse, ran clean, deleted/recreated server. nothing has worked. have clues? i had issue, seems eclipse calls application url after start make sure running. a proxy client (pshione) had changed system proxy eclipse not call start page , thinks application not starting yet!! i removed proxy , works fine now! edited: this can happen when start tomcat ssl, ssl certification not valid. when make call , invalid ssl certification site, browser confirm if want go 1 or not, eclipse can not connect invalid ssl site! suggest test site normal http instead of https. ...