Posts by Roberval Sena 山本 • 492 points
26 posts
-
8
votes3
answers1883
viewsQ: How to Create and read ". conf" files in C, for linux environment?
I’m studying C in linux environment. I have a problem in how to create a configuration file for my program to know what to do when running. Question Does anyone know how to store and read variables…
-
4
votes1
answer95
viewsQ: How to create C program that can use parameters?
I’m studying C, and now I’m trying to pass parameters. Well, although I think I did, it’s making a mistake when I try to use that variable... I explain, the char "argument_value" that step on the…
casked Roberval Sena 山本 492 -
0
votes0
answers53
viewsQ: pcap/pcap. h library usage examples for C programming
In the previous post, I wanted to know how to read correctly a HEXA character, (by chance it was from a .PCAP file)... Which has already been resolved! But now, the next step is already another: I…
casked Roberval Sena 山本 492 -
0
votes1
answer97
viewsQ: Conversation error from int to String
This code I’m using to study C, is not converting (at least it’s what I think) a INT temp10 to CHAR... appearing an error: line 5: 5182 Segmentation failure (recorded core image) What can it be? int…
casked Roberval Sena 山本 492 -
4
votes3
answers163
viewsQ: "Carry" variables between functions, appears strange character in place?
In function main when I print a char, it appears a strange code like a hexa: But when I print the same char in another function it appears normal. char tempA[100] = "1111"; int main () {…
-
11
votes2
answers12313
viewsQ: How to convert binary to decimal?
I had to make a huge equation to convert a binary number to decimal. What is the best way to make such a conversion? For example 0011 1011 0101 = 949 At the suggestion of Jorge B., I am putting my…
-
0
votes1
answer260
viewsQ: How to read file . cap with C?
I’m making a small program in (C/C++) to read some data from a. CAP file (provided by TCPDUMP). A good example would be Wireshark, but need much less INFO. Turns out, this . CAP seems to be written…
casked Roberval Sena 山本 492 -
2
votes0
answers261
viewsQ: How to exchange the UUID of a partition via C code?
I am making a program in C, and through Linux, I have been able to "get" UUID easily, with the command blkid. This program needs to know if the disk on which it was installed is still the same and…
-
3
votes2
answers1014
viewsQ: How to copy a canvas to an image
I’ve been struggling to resolve this issue, which seems simple, but I’m not getting it, Maybe I am not knowing how to ask the question, then I count on the goodwill of friends: 1. I have the…
-
2
votes0
answers52
viewsQ: EDGE can’t copy large images using JS from/to a canvas?
I have the following code, which copies pieces of the image "smoothchartshowAnalisysCopy" (500px X 250px) to the larger image (32172px X 250px). var c =…
-
0
votes1
answer807
viewsQ: Is it possible to "hide" the browser toolbars, bookmarks and the like?
With the following code, I can open a new window hiding various browser components... <a href="#" onClick="javascript:visualControl('newpage.html'); return false;"> SampleText! </a>…
-
1
votes2
answers106
viewsQ: How to be less repetitive in my Javascript codes?
This my code looks big and clumsy, is there any way to make it smaller? Something like "easier to write", or smaller? Here’s my example, as you can see, I need to repeat this block 5 times, to…
-
0
votes0
answers20
viewsQ: Jquery Sortables - Are there different ways to move a piece as per an image?
In the original example the user can click on any part of the < div content > (or componently) and move it, https://jqueryui.com/sortable/: <div id="sortable" > <div> conteudo 1…
-
3
votes1
answer108
viewsQ: How to "translate" SMARTY to JAVASCRIT or even JQUERY?
I have this code in a "Smarty template", (which runs on a server Fuelphp), I simply wish to "rewrite" this in Javascript or Jquery: <select size="1" name="dw01"> {section name=item start=1…
-
2
votes2
answers1067
viewsQ: How to avoid jquery library conflicts?
Boas, I’ll try to explain why I’m a rookie. Well I need to use a new library, and this code works perfectly when alone with Oin this example: < script…
-
0
votes3
answers6532
viewsA: How to detect click on Chrome Back/Next/Reload buttons
I think even the post being old.... always worth the update... I think it’s possible... This little code, can understand when the keyboard is used, capturing the keys CTRL+R or F5 or Backspace, and…
-
3
votes1
answer3702
viewsA: Control the return button evendo from the browser
I will give a solution that also involves some other problems that I have suffered with my client and, that many people have said that it is impossible to circumvent. Well, it follows the commented…
-
0
votes1
answer23399
viewsQ: Pick up "child" element from a DIV
I have seen several examples of how to do this here in the stack, but I don’t know why the answers don’t clarify much, then I’d like to to ask again how could I use JS to get the "tag ID <A>…
-
1
votes1
answer386
viewsQ: How to read an ID of a DIV, and put in a VAR?
Friends, On my page, with that DIV listed below, I would need to "read" the id that is on the tag < a id="memo-list-delete-6_2544_0" > that is to say the value "memo-list-delete-6_2544_0" and…
-
0
votes1
answer192
viewsQ: In JS how do I list the contents of an "object" or "array"?
I have this unknown object and I need to work with it, so I tried using the console: console.log('01 =', this); but only one returns to me "01 = Object { length: 1, 1 more… }" How to do this? or...…
javascriptasked Roberval Sena 山本 492 -
0
votes1
answer242
viewsQ: How to know if a certain "class" is in use on my page?
Friends, There are many Divs on my page, I need to check if any have not been "finalized", for example: <div class="triagem"> conteudo a ser analizado</div> Ready Divs get another…
-
3
votes2
answers57
viewsQ: Is it possible to change class of many Divs with a single js command?
Friends I have several Divs on my page, each with its ID, but with the same pattern, for example "Checker-001", "Checker-002", and so on... where, I use a JS to change its characteristics, for…
-
6
votes2
answers45970
viewsQ: Limit text display by number of CSS characters
Friends, usually the overflow: hidden; has a text limit by the size of the DIV from it, say 105 pixels... example: <div style="overflow: hidden; width:105px; border:1px; white-space:nowrap;">…
-
4
votes1
answer245
viewsQ: I cannot limit text with Japanese characters
I’m trying to limit the text "in Japanese" that will be displayed in some places on the page, it doesn’t seem that php can handle this type of character well. Example of php: echo substr("あ え い う…
-
1
votes1
answer1310
viewsQ: How to prevent a div from leaving the page, when another div changes size?
My page has basically two divs, to the right and to the left, the two are with style="position: fixed;", that is, if I roll the page, those two divs are side by side, fixed, always visible. But when…
-
1
votes2
answers45
viewsQ: Fine-tuning a search with Analytics API + PHP
Could someone help me mount a search? in the google API? 1) The original and that works, and returns me how many sessions were made in that period, is the same as in the google example: function…