Is it possible to compile a WDK driver with .net native?

As far as you know did anyone ever tried building a windows driver using C# and compiling it in .net native?

It’s been a couple of stressing day working on a C driver using WDK, and i really wondered: why not C++ ? and i found out it could actually be done with some precautions.

And now i’m raising the bar: .net native, why not ? (or maybe some C# transpiler if any reliable exist) i could not find any attempt at this…

but sound reasonable…

Why point out implementation-specifics on native APIs? [on hold]

I’ve reviewed code, both in Stack Exchange and in person. A common thing I do is look for manually-written loops and replace them with native APIs where applicable. This way, code is more concise, developer avoids dealing with counters, and it takes advantage of native APIs which get optimized over time.

For example:

  • Using string.replace() for a global replace instead of a manually looping and concatenating strings.
  • Using array.includes()/string.includes() for finding content, instead of manually looping, checking, and flipping a flag variable.
  • Using array.indexOf()/string.indexOf() for finding the index, instead of manually looping, checking, and returning the counter.
  • Using Web Sockets instead of manually looping and doing AJAX calls at every iteration.

Now with all that done, I almost always get this kind of comment back:

…internally, it’s still looping.

True, these APIs probably are looping under the hood. But my question is: why do people point it out? It’s like they’re saying “all your loop-removal work was for nothing because something somewhere still uses loops under the hood”

Writing in a higher-level language, I shouldn’t care how the engine works (except in cases where performance down to the last drop matters, which are not the case for any of these reviews). If there’s a native API that does the same job with less code and headache, it should be a good thing. If I managed to push the responsibility of looping to the engine, it’s still a good thing.

Is there something fundamental I’m missing? Is there some concept I’m not really grasping here? It can’t be a coincidence that multiple, unrelated individuals of various programming seniority are pointing this out to me.

Doctrine как заполнять embedded поля классов из native query

         $  rsm = new ResultSetMapping();         $  rsm->addEntityResult(Firm::class, "f");         $  rsm->addFieldResult("f", "id", "id");         $  rsm->addFieldResult("f", "name", "name");         $  rsm->addFieldResult("f", "vip", "vip");          $  rsm->addMetaResult("f", "contact_email", "contact")             ->setDiscriminatorColumn("f", "contact_email");          $  sql = parent::getEntityManager()->createQuery(             "SELECT, sub_categories_id,, vip,         contact_mobile, contact_skype, contact_site, contact_email,         contact_viber, contact_telegram, contact_instagram, contact_whats_up,        mark_lng, mark_lat, schedule_monday, schedule_tuesday,        schedule_wednesday, schedule_thursday, schedule_friday,        schedule_saturday, schedule_sunday                            FROM firms f                           INNER JOIN tags_firms tf on = tf.firm_id                            INNER JOIN tags t on tf.tag_id =                            WHERE IN (:q) LIMIT :limit OFFSET :offset", $  rsm);          $  r = $  sql->getResult();  

Что указывать в ResultSetMapping, что бы он нормально все заполнил.
contact, mark, schedule являются embedded.

Customize native loader

I would like to challenge the template structure of Magento 2 loader which is declared in the lib/web/mage/loader.js but I can’t find where this widget is calling by Magento to override the javascript ?

I mean, I’m able to extend the widget with this code :

define(['jquery','jquery/ui','mage/translate'], function ($  ) { 'use strict';  $  .widget("custom.loader", $  .mage.loader, {     options: {         icon: '',         texts: {             loaderText: $  .mage.__('Please wait...'),             imgAlt: $  .mage.__('Loading...')         },         template:             '<div class="loading-mask-custom" data-role="loader">' +                 '<div class="loader">' +                     '<img alt="<%- data.texts.imgAlt %>" src="new path">' +                     '<p><%- data.texts.loaderText %></p>' +                 '</div>' +             '</div>'     } });  return $  .custom.loader; }); 

And to call it from the Magento_Theme module in app/design but I still have the native one (loading-mask class)

What is the best native iOS solution for a Radio Button with just two options?

The challenge I’m faced with is that I have a horizontally scrolling series of cards that have two common questions for each item, say, Did you perform activity x? and Did you perform activity y?, and the answer is to be filled in objectively with a YES or a NO.

Of course, radio buttons are the go to solution to look up to, but unfortunately, iOS doesn’t seem to natively include a good solution for Radio Buttons (Please enlighten me if I’m wrong).

If my layout were tabular, I would have used the native iOS table-based radio options, as illustrated in this answer. But since I have to incorporate the solution within a card, I’d prefer to limit the size of the card as well.

Switches are not a solution either as they are not suited for Q&A-like copy, but instead are rather suited for action-oriented features (say turn on Flight Mode, or Activate this plan etc.).

I am currently working on the UX of an SDK and would prefer to use native components as much as possible.

Please note that I have already checked the previously existing question regarding the iOS alternative to a radio button and that isn’t the solution I’m looking for as my layout is not tabular, but card-based instead.

Redux e React Navigation – React Native

Opa. Estou começando agora com cursos sobre React Native e comecei a fazer um projeto, mas como estou lendo em vários lugares, misturei algumas coisas e não estou conseguindo ter o retorno que eu preciso.

Minha dúvida é a seguinte, utilizo este código com Redux para confirmar o login, está tudo funcionando, porém quando o acesso é confirmado eu não consigo ir para a tela principal. Creio que o motivo seja react-navigation.

Não sei se alguem pode me ajudar, nao irei postar o código pois é muito grande.

How to design/architect a double navbar interface using Native JS

A design pattern that I admired is a left side double navbar. When you click on a button on the left, it has two functions. The first is it controls the second navbar section which when clicked, alternates new content which can act as more navigation to displaying some content. The second function the first navbar does is it load a entire new route that only loads in a section like a iframe area.

How would you/the best solution to design this where when you click on a navbar button that loads a new route the second navbar stays on whatever is loaded and not load to a state of a default navbar, which would happen whenever a new route is loaded.

So if I were to click on a option that changes the 2nd navbar and then click on a new route, it would only change to the new route and not impact the 2nd navbar.

Double Navbar

Trying starting React Native

I am still trying to start working on React Native.

Doesn`t work.

When i try expo i get the following:

Error: Cannot find module ‘C:\Users\uzer\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js’ at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15) at Function.Module._load (internal/modules/cjs/loader.js:526:27) at Function.Module.runMain (internal/modules/cjs/loader.js:826:10) at internal/main/run_main_module.js:17:11 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ start: expo start npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\uzer\AppData\Roaming\npm-cache_logs19-05-16T18_48_40_923Z-debug.log