Posts

oracle - Taking too long to insert records in Elasticsearch in c# -

the following code pulls data 2 tables table1 , table2, performs join on them, on field 3 , indexes elasticsearch. total number or rows need indexing around 500 million. code inserts 5 million records in 1 hour, way take 100 hours complete. there way can make faster? public static void selection() { uri node = new uri("http://localhost:9200"); connectionsettings settings = new connectionsettings(node); elasticclient client = new elasticclient(settings); int batchsize = 100; string query = "select table1.field1, table2.field2 table1 join table2 on table1.field3=table2.field3"; try { oraclecommand command = new oraclecommand(query, con); oracledatareader reader = command.executereader(); list<record> l = new list<record>(batchsize); string[] str = new string[2]; int curr...

Displaying HTML partial inside JQuery qtip2 popup -

i have large complicated informative popup display multiple cells within same column. my initial attempt build html page , display within 'content' option within qtip2's jquery. find inline html option straight html. css additionally needs modified in original qtip2 download because not allow options in jquery beyond dimensions. my jquery: function initabbonamentitable(){ var content = $('<div class="popup">' + '<div class="title">' ); //etc long inline html $('.price-column').each(function(){ $(this).qtip({ content : content, //here i'd reference partial instead show: 'click', position: { my: 'top center', // position top left... at: 'bottom center', // @ bottom right of... target: $(this) // target }, style: { classes: 'custom' } }); }); the import line 1 corr...

nginx - Laravel showing blank page -

i setup laravel 5 framework in server typing in terminal laravel new blog (in "/var/www/html/" folder), then changed default config of nginx root pointing : root /var/www/html/blog/public; of-course files in place see blank page showing ! tried put html & php file in public folder , works fine. not laravel default index file. missing here ? for adding pages in laravel not put files in /public . please have @ official laravel page if want create new views. laravel uses mvc principle. need have @ least view (the part displayed) , controller handles view. add new controller , please change project root cd /var/www/html/blog , type in php artisan controller:make awesomecontroller creates controller in app/http/controllers/awesomecontroller.php . in controller can return view adding return view('myview') index() method example. (the view has exist @ resources/views/myview.blade.php of course) in last step need tell laravel how call contr...

Jenkins job for Deploying group of multiple servers (10 servers a group with multiple group)with a slave -

we have jenkins job, have 400 applications servers in 1 environment divided groups = 10 servers b = 10 servers c = 10 servers ........etc. note : have slave server(one slave) deployment above parameters a,b,c...etc. group contains 10 servers under load balancer remaining b,c...etc. while doing deployment choose parameter option deployment after completion of go b deployment happening. new scenario : while choosing a, , after b , c... want a,b,c... @ 1 click.the deployment has been completed. along want know how long take deploy servers (plug-in). can u suggest methods: 1.using jenkins plug-in cases 2.not possible plug-in suggest script. if understand correctly, need distributed deployment solution deploy application multiple application servers.please correct me if i'm wrong. if scenario, need solutions puppet/salt etc. based on requirement suggest rundeck . http://rundeck.org/index.html i've implemented distributed depl...

python 2.7 - App_Model does not exist in django -

i new django , have bit of problem. creating simple view, template , models small project. getting error vote_type not exist, when asking type model in 'vote' app. don't why looking vote_type instead of type in database. so went problem , tried create object of model type in database python console got same error. this models: from django.db import models django.utils import timezone # create models here. class voted_object(models.model): voted_object_name = models.charfield(max_length=50) voted_object_image = models.imagefield voted_object_rating = models.integerfield(default=0) voted_object_id = models.integerfield class type(models.model): pub_date = models.datetimefield('date published') type_name = models.charfield(max_length=50) type_id = models.integerfield and error when try type.objects.all() in python console. relation "vote_type" not exist line 1: ...te_type"."pub_date", "vote_...

facebook - Pixel is not paired with a product catalog -

Image
i doing facebook dynamic ads management. created product catalog , uploaded business manager. added pixel tracking code website pages. when viewing page got error: 'pixel not paired product catalog '. i found solution seen in image below i followed steps in that. cant find button 'associate pixels' in settings page. know why have no button named 'associate pixels' in settings page? i believe button renamed "associate sources" since app events can associated product catalog well.

ios - MFMailComposeViewController won't appear in iOS8 -

i have objective c program has popover list of dates , 2 buttons "done" , "cancel". when user hits date , done button, popover supposed disappear , mfmailviewcontroller window populated data date supposed appear. when run program on ipad ios 7, works fine - popover disappears , mail view appears data populated. when run on ipad ios 8.1, popover disappears mail view not appear. using nslog output, know ipad can send email, correct date getting method, mfmailviewcontroller object exist, , gets past line supposed present controller. controller doesn't appear. any appreciated because tons of web searches have found nothing helpful. the end of method is: nslog(@"about present mail view"); if ([mfmailcomposeviewcontroller cansendmail] == yes){ nslog(@"can email yes"); } else { nslog(@"can email no"); } nslog(@"the picker %@",picker); [self presentviewcontroller:picker animated:no completion:null]; nslog...