Questions tagged [internals]

The internals tag denotes questions about how things work, as opposed to how to accomplish something specific. Of course, how something works underneath will have practical implications, but internals questions aren't about how to do something; rather, how to understand something.

If you understand how a database or parser or version control system actually works, you'll be better at using it. Internals questions seek this kind of inside knowledge.

660 questions
0
votes
1 answer

PHP method overloading

I have been developing an ORM and currently run into this error in testing. Declaration of ClassA::setB() should be compatible with that of SuperClass::setB() My code is something like this. class SuperClass() { protected $b; public function…
andho
  • 1,166
  • 1
  • 15
  • 27
0
votes
1 answer

How are buttons drawn in android after the first tap?

I'm trying to draw a rotated layout in Android (because my app has to run in Landscape mode for reasons outside my control and I want to draw the widgets rotated 90 degrees so they'll look right when the device is in portrait mode). I've gotten it…
George
  • 1,265
  • 1
  • 10
  • 8
0
votes
0 answers

Adjust for best performance

I am wondering if it is possible to toggle the "Adjust for best performance" radio box in Windows' Advanced Settings trough C/C++. I have looked around for answers and just stopped at SystemParametersInfo: SystemParametersInfoA(SPI_SETUIEFFECTS, 0,…
Itsenough1
  • 47
  • 6
0
votes
1 answer

Confused on how SMB (1.0) and Mapped I/O work together

I'm trying to get some more detailed Information on mapped I/O and a SMB(1)-Share. I discovered a scenario, where an application, which starts from a network-share throws an In-Page error(0xc0000006) with status code 0xc000020c…
m.plumbohm
  • 57
  • 7
0
votes
0 answers

Simulate "internal" in Java

I would like to reproduce the "internal" C# behavior in Java. I have three projects and one of them is my "framework" which has a method that I want only this project be able to call. This method can't be private because it's called outside its…
Leandro Silva
  • 804
  • 1
  • 9
  • 28
0
votes
0 answers

Why did Adobe Flash store integers bitshifted by three bits to the right?

This is more curiosity than an actual problem but I feel like this belongs here. My question is: why did Adobe Flash Player store integers in memory shifted by three bits (times eight) from a byte-aligned perspective? As can bee seen in the…
Gizmo
  • 1,990
  • 1
  • 24
  • 50
0
votes
0 answers

`nmcnt` and `type` of R's `sxpinfo` header

§1.1.2 of R's internals manual says that The `sxpinfo' header is defined as the 64-bit C structure below: struct sxpinfo_struct { /* Type and namedcnt in first byte */ unsigned int nmcnt : 3; /* count of "names" referring to object */ …
isomorphismes
  • 8,233
  • 9
  • 59
  • 70
0
votes
1 answer

Since which value integers stop being cached and reused in Python?

In Python 3: >> X = 42 >> Y = 42 >> X is Y True >> X = 2 ** 20 >> Y = 2 ** 20 >> X is Y False >> X = 2 ** 2 >> Y = 2 ** 2 >> X is Y True What is the precise value for integers since which I start getting False instead of True when I state "X is…
Ruan
  • 772
  • 4
  • 13
0
votes
1 answer

Why Rolling back is not working when I altered the value of 'sort_buffer_size' in MySQL?

I changed the value of system variable 'sort_buffer_size' inside a transaction block. After issuing rollback, it is not getting reverted. Please see the below snapshot: please see the below snip regarding what I did in my local machine MySQL…
Pavan Teja
  • 21
  • 3
0
votes
2 answers

where does Django store datatype to UI component mapping

Could anybody share how and where does Django store the mapping between datatypes like number, string, boolean and UI components like textfield, datepicker, radio button, checkbox etc. I am trying to build a Django-like admin UI for a Spring-boot…
comiventor
  • 3,922
  • 5
  • 50
  • 77
0
votes
2 answers

How does Drupal assembles a page

Is there some architectural guide, that shows in details the various subsystems that are involved in the creation of a single page? I've tried to find something but even the presentations at DrupalCons don't go into detail.
Kay Pale
  • 6,449
  • 7
  • 28
  • 28
0
votes
0 answers

How to restore a specific collection with the use fo its data files in mongodb?

I want to restore a specific collection from a mongodb database and I have its data files (of whole db) and I want to restore only one collection also which data files get affected when there is any change in collection along with its…
bash
  • 3
  • 1
  • 5
0
votes
1 answer

Understanding per cpu structure in linux kernel

I am studying linux kernel and sometimes I don't understand what kernel developers want in a particular piece of code. So I was reading through timers in kernel and a timer is created using a struct timer_list variable, that contains a per cpu…
0
votes
1 answer

Packet generation for routing

As part of a coursework i am changing the kernel's ip lookup code, i have made the changes and i would like to test it .. how should i go about generating data for these ip lookups .. will changing /proc/sys/net/ip_forward to 1 help me generate the…
Sethu
  • 556
  • 1
  • 7
  • 18
0
votes
2 answers

What is the private method Object#select?

Like many others, I saw the exception private method 'select' called for nil:NilClass (NoMethodError) go by. What struck me as odd is that it didn't say undefined method 'select' for nil:NilClass (NoMethodError). There was indeed such a method,…
Alex Altair
  • 3,246
  • 3
  • 21
  • 37