Posts

Showing posts from August, 2012

javascript - Scroll issue on table row removal -

i have following html code: <tr id="cv643" ondblclick="oncve(643)"> <td colspan="2"> <a onclick="btncva(41,643)" href="#"> actions <span class="badge badgew">2</span> </a> </td> <td>confirm appointment</td> <td>29-12-2015</td> <td style="color: red">12-01-2016</td> <td style="color: red">pending</td> <td colspan="2"></td> </tr> client code is: function btncva(cpkey, cvkey) { var sel, tbl; if (onhidecva()) { // test if action list there $.ajax call create table row id 'reccva' } } function onhidecva() { var sel, rc=1; if ((sel = document.getelementbyid('reccva')) !== null) { sel.parentnode.removechild(sel); rc=0; } return rc; } when actions button clicked, btncva creates row underneath reccva st

javascript - Why track by $index is necessary for ng-click to trigger inside nested ng-repeat -

i using ng-click inside nested ng-repeat found inner ng-click(3rd level) not getting triggered. when used track $index inner ng-repeat, ng-click got triggered. not able understand behavior of nested ng-repeat. please find below code snippet <ul class="a"> <li class="b" ng-repeat="items in objects track $index" ng-click="callsomething()"> <a>{{items.name}}</a> <ul class="c"> <li class="d" ng-repeat="items1 in objects1 track $index" ng-click="callsomething()"> <a>{{items1.name}}</a> <ul class="e"> <li class="f" ng-repeat="items2 in objects3 track $index" ng-click="callsomething()"> <a>{{items3.name}}</a> </li> </ul> </li

java - The jar of this class file belongs to container 'RFT Libraries' -

i error when try integrate selenium web driver ibm rft. the jar of class file belongs container 'rft libraries' not allow modifications source attachment' how overcome issue? can 1 shed light on it?

asp.net - Web-api controller to extract data from Wikipedia api in json format and show the result on web -

in project using 3 wikipedia api in json formatted extract data it. first api contain short-text of wikipedia article of places means first paragraph of article. second api contain latitude , longitude of places. , third api got page-image url information of places. want implement code using web-api controller asp.net mvc. wikipedia-api shortext is- https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exlimit=max&explaintext&exintro&titles=berlin&redirects= wikipedia api forlatitide , longitude is- https://en.wikipedia.org/w/api.php?action=query&format=json&prop=coordinates&titles=berlin so far have done create 3 folders inside model named shorttext, image , geo accordingly. inside shorttext folder created 4 classes contain json object , named these limits.cs, pageval.cs, query.cs , rootobject.cs limits.cs public class limits { public int extracts { get; set; } } pageval.cs public class pageval { public i

html - Angular2: File input control label keeps its state after destroying component -

i have angular2 component (lets call dataset-create ) includes form: <form novalidate="novalidate"> <button type="button" (click)="onclose()">close</button> <button type="submit" (click)="onsubmit()">submit</button> <label for="datafiled">data</label> <input id="datafiled" type="file" (change)="onfilechange($event)"> </form> the close() , submit() functions emit (close) event makes parent component disable dataset-create component: <div [ngswitch]="mode"> <template [ngswitchwhen]="'create'"> <dataset-create [dataset]="dataset" (close)="ondatasetformclose()"></dataset-create> </template> <template [ngswitchwhen]="'detail'"> <dataset-detail [dataset]="dataset" (close)="on

c++ - Cannot change file type in Linux version -

changing file type works windows not work in linux. in linux not change file type. qregexp pattern("\\b(stl)\\b", qt::caseinsensitive); if (info.suffix().isempty()) { filename += qlatin1string(".") + "stl"; } else if (!pattern.exactmatch(info.suffix())) { filename += qlatin1string(".") + "stl"; } the filetype displays "plain text document (text/plain)" instead of stl ( stereolithography potentially). as can see code, try change file extension. may work on windows. linux doesn't use file extension file type determination. linux checking file content this.

Spark reference table -

a spark rdd contains collection, each element represents request. a scala function passed rdd, and, each rdd element, function create modified request. for each collection element\request, lookup table needs referenced. maximum size of reference table 200 rows. how performance , scalability, how should lookup table (which used within function) modeled? spark broadcast variable. separate spark rdd. scala immutable collection. perhaps there option have not considered. thanks it depends on size of rdds, giving reference table have 200 rows, think best option use broadcast variable. if used separate rdd, make spark repartition request rdds , making innecesary shuffle.

node.js - What is the use of body-parser? -

var express = require('express'); var app = express(); var bodyparser = require('body-parser'); // create application/x-www-form-urlencoded parser var urlencodedparser = bodyparser.urlencoded({ extended: false }) app.use(express.static('public')); app.get('/index.htm', function (req, res) { res.sendfile( __dirname + "/" + "index.htm" ); }) app.post('/process_post', urlencodedparser, function (req, res) { // prepare output in json format response = { first_name:req.body.first_name, last_name:req.body.last_name }; console.log(response); res.end(json.stringify(response)); }) var server = app.listen(8081, function () { var host = server.address().address var port = server.address().port console.log("example app listening @ http://%s:%s", host, port) }) var bodyparser = require('body-parser'); var urlencodedparser = bodyparser.urlencoded({ extended: false })

lotus notes - Change background color of richtexttablecell -

i change backgroundcolor of richtexttablecell, try solve problem lotusscript, there isn't method or attribute in lotus script. looks possible solve c api. can me? use notesdxlexporter , notesdxlimporter : export document dxl, replace table properties in dxl , import document. make sure use notesdxlexporter.richtextoption=0 . this example table background colors in dxl format: <item name='body'> <richtext> <pardef id='1' /> <par def='1' /> <table widthtype='fixedleft' refwidth='2.1493in'> <tablecolumn width='1.0667in' /> <tablecolumn width='1.0826in' /> <tablerow> <tablecell bgcolor='blue'> <pardef id='3' keepwithnext='true' keeptogether='true' /> <par def='3' />

How to upload magento extension in Magento Connect? -

i want upload own extension in magento connect, not able upload zip file in magento connect. while uploading module error display " unable save version. disallowed extension release file type. " any body have idea, please let me know. thanks in advance. your extension has of filetype extension .tgz prescribed in magento. there online tools convert .zip .tgz this site . also check this manual magento how package magento connect extensions.

How to assign Partial Values in a C# object using Inline Assignment -

i'm having collection of model public class mobilemodelinfo { public string name { get; set; } public string catagory { get; set; } public string year { get; set; } } public class mainclass { public mainclass() { mobilemodelinfo mobobject = new mobilemodelinfo(); mobobject.name = "apple iphone 6"; setmobiledetails(mobobject); } private void setmobiledetails(mobilemodelinfo mobobject) { mobobject.catagory = "ultra smart phone"; mobobject.year = "2015"; } } in setmobiledetails() method set partial values object of mobilemodelinfo. here need assign values via inline. how can achieve this for example: new mobilemodelinfo() { catagory = "ultra smart phone", year = "2015" } kindly assist me... note: 1 of property set in constructor , remaining properties going set in setmobiledetails() method. use below code solve problem thank you. void

php - Symfony 2 JMSTranslationsBundle Form with choice how to create translation terms? -

i have simple form choice type simple entity: public function buildform(formbuilderinterface $builder, array $options) { $builder ->add('name', 'entity', [ 'class' => 'appbundle\entity\type', 'property' => 'name', 'expanded' => true ] ); } the entity type database table idtype ai column , name column . the database content pretty simple: idtype name "1" "term.inquiry" "2" "term.tender" and result in twig file looks pretty simple too: {{ form_start(form) }} {{ form_widget(form.name) }} {{ form_end(form) }} i'm stucked in how implement translation method translate term.inquiry , term.tender i've looked documentation here , don't know how implement (the correct way) gettranslationmessages method via translationcontainerinterface . i've tried answer her

plot - How do I write " *value* *plus-minus sign* *value* ", along with text, with annotate of ggplot2, R? -

here's problem: library(ggplot2) = c(4, 2) x = c(1:4) y = c(1:4) # works (Ï„^-1 = 4 s^-1): l <- paste("tau^-1 ==", a[1], "*~s^-1") qplot(x, y) + annotate("text", x = 1.5, y = 3.5, parse=true, label = l); # see ( Ï„^-1 = 4 ± 2 s^-1): l <- paste("tau^-1 ==", a[1], "\u00b1", a[2], "*~s^-1") qplot(x, y) + annotate("text", x = 1.5, y = 3.5, parse=true, label = l); it gives me error: error in parse(text = lab) : <text>:1:13: unexpected input 1: tau^-1 == 4 ± ^ can me please? thank in advance! if set parse = true label displayed described in ?plotmath . on page can find table avaiable features , proper syntax. in case have use %+-% instead of unicode symbol \u00b1 r able coerce expression. l <- paste("tau^-1 ==", a[1], "%+-%", a[2], "*~s^-1") qplot(x, y) + annotate("text", x = 1.5, y = 3.5, parse=true, label = l)

javascript - protractor: How to send a post api request directly for testing -

im new protractor , have registration page, wanted post api directly user profile directly created my controller <script> var app = angular.module("app", []); app.controller("httpgetcontroller", function($scope, $http) { $scope.senddata = function() { var data = {"firstname":"check","lastname":"raq","roles":["patient"],"contactinfo":{"email":"test1@123.com","primaryphone":"+918598598547","secondaryphone":null}} $http.post('/serverrequest/postdataresponse', data) .success(function(data, status, headers) { $scope.postdataresponse = data; }) .error(function(data, status, header) { $scope.responsedetails = "data: " + data + "<hr />status: " + status }); }; }); </script> how should write api call test ca

ios - Apple Watch OS 2 how to show/ hide action button from custom notification -

Image
i building apple watch os 2 app extension , need implement notifications. read apple docs sow need custom notification, have build ui it, thing have handle multiple notifications cases , not of them have 1 action button, question how change name of action button , if possible hide it. i know action buttons can created using pushnotificationpayload.apns file , in apns file set action button , function, possible in code(hide/ show button action , adjust it's name). i thinking implementation in didreceiveremotenotification:withcompletion:? and here background info: update 1 after reading again apple doc made next changes: implemented notification interface controller , checked "has dynamic interface" added "notification category name" created subclass of "wkusernotificationinterfacecontroller" , associated new custom notification in storyboard managed test correct categorry loaded when notification arrives using "c

python mmap skipping every second byte when writing -

i have strange problem using mmap in python when writing memory (/dev/mem). clear, reading done in same manner , works ok. when comes writing, seems every second byte unwritable. ex. when read addr 0x200 val 0x1234 when try write addr 0x200 val 0x4321 written addr 0x200 val 0x0021 when try write byte byte, same happens. ex. write: addr 0x200 0x43 addr 0x201 0x21 addr 0x200 0x00 addr 0x201 0x21 code: class pydump: def __init__(self, addr, length = 1, word_size = 4, filename = '/dev/mem'): if addr < 0 or length < 0: raise valueerror('address or length invalid') self._verbose = verbose self.word_size = word_size self.mask = ~(self.word_size - 1) self.base_addr = addr & ~(mmap.pagesize - 1) self.addr_offset = addr - self.base_addr self.word_length = length self.no_of_bytes = self.word_length * self.word_size # align length full words end_addr = addr + self.

html - Line-break after 3 images with css? -

i have 6 icons on website. want 3 of them on 1 line , others on second only when media screen 400px . should @media screen , (max-width: 400px) . main problem dont know how make line break 3 icons in first line , next 3 in second line. .icon { display: inline-block; } #line-break {} <div class="icon"> <img src="https://cdn4.iconfinder.com/data/icons/24x24-free-pixel-icons/24/home.png" /> </div> <div class="icon"> <img src="https://cdn4.iconfinder.com/data/icons/24x24-free-pixel-icons/24/home.png" /> </div> <div class="icon"> <img src="https://cdn4.iconfinder.com/data/icons/24x24-free-pixel-icons/24/home.png" /> </div> <div id="line-break" class="icon"> <img src="https://cdn4.iconfinder.com/data/icons/24x24-free-pixel-icons/24/home.png" /> </div> <div class="icon"> <im

python - Not able to calculate y intercept with statsmodels.api for multiple linear regression -

my data set independent variables following: >>> reg_data_pd b c 0 0.794527 0.033651 0.352414 1 0.794914 0.001086 0.093222 2 0.794476 0.004711 0.027977 3 0.776916 0.035780 0.023156 4 0.773526 0.002273 0.035269 5 0.797933 0.001838 0.131261 6 0.806997 0.011498 0.180022 7 0.780709 0.000766 0.522399 8 0.779954 0.001397 0.036386 9 0.756837 0.010448 0.035893 10 0.775064 0.029471 0.036798 11 0.787213 0.013467 0.081323 12 0.757511 0.016465 0.021611 13 0.794530 0.004141 0.157539 14 0.783696 0.019909 0.021765 15 0.793892 0.003597 0.063312 16 0.762702 0.003547 0.052479 17 0.780336 0.004958 0.084910 18 0.787005 0.006372 0.048153 19 0.824416 0.000513 0.045102 20 0.790552 0.009652 0.581571 21 0.773064 0.000889 0.263941 22 0.772039 0.021499 0.260455 23 0.780298 0.022814 0.061621 24 0.794924 0.020585 0.020638 25 0.772452

java Point type subtraction -

Image
i'm trying implement subtraction method problem when try use it give me error here's code public point subtract( point p1, point p2) { point p3 = new point(); p3 = p1 - p2; ////getting error here return p3; } public int ishorizonatalcollision(objects object) { int tru = 0; int leftcolli = 1; point eqp; eqp = subtract(posi(), nposi()); if (eqp == objposi(object) ) { return leftcolli; } return tru; } public static point subtract(point p1, point p2) { return new point(p1.x - p2.x, p1.y - p2.y); } or public static point subtract(point p1, point p2) { return new point(p1.getx() - p2.getx(), p1.gety() - p2.gety()); }

Android Studio 2.0 Preview 8 issue with gradle 2.10 and plugin 2.0.0-alpha7 -

Image
i had issues gradle plugin 2.0.0-alpha6 , gradle 2.10 , solved them disabling instant run (as stated in android studio doesn't work fine gradle 2.10 , gradle plugin 2.0.0-alpha5 ). i updated gradle plugin 2.0.0-alpha7 without issue today updated android studio latest 2.0 preview 8 version , got following error again: error:could not find com.android.tools.build:gradle:2.0.0-alpha7. searched in following locations: https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.0.0-alpha7/gradle-2.0.0-alpha7.pom https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.0.0-alpha7/gradle-2.0.0-alpha7.jar now, see clicking on links 2 files don't exist... but, same error if revert gradle plugin 2.0.0-alpha5 or 2.0.0-alpha6, doesn't make sense. maven environment down, maybe? that's quite frustrating. now, tried check whether instant run enabled , got surprise: it's disabled , cannot enable-disable anymore, since android studio does

html - How to wrap multiple uneven height .col- siblings in Bootstrap .row -

Image
i have lot of products , need maximum 6 products each line, let each product col-lg-2 (6*2 = 12 bootstrap cols) , think should break next line automatically (starts on left side), isn't it? but second line broken , start fourth col instead. please, reason , how can fix it? see image below maybe simulate better english. in advance. use .clearfix class before ending row <div class="row"> <div class="col-lg-2 col-sm-4 col-xs-6"></div> <div class="col-lg-2 col-sm-4 col-xs-6"></div> <div class="col-lg-2 col-sm-4 col-xs-6"></div> <div class="col-lg-2 col-sm-4 col-xs-6"></div> <div class="col-lg-2 col-sm-4 col-xs-6"></div> <div class="col-lg-2 col-sm-4 col-xs-6"></div> <div class="clearfix"></div> //use before end of row </div> or if possible use not more 6 con

permissions - Testing Location Services on iOS Device -

i'm building app list nearest product dealers users current location. when testing on device iphone 6 & iphone 4s can see app doesn't have permission location when go settings can't see test app listed grant permission. is due way app installed when "run" via appcelerator studio? how can grant test app permission please? my code is: function getcurrentphonelocation(callback) { titanium.api.info("get phone location " + ti.geolocation.locationservicesenabled); if(ti.geolocation.locationservicesenabled) { titanium.api.info("gps permissions: " + ti.geolocation.locationservicesauthorization + " (" + ti.geolocation.authorization_always + " | " + ti.geolocation.authorization_authorized + " | " + ti.geolocation.authorization_when_in_use + ")"); if (ti.geolocation.locationservicesauthorization == ti.geolocation.authorization_always || ti.geolocation.locationservicesauth

java - javax.el.PropertyNotFoundException: -

this question has answer here: c:foreach throws javax.el.propertynotfoundexception: property 'foo' not found on type java.lang.string 1 answer i´m learning jsp, servlets , so. got exception cant find out error. kinda know el cant find field of error javabean seens fine.the list passed jsp page seens ok. changed jsp , servlet alot , exception keeps going. hope some1 can give me hand. heres code , stacktrace: stacktrace: severe: servlet.service() servlet jsp threw exception javax.el.propertynotfoundexception: property 'nome' not found on type java.lang.string @ javax.el.beanelresolver$beanproperties.get(beanelresolver.java:268) @ javax.el.beanelresolver$beanproperties.access$300(beanelresolver.java:221) @ javax.el.beanelresolver.property(beanelresolver.java:355) @ javax.el.beanelresolver.getvalue(beanelresolver.java

python - Disabled test case in Robot Framework -

i try generate log want contain test suites , number of test cases disabled "-e --exclude tag". problem i've faces disabled test does't run , doesn't generate log used solving issue. example testsuite.txt *** test cases *** test 1 [tags] disabled keyword_1 keyword_2 ... test 2 keyword_1 keyword_2 ... test 3 [tags] disabled keyword_1 keyword_2 ... any suggestions? you cannot both exclude test , run it. workaround might create skiptest keyword set tag disabled , pass execution. counts test passed shows number of disabled cases in tags. *** keywords *** skiptest set tags disabled pass execution test disabled *** test cases *** normal test [tags] normal should equal 1 1 disabled test skiptest should equal 1 2

python - how to merge pandas dataframe with different lengths -

i have pandas dataframe following.. df_fav_dish item_id buyer_id dish_count dish_name 121 261 2 null 126 261 3 null 131 261 7 null 132 261 6 null 133 261 2 null 135 261 2 null 139 309 2 null 140 261 2 null 142 261 2 null 143 153 3 null 145 64 2 null 148 261 2 null 155 261 2 null 156 64 2 null 163 261 2 null length of above dataframe 34. , have dataframe following.. data item_id item_name 121 paneer 126 chicken 131 prawns 132 mutton 133 curd 139 mocktail 140 cocktail 142 biryani 143 thai curry 145 red curry 148 fis

c# - Testing for exceptions with [TestCase] attribute in NUnit 3? -

how test exceptions in testcase nunit3? let's have method divide(a,b) defined follows: public double divide(double a, double b) { if(math.abs(b) < double.epsilon) throw new argumentexception("divider cannot 0"); return a/b; } i want test method using nunit 3.0 test cases, maybe have: [testcase(-10, 2, -5)] [testcase(-1, 2, -0.5)] public void testdivide(double a, double b, double result) { assert.that(_uut.divide(a, b), is.equalto(result)); } is there way specify test case cause divide() throw argumentexception , somehow have expected result, e.g. along lines of: [testcase(-10, 2, -5)] [testcase(-1, 2, -0.5)] [testcase(-1, 0, expectedresult = typeof(argumentexception)] public void testdivide(double a, double b, double result) { assert.that(_uut.divide(a, b), is.equalto(result)); } (of course define separate test method , use assert.throws() in this, purely out of curiosity) expectedexception have been correct method nunit 2.

ios - How to parse SOAP response using TBXML? -

hello trying parse xml soap response using tbxml , cannot find root element parsing. here code : tbxml *tbxml =[tbxml tbxmlwithxmlstring:thexml]; tbxmlelement *root = tbxml.rootxmlelement; nslog(@"root: %@",[tbxml elementname:root]); tbxmlelement *rootelement = [tbxml rootxmlelement]; tbxmlelement *rootitemelem = [tbxml childelementnamed:@"item" parentelement:rootelement]; if(root) { tbxmlelement *subcategoryele = [tbxml childelementnamed:@"item" parentelement:root]; nslog(@"item: %@",[tbxml elementname:subcategoryele]); while (subcategoryele) { tbxmlelement * price = [tbxml childelementnamed:@"price" parentelement:subcategoryele]; tbxmlelement *color = [tbxml childelementnamed:@"color" parentelement:subcategoryele]; tbxmlelement * rating = [tbxml childelementnamed:@"rating" parentelement:subcategoryele];

Move command fails with git filter-branch -

i'm trying use git filter-branch rename directory in repository. the command try use, without success far, is: git filter-branch --tree-filter "mv engine src" --force head but yields following result: rewrite dddd2d70eee09d5600f7aeb87ca8321be5ed6aee (1/888)mv: rename engine src: no such file or directory tree filter failed: mv engine src i don't understand why, simple move command works on own... what's directory/file not found, , how can fix that? i'm on macosx 10.10.5 , use zsh if helps. disclaimer : don't care here discussion doing git mv or mv instead of that, i've read , not point here. want know why fails way does.

reporting services - Multiple datasets Count with IIF in SSRS -

i trying write expression in ssrs counts specific data using iif. found following solution: =sum(iif(fields!program.value = "fc", fields!quantitytoship.value, 0)) the code above works when there 1 dataset, while have several. here code wrote: =count(iif(fields!mgroup.value,"dataset1"=303,1,0)) i aggregation error: textbox refers directly field ‘mgroup’ without specifying dataset aggregate i added sum: =count(iif(sum(fields!mgroup.value,"dataset1")=303,1,0)) still getting same error. why that? can put instead of sum? need count how many groups named 303 have. the expression used has sintax errors. count function aggregate scoped dataset. try this: =lookupset(303,fields!mgroup.value,fields!mgroup.value,"dataset1").length let me know if helps you.

Powershell String Replacement in File -

i'm trying replace few strings within powershell file. $source_ip = read-host 'enter source ip' $target_ip = read-host 'enter target ip' by using following line in powershell script, file shows modified, changes don't take effect. (get-content "c:\solutions.ps1") -replace "$target_ip = read-host 'enter target ip'", "$target_ip = '192.168.0.221'" | set-content "c:\solutions.ps1" any reason why changes don't take effect? this running administrator, on windows server 2008, powershell version 2 believe. as petseral points out -replace comparison operator supports regex. while can have degree of expressions in patterns adding unnecessary amount of complexity since using simple matches anyway. the easier solution use string method .replace() . since not array operator , want replace every occurrence reading in file single string make simple action. $filepath = "c:\solutions.p

How to get facebook user info along with post info using graph api -

i trying fetch visitor posts facebook page using facebook graph api. more info see this: https://developers.facebook.com/docs/graph-api/reference/v2.5/page/feed according documentation, using this: **/{page-id}/tagged?fields=message,id,created_time,from** fetch public posts in page has been tagged. i fetching user info using " from " field. i able post array. here sample response. { "data": [ { "message": "sample message text...", "id": "136617136381867_1041817205861851", "created_time": "2016-01-28t12:13:37+0000", "from": { "name": "annu chelladurai", "id": "10152476225064109" } } . . . ] } i able user id , user name under "from" key. how can other user info fields " picture ", etc.?

Send email using GMail API in Google Apps Script -

i have raw email (tested on playground , working) , want send google's gmail api google apps script. i can't find right syntax request: var requesturl = "https://www.googleapis.com/gmail/v1/users/emailaccount/messages/send"; var requestarguments = { mutehttpexceptions:true, headers: {authorization: 'bearer ' + token 'gdata-version': '3.0', 'content-type': "message/rfc822", }, payload: {"raw":raw}, method:"post" }; var result = urlfetchapp.fetch(requesturl,requestarguments); what wrong syntax? i found solution question: var requestarguments = { headers: {authorization: 'bearer ' + token}, method: "post", contenttype: "application/json", payload: json.stringify(jsonmessage) }; jsonmessage whole message, not raw part!

I can't parse a json file with python -

first post here. i've been using python while now, i'm stuck simple case. i want parse json file simplejson module: here code: import simplejson open('myjsontest.json', 'r') data_file: print data_file.read() session = simplejson.load(data_file, strict=false) and here json file named myjsontest.json : [ { "test1": 1, "test2": 2, "test3": 3, "test4": 4 } ] the json file in same folder python file. i got result: [ { "test1": 1, "test2": 2, "test3": 3, "test4": 4 } ] traceback (most recent call last): file ".\test.py", line 8, in <module> session = simplejson.load(data_file, strict=false) file "c:\users\gordon\anaconda2\lib\site-packages\simplejson-3.8.1-py2.7.egg\simplejson\__init__.py", line 459, in loa d use_decim

c# - Are there any benefits beyond getting new features to upgrade the targeted framework in a .NET project -

i'm working on updated dependencies of nuget project , considering updating framework targets. question, if there no features need new framework, there other benefits (performance benefits) doing upgrade. have read running .net 3.5 assembly in .net 4.5 host can gain performance improvements. i've seen nothing suggest compiling later version of framework help. it might depend on classes , libraries you're using in project. newer framework versions have code improvements can provide various performance improvements. also, if come .net 3.5, you're upgrading clr 4.0. in other hand, when target new framework version need check has been considered obsolete , deprecated , because maybe you're looking performance gains , application/service gets broken... in summary, there's no general performance gain, depends on framework usage.

Laravel: Render queried Data whith Blade functions -

currently i'm getting data database , after want render within blade template. in queried data have blade functions url('/foo') combined html. , here problem. when i'm using {!! $child->description !!} html rendered correctly, blade function won't work: function: url('/foo) output: http://myurl.de/url('/foo') when i'm using "normal" syntax {{ $child->description }} generated url correct ( http://myurl.de/foo ), html not rendered. so question is: how can use queried blade function within rendered html? ^^ /edit okay, perhaps question abstract. want show problem based on example. ( generated template image - on german, sorry ) every form database entry like: categoryname categoryparent ... categorydescription as can see on image, categorydescription small text under first input field small button. want use script abstract possible can fill entry every content want fill in. in case content is: lore ip

visual c++ - When to use the __gc keyword on managed C++ classes? -

i have c++ project i've wrapped .net classes using c++/cli. i'm defining wrapper classes in managed c++. need mark classes __gc in order classes garbage collected? or .net framework automatically gc classes since managed classes? this how declared public ref class player { do need this? __gc class player { .. } the keyword __gc used in previous version (iirc, till vs2003). new context specific keywords (like ref class , value struct ) added. newer compilers (vs2005+) understand , suggest use newer keywords. context keyword ref class enough state class managed class. managed classes can allocated using gcnew keyword. compiler raise error of new used managed-classes. vc++ ( /clr ), stack-semantics avaible. that means following valid: public ref class someclass{}; void foo() { someclass cls; // on stack! }