python – rooms dinamicas Flask Socket.IO

me gustaria saber por que no se añaden las rooms dinamicamente en mi app cuando clickeo “SEND” en el input que aparece arriba de ROOMS, ya que envio la data a una lista en python (donde se encuentran todas las rooms) pero no puedo unirme a ellas, creo que el problema esta en JS pero no se me ocurre mas nada 🙁
aqui les dejo mi codigo:

Flask:

@socketio.on('new_room')
def new_room(data):
room = data("new_room_name")
print(room)
ROOMS.append(data("new_room_name"))
join_room(data('new_room_name'))
emit('new room received', data, room, broadcast=True)

JS:

// send new room to the server
document.querySelector('#send_newRoom').onclick = () => {
    socket.emit('new_room', {'new_room_name': document.querySelector('#new_room').value}); // This is what you SEND to the server
}

socket.on('new room received', room => { //This is what you RECEIVE from the server
    console.log('room');
    let createdRoom = room.new_room_name

    const li = document.createElement('li');
    li.innerHTML = createdRoom
    li.setAttribute('class','select-room');

    document.querySelector('#rooms').append(li);
    });

HTML:

<div class="col-lg-4 col-md-4" style="background: lightblue;">
        <div>
            <input type="text" id="new_room" placeholder="Type here..." autocomplete="off"> 
            <button type="button" id="send_newRoom">SEND</button>
        </div>
        <H3>ROOMS</H3>
        <ul id="rooms">
            {% for room in rooms %}
                <li class="select-room">{{ room|title }}</li>
            {% endfor %}
        </ul>
    </div>

Y asi es como se ve mi app (Aun no tiene diseño):
introducir la descripción de la imagen aquí

budget – Are luxury hotel rooms in the Sydney area available at a discount during the lockdown?

During the current lockdown, there’s a major reduction in international and inter-state travel in Australia. Is it possible to book rooms in luxury hotels, such as Shangri-La, in the Sydney area at a cheaper rate than they’d normally be offered?

I’m open to using an opaque hotel booking – I’m not interested in location, just so long as it’s noice, unusual and different.

I had a quick look at Shangri-La Sydney’s offers page, but I didn’t notice any specials that seemed oriented to the current couple of months (apart from the winter package, which I remember them doing in past years).

Rooms for rent in Syndey / New South Wales

Hi all,

It's been a long time since I published anything here. I just noticed that webhostingtalk.com.au is no longer operational.

So I have a … | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1801531&goto=newpost

Rooms, Apartments For Rent, Find Roommates Here – Advertising, Offers

Over 4 million room, tenant, apartment and roommate listings in more than 34,000 cities in 192 countries

So if you're looking for a room or apartment, or just want to find a tenant or roommate, this is the place for you.

http://www.roomster.com/app/00000a54/

Algorithms – Assign n people to m pieces of different sizes, so that no one is alone and people are in the largest possible rooms

I am looking for an effective way to assign n people to m rooms in a very specific way.

CONTRIBUTION:

The program receives two sets of people (all men and women together), as well as a set of rooms available (rooms can have different sizes, ranging from 2 to 6).

CONDITIONS OF ASSIGNMENT:

The algorithm must assign people to rooms in a way that:

  • Men can be in a room with only men (same for women)
  • Nobody can be alone
  • The algorithm should maximize groups (a room of 4 is better than 2 rooms of 2, etc.)

EXIT:

The algorithm must return the assignment

I've tried to do it, but all the requests that I propose are at least O (n ^ 3). Does anyone know an effective way to do it?

planning – How to travel without reserving rooms in advance?

I was reading this question: Would it be a bad idea not to book hotels in advance in Thailand?
and think about traveling without reservations made in advance.

Personally, when I travel, I panic a little when I do not know where I'm going to stay. I usually book everything in advance to find out where I am staying and get cheaper prices.
The problem with my approach is that it leads to very rigid routes. It often happens that I want to stay a few days longer in a place or that I want to leave earlier and make a detour by my planned route.

