Decode/decrypt Cipher text of unknown custom algorithm

I have a university assignment by the professor to decode unknown encoding schemes but i haven’t able to decode. The message is sample of communication between Indian external affairs to different country’s embassies. The professor hint first few Plain text characters as:

<p align="left"><b>THIS EGRAM WILL NOT BE PHOTOCOPIED OR SCANNED OR DISTRIBUTED  

and also hint the plain text charters length, as Ciphertext hexadecimal charter are 3296, the Plain text characters length will be 2824(hex char)

The Cipher text is(with egm extension):

190320192febbf4c76a000c12888e229ca0944824ffef0d6507ce9952bb29609850d7192a8c181ce1aeb845b939b7f27d4bbd535b61b78cdd5f87c987c559f3c808ff78a1c67fb860d57d287915b20f3c98a212f2780e1bad8ed2676d28fe908f40a69afde0d59869059753eda106bc20b2de95f2495ff4c5f36fac4871563c381f86d0c917f5234f5648599784ff71198ab531cb852ffc1d0ee5bd7384ae7e6ab1386d75fb6da1cefde541a700e8294cf02ce6645424215993419cbe72d9ec05e56014b11e29e7743fe5da332b1f0afd717d34766a00b7d926290e87c632b70672fd8c5712121088a89f8bb7421ba0f0b3cfd7d992766cf40cdd75586d312ef5376a15a332193687a286c0f7ae09355d86179cae0465b0e8d94e4707b4ca0481f0b029a904178b8a093ff710a91e1f9280154df873b445cf35cec13aaeac4c403e45835ecd20df7c1ea6351b778a22aa46b3ce231488ff276097f114271c35bc12089ad713db52fefdc54ddbc78fde20b6ce48dd3f6542f9a3aaab2fbe4b4e0983970671de1bc8a71fa007d2ccff8f9d1d48a03935fb47316a2c5ca38c6c8caf729d287841946883f35a881337fcddb0b3d2c056f5c233c71a40c15f2517d1e01516fc9c917e8714d4de7df48e33569c6290d306111a12228bbf114543b5a361932ad1b17f586950586face6a872204b8a457c33a650e236fa761c997a4f34687bf6414b57179ef44df71f1dbab374c91bd3d85a44f86e5355b6dd648655afc78767522e8dc55b0e69f6fc7a11596f4104ba0aa5f02f5c45161c895999f01723b2d5fb7db06febb78d02866d6852b6f94d0807fbef98f93ffba4798858e0b93cb71b645a5faa608172adc2b6ca87149ca1cbe56f7b2c9252f6242d8bf91eb192e8e28426d49ed8d1b86e973432d335bcd66a4f9d9de77cd08577f02fb392f498c67ef77484dc202b06588c95383525c8df9e05ecefa5af1175359e4bf100b063c536d9d796f180a17b589a4b27a469e59649ca1211ec46ecb25adc916c1fd0856cdbeae3486ae0552b3e63a7f32bc507f4689bada1500057cee61d66de422e6ad3c7b1af2f5cbc8bf9deab87378942289901e03a192ad940b75bfccb445e4bced16117330858a81462490fe86a0176b0a43c5e94e8db52de78bc52f10064139b3477b8b6eb386d25e99db0a0fc9cff71f7dc582cfe51f14e13d65c1fbdcf88f927c3db79059eef219cda28caae08f9324cfd06dcee5d39bf8a1b7f2ccd869028f9387109aa8fb3350ac48d82a21b7a2436b8602f5c3dbbd6b9352bc6e958224290c9034e225345070e49f9c45afa893e971305442c2619a99e3a136ca54ff97b0ab47a5bab6ebae275b07a1b5ba8ff515b54050eb0e6c2564221a34c2b7741b799709dbf9015c09ee9878f2562dcf53fdc4c53ce2f6cff75e4cab3d291b3669e62a848d73fcc92ae80522506a0917f8099c734bf5010d8e3e668921e0b87770fea25adbde7beab81f05a525c18212db69649b63e82adab223c39150f275f1b6dde7a2db0d48dd250aa014b7fd333b82c82d80165fea91aea16996917291668e7c8b1d6ea5cd30fc0fa2e8e2d8f54974175082a34f8d5eae3572e7e6b88a187a0fd50d90f7568a1bffda143ceb4ef3776d33274fc43eb3131078a0a8ad755ddeb9d9f1771cd32c261049e94a54d086bf65f21a512099bd8dca42d1fbd89561ea3e58b035d9a3f0f6c2505929db061af4157037a1bc295d9517fc0f863d2acb67f6ac37d2d8698a978bb10b5aa8f235ee58199b8a0c6a050fd08a07c6b88f03d7fd29ca7093acc9afab41e7a23ba738be095f188be49693a7c84612ebcef74c50cf5649b6f36f45b0a1d5b7a4f0477833bd7f4d061e3676b62bd8f15fec42667b32e21e0ed4f8f744e5610200d5a64a33fffcfb7b689c1b0097dc27ae5ea71a0b1b2deaa0e5972e2c88a96ec97e159d2d9023561ea9848f055a4fa1326a3f4d7481345ca8eea14b2fed52f2f8dc3f8388732c56596792d363e3348a47e01eab466cffd08dfb2eb821dc1995cb6ac1803416a9b574757a0058df2fb2a302304af21e57825b0d78977ce0f594dbe1d187fcb600e043aabd52829b8f8c160bbb0e90c149d8e0fa86d06aa1d86a24b3373785e488e43a67030d552d8add2b3e36d3e6edaf52da1b30df2e1a69463721d9827a6574f20cffb270062229e80f4c99c8cecec66fe3e4749253819acc437c2f2581dac022ed619ea19e1f0fa3f988b6a804c9bf56edbc960c8ac34010fa2629be5ad69415bcb059600400f99e21d5212373fd7bd0c972a9672f973cf46f6919cff24e4dd4cb98108680c262fdce2a082c1026682a12 

