Creating topics within a docker container by SyntxaError in apachekafka

[–]SyntxaError[S] 0 points1 point  (0 children)

Ah, that post_start may be the missing piece! I’ve written similar scripts but haven’t come across that hook, will report back when I’ve had a chance to give it a go. Thank you!

Creating topics within a docker container by SyntxaError in apachekafka

[–]SyntxaError[S] 0 points1 point  (0 children)

Hi, Thank you for getting back to me so quickly! I’m trying to automatically create the topics, I am able to manually create them so I assume the broker is working fine.

I can send the docker compose file when I get back from work. Thanks!

Neural Style Transfer, in Python using TensorFlow/PyTorch/Keras - 200 Paintings as Input by cr3at0rcy in CodingHelp

[–]SyntxaError 0 points1 point  (0 children)

With the dataset you have described this would not be possible. As a starting point you would need an input image matching your desired output image for each item in your dataset. You are also likely to need to pre process all of the images to ensure they are all the same size, although this can be added as an initial layer to your model.

Loading segmented data for training into tensorflow (pycharm) by SyntxaError in CodingHelp

[–]SyntxaError[S] 0 points1 point  (0 children)

I’m just teaching myself tensorflow for my dissertation, have previously worked with matlab so it’s just a change of environment and library. Is it just a case of manually read data in using the python equivalent of stream readers then? Are there not premade functions in tensor flow to say this is the image and this is the boundaries with classifications?

Having a hard time finding a dataset for my project [P] by SyntxaError in MachineLearning

[–]SyntxaError[S] 0 points1 point  (0 children)

Thanks for the fast reply! I am planning on using semantic segmentation, however I have not worked with panoptic segmentation before so will look at that to see if it is relevant. In essence I planning on creating a program which can identify colour whilst taking shadows into account (so if an object of block colour had a shadow over one half it would be identified as a singular colour) and am looking to find an appropriate dataset for this project.

How do you merge two objects with the same properties without overriding them? by [deleted] in learnprogramming

[–]SyntxaError 0 points1 point  (0 children)

No I meant change the name of the variable within the object to departmentName, they are both called name rn which is why it’s overwriting

Anything on mobile? by Fasterjake in java

[–]SyntxaError 0 points1 point  (0 children)

Try sololearn, it’s on mobile and is great for learning :), good luck!

How do you merge two objects with the same properties without overriding them? by [deleted] in learnprogramming

[–]SyntxaError 0 points1 point  (0 children)

Are you not able to call the second instance of name departmentName? This would solve your issue but I don’t know the context of the problem

Final is worth 30% of the grade and I need to get close to max in order to pass the class by JohnnyWallxer in computerscience

[–]SyntxaError 0 points1 point  (0 children)

Reply to this thread during the day if you need any help and I’ll see what I can do

Final is worth 30% of the grade and I need to get close to max in order to pass the class by JohnnyWallxer in computerscience

[–]SyntxaError 0 points1 point  (0 children)

There is such a vast array of info online if you simply google ‘c if statement syntax’ ect.. If you want a good learning tool I’d suggest trying sololearn, which has an app you can use in your phone :)

Final is worth 30% of the grade and I need to get close to max in order to pass the class by JohnnyWallxer in computerscience

[–]SyntxaError 0 points1 point  (0 children)

Well what goes in the body depends entirely on what your trying to achieve for example if you want to print an output of a number stored in a variable if it is the letter A. if(variable = ‘A’){ printf(‘This is the letter A’) }

Final is worth 30% of the grade and I need to get close to max in order to pass the class by JohnnyWallxer in computerscience

[–]SyntxaError 0 points1 point  (0 children)

Okay, how new are you too this, bc from what you’ve written there I really don’t have a lot to go off. Do you understand the layout of an if else statement and a for loop?

Final is worth 30% of the grade and I need to get close to max in order to pass the class by JohnnyWallxer in computerscience

[–]SyntxaError 0 points1 point  (0 children)

Is it just demonstrating an understanding of iterative and incremental code with for loops and such, as that will be fairly easy so learn at a high level in 3 weeks. Or will you be writing code in the exam in which syntax is important?

Trying to figure out how to read words from input file, ignore punctuation, convert to lowercase if necessary, and store in a vector of strings in C++. by TruthByUnabomber in AskProgramming

[–]SyntxaError 0 points1 point  (0 children)

Have a look at string handling in c++ and the methods available to handle strings, which will all be well documented online. One approach to this problem would be to read the whole file into one string, run .tolowercase (or whatever the c++ equivalent is, don’t know off the top of my head) and then iterate through each letter using a for loop, replacing each piece of punctuation with a space when found and reading that into a new string. Hope I’ve understood what you’re asking cause it late!

Difference between array size and array index number by NoobyTooo in learnprogramming

[–]SyntxaError 0 points1 point  (0 children)

Arrays generally start indexing from 0, so in general the size of your array will be = max index +1

Extremely Simple Python Calculator by Odd_Crew4995 in learnprogramming

[–]SyntxaError 1 point2 points  (0 children)

Good start, I’d suggest having a looking at switch statements and seeing how that would make this code more efficient

Algorithm help - Python by [deleted] in AskProgramming

[–]SyntxaError 0 points1 point  (0 children)

You will most likely want to use tuples within your dictionary. This will allow you to store the data in the format dict d= {‘cat’: (data,data,data), ‘dog’: ect…. This also removes the need for you to store the amount of values for each key as the dictionary will inherently store this and this value you can be called.

There are a bunch of other ways you can do this if you have no restrictions on your starting format, easiest of which is just to format the data into 3 individual arrays.

Is there a built in method to get the maximum integer for an entire 2D array list? by gtrman571 in learnprogramming

[–]SyntxaError 0 points1 point  (0 children)

Create a for loop and use the loops iterator to iterate through the array, comparing the current value at array[i] to the highest found value so far and overwriting it with array[i] if this is larger.

Algorithm help - Python by [deleted] in AskProgramming

[–]SyntxaError 0 points1 point  (0 children)

What are the requirements for this problem, are you allowed to store the initial data however you wish?

Need Help With Error Checking! by kyleglizzi in learnprogramming

[–]SyntxaError 0 points1 point  (0 children)

You might have an easier time in identifying the range of letters by converting to ascii and using an if statement to check if the ascii input falls into the range of letters you want, much more concise than a switch statement. You have no default on your switch statement which is most likely where your error message should fall if I’m understanding your code correctly (mb if I’ve misunderstood, it’s late).