How can I book things only 2 or 3 days in advance (or even on the spot) with the certainty that I will have a home? Are there any good tips or guides online for this?

How to travel without reserving rooms or beds in advance?

November 2019 Report on the prices of server rooms

This is the eighth installment of the monthly Server Pricing Report for 2019.

If you followed, we followed the evolution of the p … | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1786845&goto=newpost

More rooms – Morecoins.pw

I am not a director,

About us,

QUOTE

Choose More Parts for Reliable and Profitable Investment Opportunities! Since 2013, the company offers the best investment opportunities for business planning and startups. The company is also a reliable partner for investors wishing to invest their funds in the Forex market. Our team is here to provide you with the best possible service.

The company was founded by professional Forex traders. The services rendered by our staff are market analysis, online marketing and profitable trade. A secure trading activity is achieved not only by the distribution of financial assets and financial flows, but also by the low risk internal trading system.

More Coins is an innovative company that takes a unique approach to investing funds that generates substantial profits. We offer stable, lucrative and timely payments, the security of our clients' funds and the protection of their personal information. The cooperation with More Coins is the key to your financial freedom and impressive results in the field of online investments!

More Coins is a growing foreign exchange investment company registered in the UK.

IPB image

Investment plans:
– 275% after 30 minutes
– 425% after 1 hour
– 710% after 6 hours

Amount of investment:
– Minimum $ 10
– Maximum $ 7000

Accepted payment:
– Perfect money
– Payeer
– Bitcoin
– Ethereum

Reference Commission: 5%

Program features:
– GC HYIP Script
– SSL certificate by COMODO RSA
– DDOS Secure Hosting Protection
– Instant removal

Join here – More currencies –

October 2019 – Report on the prices of server rooms

This is the seventh installment of the monthly Server Pricing Report for 2019.

If you followed, we tracked the price of parts for RAM, SSDs, hard drives, processors and some GPUs. Generally, this is done monthly, then shared with WHT and on our blog.

Currently, all prices listed are those of ebay, for used equipment. I can also start looking for more new material if there is a request.

Price on October 3, 2019

– or + indicates if the price has increased or decreased since last month

Code:

Price Low* / Price High** / Part Name


SSDs

$64(+) / $78() / 480gb Intel DC S3500 
$179() / $245() / 800gb Intel DC S3500 
$180(-) / $290(+) / 1.6TB Intel DC S3500 

New SSDs

$115(+) / $125(-) / 240gb Intel D3-S4610
$146(-) / $185(-) / 480gb Intel D3-S4610
$245() / $283() / 960gb Intel D3-S4610
$445() / $525(-) / 1.92tb Intel D3-S4610
$670(-) / $780(-) / 3.84tb Intel D3-S4610
 
Hard Drives

$40() / $54() / 3TB HGST SATA
$163(+) / $180(+) / 8TB HGST SATA
$190() / $215() / 10TB HGST SATA
$310() / $450() / 12TB HGST SATA


DDR3 RAM

$10() / $15() / 8GB DDR3 (a)
$15() / $30() / 8GB DDR3 (b)
$25(+) / $40() / 16GB DDR3 (a)
$23(-) / $30(-) / 16GB DDR3 (b)
$68(-) / $105() / 32GB DDR3 (c)


DDR4 RAM

$24(-) / $45() / 8GB DDR4 (d)
$40(-) / $55(-) / 8GB DDR4 (e)
$45(+) / $60(+) / 16GB DDR4 (d)
$60() / $76(-) / 16GB DDR4 (e)
$106(+) / $120(-) / 32GB DDR4 (d)
$125() / $178(+) / 32GB DDR4 (e)

E5v2 CPUs

$130() / $145() / E5-2660v2
$150(-) / $200(-) / E5-2680v2
$240(-) / $280(-) / E5-2697v2