Magento 2.3.1 Search Bar Error – Unknown column ‘search_result.score’

Relatively new to Magento. Helped a friend migrate a site from M1 to M2. Using Porto Theme.

Search Bar seems to work (does auto querying as you type and makes suggestions) until you hit ‘Enter’ at that point you get the following error:

{“0”:”SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘search_result.score’ in ‘order clause’, query was: SELECT e., price_index.price, price_index.tax_class_id, price_index.final_price, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS minimal_price, price_index.min_price, price_index.max_price, price_index.tier_price, cat_index.position AS cat_index_position, stock_status_index.stock_status AS is_salable FROM catalog_product_entity AS e\n INNER JOIN catalog_product_index_price AS price_index ON price_index.entity_id = e.entity_id AND price_index.website_id = ‘1’ AND price_index.customer_group_id = 0\n INNER JOIN catalog_category_product_index_store1 AS cat_index ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(3, 4) AND cat_index.category_id=2\n INNER JOIN cataloginventory_stock_status AS stock_status_index ON e.entity_id = stock_status_index.product_id ORDER BY search_result.score desc\n LIMIT 24″,”1″:”#1 Magento\Framework\DB\Statement\Pdo\Mysql->_execute(array()) called at [vendor/magento/zendframework1/library/Zend/Db/Statement.php:303]\n#2 Zend_Db_Statement->execute(array()) called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:480]\n#3 Zend_Db_Adapter_Abstract->query(‘SELECT e., p...', array()) called at [vendor\/magento\/zendframework1\/library\/Zend\/Db\/Adapter\/Pdo\/Abstract.php:238]\n#4 Zend_Db_Adapter_Pdo_Abstract->query('SELECTe.*,p…’, array()) called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:542]\n#5 Magento\Framework\DB\Adapter\Pdo\Mysql->_query(‘SELECT e.*, `p…’, array()) called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:617]\n#6 Magento\Framework\DB\Adapter\Pdo\Mysql->query(&Magento\Framework\DB\Select#0000000027346819000000004114b559#, array()) called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:737]…

Switched back to Luma theme and still seeing the issue.

Been attempting to track down a solution and have exhausted my limited knowledge. Found the same issue here: Column not found: 1054 Unknown column 'search_result.score' in 'order clause'; but the suggestions there didn’t work for me.

It would appear that there is supposed to be a table named search_result and I can’t see in the mysql logs where the system has created or attempted to create a temporary table named ‘search_result’.

It looks to me like the sql is incorrect in that a relationship to search_result is never established in the query, but maybe that’s not needed.

Do any of you magento experts have any idea what I’m dealing with here? Can I change the query?

Am I Over-Engineering if I add some code for the unknown future?

Look at this code:

Console.WriteLine(user.name); Console.WriteLine("**********"); // 10 stars //... 

Tomorrow, I needed to use 20 stars instead 10 stars. Okay I would change it:

Console.WriteLine(user.name); Console.WriteLine("********************"); // 20 stars //... 

It gives me an idea to write a method for this work:

public void DisplayStars() {    Console.WriteLine("********************"); }  Console.WriteLine(user.name); DisplayStars(); //remaining code 

But when I’m writing code, I think to myself: isn’t that a better solution to add a new parameter for getting number of repetition of character like int count? How about adding another parameter to get repeating character like char whichChar?

public void DisplayStars(int count, char whichChar) {    string s=new String(whichChar, count);    Console.WriteLine(s); } 

Why int? It seems uint is better type. No No, byte is best. What if user passes an empty character, What if he\she passes too big (or small) number for count? And these goes on…

I often add some code because I think that I might need it in the future. These is my day-to-day programming challenges. Am I Over-Engineering? Am I perfectionism? If not, what is Over-Engineering?

Find an unknown matrix from an equation

I need to find an unknown matrix, H, from this equation:

K2 = Transpose[H].K1.H.

K1 and K2 are 2×2 matrices, and H is the unknown matrix, also 2×2. I know the first element of H, H(1,1)=1.

Can I simply use of some Mathematica functions? Because I tried with Solve:

Solve[K2==Transpose[H].K1.H] 

Doesn’t work.

Please help me.


Specifically I have this matrices:

 K1 = {{10385.46, -306.12}, {-306.12, 225.8}};  K2 = {{10049.794, 378.59}, {378.59, 1807.16}};  H = {{1, h12}, {h21, h22}}; 

For which I have this warning:

Solve was unable to solve the system with inexact coefficients. The answer was obtained by solving a corresponding exact system and numericizing the result

Unable to connect to ethernet. ethtool reports unknown speed and unknown duplex

I am trying to receive an internet connection through ethernet. My desktop is running Ubuntu 16.04.

The network manager applet reports as having connected to enp0s31f6, yet my computer has not received a DHCP address.

dhclient output seems to indicate that no DHCPOFFERs are being received from the server (more DHCPDISCOVER requests are sent with no change in the output):

~$   sudo dhclient -v enp0s31f6 Internet Systems Consortium DHCP Client 4.3.3 Copyright 2004-2015 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/  Listening on LPF/enp0s31f6/0c:9d:92:bd:9b:57 Sending on   LPF/enp0s31f6/0c:9d:92:bd:9b:57 Sending on   Socket/fallback DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 3 (xid=0xfff5a066) DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 8 (xid=0xfff5a066) DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 13 (xid=0xfff5a066) DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 13 (xid=0xfff5a066) 

ethtool reports the following information. The value of Unknown! for the Speed and Duplex attributes seems suspect. Will I ever be able to connect when these values are unknown? If not, how can I fix this unknown values problem?

~$   sudo ethtool enp0s31f6 Settings for enp0s31f6:     Supported ports: [ TP ]     Supported link modes:   10baseT/Half 10baseT/Full                              100baseT/Half 100baseT/Full                              1000baseT/Full      Supported pause frame use: No     Supports auto-negotiation: Yes     Advertised link modes:  10baseT/Half 10baseT/Full                              100baseT/Half 100baseT/Full                              1000baseT/Full      Advertised pause frame use: No     Advertised auto-negotiation: Yes     Speed: Unknown!     Duplex: Unknown! (255)     Port: Twisted Pair     PHYAD: 2     Transceiver: internal     Auto-negotiation: on     MDI-X: Unknown (auto)     Supports Wake-on: pumbg     Wake-on: g     Current message level: 0x00000007 (7)                    drv probe link     Link detected: no 

I’ve tried to set their values manually, to no avail:

~$   sudo ethtool -s enp0s31f6 speed 1000 duplex full ~$   sudo ethtool enp0s31f6 Settings for enp0s31f6:     Supported ports: [ TP ]     Supported link modes:   10baseT/Half 10baseT/Full                              100baseT/Half 100baseT/Full                              1000baseT/Full      Supported pause frame use: No     Supports auto-negotiation: Yes     Advertised link modes:  1000baseT/Full      Advertised pause frame use: No     Advertised auto-negotiation: Yes     Speed: Unknown!     Duplex: Unknown! (255)     Port: Twisted Pair     PHYAD: 2     Transceiver: internal     Auto-negotiation: on     MDI-X: Unknown (auto)     Supports Wake-on: pumbg     Wake-on: g     Current message level: 0x00000007 (7)                    drv probe link     Link detected: no 

Here’s some snippets filtered from dmesg, in case they’re relevant:

~$   dmesg | grep enp [    1.719930] e1000e 0000:00:1f.6 enp0s31f6: renamed from eth0 [    7.980215] IPv6: ADDRCONF(NETDEV_UP): enp0s31f6: link is not ready [    8.221865] IPv6: ADDRCONF(NETDEV_UP): enp0s31f6: link is not ready [  314.654059] IPv6: ADDRCONF(NETDEV_UP): enp0s31f6: link is not ready   ~$   dmesg | grep e1000e [    1.339047] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k [    1.339047] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [    1.406037] e1000e 0000:00:1f.6: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode [    1.651130] e1000e 0000:00:1f.6 0000:00:1f.6 (uninitialized): registered PHC clock [    1.719235] e1000e 0000:00:1f.6 eth0: (PCI Express:2.5GT/s:Width x1) 0c:9d:92:bd:9b:57 [    1.719236] e1000e 0000:00:1f.6 eth0: Intel(R) PRO/1000 Network Connection [    1.719304] e1000e 0000:00:1f.6 eth0: MAC: 12, PHY: 12, PBA No: FFFFFF-0FF [    1.719930] e1000e 0000:00:1f.6 enp0s31f6: renamed from eth0 

The Ubuntu Network Manager GUI reports that the ‘Wired’ connection is ‘Connected’, but there’s no assigned address.

I’ve rebooted the machine at various points through the debugging so far, which did not fix the problem.

Unknown manufacturer of services in windows system configuration

I would like to ask if I can trust unknown manufacturer detected by windows system configuration.

As you can see in the screenshot, all of the other services is known manufacturer but there is one service that using asus name but their manufacturer is unknown.

And after that how do I analysis it to check if it is really a malware ? doing static analysis ? dynamic analysis ?

enter image description here

Potential Solutions to loading Javascript classes unknown at run time

I’m looking for some advice or potential options for loading javascript files in real time long after the DOM has fully loaded. Those javascript files need to be sent over a WebSocket connection, and thus are unknown on page load.

Backstory: I’ve been working on a VR game for the past year and a half, and progress has been fantastic. I won’t waste time going into irrelevant details, but crucially the game is played by one person in VR, and up to 4 other people on their mobile devices.

Now, I’ve been going through and adding the possibility of mod support. So far this has gone surprisingly well, the Desktop VR game transmits relevant details about all the game-specific information when the mobile players connect, and we go from there.

Except I’ve hit a snag on one system: “Constructs” that the mobile players can place. Each one is so fundamentally different in use and operation that I’ve had to create separate classes on a case by case basis. But now with the potential for mod support… Those classes need to somehow be sent by the VR player over WebSocket.

My first naive approach was to use eval and function with a passed string containing javascript contents of an entire file sent from the VR user… Needless to say, that didn’t work very well.

Any thoughts at all here for this brick wall I’ve run into?

Erro no ajax com 419 (unknown status)?

O código funciona até um certo tempo depois para de rodar:

JAVASCRIPT

<script type="text/javascript">       $  (document).ready(function(){                     fetch_data();                    function fetch_data()                   {                    $  .ajax({                     url:"{{route('admin.contatos.preenche.table',"$  devedor->id")}}",                     dataType:"json",                     success:function(data)                     {                      var html = '';                      html += '<tr>';                      html += '<td contenteditable id="tipo"></td>';                      html += '<td contenteditable id="descricao"></td>';                      html += '<td><button type="button" class="btn btn-success btn-xs" id="add">Add</button></td></tr>';                      for(var count=0; count < data.length; count++)                      {                       html +='<tr>';                       html +='<td contenteditable class="column_name" data-column_name="tipo" data-id="'+data[count].id+'">'+data[count].tipo+'</td>';                       html += '<td contenteditable class="column_name" data-column_name="descricao" data-id="'+data[count].id+'">'+data[count].descricao+'</td>';                       html += '<td><button type="button" class="btn btn-danger btn-xs delete" id="'+data[count].id+'">Delete</button></td></tr>';                      }                      $  ('tbody').html(html);                     }                    });                   }                    var _token = $  ('input[name="_token"]').val();                       $  (document).on('click', '#add', function(){                 var tipo = $  ('#tipo').text();                 var descricao = $  ('#descricao').text();                 var devedor_id = "{{ $  devedor->id }}";                 if(tipo != '' && descricao != '')                 {                 $  .ajax({                      url:"{{route('admin.contatos.salva.table')}}",                     method:"POST",                     data:{tipo:tipo, descricao:descricao ,devedor_id:devedor_id , _token:_token},                     success:function(data)                     {                     $  ('#message').html(data);                     fetch_data();                     }                 });                 }   else   {    $  ('#message').html("<div class='alert alert-danger'>Both Fields are required</div>");   }  });   $  (document).on('blur', '.column_name', function(){   var column_name = $  (this).data("column_name");   var column_value = $  (this).text();   var id = $  (this).data("id");    if(column_value != '')   {    $  .ajax({      url:"{{ route('admin.contatos.update.table') }}",     method:"POST",     data:{column_name:column_name, column_value:column_value, id:id, _token:_token},     success:function(data)     {      $  ('#message').html(data);     }    })   }   else   {    $  ('#message').html("<div class='alert alert-danger'>Enter some value</div>");   }  });    $  (document).on('click', '.delete', function(){   var id = $  (this).attr("id");   if(confirm("Tem certeza que quer deletar esse contato?"))   {    $  .ajax({      url:"{{ route('admin.contatos.delete.table') }}",     method:"POST",     data:{id:id, _token:_token},     success:function(data)     {      $  ('#message').html(data);      fetch_data();     }    });   }  });   }); 

HTML

 <div class="container">    <h3 align="center">Lista de contatos cadastrados</h3>    <br />    <div class="panel panel-default">       <div class="panel-heading">Sample Data</div>       <div class="panel-body">          <div id="message"></div>          <div class="table-responsive">             <table class="table table-striped table-bordered">                <thead>                   <tr>                      <th>Tipo</th>                      <th>Contato</th>                      <th>Delete</th>                   </tr>                </thead>                <tbody>                </tbody>             </table>             {{ csrf_field() }}          </div>       </div>    </div> </div>