Read this and nothing else:
http://www.gammon.com.au/switches
Use this code to handle your buttons from here on. Includes debouncing, handle single-click, double-click, long press and extra long press. Example: want to interact with a display? People tend to use a rotary encoder, which need 3 digital pins. With this code you need a single button, for example: single press to iterate between variables, double press to increment and long press to decrements; extra long press to Home.
Howdy there. I'm not great with statistics, but I do know my way around programming pretty well. I wrote a program to simulate the scenario (in MATLAB) and after running a few trials of 1,000,000 experiments each, I got a pretty steady result of 2.20%. I'm honestly a little surprised at how rare it is that you won't be able to make a deck. I'll link my program below, just in case anyone wants to use it but, fair warning, there aren't any comments. If someone could confirm my results with stats, I would appreciate it.
Thanks! It's a mess at the moment, since I've been tweaking everything while trying different methods, but yeah you can find it here. Be warned, its not pretty nor efficient.
Its a LUA scripting language that I used in the CraftStudio engine. The map object is basically a 3d grid of blocks, but I use it for 2d in this case with an ortho cam.
In case wou want to add pie charts of compatible Intel CPUS. you can play with this CASE. To have an "easy" CPU list. I've used the TXT file in WHYNOTWIN11 source code. You could do the same with AMD.
I think there's a way to do it through Canvas > Class > People but I've just been using this python script I made that scrapes it off the HTML for the "People" page on your canvas class. You can dm me the code using codeshare.io for the table element that lists all the students and I'd be happy to generate an email list for you.
Okay a few things, you are calling StartLoading() inside update, so you are essentially reloading your scene over and over, and this resets your async every time, so it will never reach 0.9f progress.
Also I haven't used it in a while, but I think your if should be async.progress >= 0.9f (notice the equals sign) as I believe that is the hardcoded value an async load stops at if scene activation is disabled as you are doing.
Let me know if there is anything else. Also try to rename your async variable to something like asyncLevelLoad, instead of just async, as async is a keyword in C#.
See this codeshare for a fixed version of your code.
Ahhh okay, that is interesting then.
Code is here:
I'll be interested to see what you get in your simulations. I know one other person who separately simulated getting all items from a cookie type and they got about 50-51 cookies on average too.
It'd also be interesting to calculate an expected "worst" value (99% of simulations being completed, perhaps).
Here is the data from the API that shows the quantity available of some of the items....https://codeshare.io/5XWn1E
Some pretty dismal numbers...
For instance
there is only
10 $50 gift cards
1 Samsung TV
10 elite controllers
I feel bad about this code. It's very bad. The findRuns methods are particularly shit. I didn't have enough time to get around to part 6. Can't really spend more time on this at work. Hope it helps you a little.
Obligatory not an S13, but a B13. Shares all the engine stuff and electronics though.
So this is my 1991 NX2000. It originally shipped with an SR20DE engine. I swapped in a JDM SR20VE, which I turbocharge inbetween MOTs.
Wanting more spark, I decided to ditch the distributor based spark system. I already had a Nismotronic ECU, but it doens't support COPs since it has only one ignition output. The solution was clear to me, program an arduino to sequence the firing order to the 4-coils
This is now running with Honda motorcycle CBR600 dumbcoils, paired with an AEM coildriver. It could be made cheaper with smartcoils, but I wanted to try this setup. The arduino part only costs <10$, and can be made to work with practically any distributor based engine. This has probably been done before by someone, but I decided to make it open source. Here is the code for anyone interested. https://codeshare.io/5DZ0zZ
Thanks for looking!
I just did this last night actually. Assuming your post objects are in an array you can loop through and you can use a conditional statement to see if posts are odd or even.
No problem, I hope your project goes well!
made in Arduino IDE, so basically 'Arduino flavored' C++ i think.
As you'll see, it's a bit messy, some places I ran out of time and just copy/pasted a ton of high/low/delays to make tones.
I never got around to making the timer tick down faster and faster in the 'broken arrow' mode, if you want to try that mode out I'd say it's worth rewroking. When the countdown is faster and faster everone can hear if it's getting closes and it isn't just suddunly game over without warning. Should be able to copy code from 'defuse' mode.
https://codeshare.io/QnmjoQ expires 9/22 7:15PST
Well, for starters any folks wanting to help would need to see the crash logs. It would be helpful to post these to codeshare.io or some place like that to see what went wrong. Additionally, how many mods are in the pack, and how much ram is allocated to server and client. I personally (from experience) would recommend you not use more than 8-10 for the client.
wanted to play this game again after a year.
updated some mods and downloaded some cool mods too. mostly QoL stuff.
not sure why i can't right click stuff to save my life.
no dropdown menu options on the things i click.
error log of my mods here.
​
The problem was that my backend script did not returned anything as a result...
Check https://codeshare.io/ayLY7e and notice line 37... only returns an error if there is one, but no other result...
​
Thank you for your help, you made me realize some stuff
>I got it from one of the other games I made and it worked fine there, so I don't think that is where the problem is. I think the problem is in win_lose, but I can't figure out what it is.
I am having a little trouble with the formatting, can you maybe drop it here - https://codeshare.io/G8DdEv
ah yes, just looked at my code and i saw that i used sqlalchemy because cs50 was giving a headache. i'll see if i can link to my github to show you how i implemented it.
https://codeshare.io/a3Wzj6 this is the application.py file that I used. Let me know if you have more questions, its nice to help someone for a change!
Oh my bad, test.py
is the dummy file name I use for your file https://codeshare.io/5e69l4 Change test.py
to your actual file name.
Your paths and install look like mine now.
Make sure you also changed in vscode settings:
"python.linting.pylintArgs": ["--generate-members"],
to
"python.linting.pylintArgs": ["--generated-members=cv2.*"],
You'll need an ESP32 dev board (which is Arduino compatible but much faster and has some ram, its about 8 dollars). A cheap speaker, a knob and a button, all of that gets wired up to various pins to read input and speaker gets wired to pin25 (which is a DAC pin on ESP32). DAC (digital to analog converter) can output a very high frequency signal to the speaker. Here's my super dirty code. https://codeshare.io/2WR748 ESP32 also has two cores, so I use the main loop to render UI and then second core actually renders the waveform for the speaker.
Not quite. The quantity µ_(-p) is part of what you described, but not the whole thing. The value µ_(-p) itself is the weighted average of the nicheness indexes (omitting one party at a time). The standardized nicheness is what you get when you subtract µ_(-p) from σ_(p)
> weight all of the results (bar the party we are trying to calculate), sum the weighted results
As long as by "results" you mean the nicheness indexes σ_(p), then this is µ_(-p)
> then subtract them from the party we are trying to calculate the nicheness score for.
This is σ_(p) - µ_(-p), the standardized nicheness, which is denoted (for lack of a better way of expressed it in plain text) as bar(σ)_(p)
I put the R function on codeshare, you can get it here. The nature of codeshare is that the page will expire in 24 hours.
Is there something you want to do before activating the scene? Why not let the scene automatically update?
Anyway if you want to do it this way, here is the issue: when you do the if async > 0.8, it has only just started loading, so progress is like 0.1f or whatever. So it goes past the if, then you yield return async; but that will never return since isDone won't be reached, since allowSceneActivation never got set to true since we didn't enter the if. And that is where it all stops.
So instead while the loading has not reached 0.9f, stall the coroutine and only once it has passed set allowSceneActivation=true; and that should do it. Check the coroutine in this codeshare again now.
CodeShare.io has a collaborative online code editor that may work for you.
I encourage you and your friend to work together by sharing ideas and talking through the problem together. That doesn't mean you have to write the code together - that's not something us professionals find useful. Writing code is usually best done independently, though it can be useful to have someone looking over your shoulder to help spot obvious mistakes. You think very differently about code when reading it versus writing it, so it's important to spend time doing both.
It's also important to try working alone. It's easy to fall in to the trap of thinking you can do something because you have seen it done, but there is no substitute for experience.
Working together is an important skill and it's especially helpful when learning, do don't be afraid to do that, but be sure you can work independently too.
Descobri, o problema, como eu havia falado alguns comentários acima, como em C os limites não são checados, e como o vetor tinha um tamanho zero( não possui nenhuma memória alocada só pra ele), ao tentar acessar um valor, o programa acaba acessando um valor na memória que não era pra acessar, e nesse caso, esse valor é o valor da variável "x", e com isso, ao invés de colocar o valor no vetor, o programa coloca o valor para variável x. Eu vou te passar um link com o código que eu fiz pra debugar, e vc vai perceber que o ultimo elemento do vetor tem o mesmo endereço da variável x. https://codeshare.io/ztr3z
A quick Google search yielded this result : https://codeshare.io/
Looks like it might be what you want. A better way would be to use Git to work on the same codebase but use different branches, and then merge it all and resolve conflicts if there are any.
It really doesn't sound practical to have two people editing the same file, same code at the same time
Hey! I did some styling for your product page. I think you should be able to get rid of the extra cells between the header and description, but I just added some styling that matches the red cow page and makes it slightly prettier. Here: https://codeshare.io/ay1vba
I think that it would be nice to be able to click on certain things on the product page to initiate a search for macs with the same attributes. Example: clicking on "Yes" or "No" for Organic? to return a set of Organic/Non-Organic macs. This could be really powerful for searching for similar macs.
I also think that a filter feature would be cool. Say I search for "Annie's" and get a return of all the Annie's mac, but I also only want to see Organic or Gluten-Free varieties. A dropdown for each of these categories to narrow down results would be nice.
Ok, excellent. First thing, start using an ORM library - I use Dapper and it saved me from wanting to kill myself dealing with DB access and result mapping. Really simple implementation: https://codeshare.io/2KdWN5
Biggest benefit of this is that it gets you away from using god awful DataTables for shit and lets you use actual classes. All you do is name and type the properties according to the result columns/datatypes of your queries and they'll be mapped automatically for you. Using a class makes it easier to move the data around between places.
Usage on calling it would be like:
DapperThinger.Fetch<AlarmData>("SQL QUERY"); DapperThinger.Execute("SQL UPDATE @Comment @Who", new { Comment = "whatever", Who = "Whatever" });
Once you've got that set up, other things I'd advise doing:
Nothing to be sorry for, you're just starting out. Hopefully you don't think I'm being a prick, just trying to help correct your style while you're still early on in your learning.
I quickly ran through your code and formatted it they way I would, keep in mind that I am a C# developer primarily, the syntax is very similar but there might be some Java style quirks that I don't know about (if any Java developers want to check my work...).
Out of curiosity, are you writing code in an IDE/Editor? If so, which?
In my experience, when it's time to actually write code you should have some pseudocode or steps for your algorithm/program written already to form sort of an outline for what your problem should look like. In person you'll likely need to use a whiteboard to write down your thoughts/notes/examples/test cases/pseudo+real code (although I've had one where there weren't any whiteboards available and I got to sit next to my interviewer and use a legal pad, which I honestly much preferred). If it's a phone screen or online you'll usually type everything out on an online shared doc while on the phone/Skype with your interviewer, most companies will use a platform that has syntax highlighting for commonly used languages (C-variants, Java, Python, JS, etc). Some examples are https://coderpad.io/ and https://codeshare.io/, to name a few.
Think of your onCreate only being called once. It sets listeners up that allow things to happen, but onCreate doesn't run again, just the code inside the listener.
Just loaded your code and ran everything, buttons seems to work fine, but your "if check" is not running and that is where you are calling your methods to go forward(), backwards() and whatever.
Is there any reason you are not calling forward in the touchListener?
Here is a what I think maybe you should change your itemListener to.
Also, just for best practices your Java methods should start with a lowerCaseLikeThis(), I changed your forward, back, left, right, stop, disconnect methods. Only Java classes should begin with UpperCase.
alright, could you take a look on this? i tryed to add some upperClassHousing, businessBrick and some factories to the hub city. but the only thing that spawns and a few apartments with the shotgun, food, book, and toolshops.
the code is here https://codeshare.io/IW5Nd
i added all the buildings i want to spawn in the city to <prefab_rule name="cityBuildingsUncommon"> <prefab_rule name="cityBuildingsRare">
Look up screenshare tools for programming interviews, things like codeshare.io
These are regularly used for interviews and would probably work just fine if you also FaceTime him at the same time
i have been trying to optimize my characters with best artifact and weapons,,
i have used the optimizer and added the data to the website, but i still dont know which to use... i dont have high grade artifact, so i need help to assign what i currently have to at least boost my characters to carry me further in story, bosses, artifact farming
i have uploaded all my characters, weapons and artifact data,
i would appreciate if anyone can help me,
code only valid for 24h
I did something like this. Here is the code that I broke into sections........https://codeshare.io/9OmxrK
The idea here is 2 seperate csv files from 2 database tables in a retail environment.
Merge the data to show data from the cost file and Only data from the price file where exists Similar to sql join
I have a lot of passing around and moving the ownership of data during the evaluation. I get a lot of errors of `implicitly deleted copy constructor`.
You can take a look at my code here: https://codeshare.io/yoQg8v
Create a program that asks the user if he wants to see a square or cube number table
You want to see a square number table? choose option 1
You want to see a cube number table? choose option 2
Read options 1 and 2 (scanf) and use if where it shows
if opcao==1 -> show square number table
if opcao==2 -> show cubic number table
declared variables are a) option (opcao) and contador (counter)
Then finally thank the user for using the program (obrigado por usar o programa!)
I just wanna know if i'm doing this alright. Code is in the link
​
Thanks
def drop_meteors(positions, size, screen):
So far but I am just brain farting on what I am supposed to do. Do I need to make a list of positions and have a for loop append random positions? I'm blanking on just the outline of it.functions in the random module when coding this function. Note that this function doesn’t actually drop the meteors, but it positions meteors along the top of the game screen so they can fall when their positions are updated by update meteor position(). However, to code this function correctly, you have to think of them falling at random times and at random positions along the x-axis. Otherwise, you’ll end up with a sheet of meteors falling at all times. Remember that the game screen is updated about 30 times per second which is fast!
Sorry, I didn't found the original code that I was talking about.
I just wrote up something for you.
Quick and dirty, but I hope you can use it as a starting point for your strategy.
Good luck
So, I set the request's Proxy property to 127.0.0.1:8888 (Fiddler), and I can see all 1000 requests being sent, even without calling EndGetResponse. Are you sure that "the work isn't actually being done"? Using the code I will link below, I am completing 1000 requests in ~2 seconds. Pretty good. Again, I can see them succeeding in Fiddler :)
Unrelated to VS Code and live share, but the closest thing I remember was a website called "Watch me Code", but it died some time ago. There are coding streams on Twitch though, but it's more streaming than pair programming or code review. I would also like a "matching" website to find pairs and I just found ppwm and codeshare, but never used them.
>der method of the provider, you probably redefine it automatically anyways, again this is w
But if the context providers prop changes then all of its children will be re-rendered (at least at the virtual dom level) anyway will they not?
Okay yeah I think I know what you mean about the static theme provider however also would it not just make sense to just import / export those static objects instead of storing them in context?
I was thinking that this could possible be used alongside refs but couldnt figure out how, https://codeshare.io/wnqylP - because we can increment the ref and then pass that as our value but that doesnt seem to trigger the rerender of consumers without it being state because the provider component doesnt rerender itself therefore the function is not run and the value passed to the provider does not change?
I don't remember my exact thought process when solving it (because who remembers anything after it is solved...).
Since so many puzzles work with a 2d array I have a few helpers like the Vector2Int type and a permutator that generates every permutation of an iterable.
I found all the collectibles we have to find, then calculated the distances between each pair with pretty standard pathfinding. Then iterate through every possible order the targets could be and find the one with the lowest total distance.
I could probably speed it up using a stack where I calc 1-2-3-4 then if that gets too long try 1-2-3-5, 1-2-3-6 etc so I don't have to recalculate 1-2-3 each time, but it takes ~190ms for me and most of that is the setup since part 2 takes only 8ms.
Part two just does the same thing as part one except at the end of each path it adds the distance from the last node to 0.
Hi,
Might be late to the party, but after using Velvet and Acies, it seems like one of the tweaks makes the other crash.
I sent this to the creator of Acies as well.
https://codeshare.io/QngX6m
> Tem uma mensagem grandona, mas eu fui colar aqui e o reddit não autorizou enviar
Existem serviços para compartilhamento de código como o codeshare.
> O'que é verbosidade?
Verbosidade é uma opção comum para mostrar mais informações sobre a execução de um programa, geralmente eles usam opções como "-v" ou "-V" (sem aspas) para ser ativada. Também podem existir vários níveis de verbosidade de acordo com o programa, oferecendo opções numéricas (como 1, 2, 3...), opções por classificação (log, warning, error) e ainda opções fuzzy (muito, médio, baixo).
Isso usualmente é feito diretamente na linha de comando da aplicação no terminal mas no caso é provável que você esteja usando uma IDE como a do Arduino. Daí teria que verificar nas configurações dele ou averiguar se ele permite modificar os comandos de gravação.
The simulator opens correctly. (with one small difference - the size of the simulator window becomes bigger than usual).
Here are the logs from the Terminal.
https://codeshare.io/9Op760
I tried some multiple value multiplexing with another optimization and had 100% speedup. Added cache line to test multiple value loading at once. Cache line size = 2048
>i've added some reducers
>
>
>
>https://codeshare.io/VZKY1b
please do check them in above link its production multivendor eccommerce which I have to deploy next week
please let me know if I'm building reducers the right way or not
thanks a lot a lot :D
github seems to have some trouble loading jupyter notebook files, so most of the time it just takes a reload or two for it to show up. Happens to me all the time. Here's the section I'm focusing on, if it won't load for you:
I think your first section might be what I'd want to do, mainly because I'm not sure how to list the axes and call them in a loop (could I make axlist a literal list and iterate them by indexing?). I guess ideally I'd want all the plots in the same figure in order to have them share the same x axis (have the timestamps all line up).
So, the box that I want to adjust has ID of "card1". However, this div of card1 is 2 layers above the textarea. https://imgur.com/a/TrbG3Fg
Hi again Vhin, I want 40 substrings all of the same lengths. The text in the string is however quite ruthless to work with since there has to specific blank lines and so on, for the software to work with it. An example of one of the strings (which there are 40 of): https://codeshare.io/ZJQ6dV
Yes! I did this just now. I converted the temperature values into tens, ones and decimals. Now I am having problems displaying them all at the same time on my segment display. I am trying to understand the concept of multiplexing to accomplish this. Thank you!
This is what I've got going so far: https://codeshare.io/wnyxjj
It sounds like you're probably looking for a mentor. Do you know anyone with more experience at another company you could start arranging to have coffee with and talk over coding problems you're having?
meeting with your laptops for say an hour each week to look at each others code would benefit you both and probably spark lots of new avenues of intrigue.
If you cant find someone in person, you can share and discuss code online using - https://codeshare.io
I'm sure you can find a discord server catering to your interests.
The document class is "scrartcl"
I posted the stuff you asked for here: https://codeshare.io/6p4LDQ
I tried removing all blank lines, I really don't get why it inserts a blank page. It also happens only for that one subsection, even though I have more and I can't spot a difference in the code.
If you want, I can send you my whole document if you can't find the error here. Thank you so much for your help!
Take a look at this
That's just a very simple example.
If you want to start a new form page to perform operations on the list remember that the state yielded must be different from the current state, otherwise bloc builder will not rebuild the widget.
A more sophisticated solution can be use a bloc to emit the list state and another bloc to perform actions on the list, by this way you don't have to deal with states overlap (for example you perform an insert action, you yield an error state but when you return on the previous page you have lost the loaded state and so the list).
But for now stay simple and try to understand how the Bloc pattern and its components works firstly. At the bottom of the pub.dev package page there are a lot of different examples.
When you feel confident with the basics you could check ResoCoder "Flutter Firebase & DDD course" for a more advanced approach.
>Since you're aware of WIFI_EVEN_STA_START you can lookup the other states and it's pretty clear which one indicates if a connection failed and then you can initiate the next one. So just like you wait for the start event you wait for the disconnect event.
Ah thank you! So if I attempt an esp_wifi_connect(), and it fails that triggers a disconnected event? I attached a link to my code with my event handler and setup. Any feedback you could give would be much appreciated
Went to bed before I could answer yesterday, but I think I know whats going wrong. I uploaded some corrections here https://codeshare.io/EBBoxK
Let me know if this works and if you have more questions.
I'm trying to copy and paste my updated code here but all it literally pastes is a semicolon or jumbles up the entire format so I had to share it through codeshare. Basically, I have almost all my code working except the dogs being swiped right are not being shown at the bottom of the page that shows all the dogs the user has adopted.
​
If you want to see the code: https://codeshare.io/Gkke04
Also, I noticed that while one motor is doing half of rotation, the second motor is stopped. Than, if the second motor is rotating half, the first motor is stopped.
For this implementation, even if I right startIdx > endIdx
instead of startIdx >= endIdx
, it works fine. Are there some cases where writing just >
would cause problem?
Hi, awesome game!
I have an animated cursor in my game, but I used a TextureRect and just replace its Texture with AnimationPlayer. No blips! I also had some issues when the cursor went out of the screen but I totally forgot what it was lol. Anyway, my crappy code is here if you ever find it useful! https://codeshare.io/5zZxlN
LMAOOOOO I'm a black Jewish dude with opinions, I think its fair to call myself and opinionated nibba. And my profile 'character' is just black cause I didn't care to do anything else with it and thought it looked cool, being called racist cause I choose the color black for my avatar is fucking hilarious though, that's a new one.
If you live in a densely populated area and cant afford a house by yourself, then get one with a roommate I don't see how or why that is an issue, there's just not enough space for everyone to get a house for themselves in places like NewYork.
And here you go, made this just to prove you incorrect https://codeshare.io/5QKkkW thats my own code used on a dspic33fj128mc in mplab x compiled with XC 16 and that's my own goddamn hand, im already lighter skinned but my skin got even lighter cause I haven't been outside much due to rona.
And maybe I am ignorant on what poor people in America have to deal with, I have an upper middle class family currently, but I came from rural Jamaica where my aunt and uncles sell cattle and my grandma is still working at the spry age of 75, while living with most of her children and grand children because they cant afford not too. So living with a bit of a lack of privacy due to roommates cause you have are in an expensive area, doesn't seem to bad in comparison to having to bathe yourself in the rain because you ran out of water since you were the last of the 7 people in your house to get to the shower.
and out of the two of us, I havent said a single thing negative to you during our whole interaction, and even applauded your effort in the spreadsheet, even if it was for naught. Yet you call me racist due to your misassumption of my skin and also curse me, who here is more childish? rhetorical question cause its not me bud.
No need to create any "/messenger/johnsmith" folders -- nginx should just listen for that as a URL request and map it to the action according to your config file.
Not sure what's going on with the 403 error. You could double-check against my nginx.conf code here, in case it was a Reddit formatting issue: https://codeshare.io/5RRQXV
Otherwise, you could just grab the default nginx.conf file at "/usr/local/openresty/nginx/conf/nginx.conf" and use that as the base for your own file. The only change you should have to make is adding the "location /messenger/johnsmith" sections inside the "server" block that is listening on port 80.
No because the origin isn't special. Things could clump around (-5, +8), or whatever.
Randomizing over a very large set does have the same effect as averaging, because over a long-enough period of time every spot would be filled and ±∞ averages out to zero. But the origin is just the center point and things won't tend to clump around it.
Here, I did a Google search for something close then tweaked it: https://codepen.io/seancdavis/pen/PozMYaP then drop this into the JavaScript part: https://codeshare.io/2EvjWN
Feel free to play with the values at the top, set row/column each to 1000 but the dots will start overlapping each other. Parts will look gray because of an optical illusion.
That runs through an array and picks a random color (black or white) and doesn't pick a random place but the end result should still be the same.
>For some reason Im not able to upload photos of my plot, So I'll share the code
>
>https://codeshare.io/adXb9D
>
>The filter I designed gives 0db for 5hz and around -60db for 10hz.
>
>Problem is, for subplot(3,1,3), i.e msg signal after filtering (Even if I do want to get the result in time domain), It doesn't give me a cos(2pi(5)t) plot but instead a low frequency cos plot. Is there something I'm getting wrong?
Have a look at this: Feb 03 4:31 PM - Codeshare
Note, it just prints out the html for the tabs and their content to copy. CSS and JS should be copied extra/ already available in your project when you paste it.
I know it's far from beeing perfect. But maybe helps for the moment. If you need a better and more consistent one I could do it as a real project but this would need some more time.
u/mzeryck
I have a calendar working but needs some cleanup and formatting to be inline with weather cal a bit more. Do you think you could cleanup this code and put another setting editor for Calendar to change some calendar preferences.
Hi,
I installed visual basics from the link you shared. But it is still not working. I have copied the error message in the below link.
any other way please?
Alright I actually coded this myself and I think I may have to correct myself here. While any()
and all()
can still be used, same results and line saves can be done by just using in
. Also, I think I understand now that you're using try
/except
for empty inputs. in that case, you might want to specify that your exception is IndexError
. This might be why your interpreter wasn't catching the accessing of empty lists because it's catching all errors. Also, you might want to limit that try/except simply for the input part. I didn't find the need to use it personally since the code is smaller, but it is a good practice.
Here's my code for reference by the way (it's alright if you don't wanna look at it and figure it out yourself, that's also great!):
I was thinking to make it a class but i wont use all the class features so i didnt use it,
Here's the code: https://codeshare.io/Gk6XdY
and the line of the error is:
Escaping closure captures mutating 'self' parameter
Hello u/mattcee233
Here is the backend of this post in Express, the url i see it will expire after 24 hours from now :)
​
Thanks,
Cristian
It's crap, but it works, provided packages exist:
Note, I have a global script with auxiliary function to extract cli arguments, print to console, etc. Haven't included these here. The script is not spectacular, but you can extract the main ideas:
I could avoid 2–5, if I knew how to get texhash to recognise the mpm installation directory.
Btw. towards your final question: In projects I use that script and create a local resource with a list of packages that I need, and a local bash-script, which loops over all these entries and calls the above script to install them (and communicates upon errors which packages mpm was being a right sod about and which I have to install manually).
The code doesn't give me any errors, the datagridview shows the correct database (with columns rearranged for some reason).
When I press Button1, nothing happens.
It did give me some errors. Instead of Cint in the q-string, I've used Cstr. This removed any errors I got, as the value I'm trying to write is not integers.
I've studied the youtube video I linked earlier for hours, and I just dont get it. His code works perfectly.
Thank you.
The Logcat is pointing to these lines
Line 182 wm.addView ( view, params ); Line 111 ShimejiView (); Line 95 pause ();
​
Also here is the full code snippet if want to take a better look.
that's technically what i got from the log it creates.. so uhm it just crashes on load that is all it is doing, not sure what else you want me to say? Here is the full log file named wowup-logs202000815.txt
Never looked into DMP files but found a way to open them, this is what mine shows, not much at all, this is what I got (not sure where to paste all the info so just used codeshare
Hello, thank you for your advice!
I have worked on my code and so far I'm satisfied with the result, the only thing left is to make the zero-padding to work. I'm not sure if there's a problem with my code since I have integers instead of strings, do you perhaps know if this is easy to fix?
I have uploaded the code here: Link to code
No worries, I know how regex can be confusing, the rule I posted works fine, and btw by "curved apostrophes" do you mean this ` ?
I have edited my rule to be like this is that what you mean?
What I'm trying to achieve is to catch posts like this:
title: >THIS IS my TITLE
thanks for the help so far.
Recently i was interviewed with American Express..they came up with a leetcode problem during their white-boarding session which required certain level of brainstorming... i'm sharing the challenge with you below :
I did that but received an error message: https://codeshare.io/5Pjd37
I just want to make sure that the input is not a string and it is positive. Is there any other way I could achieve this other than what I did?
var c = 1 while (c <= currentQuestion && btn_submit.isPressed) { tv_option_one.setOnClickListener(null) tv_option_two.setOnClickListener(null) tv_option_three.setOnClickListener(null) tv_option_four.setOnClickListener(null) c++
I'm trying to create a quiz app but having some errors, using Kotlin and Android Studio,
I need to get btn_submit.isPressed to work for each question that I have 1-10 after pressing submit. What happens with this code is all the options after pressing submit in question 1 become null, so I can't choose options for 2-10.
I need to somehow reset each option to become (this) after nullifying once submitting, but i'm completely lost on the logic to do it.
I've been stuck on this for a while so anything would help!
More of the code: https://codeshare.io/5ZxXvn
A tutorial would be amazing please. This my code i fixed the warnings this is my code I need to review the code and understand because so many videos I have watched and the error i'm getting is line 32.
"Severity Code Description Project File Line Suppression State Suppression State
Error CS0844 Cannot use local variable 'ps' before it is declared. The declaration of the local variable hides the field 'InfiniteStarfield.ps'.
There you go: https://codeshare.io/GkZ7MM
Only problem is (and I think this is problem on all themes) that primary-color:'
needs to be overwritten in order for iOS app to have correct header color - but this makes some link very unreadable :/
Yes - there's a mistake with setting up the class attribute on the table rows in the function buildTable()
Basically, an element cannot have more than one "class" attribute. The class attribute can have multiple values, each one separated by a space.
Original code:
function buildTable(data){
var table = document.getElementById('tableData')
for (var i = 0; i < data.length ; i++){
var row = <tr class = '${data[i].class1}' class = '${data[i].class2}'>
<td><a href = "${data[i].link}" target="_blank">${data[i].site}</a></td>
<td>${data[i].description}</td>
<td>${data[i].tags}</td>
</tr>
table.innerHTML += row
}
}
Revised code:
function buildTable(data){
var table = document.getElementById('tableData')
for (var i = 0; i < data.length ; i++){
var row = <tr class='${data[i].class1} ${data[i].class2}'>
<td><a href="${data[i].link}" target="_blank">${data[i].site}</a></td>
<td>${data[i].description}</td>
<td>${data[i].tags}</td>
</tr>
table.innerHTML += row
}
}
I've amended the https://codeshare.io/5wvA9J code accordingly.
Changes made:
HTML code:
JavaScript code:
for (var i = 0; i < 30; i++){
to for (var i = 0; i < data.length ; i++){
... you only want to loop for the number of elements in the array.buildTable(myArray)
inside the window.onload = function() { ... }
code block. You want this function to run when the DOM elements are made available to your JavaScript code.let tableData = document.querySelector('tbl-site').getElementsByTagName('tbody')[0];
line to get your table's tbody having id "tableData". ie. let tableData = document.getElementById("tableData");
selectMenu.onchange
... code block, change if(selection !== "")
to if(selection !== "-")
.. the "-" is your select's box for listing all values.​
Amended version: https://codeshare.io/5wvA9J
I did exactly has you showed on your codepen, changing things up to work with my stuff, but it doesn't seem to work. If you don't mind checking it out then that would be great!
Here you go mate
Steps: List to Table
Transposed the table
Extracted values into rows, split by delimiter
Unpivot
Pivot and Cleanup
I'll try to post the M code somewhere for you. Check back for an edit on this comment
Edit: Link to M code. Open your advanced editor and paste it in. READ THE CODE BEFORE RUNNING IT as any code can be altered to become nefarious. Just spot check that it's reaching out to the right file and not looking for something on your computer etc
https://codeshare.io/2WR748 here you go, it's super dirty and has alot of code for unused buttons, but I'll clean it up as the design matures. Use an ESP32 dev board, 1309 oled, 10k pot and one button.
https://codeshare.io/ay67Kb this is my printer.cfg i simply took the example one for the ender 3 and made some changes to suit my specific setup as well as the bltouch
dont think i can, when i paste the code in its formatted, however when i upload it, / save it the post it kinda un formats it self, however i made a codeshare.io link with the proper format below
Was curious and made a plot: https://ibb.co/fQggkX9 With perfect information and a steady case growth rate (number over the subplots) and an IFR of 1% (but I don't think that matters for the ratios) I plotted the calculated CFR (from total death/total cases) on a day. Lowest curve is death after exactly 14 days, highest is death evenly spread over 14+-13 days. (= on day 1-27 after the current day 1/27 of the death for the new cases on current day happen) (But I might have messed something up in the code https://codeshare.io/aYqO3m I just altered some code I already had. And of course it probably isn't a perfectly even spread.)
Hi u/Phantom569,
Thanks for the suggestion, I'll have a try and come back with the feedback.
The code that I'm trying is posted on codeshare.io if you want to give it a look :)
This question is not just to get the answer but to understand the concepts behind, just trying to learn a bit about the topic, that's all :)
I decompiled the apk. Looks like they used firebase. It's basically like having the login to see the data that comes from your app.
Here is the JavaScript for the react native app. I am not well versed in JavaScript or React Native but this looks like all the JavaScript used to build the app and not just the code they wrote.
I believe it's fairly new and only supported by FireFox and Safari, but my understanding is "revert" will essentially reset all styles for that class or ID, instead allowing the default browser/user-agent styles to function.
You can test that with the following code: https://codeshare.io/2pPlO0
Remove the second body style and the background will be black. Add it back in and the background will become white.
So what I have done is I Crete a model based on the auto data, then I use the function predict: predict(model, mtcars) . There are only ~33 outputs, so I look at it and compare with the actual data in the mtcars, like manually.
I have attached the dataset as dput(): https://codeshare.io/am1ekW
I tried bst = xgboost(data=as.matrix(auto), mpg~. ,label=row.names(auto), nround = 391)
but it returns a list of train-rmse:NaN
​
Here's my data: https://codeshare.io/am1ekW
(- - ) ... you could go with a cloud based solution and set yourself up a virtual machine and remote into that.
Think I fiddled with https://codeshare.io/ a bit at one point maybe some way to leverage that?
If you don't mind me asking what your actual job is? A lot of places tend to encourage personal growth. If so, getting your manager buy in and support could go a long way.
I have purchased a Braccio robotic arm and I am trying to control it with a DX6e RC controller. I am using the provided shield attached to an Arduino Uno, and my servos are wired up as instructed. There seems to be a problem with the M5 and M6 outputs, as the wrist rotates despite the fact that I have not attached to signal to it and the gripper servo is constantly trying to close the claw. My serial monitor is outputting the values I expected and thus the Arduino should be sending the correct signal. Does anyone have any ideas? Here is the code
I've completed the Google Cloud version:
I've created credentials and an api key. I understand how to add the key to a URL, but I am not using one in this case. Where does the API Key go, anyone know? I have the key in a json file.
By the other comments here, I'm guessing people can't help. And it looks like Pastebin is down, so I'll just post my entire class to codeshare with the original variables and everything. But yeah, I don't think people can help with this issue any more.
Python in Mechanical is amazing :-) You can have a look: https://codeshare.io/5ZKBVn Sure, it could be better..
I could't find the possibility, to make a button with my snippet.. Can you help me again?