E5v3 CPUs

$105(-) / $150() / E5-2650v3
$150(-) / $200(+) / E5-2660v3
$150(-) / $217() / E5-2670v3
$145(-) / $185(-) / E5-2680v3
$215(-) / $225(+) / E5-2690v3
$290() / $378() / E5-2695v3
$399(+) / $470(+) / E5-2698v3
$440() / $790(-) / E5-2699v3


E5v4 CPUs

$1030(+) / $1300(+) / E5-2650v4
$900(+) / $1370(+) / E5-2660v4
$1199(+) / $1489(+) / E5-2680v4
$1710(+) / $1845(+) / E5-2690v4
$4000(+) / $4760(+) / E5-2699v4

Graphics Cards

$305 / $399 / Nvidia GTX 1080Ti
$275 / $350 / AMD Vega 64

To compare to last month, here are the prices of September 13, 2019:

Code:

Price Low* / Price High** / Part Name


SSDs

$63(-) / $78(-) / 480gb Intel DC S3500 
$170 / $245(+) / 800gb Intel DC S3500 
$184(-) / $240(+) / 1.6TB Intel DC S3500 

New SSDs

$109(-) / $185(-) / 240gb Intel D3-S4610
$146(-) / $204(-) / 480gb Intel D3-S4610
$245(+) / $283(-) / 960gb Intel D3-S4610
$445(-) / $695(-) / 1.92tb Intel D3-S4610
$780(-) / $994(-) / 3.84tb Intel D3-S4610
 
Hard Drives

$40 / $54(+) / 3TB HGST SATA
$160 / $175 / 8TB HGST SATA
$190(-) / $215(-) / 10TB HGST SATA
$310 / $450 / 12TB HGST SATA


DDR3 RAM

$10 / $15 / 8GB DDR3 (a)
$15 / $30(+) / 8GB DDR3 (b)
$24(+) / $40(+) / 16GB DDR3 (a)
$25 / $31(-) / 16GB DDR3 (b)
$95 / $105 / 32GB DDR3 (c)


DDR4 RAM

$27(-) / $45 / 8GB DDR4 (d)
$45(-) / $75 / 8GB DDR4 (e)
$40(-) / $55(-) / 16GB DDR4 (d)
$60(-) / $78(-) / 16GB DDR4 (e)
$105(-) / $125 / 32GB DDR4 (d)
$125(+) / $160(-) / 32GB DDR4 (e)

E5v2 CPUs

$130(+) / $145(-) / E5-2660v2
$170(+) / $230(-) / E5-2680v2
$250() / $290(-) / E5-2697v2


E5v3 CPUs

$125(-) / $150(-) / E5-2650v3
$160(+) / $170(+) / E5-2660v3
$175(-) / $217(-) / E5-2670v3
$146(-) / $198(-) / E5-2680v3
$230(-) / $275(+) / E5-2690v3
$290(-) / $378(+) / E5-2695v3
$397 / $459(+) / E5-2698v3
$440(+) / $699(-) / E5-2699v3


E5v4 CPUs

$845(-) / $1029(+) / E5-2650v4
$775(-) / $1200(+) / E5-2660v4
$1350(-) / $1212(-) / E5-2680v4
$1698(-) / $1750(-) / E5-2690v4
$3385 / $3420 / E5-2699v4

Graphics Cards

$550 / $585 / Nvidia GTX 1080Ti
$330 / $370 / AMD Vega 64

Definition of terms / small print:

Code:

* Price Low -- The lowest price to buy this part from a reputable seller in a moderate quantity, price as shipped to the US			
** Price High -- There is a reasonably large quantity of this part available from multiple reputable sellers for this price or lower, price as shipped to the US			
*** Price for the lowest priced drive of this size, matching this model number or better in the same class. "Same class" would mean sata (S) or nvme (P), as applicable. "Better" means a higher model number than listed. Ranked from worst to best, Intel model numbers are 3500, 3510, 3600, 3610, 3700, 3710			

