Posts by Carlos • 1,622 points
51 posts
-
-1
votes2
answers147
viewsA: How to make the amount of DIV to adapt
See if that’s what you want... #conteiner{ display: flex; flex-wrap: wrap; justify-content: center; align-content: space-between; height: 200px; width: 100%; overflow: hidden; resize: horizontal; }…
-
1
votes1
answer697
viewsA: How do div with arrow?
*{ padding: 0px; margin: 0px; } body{ background-color: lightyellow; } #menu{ position: relative; height: 40px; width: 300px; background-color: lightgreen; overflow: visible; margin: 50px; } #menu…
-
2
votes2
answers464
viewsQ: What is the specific area and professional that defines the layout of data in files in a software project?
Who and how do you define the layout of data in software such as Editors, Dbms or even who creates text encodings? When I say "data layout", I mean, for example, how a PDF file stores the document…
-
0
votes2
answers43
viewsA: Divs HTML + CSS tuning
Just leave the body div without setting the height, and it will automatically adjust. *{ margin: 0px; padding: 0px; } #geral{ width: 700px; background-color: lightgrey; margin: auto; } #cabecalho{…
-
-1
votes1
answer193
viewsQ: How do I show thumbnail files from my application in Windows explorer?
I have an application that uses a file format of its own (for example, an extension . Xyz, being a format of my application). I notice that when I have a PDF, the Explorer shows thumbnails, When I…
-
6
votes2
answers194
viewsQ: How to read the command line?
Let’s say I want to do a routine to automate the process of compiling a program. In general (language independent), you call compiler from the command line. For example: javac meuPrograma.class or…
-
4
votes1
answer349
viewsQ: How to implement a destructor in Javascript?
In languages such as C++, we have the possibility to declare a destructor for a class, so that certain actions are performed when an object of that class is destroyed. How to do this in Javascript?…
-
0
votes0
answers154
viewsQ: Error while doing Insert in database
I am getting error trying to make an insert in the database. Below. <?php define("CMD_CRIAR_POST", 0); define("CMD_BUSCAR_POSTS", 1); define("CMD_EDITAR_POST", 2); define("CMD_EXCLUIR_POST", 3);…
-
1
votes1
answer124
viewsQ: What exactly does the Pdostatement::bindColumn() method do?
This method is for database manipulation. I’m not understanding exactly what it does in the / variable column.
-
4
votes1
answer12056
viewsA: Create search bar
To use your own search box in Google’s custom search, you must create a custom search engine. Go to "Appearance" and select the "Layout" tab". Choose the "results only" option and then click "save…
-
3
votes2
answers8938
viewsQ: Function calling $.getJSON() returns Undefined
I’m trying to get the data from a JSON through javascript with Jquery’s getJSON function, but it’s returning Undefined. Follows the code: $(document).ready(function(){ $("#log").append(pegaPrev("São…
-
1
votes2
answers509
viewsQ: How to change one variable without changing the other?
When I copy a variable, if I change the copy, I change the first variable. How to change the value of the second without affecting the first ? var cont = [10, 1, 3]; alert(cont.length + "\n"); var…
javascriptasked Carlos 1,622 -
1
votes1
answer62
viewsQ: How do you make a spine stick when it reaches the extremities?
In a two-column layout, if the first is larger than the second (height), there will be a blank space in place of the second when we scroll the page to a certain point. I want when I get to the end…
-
6
votes3
answers268
viewsQ: How do Javascript functions behave in relation to the scope?
In Javascript, functions are objects and can be passed as parameters to other functions. But what about when a function with dependencies on an object, such as variables and other functions, is…
-
0
votes1
answer4369
viewsQ: Why are you giving "Uncaught Referenceerror: getSetorObj is not defined"?
You are saying that "getSetorObj" is not defined, but the method exists and is in the Map class. The error is at line 38 of the script. $(document).ready(function(){ var jogo = new Jogo();…
-
5
votes1
answer248
viewsQ: What is the most appropriate way to store a reference in an object?
Suppose I want to create a library, where an object should receive another object added by the user and store it for later use. Ex: //header.h class Caixa{ private: Botao botoes[5]; public: void…
-
7
votes3
answers972
views -
7
votes1
answer702
viewsQ: Use a void function as a parameter of another
Let’s assume that I need one function to perform to a certain point, call another, do some action, call another function, do one more action and finish executing. Whereas the called functions…
-
1
votes3
answers2496
viewsQ: How to submit a form automatically and without refresh?
On my page is a form where the user chooses a numerical value. I want that whenever the user changes the value, the form is sent, without the need to press the "send". The code I tried, but it…
-
0
votes1
answer17
viewsA: App background
It is possible to do so: #triangulo{ width: 0px; height: 0px; border-width: 100px; border-color: green green transparent transparent; border-style: solid; } <div id="triangulo"> </div>…
-
1
votes4
answers21716
viewsA: "Height: 100%" does not occupy all height
height 100% does not work on that side because the height of the box containing it has no defined value. Assuming that the part in blue always has more text than the red one, one solution would be…
-
1
votes1
answer161
viewsA: Center text within an image in the div
Add this and see if it solves: .caption, .caption-text{ width: 100% !important; }
-
5
votes2
answers1634
viewsQ: Why are you making a mistake when trying to compile the program with this library (IUP)?
By including a C library you are giving this error when trying to compile ||=== Build: Release in iup (compiler: GNU GCC Compiler) ===| obj\Release\main.o:main.cpp|| multiple definition of…
-
2
votes2
answers1967
viewsA: Programming language directly with hardware
Maniero is right, but as you said "applications that need a direct connection to the hardware" face I would indicate low level languages, because this is a characteristic of them. This will depend…
-
1
votes2
answers138
viewsQ: How do I take a data on one page and put it on another?
I need to take a data sent by the user through the GET method on one page, put this data in the database and, on another page, I need to read this data from the database and write to the page. In…
-
3
votes2
answers290
viewsQ: How to convert string array to string?
In a program for Arduino, I have an array of strings but it seems that the function where I will use this data only accepts string. How do I convert an array to a string ? File prog =…
-
0
votes1
answer1300
viewsQ: Why doesn’t Transition work?
The div #sub should make a transition of opacity when passing the mouse over #item, but it doesn’t work. It only works when I take the display: none How do you fix it ? #item,#sub{ height: 40px;…
-
0
votes1
answer53
viewsA: Does publicizing URL on social networks improve pagerank?
It is considered spam if you are posting the URL on third-party posts without adding anything related to the post. Anyway, I believe that this does not do much for pagerank because the links you…
-
18
votes3
answers2341
viewsA: Good practices using CSS
I would personally recommend that: Always look for simplicity in code. Avoid selectors where not necessary. If you create a selector id for the tag body, for example, you may forget that this id is…
-
1
votes1
answer129
viewsQ: Why are you screwing up Assembly?
I’m trying to learn Assembly. By compiling the following code in FASM it gives the error illegal Instruction down below Section . date. When removing this chunk and trying to reassemble, from the…
-
1
votes1
answer138
viewsQ: What is the difference between the streql() and strcmp() functions of the header string. h?
Both return 1 if two strings are equal and 0 if they are different right ?
-
0
votes1
answer124
viewsA: Fix page with Zurb Foundation 5 Modal Reveal
In general, to place scroll is used: #elemento{ overflow: scroll !important; }
-
5
votes1
answer612
viewsA: How to add 1 kilometer to a Google Maps coordinate?
Assuming you calculated the radius by Pythagoras' theorem, it would not be in kilometers or meters, but in degrees. In this case you would have to make the difference between the latitudes of A and…
-
1
votes4
answers599
viewsA: Tool for mobile zoom
See if that that one it’ll do. but it’s paid for. Example: $('#iddasuaimg').smoothZoom({ width: <Enter Width>, height: <Enter Height> }); Demonstrations…
-
1
votes2
answers716
viewsA: How to prevent POST from outside the server?
But the form data will be sent to your own server or to a third party server ? If it goes to your own server, I think what you can do is establish accepted value rules when picking up the data on…
-
2
votes1
answer99
viewsQ: When including a header file, does the compiler include all functions in the final program or only the functions used?
That is, the executable will have the entire library in it or only the functions I use will be included by the compiler ? With this, including many libraries can make the program heavy (taking up…
-
7
votes2
answers1444
viewsQ: How to organize code without losing performance?
Using functions instead of putting code directly influences a program’s performance ? For example: void minhafuncao(){ printf("Funcao"); } main(){ minhafuncao(); } in place of main(){…
-
0
votes1
answer61
viewsA: Problem displaying the result with my blogger code
The problem is punctuation. Missing semicolons in some places. Always use semicolons when finishing an instruction. Now it works: <span style="color: #3d85c6;"> Código do seu Gadget está…
-
29
votes13
answers20263
viewsA: What makes a language to be considered low/high level?
Low-level language works more directly with hardware, it is a language closer to machine language. Assembly is an example of low-level language. A high-level language, on the other hand, allows you…
-
1
votes2
answers5471
viewsA: Scroll to the button
Use anchors. For example: <style> #panel-heading{ height: 300px; width: 600px; background-color: grey; padding: 20px; } </style> <a href="#panel-heading">descer…
-
1
votes2
answers361
viewsA: Centering #Menu #Nav on the circular shapes page?
try to use float:left in the circles to place them side by side. Center using a container and defining margin: auto; and align: center; Remembering that the container width has to be the space that…
-
2
votes1
answer106
viewsA: Replace URL in <embed> tag
See if it works: Note: assumes that you have included the Jquery on your page. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script>…
-
1
votes2
answers207
views -
0
votes2
answers842
viewsA: List items from a Dropbox with navbar responsive bootstrap
And if you took the first list <ul class="nav navbar-nav navbar-right"/> and put the user name at the top of the second. Staying as below: <div class="navbar"> <div…
-
0
votes2
answers21710
viewsA: How to create txt with js?
Yes, you can do it with Javascript.(Exclusive for IE) I’ll explain: //Cria Objeto ActiveX var dados = new ActiveXObject(“Scripting.FileSystemObject”); //Função para gravar o arquivo function…
-
1
votes1
answer619
viewsA: Move centered element to corner
From what I understand, your problem is needing position:absolute/fixed to animate and not be able to center the elements using these properties. If so, I suggest a solution where it is possible to…
-
-2
votes1
answer428
viewsA: Run File in PHP - Jquery or Javascript
Do you agree that the file will run in the sequence it was written ? Then just put a redirect at the end of the file to itself. When it is at the end of processing, redirect. <?php…
-
2
votes2
answers1843
viewsA: CSS3: Show a hidden div when doing Hover over another div
I would recommend you to use the image as the background of the div . container <div class="contentor" style="background-image: url('IMGS/index_amb.jpg')"> <p class="texto">texto por…
-
8
votes4
answers20055
viewsA: How to open a pop-up without using Javascript?
This method does not use Javascript or CSS3. It basically works like this: The page is inside a container and the popup is hidden in an overflow part of the container. When you click the anchor, the…
-
0
votes4
answers3635
viewsA: How to center a div with variable size and position Absolute?
See if this solves: #clock{ position: absolute; bottom: 0; margin: 0 auto; display: inline; text-align: center; overflow: visible; }