1000 Threads w/ Unlimited Daily Solves for Just $250 a Month!

I’d like to offer you another round of special offer. We have now the MEGA #2 special package. This package is highly different from those that are offered currently in our site.
This package is a big budget saver. You can enjoy <b>1000 threads for just $ 250 USD a month</b> and it comes with <b>UNLIMITED daily solves</b> too…
Features:
1. 1000 Threads
2. UNLIMITED Daily Solves
3. 20 Elite Proxies
To subscribe just go to https://captchas.io/?p=19
Thank you and God bless!

Any possibility to evaluate / calculate the threads by usage of graphic card?

Would it be possible to employ the GFX card instead of CPU, for work with threads, like it would be when the video or anything that would require high power of processing can be used?
I just bought this one for video rendering: PNY NVIDIA Quadro P4000, 8GB GDDR5.

Thanks for your answer, eventually to add it to the wishlist.
Regards,
Michal

Image segmentation of a high resolution 2D binary image into clusters, threads and points

I use python3 to find out the proportion of the mentioned image features. They are originally 8-bit greyscale TIFF images with a resolution of 2048×2168 pixels. I have binarised it into an image composing of the matrix (white) and component particles (black). The particles have random morphologies. I would like to widely categorise them as:

  • Points which can range between 1×1 to 3×3 blocks of independent square pixels completely surrounded by the matrix
  • Threads which are linear or diagonal sets of continuous pixels of at least 3 pixels in length and at most 3 pixels in width
  • Clusters which are any randomly shaped closed morphologies with more than 10 pixels in overall area (or any arbitrary high value)
  • Others which by any chance is not included the three listed above

Here is an Example(400×400) portion of the image.

First of all, I am confused about the order of progress in this situation. I could scan the whole image pixel by pixel and extract the points in my first step. A second scanning can see for threads and final scanning can look for clusters using boundary tracing.

As you can see, the component is spread in a very uneven manner. To a human eye, the threads appear as blocks with very low aspect ration (AR). Points as noises and clusters as blocks of distinguishable larger areas. Therefore the accuracy level of this classification scheme does not needfully be a high score. The objective, however, is minimal user interaction (fully automatic). One another thing to note is that holes within clusters or threads (that does not break it) can be ignored. The ultimate aim is to get the area percentage of each of the objects so that the detection method can be limited keeping it in mind.

Some specific questions:

  1. Let us say that I identify a large cluster of pixels within the image. How can I split this into a surface (high AR) and thread (low AR)? (something similar to Watershed Algorithm)
  2. Should I go for the OpenCV contouring method like Border Following or border tracing (and later ignoring the holes) or something more suitable
  3. I was curious to know if there have been approaches in the past that used random sampling of pixels instead of a pixel by pixel scanning across the entire image.

I would like to know the steps a computer scientist would follow in such a scenario. I am a beginner in image processing and any reference material would be appreciated. For anybody interested in metallography, the images are micrographs and what we see are defects. I am trying to separate cracks, porosities and other openings based on pixel density.

comunicar dos servidores de sockets en python (pasar mensajes uno al otro) con colas y threads

We need to show an example of servers socket comunication in python, we have two very simple server python sockets, S1 and S2, and two clients C1 connect to S1 and C2 to S2, what we want is when C1 connect to S1 and send a message, S2 display that message. and when C2 connect to S2 and send a message, S1 display that message, is it possible to do with queue.Queue and threads ?

Es necesario mostrar un ejemplo de comunicacion entre dos servidores de sockets en python. tenemps dos servidores muy simples que atienden a sus clientes a traves de threads, S1 y S2 independientes pero identicos y dos clientes muy simples tambien, C1 y C2, lo que se quiere es que cuando C1 se conecte a S1 y le envie un mensaje sea S2 quien lo imprima por pantalla y cuando C2 se conecte a S2 y le envie un mensaje sea S1 quien lo imprima por pantalla, es posible hacer eso con queue.Queue y threads ?

Tengo 4 threads y dos se refieren a un objeto pero al hacer a un thread.sleep(x) no ejecuta ese thread para ambos objetos

Cree una ConcurrentLinkedQueue de strings, tengo dos colas y voy almacenando siempre datos (bucle en mi thread), luego por cada determinado tiempo una cola saca datos (bucle en thread) y luego la otra deberia tambien, pero ambas instrucciones de ambos threads se hacen al mismo tiempo, cuando necesito que por un tiempo se ejecute un thread y luego otro

