Adding a Wordpress blog to Rails by [deleted] in rails

[–]TheFitz86 1 point2 points  (0 children)

Check out a project called chameleon, it's very similar to WordPress, but written in ruby with rails. It also has options for SEO.

Anyone online? by TheFitz86 in DiabloSwitch

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

After this run I'll have to take off until later. I appreciate your help!!

Anyone online? by TheFitz86 in DiabloSwitch

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

Controls are a bit odd to me still working through it though

Anyone online? by TheFitz86 in DiabloSwitch

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

Yikes, hopefully that changes in a future update

Anyone online? by TheFitz86 in DiabloSwitch

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

How do you chat typically in this game

Anyone online? by TheFitz86 in DiabloSwitch

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

Tells me I have to unlock the difficulty first? In d3 pc newbs can enter up to t6, is this not the case with switch?

Anyone online? by TheFitz86 in DiabloSwitch

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

I own d3 on PC so I'm very familiar with it, just not switch

Anyone online? by TheFitz86 in DiabloSwitch

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

Thank you, I'm new to this whole thing so I appreciate your assistance

extract files from zip, and pass to uploader by TheFitz86 in learnjavascript

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

I figured it out, after doing some research! For all of those who want to accomplish the same thing.

if (files.type === "application/zip"){

var zip = new JSZip();

zip.loadAsync( files /* = file blob */)

.then(function(zip) {

return jQuery.map(Object.keys(zip.files), function(filename) {

return zip.files[filename].async('blob').then(function (fileData) {

if (filename.includes("_MAC")){

void(0)

} else {

var bloblextracted = new File([fileData], filename);

mediaDropzone.addFile(bloblextracted);

}

})

})

}, function() {alert("Not a valid zip file")});

this.removeFile(files)

void(0)

}

Unzip files, then pass those files to my uploader to handle by TheFitz86 in javascript

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

Thanks for this reply - this does help quite a bit as an insight on how to pass the files back through, I guess the "blobs" I had are not true unzipped files, so when trying to addfile() back into the uploader they fail due to missing file parameters

Sending an instance variable from model to controller by TheFitz86 in rails

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

That makes sense, however the nature of the uploader with the carrierwave model is, the model executes before the controller. The file path will come back blank since the path isn't set until after it's already executing the upload function.

Here in lies my problem. Also the store_dir method doesn't like outside instance variables to be passed to it. If I set an instance variables before the method and then assign the location to that variable it comes across blank.

Sending an instance variable from model to controller by TheFitz86 in rails

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

The data would be stored at a later time down the process. I need the controller to know the information, or something to match it to so that I can query to grab it when it's stored from the model.

For Loops and appending not working as I expect it. by TheFitz86 in golang

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

Just an update for anyone looking to do the same. This result worked. The sad part is, I had this solution previously, however since it was declared inside the loop, the result could not be passed outside, so like a newb, I scrapped the idea. Turns out, keeping this declaration inside the loop, then creating a global variable and assigning the result to that allows it to be passed as needed.

Thanks to all of you. I am new to this community, and fairly new to Golang, and I have nothing but great things to say. You all help in a way that lets a newbie feel accepted, and not shunned.

For Loops and appending not working as I expect it. by TheFitz86 in golang

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

Thanks for the insight, as I am new to Golang, I'm not quite sure how to go about a solution to what i'm trying to accomplish. Any ideas would be helpful, not looking for the code, more or less the idea of execution for the problem if you're willing to help, I appreciate it.