(a) -- 2Rx4 PC3L-10600R ECC REG	
(b) -- 2Rx4 PC3L-12800R ECC REG	
(c) -- 4Rx4 PC3L-12800L ECC REG LRDIMM	
(d) -- DDR4 PC4-2133P ECC Registered	
(e) -- DDR4 PC4-2400T ECC Registered

Some notable changes compared to last month:

* There seems to be a lot of stability right now in server room pricing. Prices for RAM, SSDs and hard drives have remained relatively constant with only slight changes in prices.

* The prices of the E5v2 and E5v3 CPUs have slightly decreased.

* Prices for E5v4 processor models have risen surprisingly, some increasing by almost 50%.

As before, let me know if you have comments, how I can make this more useful, etc.

September 2019 Report on the prices of server rooms

This is the sixth installment of monthly server price reports for 2019. The month of August is incredibly busy, so this month we're going to jump from July to September.

If you followed, we tracked the price of parts for RAM, SSDs, hard drives, processors and some GPUs. Generally, this is done monthly, then shared with WHT and on our blog.

Currently, all prices listed are those of ebay, for used equipment. I can also start looking for more new material if there is a request.

Price on September 13, 2019

– or + indicates if the price has increased or decreased since last month

Code:

Price Low* / Price High** / Part Name


SSDs

$63(-) / $78(-) / 480gb Intel DC S3500 
$170 / $245(+) / 800gb Intel DC S3500 
$184(-) / $240(+) / 1.6TB Intel DC S3500 

New SSDs

$109(-) / $185(-) / 240gb Intel D3-S4610
$146(-) / $204(-) / 480gb Intel D3-S4610
$245(+) / $283(-) / 960gb Intel D3-S4610
$445(-) / $695(-) / 1.92tb Intel D3-S4610
$780(-) / $994(-) / 3.84tb Intel D3-S4610
 
Hard Drives

$40 / $54(+) / 3TB HGST SATA
$160 / $175 / 8TB HGST SATA
$190(-) / $215(-) / 10TB HGST SATA
$310 / $450 / 12TB HGST SATA


DDR3 RAM

$10 / $15 / 8GB DDR3 (a)
$15 / $30(+) / 8GB DDR3 (b)
$24(+) / $40(+) / 16GB DDR3 (a)
$25 / $31(-) / 16GB DDR3 (b)
$95 / $105 / 32GB DDR3 (c)


DDR4 RAM

$27(-) / $45 / 8GB DDR4 (d)
$45(-) / $75 / 8GB DDR4 (e)
$40(-) / $55(-) / 16GB DDR4 (d)
$60(-) / $78(-) / 16GB DDR4 (e)
$105(-) / $125 / 32GB DDR4 (d)
$125(+) / $160(-) / 32GB DDR4 (e)

E5v2 CPUs

$130(+) / $145(-) / E5-2660v2
$170(+) / $230(-) / E5-2680v2
$250() / $290(-) / E5-2697v2


E5v3 CPUs

$125(-) / $150(-) / E5-2650v3
$160(+) / $170(+) / E5-2660v3
$175(-) / $217(-) / E5-2670v3
$146(-) / $198(-) / E5-2680v3
$230(-) / $275(+) / E5-2690v3
$290(-) / $378(+) / E5-2695v3
$397 / $459(+) / E5-2698v3
$440(+) / $699(-) / E5-2699v3


E5v4 CPUs

$845(-) / $1029(+) / E5-2650v4
$775(-) / $1200(+) / E5-2660v4
$1350(-) / $1212(-) / E5-2680v4
$1698(-) / $1750(-) / E5-2690v4
$3385 / $3420 / E5-2699v4

Graphics Cards