Entrada entrada_cola1 = new Entrada(cola1);     Salida salida_cola1 = new Salida(cola1);     Entrada entrada_cola2 = new Entrada(cola2);     Salida salida_cola2 = new Salida(cola2);      System.out.println("------------------------");     System.out.println("INICIO DE SIMULACION");     System.out.println("------------------------");     entrada_cola1.start();     entrada_cola2.start();     salida_cola1.start();     salida_cola2.start();     while(true){         try{         salida_cola2.sleep(rojo);         } catch(Exception e){         }         System.out.println("--------------------------------------------------------------------------------------------------------------");         System.out.println("SEMAFORO CAMBIO COLOR: ROJO-VERDE PARA COLA A: Se encuentran "+cola1.size()+ " Carros en cola A");         System.out.println("SEMAFORO CAMBIO COLOR: VERDE-AMARILLO-ROJO PARA COLA B: "+cola2.size()+" Carros en cola B");         System.out.println("---------------------------------------------------------------------------------------------------------------");           try{         salida_cola1.sleep(rojo);         }catch(Exception e){         }         System.out.println("----------------------------------------------------------------------------------------------------------------");         System.out.println("SEMAFORO CAMBIO COLOR: VERDE-AMARILLO-ROJO PARA COLA A: "+cola1.size()+" Carros en cola A");         System.out.println("SEMAFORO CAMBIO COLOR: ROJO-VERDE PARA COLA B: "+cola2.size()+" Carros en cola B");         System.out.println("-----------------------------------------------------------------------------------------------------------------");          } 

Implementar threads a mi comprobador de proxies en python

El script basicámente coge los proxies que proporciona una web y los guarda en un txt. El caso es que quiero implementar el modulo threading ya que es muy lento,pero no lo consigo. (He investigado,he hecho script con Threads pero no consigo implementarlo en mi código) La idea sería que cada hilo ejecutase la función “check” con su proxie correspondiente,por ejemplo,de 10 en 10. Mi código:

from colorama import Fore,Back,Style import requests import json import os import datetime  def check():     count = 0     os.system("cls")     today = datetime.datetime.today()     hoy = (f"{today.day}-{today.month}-{today.year}___{today.hour}-{today.minute}")     print (hoy)     nombre = (hoy+".txt")     good = open(nombre,"a+")     fichero = open("proxygen.txt","r+")     print (Back.BLACK+"TEST")     for ip_port in fichero:         todo = ip_port.split(":")         ip, port = ip_port.rstrip().split(":")         line = f'http://{ip}:{port}'         proxies = {'http': line, 'https': line}         try:             testIP = requests.get('https://httpbin.org/ip', proxies=proxies, timeout=3)             resIP = testIP.json()["origin"]             origin = resIP.split(",")[0]             if origin == ip:                 print(f"Proxy {ip}:{port}"+Fore.GREEN+"    OK"+Fore.WHITE)                 good.write(ip+"\n")                 count += 1              else:                 print(f"Proxy {ip}:{port}"+Fore.RED+"   BAD"+Fore.WHITE)            except:             print (f"Proxy {ip}:{port}"+Fore.RED+"    ERROR"+Fore.WHITE)     fichero.close()     good.close()     print (count)     check()     

Se que aquí no dan las cosas hechas pero solo pido que me ayudeis a encontrar el camino correcto.Saludos y gracias.

Com qual lib desenvolvo minha interface gráfica nesse projeto com aplicação de sockets e pool de threads em JAVA?

Esboço do meu projeto

Então estou emperrado em meu projeto da faculdade (JAVA) programo à pouco tempo e não sei oq utilizar… tentei usar o javaFX pra fazer toda interface gráfica mas não consegui por não conseguir achar bons materiais na net, apenas aplicações para projetos simples de “Hello world” ou coisas do tipo que não me ajudam muito na hora da implementação de um projeto um pouco mais complexo. Como o professor exigiu apenas java (não autorizou usar Spring ou nenhuma outra framework, o que facilitaria muito a minha vida, mas enfim…).

Se alguém puder contribuir com dicas na estrutura do projeto e (principalmente) enviando bons materiais que possam me ajudar a decidir uma boa biblioteca pra desenvolver o front da aplicação agradeceria muito!

Do threads delete themselves?

Let’s say I was working on a Swing application. Most of it is run on the EDT using SwingUtilities.invokeLater() inside the main method, because I heard (please correct me if I’m wrong) that that’s what you need to do with Swing.

However, some parts of it shouldn’t run on the EDT. These parts are parts that take long to complete (I assume that this is because long tasks on the EDT will interfere with GUI stuff the EDT should be doing, and thus these kinds of tasks should be run on parallel, on a different thread. Is this assumption correct?)

To do this, when I need to perform a task that takes long to complete and thus can’t be run on the EDT like the rest of the program, I create a new thread and run that task inside it.

My question is: When the run() method of that new thread finishes, aka the thread finished it’s job. Does it delete itself? Or does it keep existing in the memory?

Use hardware threads as independent cpus changes Barrier() behaviour

I am using Open MPI and C++ to try out simple programs on my laptop. When I use the 2 cores on my computer as processors, the program runs us expected. However, when I instead do –use-hwthread-cpus, it seams that I never get past the Barrier(). That is the only thing I am changing, just the way I start the program. It is the same .exe file running.