Posts

Showing posts from December 21, 2018

Using SQL Alchemy in python to obtain x most recent items

Image
up vote -2 down vote favorite I am trying to make a nested list RECENT_STORES of the x most recently ordered from stores that has their name from the table store and time_ordered from the table shipment . They are connected via shipment.store_id and store.id How do I write a sqlalchemy query (db.session.query...) so that I do the following in order (in psuedocode): get most recent shipment by time_ordered if shipment.store_id not in RECENT_STORES : append store.name and shipment.time_ordered to RECENT_STORES at index x where shipment.store_id == store.id else: get next most recent shipment by time_ordered and repeat the same checks python python-2.7 sqlalchemy share | improve this question ...

Dual booting with Fake Raid 0 (intel rst)

Image
up vote 0 down vote favorite I have working windows 10 on this fake raid 0. Windows shows raid as a Intel Raid 0 Volume I want to install ubunt (tried other flavours of linux but no luck too) and ubunt doesn't see my fake raid. I've installed mdadm and run mdadm --assemble --scan and i get error: no arrays found in config file or automatically . Also lsblk gives me only my pendrive for live linux. lspci -k shows that the ahci driver is working but nothing is detected in pcies slots My problem is similar to this but i'm runing intel :( My spec: cpu: i7 6700k | ram: 2x8gb | disks: 2x samsung 970 evo m.2 | mobo: asrock z270 k4 I trying to install linux for 2 days and i realy need help please help me ;) dual-boot raid mdadm ...