$550 / $585 / Nvidia GTX 1080Ti
$330 / $370 / AMD Vega 64

To compare to last month, here are the prices of April 25, 2019:

Code:

Price Low* / Price High** / Part Name


SSDs

$80(+) / $89() / 480gb Intel DC S3500 
$170(+) / $215(+) / 800gb Intel DC S3500 
$200(+) / $219(-) / 1.6TB Intel DC S3500 

New SSDs

$110 / $185 / 240gb Intel D3-S4610
$147 / $245 / 480gb Intel D3-S4610
$240 / $343 / 960gb Intel D3-S4610
$470 / $1130 / 1.92tb Intel D3-S4610
$969 / $1410 / 3.84tb Intel D3-S4610
 
Hard Drives

$40 / $48(-) / 3TB HGST SATA
$160 / $175 / 8TB HGST SATA
$200(-) / $230(-) / 10TB HGST SATA
$329 / $450 / 12TB HGST SATA


DDR3 RAM

$10(-) / $15() / 8GB DDR3 (a)
$15() / $20 () / 8GB DDR3 (b)
$21(-) / $31() / 16GB DDR3 (a)
$25(-) / $33() / 16GB DDR3 (b)
$95(+) / $105(+) / 32GB DDR3 (c)


DDR4 RAM

$35(-) / $45(-) / 8GB DDR4 (d)
$42(-) / $75(-) / 8GB DDR4 (e)
$46(-) / $58(-) / 16GB DDR4 (d)
$65(-) / $90(-) / 16GB DDR4 (e)
$105(-) / $125(-) / 32GB DDR4 (d)
$147(+) / $178(+) / 32GB DDR4 (e)

E5v2 CPUs

$140(+) / $159(+) / E5-2660v2
$225(+) / $240() / E5-2680v2
$320() / $370() / E5-2697v2


E5v3 CPUs

*$160(-) / $185(-) / E5-2650v3
*$151(-) / $165(-) / E5-2660v3
*$200(-) / $270() / E5-2670v3
*$149(-) / $210() / E5-2680v3
*$240() / $260() / E5-2690v3
*$325(-) / $375(-) / E5-2695v3
*$397(-) / $450(-) / E5-2698v3
*$697(+) / $850(-) / E5-2699v3


E5v4 CPUs

*$845(-) / $935(-) / E5-2650v4
*$1048() / $1100() / E5-2660v4
*$1299(-) / $1399(-) / E5-2680v4
$1698(-) / $1790(-) / E5-2690v4


Graphics Cards

$550() / $585() / Nvidia GTX 1080Ti
$330() / $370() / AMD Vega 64

Definition of terms / small print:

Code:

* Price Low -- The lowest price to buy this part from a reputable seller in a moderate quantity, price as shipped to the US			
** Price High -- There is a reasonably large quantity of this part available from multiple reputable sellers for this price or lower, price as shipped to the US			

*** Price for the lowest priced drive of this size, matching this model number or better in the same class. "Same class" would mean sata (S) or nvme (P), as applicable. "Better" means a higher model number than listed. Ranked from worst to best, Intel model numbers are 3500, 3510, 3600, 3610, 3700, 3710			

(a) -- 2Rx4 PC3L-10600R ECC REG	
(b) -- 2Rx4 PC3L-12800R ECC REG	
(c) -- 4Rx4 PC3L-12800L ECC REG LRDIMM	
	
(d) DDR4 PC4-2133P ECC Registered	
(e) DDR4 PC4-2400T ECC Registered

Some notable changes compared to last month:

* There seems to be a lot of stability right now in server room pricing. Prices for RAM, SSDs and hard drives have remained relatively constant with only slight changes in prices.

* Processor prices have decreased in almost all processors, especially at low prices. It will be interesting to see if this trend will continue next month.

* There seems to be greater availability in the server parts used this month, especially in the processors.

As before, let me know if you have comments, how I can make this more useful, etc.