All Questions

1
answer

In Python 2 is it more pervasive to use range or xrange?

The programming language I use most is : (), and after it has been implemented Generators in version 5.5, it is said to be faster to use for generating numbers in sequence than with the function range - which creates a array with...
asked on 17.12.2015 / 19:43
2
answers

Show loop result in real time

I'm using a loop to send mail from an array. Each time the loop runs the sleep(4); function is executed. The problem is that the output of php only happens at the end, ie the echo "</br>n:".$ne."&nbsp".$user["email"]."<...
asked on 19.01.2016 / 17:14
2
answers

How to select all characters except some specific words using regex?

Good morning everyone, I would like to perform a string search for some specific character strings, but in the project we are working with we do not have access to any find function or similar, only to a regular expression-based substi...
asked on 11.02.2015 / 14:27
1
answer

What is the difference between readfile and file_get_contents?

In PHP, there are numerous ways to read the contents of a file. The functions fopen , file , file_get_contents , readfile , and even a class named SplFileObject . file reads line by line and puts them...
asked on 04.05.2016 / 14:36
3
answers

Firefox and IE can not find source

I have a wordpress site where I installed two fonts: Calibri and Castlet. Chrome works properly, but in Firefox it recognizes only Calibri. This is the site: link In Css: @font-face { font-family: Calibri; src: url("wp-includes\fonts\cali...
asked on 17.01.2015 / 16:55
1
answer

Send file directly to printer via CMD

Does anyone know how I can send a txt file (with EPL commands) manually to the printer by cmd?     
asked on 08.04.2015 / 15:33
1
answer

How to save formatted text in the database

I'm using TinyMCE for text editing on my site. However, I'm doubtful to save the formatted text in the database and then display it the way the user typed. (paragraphs, font color, etc.). Is there any way to do this? I am using asp.net mvc with...
asked on 02.12.2014 / 00:34
3
answers

How to force a PDF to be displayed in the browser

I have a sequence of PDF files that I can link to normally, but as soon as I click on one of them it downloads, and I need the PDF to be displayed in the browser itself. I've tried using this in my link but it did not work: target="_blank"...
asked on 17.04.2015 / 13:19
1
answer

C ++ with C #, is it possible?

I have a C ++ project using visuals in it using wxWidgets. I was wanting to transfer the design look to C #. Is it possible to have the programming of the functions in C ++, but the programming of the whole visual in C #, that is, the butt...
asked on 17.06.2015 / 19:23
1
answer

Check if list is the same

I have the following list: x = [([1,2], [1, 2]), ([1,2], [4, 5])] And I wanted to check if the first list of each tuple is always the same. Note: List x contains tuples with lists. These tuples may vary, meaning there may be more tuples...
asked on 28.04.2015 / 20:20